0 Replies Latest reply on Feb 12, 2002 4:44 AM by JoEz

    : expected only one datasource tag

    JoEz Newbie

      Hi all,

      I got a problem using jboss 2.4.4 and Tomcat 4.0.1

      When i try to deploy an EntityBean (1.1 spec) i get this error :

      [INFO,AutoDeployer] Auto deploy of file:/D:/Servers/jboss/deploy/TestEntity.ear
      [INFO,J2eeDeployer] Deploy J2EE application: file:/D:/Servers/jboss/deploy/TestE
      ntity.ear
      [INFO,J2eeDeployer] Create application TestEntity.ear
      [INFO,J2eeDeployer] install EJB module ProvaEntity.jar
      [INFO,J2eeDeployer] inflate and install WEB module entityWebApp.war
      [INFO,J2eeDeployer] add all ejb jar files to the common classpath
      [INFO,ContainerFactory] Deploying:file:/D:/Servers/jboss/tmp/deploy/Default/Test
      Entity.ear
      [INFO,ContainerFactory] Deploying EntityEJB
      [ERROR,ContainerFactory] DeploymentError
      org.jboss.deployment.DeploymentException: expected only one datasource tag
      at org.jboss.metadata.MetaData.getOptionalChild(MetaData.java:117)
      at org.jboss.metadata.MetaData.getOptionalChild(MetaData.java:94)
      at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.importXml
      (JawsApplicationMetaData.java:194)
      at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFil
      eLoader.java:64)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommand
      Factory.java:133)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenc
      eManager.java:83)
      at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManage
      r.java:110)
      at org.jboss.ejb.EntityContainer.init(EntityContainer.java:292)
      at org.jboss.ejb.Application.init(Application.java:202)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at java.lang.Thread.run(Thread.java:484)
      [ERROR,J2eeDeployer] Starting TestEntity.ear failed!

      Can someone please help me to solve this problem?

      thanks in advance
      Giovanni