gregoryfontenele 26 de jan. de 2010
furutani 26 de jan. de 2010
Coloca a classe br.com.srv.security.SecurityRealm no classpath do tomcat, ou seja, empacota ela em um jar e joga no diretório lib.
gregoryfontenele 26 de jan. de 2010
Obrigado pela resposta furutani,
Ela resolveu em partes o meu problema, agora ele incia normalmente, mas quando vou acessar aparece: “HTTP Status 404”
Andre_Fonseca 26 de jan. de 2010
oi,
o HTTP 404 significa que o cliente não está conseguindo achar a página que foi requisitada no servidor
como você está mapeando - web.xml - a sua aplicação no tomcat??
gregoryfontenele 26 de jan. de 2010
Meu web.xml esta assim:
<?xml version="1.0" encoding="UTF-8"?>
<description> None</description>
<!-- Security Filter
<filter>
<filter-name>Security Filter</filter-name>
<filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/security-config.xml</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Security Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Sitemesh Filter for decorating pages -->
<filter>
<filter-name> sitemesh</filter-name>
<filter-class> com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<filter-mapping>
<filter-name> sitemesh</filter-name>
<url-pattern> /*</url-pattern>
</filter-mapping>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name> action</servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name> config</param-name>
<param-value> /WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup> 1</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name> action</servlet-name>
<url-pattern> *.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file> /pages/index.jsp</welcome-file>
</welcome-file-list>
<!-- Error pages -->
<error-page>
<error-code> 403</error-code>
<location> /pages/error/403.jsp</location>
</error-page>
<error-page>
<error-code> 404</error-code>
<location> /pages/error/404.jsp</location>
</error-page>
<!-- Tag Library Descriptors -->
<jsp-config>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri> /tags/struts-bean</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-html</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-logic</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-nested</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-tiles</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-bean-el</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-bean-el.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-html-el</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-html-el.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-logic-el</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-logic-el.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /tags/struts-tiles-el</taglib-uri>
<taglib-location> /WEB-INF/tlds/struts/struts-tiles-el.tld</taglib-location>
</taglib>
<!-- JSTL Tag Library Descriptors -->
<taglib>
<taglib-uri> http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location> /WEB-INF/tlds/jstl/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location> /WEB-INF/tlds/jstl/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location> /WEB-INF/tlds/jstl/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> http://java.sun.com/jsp/jstl/sql</taglib-uri>
<taglib-location> /WEB-INF/tlds/jstl/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> http://java.sun.com/jsp/jstl/functions</taglib-uri>
<taglib-location> /WEB-INF/tlds/jstl/fn.tld</taglib-location>
</taglib>
<!-- Dysplaytag Tag Library Descriptors -->
<taglib>
<taglib-uri> http://displaytag.sourceforge.net/</taglib-uri>
<taglib-location> /WEB-INF/tlds/display/displaytag-11.tld</taglib-location>
</taglib>
<!-- System Tag Library Descriptors -->
<taglib>
<taglib-uri> /system/jsp/tagext/functions</taglib-uri>
<taglib-location> /WEB-INF/tlds/system/functions.tld</taglib-location>
</taglib>
</jsp-config>
Se eu descomentar o filter ele não consegue fazer o deploy, já coloquei o securityfilter.jar na pasta lib do tomcat e continua a mesma coisa.
26 / 01 / 2010 16 : 20 : 58 org . apache . catalina . core . AprLifecycleListener lifecycleEvent
INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java . library . path : / usr / lib / jvm / java - 6 - sun - 1.6 . 0.16 / jre / lib / i386 / server : / usr / lib / jvm / java - 6 - sun - 1.6 . 0.16 / jre / lib / i386 : / usr / lib / jvm / java - 6 - sun - 1.6 . 0.16 / jre / … / lib / i386 : / usr / lib / jvm / java - 6 - sun - 1.6 . 0.16 / jre / lib / i386 / client : / usr / lib / jvm / java - 6 - sun - 1.6 . 0.16 / jre / lib / i386 : / usr / lib / xulrunner - addons : / usr / lib / xulrunner - addons : / usr / java / packages / lib / i386 : / lib : / usr / lib
26 / 01 / 2010 16 : 20 : 58 org . apache . coyote . http11 . Http11BaseProtocol init
INFO : Initializing Coyote HTTP / 1.1 on http - 8080
26 / 01 / 2010 16 : 20 : 58 org . apache . catalina . startup . Catalina load
INFO : Initialization processed in 1102 ms
26 / 01 / 2010 16 : 20 : 59 org . apache . catalina . core . StandardService start
INFO : Starting service Catalina
26 / 01 / 2010 16 : 20 : 59 org . apache . catalina . core . StandardEngine start
INFO : Starting Servlet Engine : Apache Tomcat / 5.5 . 27
26 / 01 / 2010 16 : 20 : 59 org . apache . catalina . core . StandardHost start
INFO : XML validation disabled
log4j : WARN No appenders could be found for logger ( org . apache . catalina . startup . TldConfig ) .
log4j : WARN Please initialize the log4j system properly .
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . StandardContext start
SEVERE : Error filterStart
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . StandardContext start
SEVERE : Context [ / fortalnet ] startup failed due to previous errors
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . ApplicationContext log
INFO : ContextListener : contextInitialized ()
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . ApplicationContext log
INFO : SessionListener : contextInitialized ()
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . ApplicationContext log
INFO : ContextListener : contextInitialized ()
26 / 01 / 2010 16 : 21 : 00 org . apache . catalina . core . ApplicationContext log
INFO : SessionListener : contextInitialized ()
26 / 01 / 2010 16 : 21 : 01 org . apache . catalina . core . ApplicationContext log
INFO : org . apache . webapp . balancer . BalancerFilter : init (): ruleChain : [ org . apache . webapp . balancer . RuleChain : [ org . apache . webapp . balancer . rules . URLStringMatchRule : Target string : News / Redirect URL : < a href = "http://www.cnn.com" > http : // www . cnn . com </ a > ], [ org . apache . webapp . balancer . rules . RequestParameterRule : Target param name : paramName / Target param value : paramValue / Redirect URL : < a href = "http://www.yahoo.com" > http : // www . yahoo . com </ a > ], [ org . apache . webapp . balancer . rules . AcceptEverythingRule : Redirect URL : < a href = "http://jakarta.apache.org" > http : // jakarta . apache . org </ a > ]]
26 / 01 / 2010 16 : 21 : 01 org . apache . coyote . http11 . Http11BaseProtocol start
INFO : Starting Coyote HTTP / 1.1 on http - 8080
26 / 01 / 2010 16 : 21 : 01 org . apache . jk . common . ChannelSocket init
INFO : JK : ajp13 listening on / 0.0 . 0.0 : 8009
26 / 01 / 2010 16 : 21 : 01 org . apache . jk . server . JkMain start
INFO : Jk running ID = 0 time = 0 / 58 config = null
26 / 01 / 2010 16 : 21 : 01 org . apache . catalina . storeconfig . StoreLoader load
INFO : Find registry server - registry . xml at classpath resource
26 / 01 / 2010 16 : 21 : 01 org . apache . catalina . startup . Catalina start
INFO : Server startup in 3107 ms
Andre_Fonseca 26 de jan. de 2010
oi,
vc adicionou o securityfilter-xxx.jar no WEB-INF/lib da sua aplicação certo?