Tomcat deployment - help!

Hi everybody,

My application works perfectly on the bundled server but when I deploy it to Tomcat I get an error. I added the JSTL libraries as explained in the deployment example but I think the error comes from the code as there is a nullpointerexception! I am new to java please help me with some directions...

The full error message is the following:

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.processConn ection(Http11BaseProtocol.java:665)

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

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

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

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: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.processConn ection(Http11BaseProtocol.java:665)

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

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

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

java.lang.Thread.run(Unknown Source)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.

Thanks a lot.

Max

PS: Is it not possible to install Tomcat in the IDE instead of the bundled server?

[2348 byte] By [maxruffoa] at [2007-11-26 22:10:05]
# 1
Hi!What Tomcat version do You use? If 5.5.20 or higher, try lower version, for example 5.5.17. There was some problem with 5.5.20.Thanks,Roman.
-Grif-a at 2007-7-10 10:57:22 > top of Java-index,Development Tools,Java Tools...
# 2

I will try a lower version first thing in the morning...

However, the server where I bought a shared space actually run the version 5.5.20 and that's why I installed this version on my computer!

Any clue on how to solve the problem independently from the Tomcat version?

Thanks

MAx

maxruffoa at 2007-7-10 10:57:22 > top of Java-index,Development Tools,Java Tools...
# 3
Issue update:Effectively the application works fine with Tomcat 5.5.17 but in no way I can make it working with Tomcat 5.5.23.Anybody has an idea on how to solve this problem? My web server uses the 5.5.20 so I'm stuck...ThanksMax
maxruffoa at 2007-7-10 10:57:22 > top of Java-index,Development Tools,Java Tools...
# 4

I too am having a similar problem, when i build / dist to the server directley it works fine but if i put the war file in the webapps directory and explode it the application doesn't work.

I looks like it is not referenceing the JSF libraries properly. Im currently tring to fix this problem i will let you know if i get i done.

You may want to try installing the server you are tring to deploy to on your build machine and seeing if when you build straight on to it (like your bundled server) your probelem still persists, if not then it might be that you have the same problem as me with the exploding war files not being set-up how you want them to be.

JonPena at 2007-7-10 10:57:22 > top of Java-index,Development Tools,Java Tools...
# 5
Hello all, I've managed to make it work adding the following xml in the web.xml just before the <context-param> keys<listener><listener-class>com.sun.faces.config.ConfigureListener</listener-class ></listener>Hope it works!
Khainodda at 2007-7-10 10:57:22 > top of Java-index,Development Tools,Java Tools...