EJB Adapter Connecting Weblogiv 7.0

Hi,
When I am trying to test the alias i had created to connect to the EJBs deployed in the Weblogic 7.0 Server, it throws me following Exception:
java.lang.ClassCastException: iaik.asn1.structures.Name
at sun.security.pkcs.PKCS7.getCertificate(PKCS7.java:578)
at sun.security.pkcs.SignerInfo.getCertificate(SignerInfo.java:207)
at sun.security.pkcs.SignerInfo.verify(SignerInfo.java:333)
at sun.security.pkcs.PKCS7.verify(PKCS7.java:472)
at sun.security.pkcs.PKCS7.verify(PKCS7.java:489)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier
.java:152)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:285)
at java.util.jar.JarVerifier.update(JarVerifier.java:198)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:248)
at java.util.jar.JarFile.getInputStream(JarFile.java:308)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnec
tion.java:131)
at java.net.URL.openStream(URL.java:816)
at weblogic.common.internal.VersionInfo.getLocalWLPackages(VersionInfo.j
ava:176)
at weblogic.common.internal.VersionInfo.(VersionInfo.java:34)
at weblogic.common.internal.VersionInfo.initialize(VersionInfo.java:86)
at weblogic.kernel.Kernel.initialize(Kernel.java:127)
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:104)
at weblogic.jndi.WLInitialContextFactoryDelegate.(WLInitialContext
FactoryDelegate.java:176)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java(Compiled Code))
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:147)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
69)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:199)
at com.wm.pkg.ejb.MyConnection.open(Unknown Source)
at wm.ejb.MyIM.getConnection(Unknown Source)
at com.wm.pkg.ejb.MyConnection.getOpenConnection(Unknown Source)
at com.wm.pkg.ejb.AliasTestImpl.test(Unknown Source)
at com.wm.pkg.imdk.alias.AliasTester.test(Unknown Source)
at wm.imdk.runtime.IMRuntimeManager.testAlias(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:288)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:480)
at com.wm.app.b2b.server.ns.Namespace.invoke(Namespace.java:452)
at com.wm.util.template.Reporter.invoke(Reporter.java:867)
at com.wm.util.template.InvokeToken.eval(InvokeToken.java:70)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java(Compi
led Code))
at com.wm.util.template.SwitchToken.evalChild(SwitchToken.java:94)
at com.wm.util.template.TemplateToken.eval(TemplateToken.java(Compiled C
ode))
at com.wm.util.template.SwitchToken.eval(SwitchToken.java:58)
at com.wm.util.template.IfVarToken.evalChild(IfVarToken.java(Compiled Co
de))
at com.wm.util.template.IfVarToken.evalChild(IfVarToken.java(Compiled Co
de))
at com.wm.util.template.TemplateToken.eval(TemplateToken.java(Compiled C
ode))
at com.wm.util.template.IfVarToken.eval(IfVarToken.java:172)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java(Compi
led Code))
at com.wm.util.template.TemplateToken.eval(TemplateToken.java(Compiled C
ode))
at com.wm.util.template.Reporter.reportNoReset(Reporter.java:1167)
at com.wm.util.template.Reporter.reportToOutput(Reporter.java:1142)
at com.wm.util.template.Reporter.reportIData(Reporter.java:1031)
at com.wm.app.b2b.server.HTTPDocHandler._process(HTTPDocHandler.java:477
)
at com.wm.app.b2b.server.HTTPDocHandler.process(HTTPDocHandler.java:109)

    at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:468)
    at com.wm.util.pool.PooledThread.run(PooledThread.java:103)

Any Idea

M.P.Singh

We are running Windows 2000 here with WebLogic 7.0.1 and EJB Adapter 1.2 with webMethods 6.0. In our case, the EJB adapter required the use of Sun jvm 1.3.1. The Integration Server environment variable for the jvm had to be changed to point to this as opposed to the jvm shipped with webMethods. I don’t know if this is your problem or not.

It looks like you need to do the following:

  1. Be sure you are using Sun’s JDK 1.3.1.

  2. Remove Sun’s certificates from the WebLogic jar file.

If you have more difficulties, please contact webMethods Technical Services for assistance and we’ll help you straight away.


Don Sargent
Product Manager
webMethods, Inc.
Adapter Technologies Group
work: 703-460-2501
mobile: 703-472-4199