2 Replies Latest reply on Oct 8, 2003 10:49 PM by Chuck Harris

    deploy mbean after db-ds.xml

    Chuck Harris Newbie

      How do I start an mbean that depends on a database connection. The mbean is deployed in the default/lib dir. When the mbean is started during jboss startup, I am getting an error that the jndi name for the database is not bound. If I start jboss without the mbean-service.xml in the deploy dir and copy it into the deploy dir after jboss has started , the mbean starts correctly. I tried adding:

      to mbean-service.xml but it did not resolve the error. It generated:

      11:14:36,119 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to
      get a new connection:
      org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JB
      ossResourceException: Failed to register driver for: com.merant.datadirect.jdbc.sqlserver.SQLServerDriver; - neste
      d throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.merant.datadirect.jdbc.sqlserver.SQ
      I copied the jar with the sql driver it is looking for into every lib dir (one at a time) and that did not help. How do I start the mbean after the proddb-ds.xml is fully deployed?