2 Replies Latest reply on Feb 19, 2007 3:48 AM by Nicolas Ploquin

    Probleme java/Jboss ?

    Nicolas Ploquin Newbie

      Hello !

      I'm beginer in JBoss, and for the moment, I just want to deploy EJB that I already have...

      But, for exemple, if I use :

      package org.hello.session;
      import java.rmi.RemoteException;
      import javax.ejb.EJBObject;
      public interface HelloWorldSession extends EJBObject {
       public static final String CODEP[] = {"CODE", "Code"};
       public String getGreeting() throws RemoteException;
      } // end of the class ....

      When I copie the .jar in the deploy directory, I've the following error :

      WARN [verifier] EJB spec violation:
      Bean : HelloWorldSession
      Method : public abstract HelloWorldSession create() throws RemoteException, CreateException
      Section: ...
      Warning: The method return values in the home interface must be of valid types for RMI/IIOP.

      If I remove the line :

      public static final String CODEPLAN[] = {"CODE", "Code"};

      It work but I need this line !! How can I do ?

      Thank you !