• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing classes in Tomcat

 
Tim Eyre
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running Tomcat in UNIX, and have put a jar file called jconn2.jar in WEB-INF/lib. This contains the JDBC drivers needed.
In my JSP I import com.sybase.jdbcx.SybDriver, but when I run the JSP it says "Class not found in import".
Is the WEB-INF not the correct location for this file?
Thanks
Tim
 
inam paki
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim;
lib folder is always contained inside web-inf.
U put it in the right place.
U can do it in another way.
put ur .jar file in
....\jdk\jre\ext\lib
now it will be available to any .class.
 
Tim Eyre
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Inam, my problem was that I needed to stop and restart tomcat.
Thanks
Tim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic