Announcement Announcement Module
Collapse
No announcement yet.
RmiInvocationWrapper_Stub not able to access services in Weblogic Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RmiInvocationWrapper_Stub not able to access services in Weblogic

    Hi,

    I have a service that is being exposed over RMI by the RMIServiceExporter.
    When i run this service in Resin, i am able to access it using the Spring RmiInvocationWrapper_Stub class.
    When i deploy the same service in a Weblogic 8.1, i cannot access the service anymore. I get the following exception:

    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.net.MalformedURLException: unknown protocol: zip
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:84)
    at rmi.RMIClient.oneTimeSetUp(RMIClient.java:81)
    at rmi.RMIClient$1.setUp(RMIClient.java:54)
    at junit.extensions.TestSetup$1.protect(TestSetup.jav a:18)
    at junit.framework.TestResult.runProtected(TestResult .java:124)
    at junit.extensions.TestSetup.run(TestSetup.java:23)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit 3TestReference.run(JUnit3TestReference.java:128)
    at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)
    Caused by: java.net.MalformedURLException: unknown protocol: zip
    at java.net.URL.<init>(URL.java:544)
    at java.net.URL.<init>(URL.java:434)
    at java.net.URL.<init>(URL.java:383)
    at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHand ler.java:747)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandl er.java:147)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClas sLoader.java:631)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassL oader.java:257)
    at sun.rmi.server.MarshalInputStream.resolveClass(Mar shalInputStream.java:200)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectI nputStream.java:1513)
    at java.io.ObjectInputStream.readClassDesc(ObjectInpu tStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:324)

    I know Weblogic has its own RMI implementation so i guess i will have to perform some magic to make this work?
Working...
X