Andre_Fonseca 22 de jun. de 2010
oi,
como está o mapeamento do seu web.xml
abs
rodrigofariat 22 de jun. de 2010
No welcome-file tenho:
index.html
index.jsp
index.htm
default.html
default.htm
default.jsp
no Servelet:
servetclass : javax.faces.webapp.FacesServlet
saulods 22 de jun. de 2010
Lança Exception no console/log ?
rodrigofariat 22 de jun. de 2010
O erros no console:
2 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . AprLifecycleListener init
INFO : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java . library . path : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 / server : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 : / usr / lib / jvm / java - 6 - openjdk / jre / … / lib / i386 : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 / client : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 : / usr / lib / xulrunner - addons : / usr / lib / xulrunner - addons : / usr / java / packages / lib / i386 : / usr / lib / jni : / lib : / usr / lib
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : Livraria ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : Trabalho - TE ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : TrabJSF ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . coyote . http11 . Http11Protocol init
INFO : Initializing Coyote HTTP / 1.1 on http - 8080
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . startup . Catalina load
INFO : Initialization processed in 1478 ms
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . StandardService start
INFO : Starting service Catalina
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . StandardEngine start
INFO : Starting Servlet Engine : Apache Tomcat / 6.0.24
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext listenerStart
SEVERE : Error configuring application listener of class org . apache . myfaces . webapp . StartupServletContextListener
java . lang . ClassNotFoundException : org . apache . myfaces . webapp . StartupServletContextListener
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1484 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1329 )
at org . apache . catalina . core . StandardContext . listenerStart ( StandardContext . java : 3915 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4467 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1045 )
at org . apache . catalina . core . StandardHost . start ( StandardHost . java : 722 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1045 )
at org . apache . catalina . core . StandardEngine . start ( StandardEngine . java : 443 )
at org . apache . catalina . core . StandardService . start ( StandardService . java : 516 )
at org . apache . catalina . core . StandardServer . start ( StandardServer . java : 710 )
at org . apache . catalina . startup . Catalina . start ( Catalina . java : 593 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 57 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . lang . reflect . Method . invoke ( Method . java : 616 )
at org . apache . catalina . startup . Bootstrap . start ( Bootstrap . java : 289 )
at org . apache . catalina . startup . Bootstrap . main ( Bootstrap . java : 414 )
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext listenerStart
SEVERE : Skipped installing application listeners due to previous error ( s )
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext start
SEVERE : Error listenerStart
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext start
SEVERE : Context [ /TrabJSF ] startup failed due to previous errors
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . loader . WebappClassLoader clearReferencesJdbc
SEVERE : A web application registered the JBDC driver [ com.mysql.jdbc.Driver ] but failed to unregister it when the web application was stopped . To prevent a memory leak , the JDBC Driver has been forcibly unregistered .
Andre_Fonseca 22 de jun. de 2010
rodrigofariat:
O erros no console:
2 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . AprLifecycleListener init
INFO : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java . library . path : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 / server : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 : / usr / lib / jvm / java - 6 - openjdk / jre / … / lib / i386 : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 / client : / usr / lib / jvm / java - 6 - openjdk / jre / lib / i386 : / usr / lib / xulrunner - addons : / usr / lib / xulrunner - addons : / usr / java / packages / lib / i386 : / usr / lib / jni : / lib : / usr / lib
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : Livraria ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : Trabalho - TE ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . tomcat . util . digester . SetPropertiesRule begin
WARNING : [ SetPropertiesRule ] { Server / Service / Engine / Host / Context } Setting property ‘ source ’ to ‘ org . eclipse . jst . jee . server : TrabJSF ’ did not find a matching property .
22 / 06 / 2010 15 : 08 : 21 org . apache . coyote . http11 . Http11Protocol init
INFO : Initializing Coyote HTTP / 1.1 on http - 8080
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . startup . Catalina load
INFO : Initialization processed in 1478 ms
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . StandardService start
INFO : Starting service Catalina
22 / 06 / 2010 15 : 08 : 21 org . apache . catalina . core . StandardEngine start
INFO : Starting Servlet Engine : Apache Tomcat / 6.0.24
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext listenerStart
SEVERE : Error configuring application listener of class org . apache . myfaces . webapp . StartupServletContextListener
java . lang . ClassNotFoundException : org . apache . myfaces . webapp . StartupServletContextListener
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1484 )
at org . apache . catalina . loader . WebappClassLoader . loadClass ( WebappClassLoader . java : 1329 )
at org . apache . catalina . core . StandardContext . listenerStart ( StandardContext . java : 3915 )
at org . apache . catalina . core . StandardContext . start ( StandardContext . java : 4467 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1045 )
at org . apache . catalina . core . StandardHost . start ( StandardHost . java : 722 )
at org . apache . catalina . core . ContainerBase . start ( ContainerBase . java : 1045 )
at org . apache . catalina . core . StandardEngine . start ( StandardEngine . java : 443 )
at org . apache . catalina . core . StandardService . start ( StandardService . java : 516 )
at org . apache . catalina . core . StandardServer . start ( StandardServer . java : 710 )
at org . apache . catalina . startup . Catalina . start ( Catalina . java : 593 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl . java : 57 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAccessorImpl . java : 43 )
at java . lang . reflect . Method . invoke ( Method . java : 616 )
at org . apache . catalina . startup . Bootstrap . start ( Bootstrap . java : 289 )
at org . apache . catalina . startup . Bootstrap . main ( Bootstrap . java : 414 )
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext listenerStart
SEVERE : Skipped installing application listeners due to previous error ( s )
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext start
SEVERE : Error listenerStart
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . core . StandardContext start
SEVERE : Context [ /TrabJSF ] startup failed due to previous errors
22 / 06 / 2010 15 : 08 : 22 org . apache . catalina . loader . WebappClassLoader clearReferencesJdbc
SEVERE : A web application registered the JBDC driver [ com.mysql.jdbc.Driver ] but failed to unregister it when the web application was stopped . To prevent a memory leak , the JDBC Driver has been forcibly unregistered . </ blockquote >
oi,
isso ja rolou por aqui
como mencionaram você pode dar uma lida também aqui
aparentemente o erro acontece quando você faz sucessivos deploys, ou então fica resquício de deploys de aplicações antigas
uma alternativa para tentar resolver isso é limpar todos os temporários e reiniciar o servidor
caso não adiante tente desinstalar o servidor e instalar novamente
abs
rodrigofariat 22 de jun. de 2010
Como faço para limpar todos os temporários e reiniciar o servidor ?
Andre_Fonseca 22 de jun. de 2010
oi,
vá no diretório de instalação do Tomcat pasta temp e apague o conteúdo
C:\Program Files\Apache\Tomcat 6.0\temp
você esta usando o Tomcat dentro ou fora de alguma IDE? está subindo ele por comando (bat ou sh) ou então pelo Monitor por exemplo?
o modo mais fácil (na minha opinião) é dentro da IDE (no meu caso uso Eclipse) ou então usando o apache tomcat monitor ( na taskbar do windows )
abs
rodrigofariat 23 de jun. de 2010
Oi André,
Tentei apagar o temp do tomcat, mesmo assim não resolveu.
Estou usando o Eclipse Galileu, no Ubuntu.
Vou tentar instalar um novo eclipse (talvez o gaimed) e ver se funciona.
Att,
Rodrigo
Andre_Fonseca 23 de jun. de 2010
oi,
este projeto que está dando erro estava funcionando antes?
se ele estava funcionando antes e está dando este erro pode ser por conta daquele problema com deploys antigos como falei acima, neste caso se não funcionou limpando os temporários você pode tentar dar um clean usando o eclipse mesmo ou então instalar novamente o tomcat
caso ele não estivesse funcionando antes pode ser problema na hora do setup do myfaces, neste caso talvez esteja faltando alguma dependência (jars) dê uma olhada na página do myfaces e veja se está faltando algo no seu projeto
abs