File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes I can't StartUp a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "I can Watch "I can New topic
Author

I can't StartUp a "Jboss Tool Web JSF" Project in Tomcat 6.

Francisco Llaryora
Greenhorn

Joined: Dec 30, 2011
Posts: 14
Hi, to all. I am new in this forum.

I write be cause i can't StartUp a "Jboss Tool Web JSF" Project in Tomcat 6.

I followed the next steps:

-Check Java JRE 6 and JDK 6
-Download and Unzip Eclipse 3.4 SR2 IDE
-Download and Unzip apache-tomcat-6.0.26
-Download and Unzip jstl 1.2, and Move the jars to apache's lib folder.
-Download and Unzip mojarra-1.2_09-b02-FCS-binary.zip
-Download JBossTools-ALL-win32-3.0.3.v200910211631N-H194-GA.zip
-Run and configure Eclipse (http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html#RunAndConfigureEclipse)
-Integrate Tomcat in Eclipse (http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html#IntegrateTomcatInEclipse)
-Unzip JBossTools-ALL-win32-3.0.3.v200910211631N-H194-GA.zip in the same directory that eclipse was unziped.
-Reset PC

-Create a new JSF Proyect (New Proyect..-> Jboss tool web -> JSF-> JSF Proyect)
-Create a view on face-config.xml (without a managed bean) it's a simple "Hello Word !!!".
-Right-click on the Project and select: JBoss Tools -> Add Custom Capabilities (Jboss Richfaces 3.3).
-Right click on the xxx.jsp ->Run as-> ...->select the Tomcat 6

I have few fatal error from Tomcat 6 console:

30-dic-2011 0:36:33 org.apache.catalina.core.AprLifecycleListener init
INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files (x86)\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:\Windows\system32;C:\Program Files (x86)\AIMP2\;C:\Fran\Archivos\MinGW\bin
30-dic-2011 0:36:34 org.apache.coyote.http11.Http11Protocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
30-dic-2011 0:36:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 999 ms
30-dic-2011 0:36:34 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
30-dic-2011 0:36:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración host-manager.xml
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración manager.xml
30-dic-2011 0:36:34 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Desplieque del descriptor de configuración MyProyect.xml
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext addApplicationListener
INFO: El escuchador "com.sun.faces.config.ConfigureListener" ya está configurado para este contexto. La definición duplicada ha sido ignorada.
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Error configurando escuchador de aplicación de clase com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
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.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
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:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Se ha saltado la instalación de escuchadores de aplicación debido a error(es) previo(s)
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
30-dic-2011 0:36:35 org.apache.catalina.core.StandardContext start
GRAVE: Falló en arranque del Contexto [/MyProyect] debido a errores previos

Ok, the original output error are in spanish i'm sory:
INFO: The librery ARP of Apache Tomcat was not found on java.library.path: bla bla..
SEVERE: Error when configuring aplication listener class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

In proyectView:
My JRE Librery are:
charsets.jar
dnsns.jar
jsse.jar
localedata.jar
resources.jar
rt.jar
sunjce_provider.jar
sunpkcs11.jar
sunmscapi.jar

My Libs in apache:
annotations-api.jar
catalina.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
el-api.jar
jasper-el.jar
jasper.jar
jasper-jdt.jar
jsp-api.jar
servlet-api.jar
tomcat-coyote.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
tomcat-dbcp.jar

My Web App Libreries:
commons-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-tlds.jar
jstl.jar
richfaces-api-3.3.0.GA.jar
richfaces-impl-3.3.0.GA.jar
richfaces-ui-3.3.0.GA.jar
standar.jar

Import to proyect from mojarra:
jsf-api-1.2.jar
jsf-impl-1.2.jar

In web.xml -> Listener:
....
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
...
but i can't found com.sun.faces.config.ConfigureListener if i push the add button.

Please, How i fix this?
Since Two days ago I'm trying to fix this.

Thanks for read me!
Sorry for my poor english.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The missing class, com.sun.faces.config.ConfigureListener, should be in jsf-impl-1.2.jar. Double-check that the JAR contains that class. Also, double-check that that JAR appears in you app as deployed to Tomcat in WEB-INF/lib.


JBoss In Action
Francisco Llaryora
Greenhorn

Joined: Dec 30, 2011
Posts: 14
Problem Resolved!!!

Peter Johnson Thenk you!!! (+1)
You gave me clues to resolve this, be cause i was... (i don't know how really say it in english ) i was in low spirits (no sad).
I download http://www.roseindia.net/jsf/jsf1.2/jsf12.zip

And next In Eclipse .
Windows-->Preferences--->Web-->Libreries:
Click in Mojarra, then, click in Remove.
Click in Add and select all the jars in jsf12.zip (in lib folder)

Create a new Proyect (, new jsf view) and Run it!
Best regards Peter Johnson, from Argentina!

Sorry for the Late!
 
 
subject: I can't StartUp a "Jboss Tool Web JSF" Project in Tomcat 6.
 
Similar Threads
Tomcat startup Problem
Exception sending context initialized event to listener instance of class com.sun.faces.config.Confi
tomcat error
How to deploy an ear into OC4J 10.1.3.5 from then admin console
Getting error----NoContextLoaderListener registered