0 Replies Latest reply on Aug 31, 2001 1:17 PM by Sundaram Ramasamy

    Pointing different data source

    Sundaram Ramasamy Newbie


      I am trying to deploy cabin bean in the example. It always looking for DefaultDS, But I have MySQL data source, my jaws.xml looks like this.


      mySQL
      <type-mapping>mySQL</type-mapping>

      <default-entity>
      <create-table>true</create-table>
      <remove-table>false</remove-table>
      <tuned-updates>true</tuned-updates>
      <read-only>false</read-only>
      <time-out>300</time-out>
      </default-entity>




      Still it looking for DefaultDS. any idea where i need to spcify the mySQL data source.

      Thanks
      -SR

      [J2EE Deployer Default] Deploy J2EE application: file:/D:/jboss/jboss/deploy/cabin.jar

      [J2eeDeployer] Create application cabin.jar

      [J2eeDeployer] install EJB module cabin.jar

      [Container factory] Deploying:file:/D:/jboss/jboss/tmp/deploy/Default/cabin.jar

      [Verifier] Verifying file:/D:/jboss/jboss/tmp/deploy/Default/cabin.jar/ejb1001.jar

      [Container factory] Deploying CabinBean

      [Container factory] org.jboss.ejb.DeploymentException: DefaultDS not bound

      [Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(JawsApplicationMetaData.java:120)

      [Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:75)

      [Container factory] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommandFactory.java:133)

      [Container factory] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:83)

      [Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:110)

      [Container factory] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:221)

      [Container factory] at org.jboss.ejb.Application.init(Application.java:202)

      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)

      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)

      [Container factory] at java.lang.reflect.Method.invoke(Native Method)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:486)

      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:464)

      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)

      [Container factory] at java.lang.reflect.Method.invoke(Native Method)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)

      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)

      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)

      [Container factory] at java.lang.reflect.Method.invoke(Native Method)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Container factory] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)

      [Container factory] at $Proxy0.start(Unknown Source)

      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)

      [Container factory] at java.lang.reflect.Method.invoke(Native Method)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Container factory] at org.jboss.Main.(Main.java:210)

      [Container factory] at org.jboss.Main$1.run(Main.java:116)

      [Container factory] at java.security.AccessController.doPrivileged(Native Method)

      [Container factory] at org.jboss.Main.main(Main.java:112)

      [J2EE Deployer Default] Starting cabin.jar failed!

      [Default] org.jboss.ejb.DeploymentException: Could not deploy file:/D:/jboss/jboss/tmp/deploy/Default/cabin.jar, Cause:org.jboss.ejb.DeploymentException: DefaultDS not bound

      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:401)

      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:486)

      [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:464)

      [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)

      [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [Default] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)

      [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)

      [Default] at $Proxy0.start(Unknown Source)

      [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [J2EE Deployer Default] Module cabin.jar is not running

      [J2EE Deployer Default] Destroying application cabin.jar

      [Default] at org.jboss.Main.(Main.java:210)

      [Default] at org.jboss.Main$1.run(Main.java:116)

      [Default] at java.security.AccessController.doPrivileged(Native Method)

      [Default] at org.jboss.Main.main(Main.java:112)

      [AutoDeployer] Deployment failed:file:/D:/jboss/jboss/deploy/cabin.jar

      [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting cabin.jar: Could not deploy file:/D:/jboss/jboss/tmp/deploy/Default/cabin.jar, Cause: org.jboss.ejb.DeploymentException: Could not deploy file:/D:/jboss/jboss/tmp/deploy/Default/cabin.jar, Cause:org.jboss.ejb.DeploymentException: DefaultDS not bound

      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:511)

      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:464)

      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)

      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [AutoDeployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)

      [AutoDeployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [AutoDeployer] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)

      [AutoDeployer] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)

      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [AutoDeployer] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)

      [AutoDeployer] at $Proxy0.start(Unknown Source)

      [AutoDeployer] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)

      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [AutoDeployer] at org.jboss.Main.(Main.java:210)

      [AutoDeployer] at org.jboss.Main$1.run(Main.java:116)

      [AutoDeployer] Auto deploy of file:/D:/jboss/jboss/deploy/cd.jar

      [J2EE Deployer Default] Module cd.jar is not running

      [J2EE Deployer Default] Destroying application cd.jar

      [J2EE Deployer Default] Report of undeployment of J2EE application: file:/D:/jboss/jboss/deploy/cd.jar could not be reported.

      [J2EE Deployer Default] Deploy J2EE application: file:/D:/jboss/jboss/deploy/cd.jar

      [J2eeDeployer] Create application cd.jar

      [AutoDeployer] at java.security.AccessController.doPrivileged(Native Method)

      [AutoDeployer] at org.jboss.Main.main(Main.java:112)