4 Replies Latest reply on Mar 15, 2002 5:33 AM by teseling

    Problems to configure OracleDS on JBoss 3beta

    teseling

      Hi,

      It is probably a simple misconfig, but I have been struggling for quite some time on this. I have configured a datasource on jboss3 (according to example in online docs). I have the DriverClass package placed in the /lib/ext dir.

      The DS is created during startup of JBoss, but as soon as my application is being deployed (containing some CMP beans) it tries to create ManagedConnection which fails. I get a "No suitable driver" see below. I think it is a problem to find the DriverClass, but I do not seem to be able to solve this simple thing!

      I also have tried to copy the driver to the deploy dir (as I read some message that this was required), but the same thing happens. Any ideas on what the problem could be and how to fix this???


      17:26:04,187 ERROR [MyDS] Unable to create ManagedConnection:
      javax.resource.ResourceException: Unable to create DB connection for url: jdbc:oracle:thin:@myhostname:1521:ora8 DriverClass=oracle.jdbc.driver.Oracle
      Driver, user: myusername password=mypassword, exception: java.sql.SQLException: No suitable driver
      at org.jboss.resource.adapter.jdbc.local.JDBCManagedConnectionFactory.createManagedConnection(JDBCManagedConnectionFactory.java:392)
      at org.jboss.resource.connectionmanager.ManagedConnectionPoolFactory.createObject(ManagedConnectionPoolFactory.java:97)
      at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1013)
      at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:672)
      at org.jboss.resource.connectionmanager.SharedLocalConnectionManager.allocateConnection(SharedLocalConnectionManager.java:124)
      at org.jboss.resource.adapter.jdbc.JDBCDataSource.getConnection(JDBCDataSource.java:110)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:694)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:120)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersistenceManager.java:130)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:134)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:330)
      at org.jboss.ejb.Container.invoke(Container.java:745)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:995)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:777)
      at $Proxy2.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:275)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:78)
      at $Proxy1.create(Unknown Source)
      at org.jboss.ejb.Application.create(Application.java:230)
      at org.jboss.ejb.EJBDeployer.deploy(EJBDeployer.java:433)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:458)
      at org.jboss.deployment.MainDeployer.deploySubPackages(MainDeployer.java:793)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:453)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:413)
      at org.jboss.deployment.MainDeployer.scan(MainDeployer.java:272)
      at org.jboss.deployment.MainDeployer.startService(MainDeployer.java:218)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:160)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.system.Server.(Server.java:157)
      at org.jboss.Main.boot(Main.java:263)
      at org.jboss.Main.run(Main.java:48)
      at java.lang.Thread.run(Unknown Source)