Do you have jboss-client.jar and jnp-client.jar in the classpath of the
client? I think the missing class is from jboss-client.jar.
> -----Original Message-----
> From: Steve Salkin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 2:42 PM
> To: JBoss-User
> Subject: Re: [jBoss-User] initial questions
>
>
> > 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(MarshalInputStr
> eam.java:145)
> at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
> am.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.j
> ava: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]
>
---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law. If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender. Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]