voyent
myEclipse Tomcat 6.0 and ICEfaces 1.7 and export to a production Tomcat 6.0  XML
Forum Index -> General Help
Author Message
progman

Joined: 14/Feb/2008 00:00:00
Messages: 6
Offline


Hello,
I am new here. I have a big problem. I develope an ICEfaces 1.7 Site in myEclipse 6.0.1 with integrated Tomcat 6. In the IDE the site is running but if I export the Site into a war-File and upload the war-File to a Tomcat 6.0 on a Freebsd system, the application throws the following exceptions:

Apr 16, 2008 2:52:06 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 16, 2008 2:52:06 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 16, 2008 2:52:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Apr 16, 2008 2:52:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 16, 2008 2:52:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/76 config=null
Apr 16, 2008 2:52:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4722 ms
Apr 16, 2008 2:52:09 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Apr 16, 2008 2:52:09 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Apr 16, 2008 2:52:09 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Apr 16, 2008 2:52:24 PM com.icesoft.faces.webapp.http.servlet.SessionDispatcher sessionCreated
WARNING: java.lang.NoClassDefFoundError: javax/faces/FactoryFinder
Apr 16, 2008 2:52:24 PM com.icesoft.faces.webapp.http.servlet.SessionDispatcher notifySessionInitialized
SEVERE: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/faces/FactoryFinder
Apr 16, 2008 2:52:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.NullPointerException
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)


I don't know how i can handle this error. Please help me.

Best regards
Erik
maxi_ng

Joined: 11/Jan/2008 00:00:00
Messages: 92
Offline


I get this exception while I am trying facelet with icefaces 1.7+tomcat 6.
Any idea?
maxi_ng

Joined: 11/Jan/2008 00:00:00
Messages: 92
Offline


I resolved it by including JSF library into /lib
progman

Joined: 14/Feb/2008 00:00:00
Messages: 6
Offline


I resolved it too with including jsf-libraries in WEB-INF/lib directory. myEclipse does not export the jsf libraries, why? Is it a bug?
liming.wu

Joined: 26/Oct/2004 00:00:00
Messages: 441
Offline


progman

This is a question about JSF 1.2 (JavaEE 5.0) support in MyEclipse. It is definitely not a issue from ICEfaces tooling. The best place for your question is MyEclipse support forums. MyEclipse can give you official answer on it.

I don't think this is an issue. "Missing jsf api and ri jars" happens when your project is JavaEE 5. And it becomes an issue only when you export the project to a war file and deploy it to Tomcat 6.

Generally target JavaEE 5.0 server should have JSF 1.2 API and implementation included. The war file generated from a JaavaEE5 project is not supposed to have JSF jars. For tomcat 6 such a exception, user should include JSF 1.2 jars manually.

Hope this helps.
[Email]
progman

Joined: 14/Feb/2008 00:00:00
Messages: 6
Offline


thank you for your answer. that was the problem. I solved it with including the jsf-jars manually.
progman

Joined: 14/Feb/2008 00:00:00
Messages: 6
Offline


oh a mistake, just now I know it. Thank you
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team