0 Replies Latest reply on Feb 4, 2002 2:16 PM by Todd Johnson

    Problems with EJB client

    Todd Johnson Newbie

      Hi-
      I deployed an EXTREMELY simple EJB client to JBoss. Here is the output from the server:

      [INFO,AutoDeployer] Auto deploy of file:/E:/JBoss-2.4.4/deploy/SimpleBean.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/E:/JBoss-2.4.4/deploy/SimpleB
      ean.jar
      [INFO,J2eeDeployer] Create application SimpleBean.jar
      [INFO,J2eeDeployer] install EJB module SimpleBean.jar
      [INFO,ContainerFactory] Deploying:file:/E:/JBoss-2.4.4/tmp/deploy/Default/Simple
      Bean.jar
      [INFO,ContainerFactory] Deploying Salary
      [INFO,Salary] Initializing
      [INFO,Salary] Initialized
      [INFO,Salary] Starting
      [INFO,Salary] Started
      [INFO,ContainerFactory] Deployed application: file:/E:/JBoss-2.4.4/tmp/deploy/De
      fault/SimpleBean.jar
      [INFO,J2eeDeployer] J2EE application: file:/E:/JBoss-2.4.4/deploy/SimpleBean.jar
      is deployed.

      Once deployed I attempt to connect via a simple client and get the following error:

      java.lang.ExceptionInInitializerError: java.lang.NoSuchMethodException: getHomeHandle
      at java.lang.Class.getMethod0(Native Method)
      at java.lang.Class.getMethod(Class.java:888)
      at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.(HomeProxy.java:70)
      at java.lang.reflect.Field.getLong(Native Method)
      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:415)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.init(ObjectStreamClass.java:401)
      at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:112)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:59)
      at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:88)
      at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:566)
      at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
      at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
      at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at SalaryClient.main(SalaryClient.java:17)
      Exception in thread "main"


      Anyone have any suggestions... sorry if this is simple.. but I'm new to the EJB world...
      todd