my dog learned polymorphism*
The moose likes Tomcat and the fly likes Problem with JSF Application on Tomcat 6.0.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with JSF Application on Tomcat 6.0.2" Watch "Problem with JSF Application on Tomcat 6.0.2" New topic
Author

Problem with JSF Application on Tomcat 6.0.2

Nicolas Stern
Ranch Hand

Joined: Apr 26, 2002
Posts: 57
Hi everyone,

I'm running a demo JSF application on Tomcat 5.5.12 - no problem.

The same application on Tomcat 6.0.2 raises NullPointerException for all the requests that are mapped to the FacesServlet.

JSF - Libraries are identical.

Tomcat 5.5.12 and 6.0.2
jdk 1.5.0_07

The application I'm trying to run is a demo from JSF Tutorial by R. Hightower on http://www-128.ibm.com/developerworks/java/library/j-jsf1/

Someone suggested to replace some of the libraries shipped with the Tomcat installation with newer ones (el-api.jar and el-ri.jar) but it brought no improvement.

Thanks in advance for any hint.

Cheers - Nic
Nicolas Stern
Ranch Hand

Joined: Apr 26, 2002
Posts: 57
Hi everyone,

Problem solved by a colleague.

The two libraries el-api.jar and el-ri.jar that are shipped with the installation pack must be replaced by their newest versions. This fixes the problem.

Also moved to JRE 1.5.0_07 (no idea if it has some influence).

I noticed that I could not install Tomcat as a service using the windows installer. (WinXP pro sp2).

Cheers - Nicolas
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Thank you for reporting back with your solution.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JSF Application on Tomcat 6.0.2