Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NullPointerException with DataSource

Status
Not open for further replies.

theprofessorx

Programmer
Mar 21, 2002
10
0
0
US
hello Tomcat peoples.

I'm running Tomcat as a servlet container connected to Apache HTTP Server through the WarpConnector on NT. I've configured a DataSource using Tomcat. I have servlets that use the DataSource deployed in a web application.

Now when I run the servlets directly through Tomcat (ie port 8080), they connect to the DataSource fine. However, when I go through Apache via WarpConnector, a NullPointerException error is thrown.

I've been conversing with a knoweledgeable Tomcat fella on this, and from what I understand, the context for the web application is not resolved when it passes through the WarpConnector, resulting in a newly created context which defaults to null. This fella seemed to have fixed the problem on Linux by removing the "/" from the WebAppDeploy path in httpd.conf and the Context path tag in server.xml.

This doesn't work for Windows. NullPointerException is still thrown. Has anybody encountered this problem and successfully fixed it? Thanks for any input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top