db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Cecchet <m...@frogthinker.org>
Subject Re: Tomcat derby JSP "java.sql.SQLException: No suitable driver"
Date Thu, 04 Dec 2008 21:43:12 GMT
Mike,
> Thanks for your reply. I have tried using derby.jar instead of
> derbyclient.jar and the result is exactly the same. Is there any more advice
> you can give me?
>   
This is certainly a classpath issue. Be careful with classloader 
inheritance in Tomcat.
Where did you copy derby.jar? What version of Tomcat are you using?

Emmanuel

>
>
>
>
>
>
>
>
>
>
>
>
>
> Emmanuel Cecchet-5 wrote:
>   
>> Michael,
>>
>> You should have derby.jar in the classpath if you want to use embedded 
>> mode.
>>     
>>> CLASSPATH=\
>>> Applications/apache-tomcat-6.0.18/lib/derbyclient.jar:\
>>>       
>> derbyclient.jar contains only the JDBC driver code 
>> (http://db.apache.org/derby/docs/dev/adminguide/tadminappschangingyourclasspath.html)
>>     
>>> <%
>>> String driver = "org.apache.derby.jdbc.EmbeddedDriver";
>>>       
>> Hope this helps,
>> Emmanuel
>>
>> -- 
>> Emmanuel Cecchet
>> FTO @ Frog Thinker 
>> Open Source Development & Consulting
>> --
>> Web: http://www.frogthinker.org
>> email: manu@frogthinker.org
>> Skype: emmanuel_cecchet
>>
>>
>>
>>     
>
>   


-- 
Emmanuel Cecchet
FTO @ Frog Thinker 
Open Source Development & Consulting
--
Web: http://www.frogthinker.org
email: manu@frogthinker.org
Skype: emmanuel_cecchet


Mime
View raw message