- This topic has 3 replies, 2 voices, and was last updated 20 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
lionsjMember– System Setup ——————————-
Operating System and version:
Eclipse version: 2.1.2
Eclipse build id:
MyEclipse version: 2.6.4
Eclipse JDK version: 1.4
Application Server JDK version: 1.4– Message Body ——————————-
……
……17:19:48,754 INFO [EjbModule] Created
17:19:48,774 INFO [EjbModule] Starting
17:19:48,774 INFO [EntityContainer] Starting
17:19:49,465 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection:
org.jboss.resource.JBossResourceException: Failed to register driver for: COM.ibm.db2.jdbc.app.DB2Driver; – nested throwable: (java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:280)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:146)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnection(InternalManagedConnectionPool.java:367)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:160)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool.getConnection(JBossManagedConnectionPool.java:643)
……
……why?
undefined
Riyad KallaMemberIt would seem you need to add the DB2Driver somewhere in your classpath. See these links for information about it:
http://www6.software.ibm.com/devcon/devcon/docs/db81cpwx.htm
or
http://www6.software.ibm.com/dl/db2udbdl/db2udbdl-p
lionsjMembercopied db2java.jar to D:\jboss-3.2.2\server\default\lib
it work fine;but it doesn’t work in eclipse,why?
how to config myeclipse Application servers?
Riyad KallaMembercopied db2java.jar to D:\jboss-3.2.2\server\default\lib
it work fine;glad it worked
but it doesn’t work in eclipse,why?
Do you mean that MyEclispe still throws the exception? Or are you asking why it didn’t work before?
how to config myeclipse Application servers?
1) Window->Preferences->MyEclipse->Application Servers->(select a server)-> Now set the home directory and all other parameters to use to launch the application server.
2) Now click OK, and look for the “Deploy” button on your button bar, click that and setup deployments for your application to the server your just configured.
3) Hit “Deploy”
Now your application will be deployed into the application server.
-
AuthorPosts