1

我已经在 linux ubuntu 服务器上安装了 weblogic 11g。我已经在 weblogic 上部署了我的 web 服务。当我试图从 SOAP UI(安装在我的本地窗口机器上)访问我的 web 服务时,我得到了下面提到的异常。

    org.apache.ws.security.components.crypto.Merlin cannot create instance
java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin cannot create instance
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
        at org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:398)
        at org.apache.rampart.RampartEngine.process(RampartEngine.java:136)
        at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at com.csdcsystems.amanda.servlet.AmandaAxisServlet.service(AmandaAxisServlet.java:91)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.ClassCastException: org.apache.ws.security.components.crypto.Merlin cannot be cast to org.apache.ws.security.components.crypto.Crypto
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:217)

我的类路径中有我的 jks 文件。经过一番谷歌搜索后,我发现 Rampart 正在查看错误的 cacerts 文件,如下所示:

http://emelnikov.blogspot.in/2013/04/org.html

我在我的 services.xml 中添加了属性,但我仍然遇到同样的错误。我添加了以下属性:

<ramp:property name="org.apache.ws.security.crypto.merlin.load.cacerts">false</ramp:property>

请注意,当 web 服务部署在安装在 windows 环境中的 weblogic 上时,一切正常。

请帮助我确定我缺少什么。

提前致谢。

4

0 回答 0