2 Replies Latest reply on Dec 28, 2002 5:51 AM by Hao.Zeng

    Trouble in dealing with the deployment descriptor

    Hao.Zeng Newbie

      Hello!

      I have a problem in deploying an EJB2.0 CMP entity bean,

      that is, I don't know what should be written into the

      datasource-mapping field in the jbosscmp-jdbc.xml file.

      Who can tell me the answer? Thank you!

        • 1. Re: Trouble in dealing with the deployment descriptor
          Greg Turner Apprentice

          datasource-mapping has to match one of the names in $JBOSS_HOME/server/$JBOSS_SERVER/conf/standardjbosscmp-jdbc.xml

          • 2. Re: Trouble in dealing with the deployment descriptor
            Hao.Zeng Newbie

            Thank you very much!

            Now, the previous problem vanishes, but a new one is

            posed to me, that is, jboss can't find the specified

            data source, the error message is as follows:




            18:54:01,421 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB,jndiName=OrderRemote

            org.jboss.deployment.DeploymentException: Error: can't find data source: Enterprise; - nested throwable: (javax.naming.NameNotFoundException: Enterprise not bound)

            at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:99)

            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397)

            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)

            at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)

            at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)

            at org.jboss.ejb.Container.invoke(Container.java:764)

            at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

            at $Proxy5.start(Unknown Source)

            at org.jboss.system.ServiceController.start(ServiceController.java:396)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy73.start(Unknown Source)

            at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)

            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

            at $Proxy5.start(Unknown Source)

            at org.jboss.system.ServiceController.start(ServiceController.java:396)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy8.start(Unknown Source)

            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:394)

            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)

            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)

            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy4.deploy(Unknown Source)

            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)

            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:553)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)

            + nested throwable:

            javax.naming.NameNotFoundException: Enterprise not bound

            at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)

            at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)

            at org.jnp.server.NamingServer.getObject(NamingServer.java:509)

            at org.jnp.server.NamingServer.lookup(NamingServer.java:282)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:456)

            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:440)

            at javax.naming.InitialContext.lookup(InitialContext.java:350)

            at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:96)

            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397)

            at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)

            at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)

            at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)

            at org.jboss.ejb.Container.invoke(Container.java:764)

            at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

            at $Proxy5.start(Unknown Source)

            at org.jboss.system.ServiceController.start(ServiceController.java:396)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy73.start(Unknown Source)

            at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)

            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

            at $Proxy5.start(Unknown Source)

            at org.jboss.system.ServiceController.start(ServiceController.java:396)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy8.start(Unknown Source)

            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:394)

            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)

            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)

            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)

            at java.lang.reflect.Method.invoke(Native Method)

            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

            at $Proxy4.deploy(Unknown Source)

            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)

            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:553)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)

            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)

            18:54:01,437 INFO [EjbModule] Started

            18:54:01,437 INFO [MainDeployer] Deployed package: file:/E:/Soft/JBoss/jboss/jboss-3.0.2/jboss-3.0.2/jboss-3.0.2/server/all/deploy/Entity2.jar

            18:54:01,437 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
            Cause: Incomplete Deployment listing:
            Packages waiting for a deployer:

            Incompletely deployed packages:

            MBeans waiting for classes:

            MBeans waiting for other MBeans:
            [ObjectName: jboss.j2ee:service=EJB,jndiName=OrderRemote
            state: FAILED
            I Depend On:
            Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: Enterprise; - nested throwable: (javax.naming.NameNotFoundException: Enterprise not bound)]




            How to eliminate it?