rmi-iiop error
sunitashukla Jan 22, 2004 2:06 PM
"sunitashukla" wrote:
Hi,
This is urgent!Please someone help!
Thanks in advance!
I am trying a simple example(ejbinterop). I have a simple stateless session bean deployed in jboss.It uses rmi-iiop for communication.
I deployed bean(jar containes ejb-jar.xml and classes) successfully.
Now I have a simple java rmi-iiop client trying to connect to bean but I am getting following error:
cmd - java -classpath ${JBOSS_HOME}/client/jboss-j2ee.jar:${JBOSS_HOME}/client/jboss-client.jar:${JBOSS_HOME}/client/jbosssx-client.jar:${JBOSS_HOME}/client/jnp-client.jar:. ejbinterop.LogClient corbaname:iiop:1.2@${server name}:51099#ejbinterop/logger
Looking for: corbaname:iiop:1.2@nygeqsit1.us.db.com:51099#ejbinterop/logger
org.omg.CORBA.DATA_CONVERSION: minor code: 3 completed: No
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:87)
at java.lang.Exception.<init>(Exception.java:35)
at java.lang.RuntimeException.<init>(RuntimeException.java:40)
at org.omg.CORBA.SystemException.<init>(SystemException.java:42)
at org.omg.CORBA.DATA_CONVERSION.<init>(DATA_CONVERSION.java:63)
at org.omg.CORBA.DATA_CONVERSION.<init>(DATA_CONVERSION.java:51)
at com.sun.CORBA.idl.ORB.string_to_object(Compiled Code)
at ejbinterop.LogClient.run(LogClient.java:46)
at ejbinterop.LogClient.main(LogClient.java:81)
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.dt
d">
<ejb-jar>
<description>JBoss Log Message Application</description>
<display-name>Log Message EJB</display-name>
<enterprise-beans>
<session>
<ejb-name>ejbinterop.Logger</ejb-name>
<home>ejbinterop.LoggerHome</home>
<remote>ejbinterop.Logger</remote>
<ejb-class>ejbinterop.LoggerEJB
</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ejbinterop.Logger</ejb-name>
<method-intf>Remote</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>