Hi,

it must be some classpath problem...
note that all jars deployed in WEB-INF/lib are automagically added to the classpath by the web server, however if you use OJB in a standalone application, you have to add each jar file to the CLASSPATH and not only the directory where they are located.


cheers
danilo

Hello,

All the JAR I need are in the classpath.
When I run OJB from a servlet it works well but when I run it from a main() method 
this error occurs.
There is no differences between them.
That's a bit strange!

Sylvain


-----Original Message-----
From: Martin Kal�n [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:42 AM
To: OJB Users List
Subject: Re: error when start OJB



[EMAIL PROTECTED] wrote:



java.lang.NoClassDefFoundError:

org/apache/commons/pool/PoolableObjectFactory


What does it mean?

It means that an external package that OJB depends on (Jakarta Commons Pool in this case) is not present in your classpath.


Check out http://db.apache.org/ojb/deployment.html for the OJB deployment guide, or (more to the point) http://db.apache.org/ojb/dependencies.html for a list of the JAR-files you need to deploy with OJB.

--
Martin Kal�n
Curalia AB              Web:  http://www.curalia.se
Orrspelsv�gen 2B        Mail: [EMAIL PROTECTED]
SE-182 79  Stocksund    Tel:  +46-8-410 064 40


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to