4 Replies Latest reply on Jul 12, 2007 3:10 AM by henry_h

    deploy Hellobean to jboss using using xml files

    henry_h

      Hi,
      I created a stateless Hellowrod Session bean according to a standard sample from a book!
      1-I do not use any IDE
      2- The Project has this structure:

      a) Projectfolder name: Hellobean
      z)package name : server
      b) Java files:
      server.HelloBean.java
      server.HelloBeanRemote.java
      c)xml files
      -jboss.xml
      -ejb-jar.xml
      e) other files
      .classpath (contains a path to a folder where ejb3 jar files are )
      How should this bean be deployed to the Jboss.
      ??
      Thank you for your hint

        • 1. Re: deploy Hellobean to jboss using using xml files
          peterj

          Package the files into a JAR file, such as hello.jar. This JAR file should contain:

          server/HelloBean.class
          server/HelloBeanRemote.class
          META-INF/jboss.xml
          META-INF/ejb-jar.xml

          • 2. Re: deploy Hellobean to jboss using using xml files
            henry_h

             

            "PeterJ" wrote:
            Package the files into a JAR file, such as hello.jar.



            I created this jar before and i became this error:
            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            ObjectName: jboss.j2ee:service=EJB3,module=Hellobean.jar
             State: FAILED
             Reason: org.jboss.xb.binding.JBossXBException: Failed to parse source: NYI
            
            


            • 3. Re: deploy Hellobean to jboss using using xml files
              peterj

              What you posted is a report indicating that something has failed, but it does not provide enough information to determine the error. Earlier in the console output there should be a stack trace that identifies the error, please post that.

              Also, post the contents of your ejb-jar.xml and jboss.xml. And state which EJB spec you are following (2.1, 3.0).

              Out of curiosity, why did you initially ask a generic question instead of posting the error that you ran into?

              • 4. Re: deploy Hellobean to jboss using using xml files
                henry_h

                Thanks for your answers. You helped me.
                The application works now!

                "PeterJ" wrote:
                What you posted is a report indicating that something has failed, but it does not provide enough information to determine the error. Earlier in the console output there should be a stack trace that identifies the error, please post that.


                That was the only message, what i became!


                Also, post the contents of your ejb-jar.xml and jboss.xml.


                It was because
                of my ejb-jar.xml. I had there some
                unneeded details.

                Henry