hi!

I'm using JOnAS Server, version 2.1.1, running on rmi.

I got deployed my qas bean in jonas. While invoking the beans I'm getting
the following runtime error.

==============================================================
javax.naming.CommunicationException.  Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
        java.lang.ClassNotFoundException: qas.JOnASqasHome_Stub
java.lang.ClassNotFoundException: qas.JOnASqasHome_Stub
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java, Compiled
Code)
        at java.lang.Exception.(Exception.java, Compiled Code)
        at java.lang.ClassNotFoundException.(ClassNotFoundException.java, Compiled
Code)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java, Compiled
Code)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java, Compiled
Code)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java, Compiled
Code)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:91)
        at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
        at javax.naming.InitialContext.lookup(InitialContext.java:349)
==============================================================

my jndi properties looks like:

qas.url=rmi://localhost:8017
qas.init.ctx.factory=com.sun.jndi.rmi.registry.RegistryContextFactory

tvf of my jar file which i deployed looks like:

     0 Wed Oct 25 09:55:40 CDT 2000 META-INF/
    68 Wed Oct 25 09:55:40 CDT 2000 META-INF/MANIFEST.MF
  2872 Wed Oct 25 09:52:10 CDT 2000 com/mydata/qas/JOnASqasHome.class
  2893 Wed Oct 25 09:52:18 CDT 2000 com/mydata/qas/JOnASqasHome_Skel.class
  3614 Wed Oct 25 09:52:20 CDT 2000 com/mydata/qas/JOnASqasHome_Stub.class
  1967 Wed Oct 25 09:52:08 CDT 2000 com/mydata/qas/JOnASqasRemote.class
  3325 Wed Oct 25 09:52:18 CDT 2000 com/mydata/qas/JOnASqasRemote_Skel.class
  4137 Wed Oct 25 09:52:18 CDT 2000 com/mydata/qas/JOnASqasRemote_Stub.class
   367 Wed Oct 25 09:52:02 CDT 2000 com/mydata/qas/QAS.class
  3047 Wed Oct 25 09:52:04 CDT 2000 com/mydata/qas/QASBean.class
   296 Wed Oct 25 09:52:04 CDT 2000 com/mydata/qas/QASException.class
   292 Wed Oct 25 09:52:04 CDT 2000 com/mydata/qas/QASHome.class
   762 Wed Oct 25 09:52:04 CDT 2000 META-INF/ejb-jar.xml
   248 Wed Oct 25 09:52:04 CDT 2000 META-INF/jonas-ejb-jar.xml

but my ejb-jar.xml looks like:

<ejb-jar>
    <enterprise-beans>
      <session>
        <ejb-name>qas</ejb-name>
        <home>qas.QASHome</home>
        <remote>qas.QAS</remote>
        <ejb-class>qas.QASBean</ejb-class>
        <session-type>Stateful</session-type>
        <transaction-type>Container</transaction-type>
      </session>
    </enterprise-beans>
    <assembly-descriptor>
      <container-transaction>
        <method>
          <ejb-name>qas</ejb-name>
          <method-intf>Remote</method-intf>
          <method-name>*</method-name>
        </method>
        <trans-attribute>Never</trans-attribute>
      </container-transaction>
    </assembly-descriptor>
</ejb-jar>

Since I'm new to this Jonas (just 2 weeks exp), I need help from ur side to
get my beans are working.

Thanks in advance!

-- Murugan

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to