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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating classes12.zip in HPUX

Status
Not open for further replies.

sandeepmur

Programmer
Dec 14, 2003
295
PT
Hi,

I am trying to execute a JSP in a TOMCAT container running on HP-UX os. I am getting a "java.sql.SQLException: No suitable driver" error when I execute the jsp.

The Classes12.zip is located in the TOMCAT/lib directory only and nowhere else.. I mean its not found in either the webapp/<application dir>/web-inf or in <java>/lib directories nor even in the $PATH and $CLASSPATH variables.

Is this normal ? I cannot experiment too much on this machine as it is the Production env. However, I did check on another Development env and it has the exact same config and the app runs fine there.

Appreciate some suggestions..

thnx,
 
Version 4.0

I checked on another TEST machine and it works fine there too ! and none of the environments have any kind of env variable set and all have the classes12.zip only located in TOMCAT\lib dir.

I put the classes12.zip file in the webapp´s WEB-INF\lib folder, restarted the TOMCAT but all to no avail..

thnx for suggestions,
 
Hi again,

I got it working finally.. Had to call the DriverManager.RegisterDriver and voila its working.. Although it appears strange that I had to invoke this method.

thnx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top