"Morrison, Scott" wrote:
>
> I am running EJBServer 2.1 under J2SE 1.3
>
> I'm working with a pair of stateful session beans compiled into the same
> classpath tree
> ie:
>
> /disk1/META-INF/xp.xml
> /disk1/META-INF/jonas-xp.xml
> /disk1/com/xyz/ejbProto/xp/xp*.* is one bean and
>
> /disk1/META-INF/de.xml
> /disk1/META-INF/jonas-de.xml
> /disk1/com/xyz/ejbProto/de/de*.* is the other
>
> except for the existing code which has been tested in a non-EJB environment,
> these two beans
> are very similar if not identical
>
> '/disk1' is in the CLASSPATH for the EJBServer when it starts
>
> I am able to register the xp bean using JonasAdmin and the add command
> JonasAdmin (jonas) > a
> filename ? > /disk1/META-INF/xp.xml
>
> When I attempt to register the de bean using the same process, I get the
> following error and the
> EJBServer crashes
>
> JonasAdmin (jonas) > a
> filename ? > /disk1/META-INF/de.xml
>
> Cannot register bean DecisionServiceHome
> javax.naming.CommunicationException
> [Root exception is java.rmi.ServerException: RemoteException occurred in
> server thread;
> nested exception is:
> java.rmi.UnmarshalException: error unmarshalling arguments;
> nested exception is:
> java.lang.ClassNotFoundException:
> com.hnc.ejbProto.de.JOnASDecisionServiceHome_Stub
> ]
>
> I sure could use some suggestions as to why xp works and de doesn't.
>
> Thanks in advance.
>
> Scott Morrison
> www.HNC.com
Hi Scott,
I have tried to reproduce your problem but I can't.
Here is the try I made (You will find the files in attached file)
disk1/META-INF
disk1/META-INF/De.java
disk1/META-INF/De.xml
disk1/META-INF/DeBean.java
disk1/META-INF/DeHome.java
disk1/META-INF/Makefile
disk1/META-INF/Xp.java
disk1/META-INF/Xp.xml
disk1/META-INF/XpBean.java
disk1/META-INF/XpHome.java
disk1/META-INF/jonas-De.xml
disk1/META-INF/jonas-Xp.xml
disk1/META-INF/.classes.list
I am working with a JOnAS2.1.1, installed under /tmp/coq/jonas-2-1-1
so my JONAS_ROOT=/tmp/coq/jonas-2-1-1
the <DOCTYPE ....> lines in xml files referred to
<!DOCTYPE ejb-jar SYSTEM "/tmp/coq/jonas-2-1-1/xml/ejb-jar_1_1.dtd">
<!DOCTYPE jonas-ejb-jar SYSTEM
"/tmp/coq/jonas-2-1-1/xml/jonas-ejb-jar.dtd">
I set XTRA_CLASSPATH=/tmp/coq/disk1:$XTRA_CLASSPATH
cd /tmp/coq/disk1/META-INF
make
+ /usr/local/bin/jikes +E -nowarn -d
/tmp/coq/jonas-2-1-1/examples/classes De.java DeBean.java DeHome.java
Xp.java XpBean.java XpHome.java
+ /tmp/coq/jonas-2-1-1/bin/unix/GenIC -d
/tmp/coq/jonas-2-1-1/examples/classes -javac /usr/local/bin/jikes +E
-nowarn +E -nowarn De.xml
GenIC for JOnAS 2.1.1: Bean 'De' generation...
>/tmp/coq/jonas-2-1-1/examples/classes/tests/ejb/bug/De.genic_xml_output
+ /tmp/coq/jonas-2-1-1/bin/unix/GenIC -d
/tmp/coq/jonas-2-1-1/examples/classes -javac /usr/local/bin/jikes +E
-nowarn +E -nowarn Xp.xml
GenIC for JOnAS 2.1.1: Bean 'Xp' generation...
>/tmp/coq/jonas-2-1-1/examples/classes/tests/ejb/bug/Xp.genic_xml_output
cd /tmp/coq/disk1
EJBSErver&
JOnAS Server, version 2.1.1, running on Jeremie.
EJBServer is ready
Current EJBServer : jonas
JonasAdmin (jonas) > a
file name ? > META-INF/De.xml
EJBHome:tests.ejb.bug.JOnASDeHome for De available
JonasAdmin (jonas) > a
file name ? > META-INF/Xp.xml
EJBHome:tests.ejb.bug.JOnASXpHome for Xp available
JonasAdmin (jonas) > q
For me it's OK, what is the difference with your example?
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
disk1.tar.gz