2 Replies Latest reply on Jan 26, 2004 12:02 PM by kevinb11

    Deployment Problems

    kevinb11

       

      "kevinb11" wrote:
      I get this (below) when I deploy, Yes I have checked the jar.

      22:06:06,717 WARN [verifier] EJB spec violation:
      Bean : Hello
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java cla
      ss that implements the enterprise bean's business methods in the <ejb-class> element.

      EJB_JAR FILE CONTENTS

      <?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>
      <description>JBoss Hello World Application</description>
      <display-name>Hello World EJB</display-name>
      <enterprise-beans>
      <session>
      <ejb-name>Hello</ejb-name>
      <home>test.HelloHome</home>
      <remote>test.Hello</remote>
      <ejb-class>test.HelloBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
      </session>
      </enterprise-beans>
      </ejb-jar>

      BEAN CODE

      package test;

      import javax.ejb.SessionContext;
      /**
      * This class is the actual implementation of the business
      * logic. This is the EJB for simplicity's sake.
      */
      public class HelloWorldBean implements javax.ejb.SessionBean
      {
      private SessionContext ctx;
      public void setSessionContext(SessionContext ctx)
      {
      this.ctx = ctx;
      }
      public void ejbRemove()
      {
      System.out.println( "ejbRemove()" );
      }
      public void ejbActivate()
      {
      System.out.println( "ejbActivate()" );
      }
      public void ejbPassivate()
      {
      System.out.println( "ejbPassivate()" );
      }
      /**
      * The method called to display the string "Hello World!"
      * on the client.
      */
      public String hello()
      {
      System.out.println( "hello()" );
      return "Hello World!";
      }
      }



        • 1. Re: Deployment Problems
          kevinb11

           

          "kevinb11" wrote:
          i fixed the ejb-jar.xml file still no luck

          <?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>
          <description>JBoss Hello World Application</description>
          <display-name>Hello World EJB</display-name>
          <enterprise-beans>
          <session>
          <ejb-name>Hello</ejb-name>
          <home>test.HelloWorldHome</home>
          <remote>test.HelloWorld</remote>
          <ejb-class>test.HelloWorldBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Bean</transaction-type>
          </session>
          </enterprise-beans>
          </ejb-jar>


          • 2. Re: Deployment Problems
            kevinb11

             

            "kevinb11" wrote:
            Anyone...Help...?