[jira] [Commented] (AXIS-2923) java.lang.ExceptionInInitializerError and java.lang.NoClassDefFoundError: Could not initialize class com.xxx.cfsa.axis.XXXConfigMerlin in jboss eap 6.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (AXIS-2923) java.lang.ExceptionInInitializerError and java.lang.NoClassDefFoundError: Could not initialize class com.xxx.cfsa.axis.XXXConfigMerlin in jboss eap 6.4

JIRA axis-dev@ws.apache.org

    [ https://issues.apache.org/jira/browse/AXIS-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16162778#comment-16162778 ]

Thorsten Schöning commented on AXIS-2923:
-----------------------------------------

You should really go to the Axis user mailing list with your problems, those are no bugs and this issue tracker is the wrong place for such discussions. So this will be the last answer from me here: Read your error message, it is pretty clear. Some used certificate for some signature either in your SOAP request or for the TLS connection or something like that is untrusted. That can have many reasons, like usage of self-signed certificates, too old trust store of whoever verifies those signatures and certificates etc. Depending on however you use your keystore, that itself might already be the problem and too old for some certificates used by clients or such.

Discuss this on some mailing list, it's a usage/setup/environment error of some kind. Good luck.

> java.lang.ExceptionInInitializerError and java.lang.NoClassDefFoundError: Could not initialize class com.xxx.cfsa.axis.XXXConfigMerlin in jboss eap 6.4
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS-2923
>                 URL: https://issues.apache.org/jira/browse/AXIS-2923
>             Project: Axis
>          Issue Type: Bug
>            Reporter: Suresh
>            Priority: Critical
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> Hi Sir,
> We are migrating an application from websphere to Jboss eap 6.4.
> Below are some jar files created for wss4j like crypto engine axis tool etc.
> xxx-axis-tools.jar: XXXConfigMerlin class file is present in this jar.
> xxx-configuration-3.2.2.jar
> xxx-configuration-servlet-3.2.2.jar
> below is the meta info from axis.jar:
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.5.3
> Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.)
> Name: org/apache/axis
> Implementation-Title: Apache Axis
> Implementation-Version: 1.3 2244 October 5 2005
> Implementation-Vendor: Apache Web Services
> server-config.wsdd:
> ---------------------------
> <requestFlow>
> <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
> <parameter name="signaturePropFile" value="crypto.properties" />
> <parameter name="passwordCallbackClass"
> value="com.xxx.exante.bankserv.hsa.security.callback.DefinityPWCallback" />
> <parameter name="action" value="Signature" />
> </handler>
>   </requestFlow>
> Crypto.properties:
> ------------------------
> org.apache.ws.security.crypto.provider=com.xxx.cfsa.axis.XXXConfigMerlin
> org.apache.ws.security.crypto.merlin.keystore.type=pkcs12
> org.apache.ws.security.crypto.merlin.keystore.password=xxxx
> org.apache.ws.security.crypto.merlin.file=xxx_Keystore.pkcs
> we are getting below error in soap web services in jboss eap 6.4.
> when we trigger the soap request for the first time below error:
> ------------------------------------------------------------------------------------
> 15:37:52,485 INFO  [stdout] (http-localhost/127.0.0.1:8080-1) Configuration.bootstrap(Configuration.java:1065): fatal error initializing Configuration: java.lang.StringIndexOutOfBoundsException: String index out of range: -615:37:52,491 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] (http-localhost/127.0.0.1:8080-1) org.apache.axis.i18n.resource::handleGetObject(exception00)15:37:52,492 INFO  [org.apache.axis.EXCEPTIONS] (http-localhost/127.0.0.1:8080-1) Exception:: java.lang.ExceptionInInitializerError at com.xxx.cfsa.axis.XXXConfigAbstractCrypto.<clinit>(XXXConfigAbstractCrypto.java:51) [xxx_axis_tools.jar:] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_11] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_11] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_11] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_11] at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) [wss4j.jar:] at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) [wss4j.jar:] at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:400) [wss4j.jar:] at org.apache.ws.security.handler.WSHandler.decodeSignatureParameter2(WSHandler.java:845) [wss4j.jar:] at org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:147) [wss4j.jar:] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) [axis.jar:] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) [axis.jar:] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) [axis.jar:] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) [axis.jar:] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) [axis.jar:] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) [axis.jar:] at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) [axis.jar:] at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) [axis.jar:] at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) [axis.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2] at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) [axis.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]Caused by: java.lang.RuntimeException: Configuration.bootstrap(Configuration.java:1073): fatal error initializing Configuration: java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at com.xxx.xxx.tool.configuration.Configuration.bootstrap(Configuration.java:1073) [xxx-configuration-3.2.2.jar:3.2.2] at com.xxx.xxx.tool.configuration.Configuration.<clinit>(Configuration.java:200) [xxx-configuration-3.2.2.jar:3.2.2] ... 35 more
> when we trigger the soap request for subsequest trials below error:
> ------------------------------------------------------------------------------------
> 16:44:43,733 DEBUG [org.apache.ws.security.util.Loader] (http-localhost/127.0.0.1:8080-1) Trying to find [crypto.properties] using ModuleClassLoader for Module "deployment.IHSAWebEAR.ear.IHSAWeb_v2.war:main" from Service Module Loader class loader.16:44:43,739 INFO  [org.apache.ws.security.components.crypto.CryptoFactory] (http-localhost/127.0.0.1:8080-1) Using Crypto Engine [com.xxx.cfsa.axis.xxxConfigMerlin]16:44:43,740 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] (http-localhost/127.0.0.1:8080-1) org.apache.axis.i18n.resource::handleGetObject(exception00)16:44:43,740 INFO  [org.apache.axis.EXCEPTIONS] (http-localhost/127.0.0.1:8080-1) Exception:: java.lang.NoClassDefFoundError: Could not initialize class com.xxx.cfsa.axis.xxxConfigMerlin at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_11] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_11] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_11] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_11] at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117) [wss4j.jar:] at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101) [wss4j.jar:] at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:400) [wss4j.jar:] at org.apache.ws.security.handler.WSHandler.decodeSignatureParameter2(WSHandler.java:845) [wss4j.jar:] at org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:147) [wss4j.jar:] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) [axis.jar:] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) [axis.jar:] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) [axis.jar:] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) [axis.jar:] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) [axis.jar:] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) [axis.jar:] at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) [axis.jar:] at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) [axis.jar:] at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) [axis.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2] at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) [axis.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]16:44:43,742 DEBUG [org.apache.axis.SOAPPart] (http-localhost/127.0.0.1:8080-1) Enter: SOAPPart ctor(FORM_FAULT)16:44:43,742 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] (http-localhost/127.0.0.1:8080-1) org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
> Please help me in solving this issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]