2 Replies Latest reply on Feb 6, 2008 11:41 AM by olro

    Deployment error using IIOP+EJB3+Jboss 4.05

    olro

      I want to access my ejb3 through iiop, but I get an error when deploying.
      I installed jboss with the jems-installer using the ejb3 installation pack.
      I don't know what I'm doing wrong, any help is appreciated.

      Here's my Code:

      TestBean:

      package iioptest;
      
      import java.io.Serializable;
      import java.rmi.RemoteException;
      import javax.ejb.Stateless;
      import org.jboss.annotation.ejb.RemoteBinding;
      
      @Stateless
      @RemoteBinding(factory=org.jboss.ejb3.iiop.IORFactory.class)
      public class TestBean implements TestRemoteIF, Serializable
      {
       private static final long serialVersionUID = -486897890441660788L;
      
       public String sayName( String p_Name ) throws RemoteException
       {
      
       return "Name";
      
       }
      }
      



      TestRemoteIF:
      package iioptest;
      
      import java.rmi.RemoteException;
      import javax.ejb.Remote;
      
      @Remote
      public interface TestRemoteIF
      {
       String sayName(String p_Name) throws RemoteException;
      }
      


      Log entries during deployment:

      2007-03-07 09:53:10,968 DEBUG [org.jboss.ejb3.Ejb3Module] Starting jboss.j2ee:service=EJB3,module=IIOPTestEJB.jar
      2007-03-07 09:53:11,015 DEBUG [org.jboss.ejb3.EJBContainer] Initialising interceptors for TestBean...
      2007-03-07 09:53:11,015 DEBUG [org.jboss.ejb3.EJBContainer] Default interceptors: null
      2007-03-07 09:53:11,015 DEBUG [org.jboss.ejb3.EJBContainer] Class interceptors: []
      2007-03-07 09:53:11,015 DEBUG [org.jboss.ejb3.EJBContainer] All applicable interceptor classes: []
      2007-03-07 09:53:11,015 DEBUG [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      2007-03-07 09:53:11,015 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3 with dependencies:
      2007-03-07 09:53:11,031 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      2007-03-07 09:53:11,031 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
      2007-03-07 09:53:11,031 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      2007-03-07 09:53:11,031 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      2007-03-07 09:53:11,031 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3 dependents are: []
      2007-03-07 09:53:11,031 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      2007-03-07 09:53:11,031 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      2007-03-07 09:53:11,156 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String iioptest.TestBean.sayName(java.lang.String) throws java.rmi.RemoteException - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@372a96
      2007-03-07 09:53:11,187 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@8c6e04
      2007-03-07 09:53:11,203 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String iioptest.TestBean.sayName(java.lang.String) throws java.rmi.RemoteException - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@9133f6
      2007-03-07 09:53:11,203 DEBUG [org.jboss.ejb3.security.JaccHelper] TestBean has no @SecurityDomain - skipping JACC configuration
      2007-03-07 09:53:11,203 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: iioptest.TestBean ejbName: TestBean
      2007-03-07 09:53:11,218 DEBUG [org.jboss.iiop.rmi.WorkCacheManager] Class: org.jboss.iiop.rmi.InterfaceAnalysis
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.InterfaceAnalysis] new InterfaceAnalysis: iioptest.TestRemoteIF
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeInterfaces
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeInterfaces interfaces=0 abstractBaseValueTypes=0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeMethods
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] analyzeMethods(): method[0].getName()="sayName".
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeMethods methods=1
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeFields
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeFields fields=0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeAttributes
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] m_flags[0]=0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeAttributes attributes=0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeConstants
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF analyzeConstants constant=0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.InterfaceAnalysis] interface iioptest.TestRemoteIF analyzeOperations
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.OperationAnalysis] new OperationAnalysis: sayName
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.OperationAnalysis] OperationAnalysis: sayName has parameter [java.lang.String]
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.Util] getTypeIDLName class java.lang.String
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.ParameterAnalysis] ParameterAnalysis(): cls=[java.lang.String] typeIDLName=[::CORBA::WStringValue].
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.rmi.InterfaceAnalysis] interface iioptest.TestRemoteIF analyzeOperations operations=1
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.WebCL] Constructed WebCL org.jboss.ejb3.iiop.EJB3IIOPWebClassLoader@8822a0
      2007-03-07 09:53:11,250 DEBUG [org.jboss.iiop.WebCL] parent org.jboss.mx.loading.UnifiedClassLoader3@17490ad{ url=file:/C:/Programme/jboss-4.0.5.GA/server/default/tmp/deploy/tmp35771IIOPTest.ear ,addedOrder=47}
      2007-03-07 09:53:11,265 DEBUG [org.jboss.ejb3.iiop.IORFactory] codebase = http://pc194-oroth:8083/EJB3IIOPWebClassLoader[IIOPTest/TestBean/remote]/
      2007-03-07 09:53:11,296 DEBUG [org.jboss.iiop.csiv2.CSIv2Policy] [transport-config=[integrity=SUPPORTED, confidentiality=SUPPORTED, establish-trust-in-target=SUPPORTED, establish-trust-in-client=SUPPORTED, detect-misordering=SUPPORTED, detect-replay=SUPPORTED], as-context=[auth-method=USERNAME_PASSWORD, realm=default, required=false], sas-context=[caller-propagation=NONE]]
      2007-03-07 09:53:11,296 DEBUG [org.jboss.ejb3.iiop.IORFactory] binding servant name Servant/IIOPTest/TestBean/remote
      2007-03-07 09:53:11,296 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF Attribute count: 0
      2007-03-07 09:53:11,296 DEBUG [org.jboss.iiop.rmi.ContainerAnalysis] interface iioptest.TestRemoteIF Operations count: 1
      2007-03-07 09:53:11,296 DEBUG [org.jboss.ejb3.iiop.BeanCorbaServant] sayName: sayName
      2007-03-07 09:53:11,328 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed jboss.j2ee:ear=IIOPTest.ear,jar=IIOPTestEJB.jar,name=TestBean,service=EJB3
      java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0
      at org.jboss.ejb3.iiop.IORFactory.createProxy(IORFactory.java:160)
      at org.jboss.ejb3.iiop.IORFactory.start(IORFactory.java:360)
      at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:83)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:124)
      at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy56.start(Unknown Source)
      at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
      at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy28.start(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy29.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:490)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
      at org.jboss.ejb3.iiop.IORFactory.createProxy(IORFactory.java:152)
      ... 147 more


        • 1. Re: Deployment error using IIOP+EJB3+Jboss 4.05
          ghz_gordo

          Hello olro !!

          you got some positive result?

          thx !!

          • 2. Re: Deployment error using IIOP+EJB3+Jboss 4.05
            olro

            No, it seems there is no way to do it the EJB3 way.
            My solution was to make some pseudo EJB2.

            I made an interface extendending EJBObject and dummy implementations of the EJBObject methods in the beans:

            @Remote
            public interface TestRemoteIF extends EJBObject
            {
             public String sayName( String p_Name ) throws RemoteException
             {
            
             return "Name";
            
             }
            }
            
            
            @Stateless
            @RemoteBinding(factory=org.jboss.ejb3.iiop.IORFactory.class)
            public class TestBean extends AbstractEJBBean implements TestRemoteIF
            {
             private static final long serialVersionUID = -486897890441660788L;
            
             public String sayName( String p_Name ) throws RemoteException
             {
            
             return "Name";
            
             }
            }
            
            public abstract class AbstractEJBBean
            {
            
             /**
             * Konstruktor
             */
             public AbstractEJBBean()
             {
             }
            
             /**
             * getEJBHome-Dummy
             *
             * @return EJBHome
             * @throws RemoteException RemoteException
             */
             public EJBHome getEJBHome() throws RemoteException
             {
             return null;
             }
            
             /**
             * getHandle-Dummy
             *
             * @return Handle
             * @throws RemoteException RemoteException
             */
             public Handle getHandle() throws RemoteException
             {
             return null;
             }
            
             /**
             * getPrimaryKey-Dummy
             *
             * @return Object
             * @throws RemoteException RemoteException
             */
             public Object getPrimaryKey() throws RemoteException
             {
             return null;
             }
            
             /**
             * isIdentical-Dummy
             *
             * @param p_EJBObject EJBObject
             * @return boolean
             * @throws RemoteException RemoteException
             */
             public boolean isIdentical( EJBObject p_EJBObject ) throws RemoteException
             {
             return false;
             }
            
             /**
             * remove-Dummy
             *
             * @throws RemoteException RemoteException
             * @throws RemoveException RemoveException
             */
             public void remove() throws RemoteException, RemoveException
             {
             }
            
            }
            
            

            At least it worked.

            I can't give more help on this topic as I am using glassfish at the moment.