facebook

Deploy in Jboss 3.2.3 [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #208035 Reply

    vzapponi
    Member

    I’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.5

    Thanks
    Vittorio

    #208038 Reply

    Scott Anderson
    Participant

    Vittorio,

    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.

    #208039 Reply

    Riyad Kalla
    Member

    Vittorio,
    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.

    #208044 Reply

    vzapponi
    Member

    Thanks 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 drivers

    Thanks
    Vittorio

    #208046 Reply

    Riyad Kalla
    Member

    Vittorio,
    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

    #208047 Reply

    vzapponi
    Member

    Ok, now it’s all ok, 10x very much
    Vittorio

    #208051 Reply

    Riyad Kalla
    Member

    Glad to hear you are up and running now.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Deploy in Jboss 3.2.3 [Closed]

You must be logged in to post in the forum log in