1 Reply Latest reply on Apr 17, 2003 5:27 PM by seanxu

    Class not found LocalHomeProxy exception

    Madhavan Thirumalai Newbie

      I am trying to run a very simple hello world type application using a local interface. This is the exception I get:

      ------
      [java] javax.naming.CommunicationException. Root exception is java.lang.Cl
      assNotFoundException: org.jboss.ejb.plugins.local.LocalHomeProxy (no security ma
      nager: RMI class loader disabled)
      [java] Exception: null
      [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368
      )
      [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159
      )
      [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.jav
      a:631)
      [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:
      257)
      [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputSt
      ream.java:200)
      [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.
      java:1513)
      [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.jav
      a:1435)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1626)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream
      .java:1845)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.ja
      va:1769)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStrea
      m.java:1646)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:
      1274)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
      24)
      [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      [java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePai
      r.java:30)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:51
      4)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      1)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at SampleApp.main(Unknown Source)
      -------

      My classpath includes JBOSS_HOME/client/*.jar.
      A jar -tf in that directory does not show that class in any of these jar files.

      My ejb-jar.xml file is straightforward:

      [mad@dev hrapi]$ cat ejb-jar.xml
      <?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>HRAPI EJBs</description>
      <display-name>HRAPI EJBs</display-name>
      <enterprise-beans>
      <entity>
      <description>
      This bean represents a job posting (or StaffingPosition
      in hrxml parlance
      </description>
      <ejb-name>StaffingPosition</ejb-name>
      <local-home>com.trovix.hr.hrapi.StaffingPositionHome</lo
      cal-home>
      <local>com.trovix.hr.hrapi.StaffingPosition</local>
      <ejb-class>com.trovix.hr.hrapi.StaffingPositionBean</ejb
      -class>
      <persistence-type>Bean</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      <reentrant>False</reentrant>
      <security-identity>
      <use-caller-identity/>
      </security-identity>
      </entity>
      </enterprise-beans>
      </ejb-jar>

      I am also using jboss.xml file
      [mad@dev hrapi]$ cat jboss.xml
      <?xml version="1.0"?>

      <jboss>
      <enterprise-beans>
      <entity>
      <ejb-name>StaffingPosition</ejb-name>
      <local-jndi-name>StaffingPosition</local-jndi-name>
      </entity>
      </enterprise-beans>
      </jboss>

      ------
      What gives? I am bewildered.
      I am using 3.2 RC4
      Thanks,
      Mad