Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EntityBean - through JNDI: Could not connect to data base !  RSS feed

 
Dharmin Desai
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I m using J2EE1.3 SUN Server with its own Deployment tool.
My code can pick up JNDI name.
But it is saying, It can not locate proper driver. I m using TYPE 4 Oracle driver (classes12.jar) and my tables are at database server.
Please tell me where to put my driver jar file in the path ? it is already set in the classpath but it is saying " CAN NOT FIND PROPER DRIVER "?
Should i provide server IP address in the connect string ? Please answer.
- Dharmin
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use javap to check whether the classes12.jar is relay in the path.
To find the name of any class inside this package, open classes12.jar
using winzip , and try whether you can get details of that class using javap.
after setting up your environment.
Primarily the classpath should be set at server startup script.
regards,
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use javap to check whether the classes12.jar is relay in the path.
To find the name of any class inside this package, open classes12.jar
using winzip , and try whether you can get details of that class using javap.
after setting up your environment.
Primarily the classpath should be set at server startup script.
regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!