0 Replies Latest reply on Jul 22, 2009 7:06 AM by Igor Stojkovic

    Name binding problem

    Igor Stojkovic Newbie

      I've been searching the net for 2 days and I couldn't find the solution to these two problems (I am using JBoss 5.0.1GA):

      First problem seams to be quartz initializing before datasource binding as you can see in the log (quartz.properties is set with a jdbc datastore and jndiURL=jdbc/OracleDS, oracle-ds.xml defines jdbc/OracleDS and sets the use-java-context to false):

      2009-07-22 12:54:29,250 DEBUG [org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter] (main) start quartz!!!
      2009-07-22 12:54:29,359 ERROR [org.quartz.utils.JNDIConnectionProvider] (main) Error looking up datasource: jdbc not bound
      javax.naming.NameNotFoundException: jdbc not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
      ....
      2009-07-22 12:54:34,718 DEBUG [org.jboss.resource.deployers.RARDeployment] (main) Started jboss.jca:service=RARDeployment,name='quartz-ra.rar'
      2009-07-22 12:54:34,750 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jca:name=jdbc/OracleDS,service=ManagedConnectionFactory to vfsfile:/C:/servers/jboss-5.0.1.GA/server/default/deploy/oracle-ds.xml
      2009-07-22 12:54:34,750 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jca:name=jdbc/OracleDS,service=ManagedConnectionPool to vfsfile:/C:/servers/jboss-5.0.1.GA/server/default/deploy/oracle-ds.xml
      2009-07-22 12:54:34,750 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jca:name=jdbc/OracleDS,service=LocalTxCM to vfsfile:/C:/servers/jboss-5.0.1.GA/server/default/deploy/oracle-ds.xml
      2009-07-22 12:54:34,750 DEBUG [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext] (main) Added component jboss.jca:name=jdbc/OracleDS,service=DataSourceBinding to vfsfile:/C:/servers/jboss-5.0.1.GA/server/default/deploy/oracle-ds.xml
      
      


      Second problem is that my application can't find ejb/classnames:

      12:55 INFO com.ed.ecomm.edcore.util.EJBHomeFactory - lookUp JndiName: ejb/com.ed.ecomm.eprocurement.business.archive.CfTArchiveAccessorManager
      
      javax.naming.NameNotFoundException: ejb not bound
      


      And when I go to JMXConsole->JNDIView->List I get this:

       +- ejb (class: org.jnp.interfaces.NamingContext)
       | +- com.ed.ecomm.eprocurement.business.archive.CfTArchiveAccessorManager (proxy: $Proxy326 implements interface com.ed.ecomm.eprocurement.business.archive.CfTArchiveAccessorManagerHome,interface javax.ejb.Handle)
      com.ed.ecomm.eprocurement.business.archive.CfTArchiveAccessorManager (proxy: $Proxy326
      


      Please help, I am desperate.