1 Reply Latest reply on Dec 18, 2003 12:51 AM by helei6688

    the question of MDB deployment

    helei6688 Newbie

      Hello, everyone!
      I use JBuilder9 to create a MDB and deploy it in Jboss3.2-Tomcat4.1.24,but the system showed me that:

      2003-12-18 13:55:18,343 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@174e8cf4{ url=file:/D:/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Untitled1.jar, deployedLastModified=1071719054218 }
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)

      please tell me where are my wrongs?

        • 1. Re: the question of MDB deployment
          helei6688 Newbie

          the file of ejb-jar.xml:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
          <ejb-jar>
          <enterprise-beans>
          <message-driven>
          <display-name>Enterprise1</display-name>
          <ejb-name>Enterprise1</ejb-name>
          <ejb-class>jmstest.Enterprise1Bean</ejb-class>
          <transaction-type>Container</transaction-type>
          <message-driven-destination>
          <destination-type>javax.jms.Topic</destination-type>
          <subscription-durability>Durable</subscription-durability>
          </message-driven-destination>
          <resource-ref>

          <res-ref-name>testTopic2</res-ref-name>
          <res-type>javax.jms.TopicConnectionFactory</res-type>
          <res-auth>Container</res-auth>
          </resource-ref>
          </message-driven>
          </enterprise-beans>
          <assembly-descriptor>
          <container-transaction>

          <ejb-name>Enterprise1</ejb-name>
          <method-name>*</method-name>

          <trans-attribute>Required</trans-attribute>
          </container-transaction>
          </assembly-descriptor>
          </ejb-jar>

          the file of jboss.xml:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

          <security-domain />
          <enterprise-beans>
          <message-driven>
          <ejb-name>Enterprise1</ejb-name>
          <destination-jndi-name>topic/testTopic2</destination-jndi-name>
          <connection-factory-name>java:/ConnectionFactory</connection-factory-name>
          <resource-ref>
          <res-ref-name>testTopic2</res-ref-name>
          <jndi-name>topic/testTopic2</jndi-name>
          </resource-ref>
          </message-driven>
          </enterprise-beans>