Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 596 times and has 4 replies Next Thread
Male fey.lee
Newbie




Joined: Jun 25, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
ClassNotResolvedException: Class "org.hsqldb.jdbcDriver"

After struggling for several days, I arrived here...desperately

org.datanucleus.exceptions.ClassNotResolvedException: Class "org.hsqldb.jdbcDriver" was not found in the CLASSPATH

I tried datanucleus 1.1.2, 1.1.3, 1.1.4, all the same.

the code snippet is pretty much the same to what has suggested in the forum.

ClassLoader clrDriver=null;
clrDriver = Platform.getBundle("x").loadClass("org.hsqldb.jdbcDriver").getClassLoader();

props.put("datanucleus.primaryClassLoader", clrDriver);

ClassLoader clrDN=null;

clrDN = Platform.getBundle("org.datanucleus").loadClass("org.datanucleus.jdo.JDOPersistenceManagerFactory").getClassLoader();

pmf = JDOHelper.getPersistenceManagerFactory(props, clrDN);


The exception is very familiar:

Caused by: org.datanucleus.exceptions.ClassNotResolvedException: Class "org.hsqldb.jdbcDriver" was not found in the CLASSPATH. Please check your specification and your CLASSPATH.
at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:250)
at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:415)
at org.datanucleus.store.rdbms.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:87)
... 53 more


Can anybody please cast me some light?

Many thanks in advance!
[Jun 26, 2009 1:03:28 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ganzuoni
Expert
Member's Avatar


Joined: Nov 16, 2005
Post Count: 804
Status: Offline
Reply to this Post  Reply with Quote 
Re: ClassNotResolvedException: Class "org.hsqldb.jdbcDriver"

After struggling for several days, I arrived here...desperately

org.datanucleus.exceptions.ClassNotResolvedException: Class "org.hsqldb.jdbcDriver" was not found in the CLASSPATH

I tried datanucleus 1.1.2, 1.1.3, 1.1.4, all the same.

the code snippet is pretty much the same to what has suggested in the forum.

ClassLoader clrDriver=null;
clrDriver = Platform.getBundle("x").loadClass("org.hsqldb.jdbcDriver").getClassLoader();

props.put("datanucleus.primaryClassLoader", clrDriver);

ClassLoader clrDN=null;

clrDN = Platform.getBundle("org.datanucleus").loadClass("org.datanucleus.jdo.JDOPersistenceManagerFactory").getClassLoader();

pmf = JDOHelper.getPersistenceManagerFactory(props, clrDN);


The exception is very familiar:

Caused by: org.datanucleus.exceptions.ClassNotResolvedException: Class "org.hsqldb.jdbcDriver" was not found in the CLASSPATH. Please check your specification and your CLASSPATH.
at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:250)
at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:415)
at org.datanucleus.store.rdbms.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:87)
... 53 more


Can anybody please cast me some light?

Many thanks in advance!

Hope that red light fades the shade.

Guido
----------------------------------------
Guido Anzuoni
http://www.objectmagic.org
[Jun 26, 2009 2:00:49 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male fey.lee
Newbie




Joined: Jun 25, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: ClassNotResolvedException: Class "org.hsqldb.jdbcDriver"

Hi, Guido

thanks! but the class was there...

Another thread has the same problem, but the solution is not so clear.
http://www.jpox.org/servlet/forum/viewthread_thread,5616

Any other suggestions? Many thanks!

Best
Fey
[Jun 26, 2009 2:45:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ganzuoni
Expert
Member's Avatar


Joined: Nov 16, 2005
Post Count: 804
Status: Offline
Reply to this Post  Reply with Quote 
Re: ClassNotResolvedException: Class "org.hsqldb.jdbcDriver"

Hi, Guido

thanks! but the class was there...

This is what you say and what you can see.
As you can imagine, we have no access to your desktop to check by ourselves, so the only thing we can say is the above.

Another thread has the same problem, but the solution is not so clear.
http://www.jpox.org/servlet/forum/viewthread_thread,5616

Any other suggestions? Many thanks!

Best
Fey


Guido
----------------------------------------
Guido Anzuoni
http://www.objectmagic.org
----------------------------------------
[Edit 1 times, last edit by ganzuoni at Jun 26, 2009 4:10:14 PM]
[Jun 26, 2009 4:08:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male fey.lee
Newbie




Joined: Jun 25, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: ClassNotResolvedException: Class "org.hsqldb.jdbcDriver"

Hi,

I followed this article.
http://www.jpox.org/servlet/wiki/pages/viewpage.action?pageId=1179712

it solved the same problem by adding 2 classloaders for jdbc driver and persistencemanagementfactory respectively.

but this didn't work for me...

Bundle-ClassPath:
...
lib\hsqldb.jar,

which is in the right path.

and deployed other datanucleus bundles in plugins

Require-Bundle: org.eclipse.osgi.services;bundle-version="3.1.200",
org.eclipse.core.runtime;bundle-version="3.4.0",
org.datanucleus;bundle-version="1.1.4",
org.datanucleus.enhancer;bundle-version="1.1.4",
org.datanucleus.store.rdbms;bundle-version="1.1.4"

Thanks again!

best,
fey
[Jun 26, 2009 6:13:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread