Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » ClassNotFoundException with JAR already in WEB-INF/lib !!! WTP 0.7
ClassNotFoundException with JAR already in WEB-INF/lib !!! WTP 0.7 [message #130642] Sun, 07 August 2005 22:57 Go to next message
Eclipse UserFriend
Originally posted by: cgaviao.pop.com.br

Hi people, I pass this weekend trying to resolve this problems but i
couldn´t...

I´m using WTP 0.7 with Tomcat 5.5.9 and I´m using Derby as DB.

I put derbyclient.jar(the driver jar) in WEB-INF/lib and it was
recognized by WTP (it appears in Web App Libraries and it was copied to
..deployables\xxxx\WEB-INF\lib).

I even have tried to put it as a dependency at .wtpmodules file:

<dependent-module deploy-path="/"
handle="module:/classpath/var/MAVEN_REPO/derby/jars/derbyclient.jar " />

My context.xml file has:

<Resource name="jdbc/impsisso" type="javax.sql.DataSource"
driverClassName="org.apache.derby.jdbc.ClientDriver"
url="jdbc:derby:net://localhost:1527/xxxx" username="ttt" password="x"
maxActive="50" maxWait="-1" maxIdle="10" removeAbandoned="true"
logAbandoned="true" />



Every time that I try to connect to datasource it throws this exception:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver
class 'org.apache.derby.jdbc.ClientDriver'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource (BasicDataSource.java:766)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Ba sicDataSource.java:540)

Caused by: java.lang.ClassNotFoundException:
org.apache.derby.jdbc.ClientDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)


I´m missing something??

best regards for all...

Cristiano
Re: ClassNotFoundException with JAR already in WEB-INF/lib !!! WTP 0.7 [message #131852 is a reply to message #130642] Wed, 10 August 2005 19:41 Go to previous message
Eclipse UserFriend
Originally posted by: nospam.ronald_vankuijk_net.remove

Cristiano Gavião wrote:
> Hi people, I pass this weekend trying to resolve this problems but i
> couldn´t...
>
> I´m using WTP 0.7 with Tomcat 5.5.9 and I´m using Derby as DB.
>
> I put derbyclient.jar(the driver jar) in WEB-INF/lib and it was
> recognized by WTP (it appears in Web App Libraries and it was copied to
> .deployables\xxxx\WEB-INF\lib).
>
> I even have tried to put it as a dependency at .wtpmodules file:
>
> <dependent-module deploy-path="/"
> handle="module:/classpath/var/MAVEN_REPO/derby/jars/derbyclient.jar " />
>
> My context.xml file has:
>
> <Resource name="jdbc/impsisso" type="javax.sql.DataSource"
> driverClassName="org.apache.derby.jdbc.ClientDriver"
> url="jdbc:derby:net://localhost:1527/xxxx" username="ttt" password="x"
> maxActive="50" maxWait="-1" maxIdle="10" removeAbandoned="true"
> logAbandoned="true" />
>
>
>
> Every time that I try to connect to datasource it throws this exception:
>
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver
> class 'org.apache.derby.jdbc.ClientDriver'
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource (BasicDataSource.java:766)
>
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(Ba sicDataSource.java:540)
>
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.derby.jdbc.ClientDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
>
> I´m missing something??
>
> best regards for all...
>
> Cristiano

I had the same thing if the url is not configured right (e.g. to an
unexisiting host, schema etc.). Then you get this strange error. Maybe
it is the same with you
Previous Topic:How to install WTP applications ?
Next Topic:EclipseXSLT 1.0.3 released
Goto Forum:
  


Current Time: Sun Jul 27 13:55:11 EDT 2025

Powered by FUDForum. Page generated in 0.23853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top