Has anyone has any luck setting up the wls2wls sample on WLS 6.1 --->
WLS 5.1?
I've got 5.1 running on an HP machine, while 6.1 is running on Win2k.
I've patched 5.1 to sp12 and 6.1sp2 with the interop jar
(CR067506_61sp2-B.jar).
Setup and deployed the EJB on 5.1 successfully as well as the Servlet on
6.1sp2.
However, when executing the Servlet, I am getting the following error on
the WLS 6.1 machine:
java.lang.ClassFormatError: weblogic/iiop/IIOPOutputStream (Invalid pc
in line number table)
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 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 weblogic.iiop.ObjectKey.getJVMIDData(ObjectKey.java:288)
at weblogic.iiop.ObjectKey.localJVMIDData(ObjectKey.java:276)
at weblogic.iiop.ObjectKey.isLocalKey(ObjectKey.java:240)
at weblogic.iiop.IOPProfile.<init>(IOPProfile.java:64)
at weblogic.iiop.IOR.<init>(IOR.java:70)
at weblogic.iiop.IOR.<init>(IOR.java:52)
at weblogic.iiop.IORFactoryImpl.createIOR(IORFactoryImpl.java:28)
at weblogic.iiop.IORManager.createIOR(IORManager.java:17)
at
weblogic.jndi.cosnaming.IIOPInitialContextFactory.createNamingContext(IIOPInitialContextFactory.java:216)
at
weblogic.jndi.cosnaming.IIOPInitialContextFactory.getInitialContext(IIOPInitialContextFactory.java:85)
at
weblogic.jndi.cosnaming.IIOPInitialContextFactory.getInitialContext(IIOPInitialContextFactory.java:77)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:149)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at
examples.iiop.wls2wls.InteropServlet.getInitialContext(InteropServlet.java:135)
at
examples.iiop.wls2wls.InteropServlet.lookupHome(InteropServlet.java:114)
at
examples.iiop.wls2wls.InteropServlet.doGet(InteropServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Would appreciate any help on this...
Rgds,
Steven.
> Has anyone has any luck setting up the wls2wls sample on WLS 6.1 --->
>
> WLS 5.1?
> I've got 5.1 running on an HP machine, while 6.1 is running on Win2k.
> I've patched 5.1 to sp12 and 6.1sp2 with the interop jar
> (CR067506_61sp2-B.jar).
>
> Setup and deployed the EJB on 5.1 successfully as well as the Servlet
> on 6.1sp2.
>
> However, when executing the Servlet, I am getting the following error
> on the WLS 6.1 machine:
>
>
> java.lang.ClassFormatError: weblogic/iiop/IIOPOutputStream (Invalid pc
> in line number table)
This looks like a classpath or JVM issue. Please make sure you are
running JDK 1.3.1_01 or later (but not JDK 1.4.x) on both
machines. Also please make sure that you are not including service
packs in disparate versions (e.g. 5.1 SP in 6.1's classpath). I would
suggest that you first try and get it working with both servers
running on W2K.
Also please raise a support issue.
andy
--