Trying to access the sb example bean from an applet client.  Applet has a
problem finding home:

[michaelr@osiris sb]$ EJBServer
JOnAS Server, version 2.2.7, running on rmi.
 EJBHome:sb.JOnASOpHome for Op available
EJBServer is ready
------------------------------------
   private String beanMethod() {
        SecurityManager sm;
        OpHome home;
        Properties env;
        InitialContext initialContext;
        UserTransaction utx = null;
        String text =   
"test1\ntest2\ntest3\ntest test test test test test test test test test
test test test test test test test test test test";
        try {
          sm = new java.rmi.RMISecurityManager();
          System.setSecurityManager(sm);
          text = text + "\nSecurityManager = " + sm.toString();
        }
        catch(Exception e) {
           text = text + "\nSecurityManager error:" + e;
           return text;
        }
        try {
          env = new Properties();
          env.put("java.naming.factory.initial",
                   "com.sun.jndi.rmi.registry.RegistryContextFactory");

env.put("java.naming.provider.url","rmi://"+getCodeBase().getHost()+":1099");
          text = text + "\nJNDI properties created.";
          initialContext = new InitialContext(env);
          text = text + "\ninitialContext instantiated";
          initialContext.lookup("OpHome");
          text = text + "\nhome interface successfully found";
        }
        catch(Exception e) {
           text = text + "\nJNDI error:" + e;
           return text;
        }
        //...................
        //...................
        //...................
        //...................
        return text;
   }
--------------------------------------
java.lang.NoClassDefFoundError: org/objectweb/jonas/rmifilters/RemoteStub
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at sun.applet.AppletClassLoader.findClass(Unknown Source)
        at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.applet.AppletClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.io.ObjectInputStream.resolveClass(Unknown Source)
        at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
        at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.io.ObjectInputStream.inputObject(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown
Source)
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown
Source)
        at javax.naming.InitialContext.lookup(Unknown Source)
        at sb.GTest_2iii.beanMethod(GTest_2iii.java:51)
        at sb.GTest_2iii.init(GTest_2iii.java:104)
        at sun.applet.AppletPanel.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        
Any idea? Thank-you.

----
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".

Reply via email to