1 Reply Latest reply on Mar 18, 2004 9:10 AM by adrian.brock

    Error during jar deploying

    luca.mandorlo

      Hi,
      My name is Luca from italy and I'm a newbie in using jboss3.2.3
      I want to depoly a jar file that contains one mdb named xxx.xxx.xxx.MDBExample
      I write in META-INF dir ejb-jar.xml and jboss.xml.
      Make jar and put it into deploy dir of jboss.

      I take this error:

      2004-03-17 18:17:15,658 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@37f17232 { url=file:/C:/jboss-3.2.3/server/default/deploy/example.jar }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/jboss-3.2.3/server/default/deploy/example.jar
      lastDeployed: 1079543835648
      lastModified: 1079543836000
      mbeans:
      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@37f17232 { url=file:/C:/jboss-3.2.3/server/default/deploy/example.jar }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/jboss-3.2.3/server/default/deploy/example.jar
      lastDeployed: 1079543835648
      lastModified: 1079543836000
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


      I'm a bea weblogic user and i want to understan how to jboss work :) but i can't depoly this simple jar :((((

      this is my con files:

      ?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>
      <display-name>application for test use only</display-name>
      <enterprise-beans>
      <message-driven>
      jboss test
      <display-name>Message Driven Bean</display-name>
      <ejb-name>MDBExample</ejb-name>
      <ejb-class>xxx.xxx.xxx.messagedriven.MDBExample</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      ------------------------------------------------------------

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss PUBLIC
      "-//JBoss//DTD JBOSS 3.2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">


      <enterprise-beans>
      <message-driven>
      <ejb-name>MDBExample</ejb-name>
      <destination-jndi-name>999</destination-jndi-name>
      <invoker-bindings>

      <invoker-proxy-binding-name>FioranoMQ</invoker-proxy-binding-name>

      </invoker-bindings>
      </message-driven>
      </enterprise-beans>
      <resource-managers>
      </resource-managers>

      <invoker-proxy-bindings>
      <invoker-proxy-binding>
      FioranoMQ
      <invoker-mbean/>
      <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
      <proxy-factory-config>
      FioranoJMSProvider
      StdJMSPool
      1
      1
      <!--
      10

      queue/DLQ
      10
      0


      -->
      </proxy-factory-config>
      </invoker-proxy-binding>
      </invoker-proxy-bindings>



      mdb impl

      package com.quinary.ejb.messagedriven;

      import javax.jms.*;
      import javax.ejb.MessageDrivenBean;
      import javax.ejb.MessageDrivenContext;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;
      import javax.rmi.PortableRemoteObject;
      import javax.ejb.EJBException;


      public class MDBExample implements MessageDrivenBean, MessageListener {

      private MessageDrivenContext mdbContext;

      public void ejbCreate() throws EJBException {
      System.out.println("ejb creation of MDBExample");
      }

      public void ejbRemove() throws javax.ejb.EJBException {
      }

      public void onMessage(javax.jms.Message message) {
      System.out.println("in onMessage method...execute...");
      try {
      Object objMsg = ((ObjectMessage)message).getObject();
      System.out.println("Message read : "+objMsg);
      } catch (JMSException jmse) {
      jmse.printStackTrace();
      }

      }

      public void setMessageDrivenContext(javax.ejb.MessageDrivenContext messageDrivenContext) throws javax.ejb.EJBException {
      this.mdbContext = messageDrivenContext;
      }
      }

      I hava just implemted the jms adapter for FioranoMQ and I've seen the mbean in jboss-jmx-console.

      Thanks for your help!
      Bye
      Luca

        • 1. Re: Error during jar deploying

          Run the following command:
          jar -tf example.jar

          Do you see
          META-INF/ejb-jar.xml
          or something else like
          meta-inf/ejb-jar.xml

          The above is a common mistake on Windows because of the case insensitivity
          of the file system.

          Regards,
          Adrian