Hej NG,
Jeg har et problem med at få min Java applet til at komunikere med min
Tomcat 4.1 server. Det virker fint hvis jeg bare starter appletten fra min
explorer men ikke hvis jeg bruger min browser.
Jeg får følgende fejl.
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
java.lang.ClassNotFoundException: com.netpointers.crm.SurveyRMIServer_Stub
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at
com.netpointers.crm.SurveyServerConnection.SurveyRMIconnect(SurveyServerConnection.java:69)
at
com.netpointers.crm.SurveyServerConnection.getSurveyServerConnection(SurveyServerConnection.java:36)
at com.netpointers.crm.web.SurveyApplet.jbInit(SurveyApplet.java:100)
at com.netpointers.crm.web.SurveyApplet.init(SurveyApplet.java:72)
at sun.applet.AppletPanel.run(AppletPanel.java:348)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassNotFoundException:
com.netpointers.crm.SurveyRMIServer_Stub
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:427)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:161)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
... 8 more
På forhånd tak
Claus