Dear all,
Reading the book from Michael Yuan, I tried to deploy a seam project to Tomcat.
Just exactly as written in his book, I used Ant to pack the book examples:
"tomcatjpa" and "tomcatejb3" to tomcatjpa.war (and tomcatejb3.war) and
deployed it on a fresh installed Tomcat 5.5.23 (by copying the war-file into the Tomcat
webapps-folder and restarting Tomcat)
I can't attach the war-file, because it takes more than 10MB, but I used exactly the
sources which are available under:
http://www.michaelyuan.com/blog/seam-next-gen-web-framework/#SeamDownload (Sample
projects for JBoss AS 4.2.0 GA)
I got Java 6 and Ant 1.7 (stable version) on my system.
When I call "http://servername:8080/tomcatjpa/hello.seam" from Browser, I get an
error message, that the FacesContextFactory cannot be found.
This error is the same for tomcatjpa and tomcatejb3
My Stacktrace is:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling
this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.IllegalStateException: Application was not properly initialized at startup,
could not find Factory: javax.faces.context.FacesContextFactory
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:619)
Please help me, finding the solution to that problem.
I am planning to set up a seam project running on Tomcat 5.5 (I am not allowed to use
JBoss; I know, this is bad), beginning soon, so I really appreciate any comment on my
little problem.
Thank you so much for your kind help in advance,
J. Melzer
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php