RuntimeException:crypto.Merlin无法创建实例

时间:2013-11-19 07:45:34

标签: web-services axis2 ws-security weblogic11g rampart

我在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文件,如下面的URL:

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

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

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

请注意,在Windows环境下安装的weblogic上部署Web服务时,一切正常。

请帮我确定一下我遗失的内容。

提前致谢。

0 个答案:

没有答案