- This topic has 6 replies, 3 voices, and was last updated 20 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
vzapponiMemberI’m new in MyEclipse and I tried to make a CMPBean. All work fine: I deploy in Jboss’s default deployDir. Starting JBoss from MyEclipse perspective I have this error message on JbossConsole:
org.jboss.resource.JBossResourceException: Could not create connection; – nested throwable: (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))
…. (more message from stack) ….Starting JBoss from line command (DOS) all is ok: my CMPbean is correctly deployed, the table on DB is created, etc…..
Eclipse 3.0M8
MyEclipse 3.7.2
Data source DB2 7.5Thanks
Vittorio
Scott AndersonParticipantVittorio,
From the error you haven’t placed the driver jar for DB2 on JBoss’s classpath so when it tries to instantiate your connector it’s throwing this exception. To correct the issue, you need to add the driver to Window > Preferences > MyEclipse > Application Servers > JBoss 3 > Paths > Append to Classpath. If the driver is type 2 (not pure java), you may also need to add an entry to the directory containing the driver DLL in the Java Library Path box.
Riyad KallaMemberVittorio,
You need to add your DB driver to your JBoss path so JBoss can find it and use it, please navigate to your Window > Preferneces > MyEclipse > App Servers > JBoss 3 > Paths preference page, and use the “Appand to Classpath” section and use the Add button to add your JAR or ZIP file here so JBoss can find it.
vzapponiMemberThanks scott & rkalla but…. this is the response after the change in Jboss3 path:
😥
17:24:04,456 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection:
org.jboss.resource.JBossResourceException: Could not create connection; – nested throwable: (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.createManagedConnection(LocalManagedConnectionFactory.java:160)….. (many, many others) ….
I’ve appennded:
D:/sqllib/bin for the dlls for a driver tipeII
and
D:/jboss-3.2.3/jboss-3.2.3/server/default/lib\db2java.zip
for driversThanks
Vittorio
Riyad KallaMemberVittorio,
Dealing with DLLs is different, please see this FAQ entry for an equivalent situation: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-14.html#105
vzapponiMemberOk, now it’s all ok, 10x very much
Vittorio
Riyad KallaMemberGlad to hear you are up and running now.
-
AuthorPosts