Hi All,
In a previous post I couldn't get Jonas to read the Serialized Deployment descriptors.
I'm still having RMI problems but I did what I could and looked at the Java Tutorial
etc.
I upgraded to 1.6 and now this problem is gone. I'm using Linux with jdk 1.2 rc2.
I did the following:
1. Copied all the jars into my web server classes directory $ROOT below
2. Started rmiregistry after I "unset CLASSPATH"
3. Started the server where I have the property files and ser files. See the following
script.
---------------------------------
JONAS=/path to jonas
# codebase and root are the same physical directory
CODEBASE=http://maxwell/classes/
ROOT=/local/httpd/html/classes
CLASSPATH=${ROOT}/816classes12.zip:${ROOT}/jta-spec1_0_1.jar:${ROOT}/jndi.jar:
${ROOT}/providerutil.jar:${ROOT}/rmiregistry.jar:${ROOT}/ejb.jar:
${ROOT}/jdbc2_0-stdext.jar:${ROOT}/RMI_jonas.jar:${ROOT}/test.jar:${ROOT}
echo "Starting EJBServer"
java -Dinstall.root=${JONAS} -Djava.rmi.server.codebase=${CODEBASE} -classpath
${CLASSPATH}
org.objectweb.jonas.server.Server
--------------------------------------
Question: do the jars have to be un-jarred so the registry can to get the stubs? I
needed to
unjar my classes and the RMI_jonas.jar classes otherwise I got the following error:
Starting EJBServer
+ java -Dinstall.root=/home/devadm/app/jonas_jdk1.2
-Djava.rmi.server.codebase=http://maxwell/classes/ -classpath
/local/httpd/html/classes/816classes12.zip:/local/httpd/html/classes/jta-spec1_0_1.jar:
/local/httpd/html/classes/jndi.jar:/local/httpd/html/classes/providerutil.jar:
/local/httpd/html/classes/rmiregistry.jar:/local/httpd/html/classes/ejb.jar:
/local/httpd/html/classes/jdbc2_0-stdext.jar:/local/httpd/html/classes/RMI_jonas.jar:
/local/httpd/html/classes/test.jar:/local/httpd/html/classes
org.objectweb.jonas.server.Server
JOnAS Server, version 1.6, running on rmi.
Cannot rebind TM:
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:
org.objectweb.jonas.jtm.TransactionFactoryImpl_Stub]
Other wise I get this:
JOnAS Server, version 1.6, running on rmi.
JDBC DataSource jdbc_2 is mapped on Oracle2.properties
EJBHome:test.JOnASUserImplBeanUserHome for UserImplBean available
EJBHome:test.JOnASUserExplBeanUserHome for UserExplBean available
Which is good.
Now I can't get the client to work.
I set the security manager in the client like this.
if (System.getSecurityManager() == null) {
System.out.println("Setting security Manager");
System.setSecurityManager(new RMISecurityManager());
}
When I run the client here are my results.
1. with CLASSPATH to all the classes
> java test.PerfEjbBean UserImplHome
Provider: rmi://localhost:1099/
UserExplHome: java.lang.Object
jonas_Adm: java.lang.Object
UserImplHome: java.lang.Object
jdbc_2: java.lang.Object
javax.transaction.UserTransaction: java.lang.Object
TMFactory: java.lang.Object
UserImplHome: Not found: javax.naming.CommunicationException [Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: test.JOnASUserImplBeanUserHome_Stub]
Here it finds the registry and the bound objects.
2. With no Remote Interfaces or stubs in the CLASSPATH and codebase defined- this is
the way I'd
like to run it.
> java -Djava.rmi.server.codebase=http://maxwell/classes/ test.PerfEjbBean UserImplHome
Starting Client Test
Provider: rmi://maxwell:1099/
UserExplHome: java.lang.Object
jonas_Adm: java.lang.Object
UserImplHome: java.lang.Object
jdbc_2: java.lang.Object
javax.transaction.UserTransaction: java.lang.Object
TMFactory: java.lang.Object
UserImplHome: Not found: javax.naming.CommunicationException [Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: test.JOnASUserImplBeanUserHome_Stub]
Any help would be appreciated. I know it's probably something simple I'm missing.
Eric
----
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".