> Your earlier message did not give the full text of the exception. Would you
> print a stack trace please?
Hi-
Here is the program's output, now including a full stack trace, and
a copy of the program. I think it is sufficiently skeletal (I am just
trying to prove that I can access the EJB).
Thanks,
S-
<--- begin program output --->
Got context
javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
(no security manager: RMI class loader disabled)]
=====
javax.naming.CommunicationException. Root exception is
java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
(no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:88)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:145)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.ums.security.t2.main(t2.java:51)
<--- end program output / begin program text --->
package com.ums.security;
import java.util.Hashtable;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class t2 {
public static void main(String[] args) {
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"localhost:1099");
try {
InitialContext jndiContext = new InitialContext();
System.out.println("Got context");
Object ref = jndiContext.lookup("Security");
System.out.println("Got reference");
SecurityHome home = null;
home = (SecurityHome)
PortableRemoteObject.narrow (ref, SecurityHome.class);
System.out.println("Got home");
Security security = home.create();
System.out.print ("Authorizing steve/admin...");
System.out.println (security.authorizeUser ("steve","admin"));
}
catch (Throwable t) {
System.out.println(t.toString());
System.out.println("=====");
t.printStackTrace();
}
}
}
<--- end program text --->
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]