Kafka producer in Websphere EJB: SslAuthenticationException - java

I am using a Websphere EJB application and I need to configure a Kafka producer. Not sure why it is throwing org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed. We dont have any SSL certs configured but using SASL PLAIN authentication. Here is the method that set the Config properties
private Producer setProducer() {
Properties props = new Properties();
props.put("bootstrap.servers", "server.confluent.cloud:9092");
props.put("sasl.mechanism", "PLAIN");
props.put("sasl.jaas.config", "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"DR45F4GSVVDGT\" password=\"xxx\";");
props.put("security.protocol", "SASL_SSL");
props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
Producer producer = new KafkaProducer<String, String>(props);
return producer;
}
I am using JDK 8 and Kafka-client-2.7. Unfortunately I need to get this working in the websphere environment. Below is the full exception. A help would be greatly appreciated.
[1/13/23 3:25:55:921 CST] 000002f3 SystemErr R org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed
[1/13/23 3:25:55:921 CST] 000002f3 SystemErr R Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
[1/13/23 3:25:55:921 CST] 000002f3 SystemErr R at com.ibm.jsse2.D.z(D.java:472)
[1/13/23 3:25:55:921 CST] 000002f3 SystemErr R at com.ibm.jsse2.aq.b(aq.java:349)
[1/13/23 3:25:55:921 CST] 000002f3 SystemErr R at com.ibm.jsse2.aq.c(aq.java:304)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at com.ibm.jsse2.aq.wrap(aq.java:194)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:21)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.handshakeWrap(SslTransportLayer.java:478)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.doHandshake(SslTransportLayer.java:341)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.handshake(SslTransportLayer.java:291)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.KafkaChannel.prepare(KafkaChannel.java:173)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:543)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.Selector.poll(Selector.java:481)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:563)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.clients.producer.internals.Sender.runOnce(Sender.java:325)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:240)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at java.lang.Thread.run(Thread.java:785)
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
[1/13/23 3:25:55:922 CST] 000002f3 SystemErr R at com.ibm.jsse2.k.a(k.java:6)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.aq.a(aq.java:113)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D.a(D.java:91)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D.a(D.java:74)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.E.a(E.java:307)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.E.a(E.java:121)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D.r(D.java:223)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D$b.a(D$b.java:3)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D$b.run(D$b.java:4)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at java.security.AccessController.doPrivileged(AccessController.java:686)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at com.ibm.jsse2.D$c.run(D$c.java:10)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.runDelegatedTasks(SslTransportLayer.java:430)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.handshakeUnwrap(SslTransportLayer.java:514)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R at org.apache.kafka.common.network.SslTransportLayer.doHandshake(SslTransportLayer.java:368)
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R ... 8 more
[1/13/23 3:25:55:923 CST] 000002f3 SystemErr R Caused by: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by CN=ISRG Root X1, O=Internet Security Research Group, C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.util.f.a(f.java:107)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.util.f.b(f.java:108)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.util.e.a(e.java:4)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.aB.a(aB.java:211)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.aB.a(aB.java:96)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.aB.checkServerTrusted(aB.java:183)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.jsse2.E.a(E.java:608)
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R ... 17 more
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R Caused by: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by CN=ISRG Root X1, O=Internet Security Research Group, C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/13/23 3:25:55:924 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:422)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.jsse2.util.f.a(f.java:74)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R ... 23 more
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R Caused by: java.security.cert.CertPathValidatorException: The certificate issued by CN=ISRG Root X1, O=Internet Security Research Group, C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:111)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:199)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:749)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:661)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:607)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:368)
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R ... 25 more
[1/13/23 3:25:55:925 CST] 000002f3 SystemErr R Caused by: java.security.cert.CertPathValidatorException: Certificate chaining error
[1/13/23 3:25:55:926 CST] 000002f3 SystemErr R at com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:316)
[1/13/23 3:25:55:926 CST] 000002f3 SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:108)
[1/13/23 3:25:55:926 CST] 000002f3 SystemErr R ... 30 more
UPDATE
As I am still struggling to find an answer let me update with what I did. First of all I could not find the certificate CN=ISRG Root X1, O=Internet Security Research Group, C=US which is mentioned in the exception. This certificate is nowhere in the Websphere server. Also there is no certificate configured in confluent platform. I also tried to add Websphere SSL library to set Websphere TrustStore in Kafka Producer config properties as below:
com.ibm.websphere.ssl.JSSEHelper jsseHelper = JSSEHelper.getInstance();
Properties sslProperties = jsseHelper.getProperties("default");
props.put(org.apache.kafka.common.config.SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG,sslProperties.getProperty("com.ibm.ssl.trustStore"));
props.put("ssl.endpoint.identification.algorithm", "");
but this gives me below exception:
Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.security.WebSphereRuntimePermission
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
I am not sure if this was a solution but definitely was not helping :(

Related

how to set no proxy in httpclient like we set in Firefox network settings?

How do I set no proxy in httpclient like we set in Firefox network settings?
I have set java network settings to default browser setting in control panel and why its also not reflected?
For me a 3rd party service call is working in restclient for no proxy and timeout when I set office proxy. Below exception is there when I invoked from IBM WCS code.
[2/2/16 14:49:27:613 CET] 0000000a SystemErr R java.net.ConnectException: Connection timed out: connect
[2/2/16 14:49:27:614 CET] 0000000a SystemErr R at java.net.PlainSocketImpl.socketConnect(Native Method)
[2/2/16 14:49:27:615 CET] 0000000a SystemErr R at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:412)
[2/2/16 14:49:27:615 CET] 0000000a SystemErr R at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:271)
[2/2/16 14:49:27:615 CET] 0000000a SystemErr R at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:258)
[2/2/16 14:49:27:616 CET] 0000000a SystemErr R at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:376)
[2/2/16 14:49:27:616 CET] 0000000a SystemErr R at java.net.Socket.connect(Socket.java:546)
[2/2/16 14:49:27:616 CET] 0000000a SystemErr R at com.ibm.jsse2.SSLSocketImpl.connect(SSLSocketImpl.java:567)
[2/2/16 14:49:27:616 CET] 0000000a SystemErr R at com.ibm.jsse2.SSLSocketImpl.<init>(SSLSocketImpl.java:184)
[2/2/16 14:49:27:617 CET] 0000000a SystemErr R at com.ibm.jsse2.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:1)
[2/2/16 14:49:27:617 CET] 0000000a SystemErr R at com.ibm.websphere.ssl.protocol.SSLSocketFactory.createSocket(SSLSocketFactory.java:654)
[2/2/16 14:49:27:617 CET] 0000000a SystemErr R at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
[2/2/16 14:49:27:618 CET] 0000000a SystemErr R at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
[2/2/16 14:49:27:619 CET] 0000000a SystemErr R at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
[2/2/16 14:49:27:619 CET] 0000000a SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
[2/2/16 14:49:27:619 CET] 0000000a SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
[2/2/16 14:49:27:619 CET] 0000000a SystemErr R at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
[2/2/16 14:49:27:620 CET] 0000000a SystemErr R at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
You can set domains to not go through the proxy in WAS by:
Go into the WAS admin console, select application servers-> YourServer mine is server1-> Java and process management -> process definition -> Java Virtual Machine -> Custom proprties
The create the property called http.nonProxyHosts and for the value put the domain you do not want to pass through the proxy server.
Reference: https://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java
I hope that it helps you to connect through your proxy server.

Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed

Can any body help me over this...?
Here is my line of code. I am using struts 1.x and I have included two JSP's into a single JSP. My code is as follows. I have debugged it and the request for "LeftMenu.do" is processed at server side and return the actionForward succcesfuly and then happend the below mentioned error... need your valuable feedback.
<%# include file="AppHeader.jsp"%>
<jsp:include page="/pages/LeftMenu.do" />
[9/17/15 3:03:31:764 VET] 0000001b servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet action in application PHMICBIPSEAR. Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed.
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:161)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1006)
at com.ibm._jsp._BIPSAdminFindPolicies._jspService(_BIPSAdminFindPolicies.java:319)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:335)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[9/17/15 3:03:31:777 VET] 0000001b LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[9/17/15 3:03:31:796 VET] 0000001b servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /bipspages/BIPSAdminFindPolicies.jsp in application PHMICBIPSEAR. Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed.
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:161)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1006)
at com.ibm._jsp._BIPSAdminFindPolicies._jspService(_BIPSAdminFindPolicies.java:319)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:335)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[9/17/15 3:03:31:807 VET] 0000001b LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[9/17/15 3:03:31:893 VET] 0000001b servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet action in application PHMICBIPSEAR. Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed.
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:161)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1006)
at com.ibm._jsp._BIPSAdminFindPolicies._jspService(_BIPSAdminFindPolicies.java:319)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:335)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[9/17/15 3:03:31:984 VET] 0000001b FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_6a066a06_15.09.17_03.03.31.90264035.txt com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch 448
[9/17/15 3:03:31:992 VET] 0000001b LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[9/17/15 3:03:32:000 VET] 0000001b webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[action]: java.lang.IllegalStateException: Cannot forward. Response already committed.
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:161)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:644)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1006)
at com.ibm._jsp._BIPSAdminFindPolicies._jspService(_BIPSAdminFindPolicies.java:319)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:234)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:335)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[9/17/15 3:03:32:009 VET] 0000001b srt W com.ibm.ws.webcontainer.srt.SRTServletResponse setStatus WARNING: Cannot set status. Response already committed.
[9/17/15 3:03:32:013 VET] 0000001b srt W com.ibm.ws.webcontainer.srt.SRTServletResponse addHeader WARNING: Cannot set header. Response already committed.
"struts 1.x" -> there's your problem :-).
But more seriously, the *.do is probably mapped to the struts servlet, and you can't do a jsp:include with a struts controller request, since struts already completely renders the response.
In Struts, shouldn't it be the controller that forwards to the JSP, instead of the JSP that includes the controller?
See e.g:
http://www.mkyong.com/struts/struts-forwardaction-example/
Your code :
<jsp:include page="/pages/LeftMenu.do" />
Are you caling your controller here? you can include JSP response/HTML response here but you cannot do a GET call to the controller.
if it was, <jsp:include page="/pages/LeftMenu.jsp" /> , this makes sense. Is it a typo?
I get this issue resolved by placing all the code of javascript in the end of JSP file.
Mirza Abdul Rehman

HTTPS POST request failing in WebSphere 5.0 for a particular URL/Certificate

I'm trying to connect to a RESTful web service endpoint via HTTPS using WebSphere 5.1.
endpoint = new URL("https://restful/web/service");
HttpURLConnection connection = (HttpURLConnection) endpoint.openConnection();
connection.setRequestMethod("POST");
if (connection.getResponseCode() == 200) {
//Do something
} else {
//Show error
}
I am getting the following exception on getResponseCode()
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R javax.net.ssl.SSLProtocolException: end of file
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R at com.ibm.jsse.bg.a(Unknown Source)
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R at com.ibm.jsse.bg.startHandshake(Unknown Source)
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.www.protocol.https.b.n(Unknown Source)
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source)
[1/22/15 9:16:28:306 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.www.protocol.http.bw.getInputStream(Unknown Source)
[1/22/15 9:16:28:307 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.www.protocol.http.bw.getHeaderField(Unknown Source)
[1/22/15 9:16:28:307 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.www.protocol.http.bw.getResponseCode(Unknown Source)
[1/22/15 9:16:28:307 GMT] 9341a3d SystemErr R at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.getResponseCode(Unknown Source)
If I try the same code on WebLogic, it works fine. On top of that, for other endpoints (e.g. https://googleapis), it works perfectly on both WebLogic and WebSphere.
I have already imported the certificate to the truststore but it doesnt seem to have made a difference. Could someone advice on what the problem could be?
Found the solution finally. It appeared that Websphere was using SSLv3 by default for the SSL handshake instead of TLS. Forcing it to use TLS did the trick.
System.setProperty("https.protocols", "TLSv1");

Unable to run JSF application on websphere 6.1

First I created JSF1.2 and JDBC project on tomcat 6 server using Apache MyFaces JSF Core 1.2.
After that I created .WAR file of my project using eclipse > export > WAR
Then I deployed my .WAR file on WebSphere 6.1 server and i am facing below issue.
Application Browser
Console
[7/4/13 7:44:24:871 EDT] 00000021 CacheManager I org.ajax4jsf.cache.CacheManager getCacheFactory Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
[7/4/13 7:44:24:873 EDT] 00000021 LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance using parameters: {org.apache.myfaces.DETECT_JAVASCRIPT=false, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, org.richfaces.SKIN=classic, org.apache.myfaces.ALLOW_JAVASCRIPT=true, javax.faces.STATE_SAVING_METHOD=client, org.apache.myfaces.AUTO_SCROLL=true, org.apache.myfaces.PRETTY_HTML=true}
[7/4/13 7:44:24:873 EDT] 00000021 LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance of default capacity
[7/4/13 7:44:24:889 EDT] 00000021 CacheManager I org.ajax4jsf.cache.CacheManager getCacheFactory Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
[7/4/13 7:44:24:889 EDT] 00000021 LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance using parameters: {org.apache.myfaces.DETECT_JAVASCRIPT=false, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, org.richfaces.SKIN=classic, org.apache.myfaces.ALLOW_JAVASCRIPT=true, javax.faces.STATE_SAVING_METHOD=client, org.apache.myfaces.AUTO_SCROLL=true, org.apache.myfaces.PRETTY_HTML=true}
[7/4/13 7:44:24:889 EDT] 00000021 LRUMapCacheFa I org.ajax4jsf.cache.LRUMapCacheFactory createCache Creating LRUMap cache instance of default capacity
[7/4/13 7:44:24:939 EDT] 00000021 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : java.lang.NoSuchMethodError: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;
at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:436)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:310)
at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[7/4/13 7:44:24:950 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.24_0.txt
[7/4/13 7:44:24:963 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.24_0.txt
[7/4/13 7:44:24:969 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.24_1.txt
[7/4/13 7:44:24:987 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.24_1.txt
[7/4/13 7:44:24:988 EDT] 00000021 BaseXMLFilter E org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter Exception in the filter chain
javax.servlet.ServletException: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1331)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
---- Begin backtrace for Nested Throwables
java.lang.NoSuchMethodError: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;
at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:436)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:310)
at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[7/4/13 7:44:25:014 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.25_0.txt
[7/4/13 7:44:25:021 EDT] 00000021 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\IBM\SDP\runtimes\base_v61\profiles\WTE_APPSRV611\logs\ffdc\server1_00000021_13.07.04_07.44.25_0.txt
[7/4/13 7:44:25:022 EDT] 00000021 WebApp E [Servlet Error]-[Faces Servlet]: java.lang.NoSuchMethodError: javax/faces/render/ResponseStateManager.getState(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/Object;
at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:436)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:310)
at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1219)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1154)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:848)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:691)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:654)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3574)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
Please help me into this.
This is typically a claassloading issue. Since Websphere ships with JSF and its subdependencies, probably they are mixing qith the ones you are providing in your application.
Please have a look into this guide, there is a section for Websphere 6.1
http://wiki.apache.org/myfaces/Websphere_Installation
Setting the classloaders to application first (or parent last, which is the same) and restarting your application should do the work

Exception when accessing a web service using axis2 (Sales Force) in IBM Websphere 8

I am trying to integrate with sales force. I have a sample runnning on weblogic but fails on WAS(tried only on WAS 8). This is the error I get. It says that i have a certificate that is not trusted. Can I disable the certificate chack? I dont even know why this certificate is being used. The stack is very long(overflowing :)) sry about that.
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R org.apache.axis2.AxisFault: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
[1/20/12 17:31:17:505 IST] 0000002a SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:570)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:399)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:226)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:514)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
[1/20/12 17:31:17:506 IST] 0000002a SystemErr R at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.sforce.soap.partner.SforceServiceStub.login(SforceServiceStub.java:3447)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.adapters.SalesForce.UpdateExternalSystem.login(UpdateExternalSystem.java:62)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.adapters.SalesForce.UpdateExternalSystem.upsertSFAObject(UpdateExternalSystem.java:93)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.publisher.transmitters.SFATransmitter.send(SFATransmitter.java:21)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.publisher.IntegrationMgr.transmit(IntegrationMgr.java:79)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.publisher.listeners.PostRuleEngineListenerImpl.transformAndTransmit(PostRuleEngineListenerImpl.java:78)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.publisher.IntegrationMgr.findListenerAndPost(IntegrationMgr.java:116)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at com.ibm.leads.integration.publisher.IntegrationMgr.postEvents(IntegrationMgr.java:111)
[1/20/12 17:31:17:507 IST] 0000002a SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at com.marketsoft.ruleengine.InMemoryRuleAgent.run(InMemoryRuleAgent.java:120)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at java.lang.Thread.run(Thread.java:769)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R Caused by: javax.xml.stream.XMLStreamException: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:67)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at com.ibm.xml.xlxp2.api.stax.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:621)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at com.ibm.xml.xlxp2.api.stax.XMLOutputFactoryImpl$XMLStreamWriterProxy.close(XMLOutputFactoryImpl.java:150)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
[1/20/12 17:31:17:508 IST] 0000002a SystemErr R at org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R ... 30 more
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.o.a(o.java:22)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:423)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.kb.a(kb.java:192)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.kb.a(kb.java:176)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.lb.a(lb.java:53)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.lb.a(lb.java:464)
[1/20/12 17:31:17:509 IST] 0000002a SystemErr R at com.ibm.jsse2.kb.s(kb.java:545)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at com.ibm.jsse2.kb.a(kb.java:530)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:79)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:437)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:772)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at com.ibm.jsse2.k.write(k.java:3)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
[1/20/12 17:31:17:510 IST] 0000002a SystemErr R at java.io.FilterOutputStream.flush(FilterOutputStream.java:134)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.xml.xlxp2.api.stax.serializer.StAXWriter.flush(StAXWriter.java:65)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.xml.xlxp2.api.stax.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:613)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R ... 35 more
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R Caused by: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.jsse2.util.f.b(f.java:113)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.jsse2.util.f.b(f.java:61)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.jsse2.util.e.a(e.java:22)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.jsse2.pc.a(pc.java:100)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.jsse2.pc.checkServerTrusted(pc.java:15)
[1/20/12 17:31:17:511 IST] 0000002a SystemErr R at com.ibm.ws.ssl.core.WSX509TrustManager.checkServerTrusted(WSX509TrustManager.java:362)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at com.ibm.jsse2.lb.a(lb.java:5)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R ... 48 more
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R Caused by: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:411)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:258)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at com.ibm.jsse2.util.f.b(f.java:98)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R ... 54 more
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R Caused by: java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:111)
[1/20/12 17:31:17:512 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:176)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:737)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:649)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:595)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:595)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:357)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R ... 56 more
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R Caused by: java.security.cert.CertPathValidatorException: Certificate chaining error
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:298)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:108)
[1/20/12 17:31:17:513 IST] 0000002a SystemErr R ... 62 more
To solve the above issue, please add the VeriSign root certificate into your trust store (google it and you will receive numerous hits)
If you want to bypass it altogether, you will need to use non-SSL (I dont know whether that will be an option).

Categories