Deploying Creator-2 WepApp in Tomcat-5.5

As recommended, I copied jstl.jar and standard.jar from Jakarta into : C:\Program Files (x86)\Apache Software Foundation\Tomcat 5.5\common\lib and uploaded a .war file that contained my simple test webapp. During the upload it said that some of the scripts are either busy or not responding. After attempting to continue many times, I finally stopped the script that wasn't willing to run. I could then see my app listed under deployed apps. When I tried to run the app, I got the following dump:

Could some one help. Please note that there are no datasources involved.

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:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke rThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6 84)

java.lang.Thread.run(Unknown Source)

root cause

java.lang.NullPointerException

javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke rThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6 84)

java.lang.Thread.run(Unknown Source)

thanx

[2368 byte] By [marysam] at [2007-11-26 11:58:49]
# 1
Hi!Try to look here: http://forum.sun.com/jive/thread.jspa?threadID=110034&tstart=15 http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=57433Thanks,Roman.
Grif at 2007-7-7 12:20:08 > top of Java-index,Development Tools,Java Tools...
# 2
Hi Roman, this is MaryI tried exporting as a war files, etc., and all other recos in those links, I didn't succeed. Would it be so difficult to crack this when we are talking about exchange of resources between pretty similar servers. JESUSMary
marysam at 2007-7-7 12:20:08 > top of Java-index,Development Tools,Java Tools...
# 3
Hi!What version of Tomcat do you use? There was some messages on this forum, that problem was with Tomcat 5.5.20, but all was fine with Tomcat 5.5.17. Try to use Tomcat 5.5.17 if you don't use it now.Thanks,Roman.
Grif at 2007-7-7 12:20:08 > top of Java-index,Development Tools,Java Tools...
# 4
Thanx a lot. It didn't take over 15 min to cleanup 5.5.20, quaratine, download 5.5.17, install, export from creator-2, deploy in tomcat. It works well and thanx once again. Mary
marysam at 2007-7-7 12:20:08 > top of Java-index,Development Tools,Java Tools...
# 5

please go through the following link

http://swforum.sun.com/jive/thread.jspa?threadID=48775&messageID=161996

provides a suggested solution of adding the following to the web application deployment descriptor:

<listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class > </listener>

it works

lichen at 2007-7-7 12:20:08 > top of Java-index,Development Tools,Java Tools...