5 Replies Latest reply on Jan 17, 2003 9:40 AM by joycestack

    HelloWorld + Incomplete Deployment listing

    joycestack

      Hello Everyone,

      This is going to be a long email so pull up a chair. Like everyone else I am trying to deploy a simple HelloWorld Example on JBoss 3.0.

      I have my HelloWorldBean which has some XDoclet tags in it. It then creates my interfaces for me. HelloWorld and HelloWorldHome (remote and home interfaces). No problem. I build using Ant. This generates my ejb-jar.xml file and my jboss.xml file. Here the generated files are

      ejb-jar.xml


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


      <ejb-jar >

      No Description.
      <display-name>Generated by XDoclet</display-name>

      <enterprise-beans>

      <!-- Session Beans -->

      [CDATA[No Description.]]

      <ejb-name>HelloWorld</ejb-name>

      helloworld.interfaces.HelloWorldHome
      helloworld.interfaces.HelloWorld
      <ejb-class>helloworld.session.HelloWorldBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>



      <!--
      To add session beans that you have deployment descriptor info for, add
      a file to your merge directory called session-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Entity Beans -->

      <!--
      To add entity beans that you have deployment descriptor info for, add
      a file to your merge directory called entity-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Message Driven Beans -->
      <!--
      To add message driven beans that you have deployment descriptor info for, add
      a file to your merge directory called message-driven-beans.xml that contains
      the <message-driven></message-driven> markup for those beans.
      -->

      </enterprise-beans>

      <!-- Relationships -->

      <!-- Assembly Descriptor -->
      <assembly-descriptor >

      <!-- finder permissions -->

      <!-- transactions -->

      <!-- finder transactions -->
      </assembly-descriptor>

      </ejb-jar>



      Here is my jboss.xml


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




      <enterprise-beans>


      <ejb-name>helloworld.interfaces.HelloWorld</ejb-name>
      <jndi-name>helloworld.interfaces.HelloWorld</jndi-name>


      </enterprise-beans>

      <resource-managers>
      </resource-managers>






      My HelloClient.jar is placed into the client folder.
      My HelloJAR.jar file (which has my jboss.xml, ejb-jar.xml, the HelloWorldBean and the interface classes) into the deploy folder.

      When I start my JBoss I get the error:-


      12:10:01,032 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:jndiName=HelloWorld,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NoSuchMethodException]
      12:10:01,212 INFO [URLDeploymentScanner] Started
      12:10:01,222 INFO [MainDeployer] Deployed package: file:/E:/jboss-3.0.4_tomcat-4.1.12/server/default/conf/jboss-service.xml
      12:10:01,242 INFO [Server] JBoss (MX MicroKernel) [3.0.4 Date:200211021607] Started in 0m:31s:585ms




      I know im very close to the end but I think I am having problems with my JNDI stuff. Also when I run my client class I get the error




      client\HelloClient.jar" helloworld.client.HelloClient
      javax.naming.NameNotFoundException: HelloWorld not bound
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at helloworld.client.HelloClient.main(HelloClient.java:23)


      Thanks alot for the help,

      Joyce

        • 1. Re: HelloWorld + Incomplete Deployment listing

          Show the output from the command

          jar -tf HelloJAR.jar

          Also check server/default/log/server.log for
          errors.

          Regards,
          Adrian

          • 2. Re: HelloWorld + Incomplete Deployment listing
            nadia

            Hi,
            what's your classpath ? Are you sure you've got all the jar files needed in it ? Cause i've had this error and I think that was a pb with that, try : j2ee.jar + jboss-common-client.jar + jboss-client.jar + jnp-client.jar + jbosssx-client.jar + log4j.jar + jboss-j2ee.jar

            It may run with that ... (I think that remove my error. I get another one but this one was out :-) )

            Nadia

            • 3. Re: HelloWorld + Incomplete Deployment listing
              joycestack

              Hi Adrian,

              Here is the output of my HelloJAR.jar file.


              E:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy>jar -tf HelloJAR.jar
              META-INF/
              META-INF/MANIFEST.MF
              helloworld/interfaces/HelloWorld.class
              helloworld/interfaces/HelloWorldHome.class
              helloworld/session/HelloWorldBean.class
              META-INF/ejb-jar.xml
              META-INF/jboss.xml



              Here is the an error from my server.log

              2003-01-17 14:37:23,983 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
              Cause: Incomplete Deployment listing:
              Packages waiting for a deployer:

              Incompletely deployed packages:

              MBeans waiting for classes:

              MBeans waiting for other MBeans:
              [ObjectName: jboss.j2ee:jndiName=HelloWorld,service=EJB
              state: FAILED
              I Depend On:
              Depends On Me: java.lang.NoSuchMethodException]
              2003-01-17 14:37:24,003 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Started
              2003-01-17 14:37:24,013 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.4_tomcat-4.1.12/server/default/conf/jboss-service.xml
              2003-01-17 14:37:24,013 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.0.4 Date:200211021607] Started in 0m:34s:209ms


              Hope you can deduct something,

              Joyce


              • 4. Re: HelloWorld + Incomplete Deployment listing
                joycestack

                Hi Nadia,

                Hows it going? I compile my classes using Ant which compiles with the jar files. I do not have them in my classpath. ?

                Do I need to put them on my classpath also.?

                Thanks,
                Joyce

                • 5. Re: HelloWorld + Incomplete Deployment listing
                  joycestack

                  By the way this is the output I get when i run the JBoss run.bat file.


                  14:49:08,556 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompl
                  Cause: Incomplete Deployment listing:
                  Packages waiting for a deployer:

                  Incompletely deployed packages:

                  MBeans waiting for classes:

                  MBeans waiting for other MBeans:
                  [ObjectName: jboss.j2ee:jndiName=HelloWorld,service=EJB
                  state: FAILED
                  I Depend On:
                  Depends On Me: java.lang.NoSuchMethodException]
                  14:49:08,576 INFO [URLDeploymentScanner] Started


                  Thanks again,
                  Joyce