0 Replies Latest reply on May 17, 2002 11:47 AM by Chris

    Self Ref Question

    Chris Newbie

      Hi,

      Design issues aside, is it possible to deploy a Bean in JBoss3 RC1 such as the following (ie it has no direct implementation of its own)

      public abstract class ManagerBean extends EmployeeBean {
      }

      ...it is a self-referencing relationship but life is a whole lot easier (and future-proof) if it is implemented as a separate Bean ..which at the moment just inherits everything.

      The problem seems to be with the jbosscmp-jdbc.xml file (see below).

      I can see nothing wrong in this file (which works if I remove the self-referencing) except that I have 2 occurences with the same table-name, same cmp-field(s), but different ejb-name.

      What am I missing here?

      Many TIA

      Ch.
      -=-=

      -=-=-=-=-=-=-
      org.jboss.deployment.DeploymentException: Invalid XML: file=file:/opt/jboss/jboss-3.0.0RC1/server/default/tmp/deploy/opt/jboss/jboss-3.0.0RC1/server/default/deploy/poc-ejb.jar/167.poc-ejb.jar!/META-INF/jbosscmp-jdbc.xml
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:262)
      at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:229)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:214)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:74)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:595)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:322)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
      at org.jboss.ejb.Container.invoke(Container.java:790)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
      at $Proxy0.create(Unknown Source)

      ..and also...


      /deploy/poc-ejb.jar; - nested throwable is: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/opt/jboss/jboss-3.0.0RC1/server/default/tmp/deploy/opt/jboss/jboss-3.0.0RC1/server/default/deploy/poc-ejb.jar/167.poc-ejb.jar!/META-INF/jbosscmp-jdbc.xml
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:380)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:626)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:506)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
      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:492)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)