Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Using a User Library of jars on the Tomcat classpath (Can't get Eclipse to give Tomcat the library of jars to put on its classpath)
Using a User Library of jars on the Tomcat classpath [message #893678] Thu, 05 July 2012 04:49 Go to previous message
Adam Hardy is currently offline Adam Hardy
Messages: 3
Registered: July 2009
Junior Member
I'm running Eclipse Indigo and Tomcat 6 and they are not playing nicely.

I have a web project which needs JDBC drivers - in fact it needs 3 JDBC drivers. Since I have multiple installs of Tomcat, I figured it would be easier to put the 3 JDBC jars in a User Library and place that on the Tomcat classpath in its launch configuration, rather than adding 3 jars at a time.

Sounds like a minor issue - guess it is, but I'm documenting the process for our team and it would nice to have.

This is how I do it:


  1. Create a user library
  2. Add the 3 JDBC driver jar to it
  3. Open up a server config window via double click in Servers view
  4. change to Classpath tab
  5. Select 'User Entries'
  6. Click on Advanced button
  7. Choose Add Library
  8. Choose User Library
  9. Select the JDBC library
  10. Done


but Eclipse doesn't add the jars. The app fails when it tries to connect to the DB and secondly when I add the server as a run-time target to the project, then in the project view I figured I should see the jars as well.

Am I doing something wrong or does Eclipse WTP not work like that? If it is just functionality that never existed, why not? Surely I'm not the first to want to do this? To tell the truth, googling the problem didn't find any sign of other people having the issue, so maybe I am.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:is there a good jsp editor plugin for eclipse(javaEE)
Next Topic:Custom Content Assistance without specifying XSD location.
Goto Forum:
  


Current Time: Sun May 19 09:44:36 EDT 2013

Powered by FUDForum. Page generated in 0.01709 seconds