Just Loaded Jboss...Very Impressive. I do not know of any product that I
have downloaded and just run. Bravo!

I know that I am missing something very simple in a test client I wrote. I
deployed a HelloWorld Bean and for some reason cannot connect to it. Here
is my client:

public class MAIN
{
     public static void main(String[] args)
     {

          System.out.println("Starting Client...");
          System.setSecurityManager(new RMISecurityManager());
        System.out.println("Security Manager Setup...");

        final Properties properties = new Properties();
        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
        properties.setProperty(Context.PROVIDER_URL, "127.0.0.1");

           try
        {
          System.out.println("Getting Initial Context.");
            final Context _context = new InitialContext(properties);
            System.out.println("Initial Context: " + _context.toString());
            System.out.println("");
            System.out.println("Initial Context Retrieved.");
            HelloWorldHome hwh = (HelloWorldHome)_context.lookup
("HelloWorldBean");
          }

     catch(Exception e)
     {
          e.printStackTrace();
     }
     }

}

And here is the Exception being thrown. I am using jdk1.3 have ejb.jar,
jnpserver.jar and jboss-client.jar in my classpath. I also, use a security
manager poicy file on staartup to grant all. (Sorry for wasting the space
on this!)

java.lang.NoClassDefFoundError: javax/ejb/EJBObject
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:195)
     at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
     at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:121)
     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.readObject(ObjectInputStream.java:236)
     at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:171)
     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
     at javax.naming.InitialContext.lookup(InitialContext.java:350)
     at com.vse.client.MAIN.main(MAIN.java:30)
Exception in thread "main" Process Exit...




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to