jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Tomcat and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat and JSP" Watch "Tomcat and JSP" New topic
Author

Tomcat and JSP

Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
HiFriends,
I am trying to run this simple jsp example:

Can someone please tell meif I have to set any classpath for the BasicDataSource class???


[/CODE]


SCJP 1.4 (88%)<br />SCWCD 1.4 (88%)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where did you put the connection pool library (jar)?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jas Oberai
Ranch Hand

Joined: Jan 16, 2005
Posts: 231
when i installed tomcat5.0,they were automatically installed in the <catalina_home>/common/lib/*.I also tried putting this in my classpath:

C:\Tomcat 5.0\common\lib\commons-dbcp-1.2.1.jar;C:\Tomcat 5.0\common\lib\commons-pool-1.2.jar;C:\Tomcat 5.0\common\lib\commons-collections-3.1.jar;C:\Tomcat 5.0\common\lib;

But it still throws the same error,help me please.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410


Tomcat doesn't use your classpath.

I'm not sure what's causing this. Maybe the structure of the jar in Tomcat has changed over different versions.

You might want to ask in the Apache/Tomcat forum.

Also, before you spend too much time hunting this down, you might want to look into the container managed connection pool that you already have available to you with Tomcat:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and JSP
 
Similar Threads
roles in struts
UnsupportedClassVersionError with Tomcat 5.0.28
JSTL configuration problem in Eclipse
unable to get localhost:8080
Need help for JSP to call C API using JNI