Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax/jdo/JdoHelper used with servlet

 
nitinnitin sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody..
----------
JdoHelper.getPersistenceManagerFactory(Property props)
----------
this method is perfectly working in a application but when I used it with a servlet , an exception is thrown saying --NoClassDefFoundError :javax/jdo/JdoHelper

Thank you very much...
 
Eelco den Heijer
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, probably you have to add the jdo.jar to the classpath of the servlet container, or add the jdo.jar in WEB-INF/lib of your web app.
 
nisharma sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for this help.
Now I think its accessing the JDOHelper but giving a new exception---
---
javax.do.JdoFatalUserException:Invalid driver class oracle.jdbc.driver.OracleDriver: Java.lang.classNotFoundException: oracle.jdbc.driver.OracleDriver---
I used the same code in different application and its working fine there.
I have put classes12.zip in the lib folder.
more help please?
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic