SOAPMessageContext.getMessage() doesn't work in Protocol handler on WAS 7 - web-services

I have created web service using JAX-WS on RAD 8 and Websphere v7.
And I made handler using ProtocolHandler to manipulate SOAP message.
at handleMessage(SOAPMessageContext) method, I called getMessage() to get SOAP message.
I couldn't. here's my code
public boolean handleMessage(SOAPMessageContext context) {
try {
SOAPMessage soapMessage = context.getMessage(); // getMessage() always cause the error
SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope soapEnvelope= soapPart.getEnvelope();
} catch (SOAPException e) {
System.out.println("SOAPException");
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return true;
}
I always got the error below. It seems this problem is related to SAAJ library.
But I don't understand that IBM JDK has SAAJ implemented class as far as I know.
And... the code above worked two days ago. After that, it doesn't work.
So I deleted all the project file and create new dynamic web project to check if it work or not.
It doesn't work...
Does someone know the solution? or has same problem?
[13. 7. 4 21:16:41:028 KST] 0000001c SystemErr R javax.xml.ws.WebServiceException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
[13. 7. 4 21:16:41:028 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
[13. 7. 4 21:16:41:028 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.message.impl.MessageImpl.getAsSOAPMessage(MessageImpl.java:344)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.SoapMessageContext.getMessage(SoapMessageContext.java:183)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at com.koreanair.naora.xml.handler.RAAWPID01ServicesProtocolHandler.handleMessage(RAAWPID01ServicesProtocolHandler.java:28)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at com.koreanair.naora.xml.handler.RAAWPID01ServicesProtocolHandler.handleMessage(RAAWPID01ServicesProtocolHandler.java:1)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.HandlerChainProcessor.callHandleMessageWithTracker(HandlerChainProcessor.java:871)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.HandlerChainProcessor.handleMessage(HandlerChainProcessor.java:516)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.HandlerChainProcessor.callGenericHandlers(HandlerChainProcessor.java:289)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.HandlerChainProcessor.processChain(HandlerChainProcessor.java:232)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.HandlerInvokerUtils.invokeInboundHandlers(HandlerInvokerUtils.java:65)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.handler.impl.HandlerInvokerImpl.invokeInboundHandlers(HandlerInvokerImpl.java:37)
[13. 7. 4 21:16:41:029 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.server.EndpointController.inboundHeaderAndHandlerProcessing(EndpointController.java:348)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:260)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:103)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:189)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1442)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:944)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:507)
[13. 7. 4 21:16:41:030 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3954)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:945)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:277)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
[13. 7. 4 21:16:41:031 KST] 0000001c SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
[13. 7. 4 21:16:41:056 KST] 0000001c SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[13. 7. 4 21:16:41:056 KST] 0000001c SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[13. 7. 4 21:16:41:056 KST] 0000001c SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[13. 7. 4 21:16:41:056 KST] 0000001c SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[13. 7. 4 21:16:41:056 KST] 0000001c SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1656)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:536)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:316)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:74)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at org.apache.axis2.jaxws.message.impl.MessageImpl.getAsSOAPMessage(MessageImpl.java:285)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R ... 41 more
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R Caused by: java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:106)
[13. 7. 4 21:16:41:057 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:90)
[13. 7. 4 21:16:41:058 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.MessageImpl.initCharsetProperty(MessageImpl.java:1441)
[13. 7. 4 21:16:41:058 KST] 0000001c SystemErr R at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:406)
[13. 7. 4 21:16:41:058 KST] 0000001c SystemErr R ... 44 more

You can intercept SOAP incoming or outgoing header using SOAP Handler. refer the handle in WS class / delegate calls using annotation and have handleRequest() overwritten in your Handler class.
Ex:
Handler.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<javaee:handler-chains
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<javaee:handler-chain>
<javaee:handler>
<javaee:handler-class>com.test.SoapHeaderValidation</javaee:handler-class>
</javaee:handler>
</javaee:handler-chain>
</javaee:handler-chains>
Delegete Class:
#HandlerChain(file="handler.xml")
public class RequestHandlerDelegate {
RequestHandler _requestHandler = new RequestHandler();
public String sendRequest(String xmlString) {
return _requestHandler.sendRequest(xmlString);
}
}
Handler Class:
public boolean handleMessage(SOAPMessageContext context) {
Boolean isRequest = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
// for response message only, true for outbound messages, false for inbound
if (!isRequest) {
try {
SOAPMessage soapMsg = context.getMessage();
SOAPEnvelope envelope= soapMsg.getSOAPPart().getEnvelope();
SOAPHeader header = envelope.getHeader();
if (header == null) {
generateSOAPErrMessage(soapMsg, "NO SOAP Header");
}
NodeList nl = header.getElementsByTagName("wsse:UsernameToken");
String user = nl.item(0).getFirstChild().getFirstChild().getNodeValue();
String password = nl.item(0).getFirstChild().getNextSibling().getFirstChild().getNodeValue();
} catch (Excection e) {
System.Out.println(e);
}

Following line on your stack trace shows that you have a classloading issue
Caused by: java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl
It seems that your application contains some libraries that contains some classes provided by application server. The article below discusses this kind of problems and points to solutions for common cases, also including a link at the bottom for integrating third-party JAX-WS libraries, which seems to be your case (also added direct link below).
Best Practices for Integrating Open Source Software Packages with WebSphere Application Server
Enabling a third-party JAX-WS application in WebSphere Application Server V7
If you prefer the fastest way out, I may suggest to look for and remove all WebServices related libraries in your WAR or EAR, and use what ships with WebSphere instead.

Try this code :(If u using this method for Req\ Rsp logging, it works fine)
public boolean handleMessage(final SOAPMessageContext context) {
try {
final boolean isOutgoing = ((Boolean) context
.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY)).booleanValue();
final SOAPMessage message = context.getMessage();
if (null != message && null != message.getSOAPBody()) {
if (isOutgoing) {
String response = extractXmlMessage(message.getSOAPBody());
RequestResponseLogger.log("RESPONSE", response);
} else {
String request = extractXmlMessage(message.getSOAPBody());
RequestResponseLogger.log("REQUEST", request);
}
}
} catch (TransformerException transformerException) {
if (LOGGER.isErrorEnabled()) {
LOGGER.error("Unable to log Request Response Message ");
}
} catch (SOAPException e) {
if (LOGGER.isErrorEnabled()) {
LOGGER.error("Unable to log Request Response Message ");
}
}
return true;
}

Related

Websphere liberty server JCA (Java connector architecture), JNDI and resource adapter

I have created two projects on Eclipse JEE:
1) Connector-ra.rar : this project has java class and ra.xml.
This is my resource adapter ra.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.org/j2ee/dtds/connector_1_0.dtd'>
<connector>
<display-name>Connector-jca-1</display-name>
<vendor-name>Volkswagen AG</vendor-name>
<spec-version>1.0</spec-version>
<eis-type>Prop</eis-type>
<version>1.0</version>
<resourceadapter>
<managedconnectionfactory-class>com.eis.hw.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>com.eis.hw.HelloWorldConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.eis.hw.HelloWorldConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>com.eis.hw.HelloWorldConnection</connection-interface>
<connection-impl-class>com.eis.hw.HelloWorldConnectionImpl</connection-impl-class>
<transaction-support>NoTransaction</transaction-support>
<config-property>
<config-property-name>HostURL</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>127.0.0.1</config-property-value>
</config-property>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
</resourceadapter>
</connector>
2) On my Web project i try to call:
import java.io.IOException;
import java.io.PrintWriter;
import javax.annotation.Resource;
import javax.resource.ResourceException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.eis.hw.HelloWorldConnection;
import com.eis.hw.HelloWorldConnectionFactory;
#WebServlet("/JCAServlet")
public class TestRA extends HttpServlet {
private static final long serialVersionUID = 1L;
#Resource(lookup="eis/ECI")
private HelloWorldConnectionFactory connectionFactory;
public TestRA() {
super();
}
/**
* #see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String result = " ";
HelloWorldConnection connection = null;
try {
connection = connectionFactory.getConnection();
result = connection.helloWorldCall();
} catch (ResourceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
PrintWriter out = response.getWriter();
out.println(result + "Application test");
out.flush();
// connection.close();
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}
I am configuring a JCA and resource adapter on liberty server.
here is my server.xml on liberty server :
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>adminCenter-1.0</feature>
<feature>javaee-7.0</feature>
<feature>jaxws-2.2</feature>
<feature>jca-1.7</feature>
<feature>jndi-1.0</feature>
<feature>localConnector-1.0</feature>
<feature>webProfile-7.0</feature>
<!--<feature>ejbRemote-3.2</feature>-->
</featureManager>
<!--The location of the cicseci.rar needs to be updated to the full path-->
<resourceAdapter autoStart="true" id="eciResourceAdapter" location="C:/Users/Connector-ra.rar"/>
<connectionFactory id="eciTest" jndiName="eis/ECI">
<!--The properties need to be updated to the location of the CICS Transaction Gateway-->
<properties.eciResourceAdapter connectionUrl="tcp://localhost" portNumber="2006"/>
</connectionFactory>
<webApplication id="Connector-web" location="Connector-web-0.0.1-SNAPSHOT.war" name="Connector-web">
<classloader classProviderRef="eciResourceAdapter"/>
</webApplication>
</server>
My problem is :
[ERROR ] SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0030E: The server was unable to obtain an object instance for the java:comp/env/com.sample.TestRA/connectionFactory reference. The exception message was: CWNEN1003E: The server was unable to find the eis/ECI binding with the com.eis.hw.HelloWorldConnectionFactory type for the java:comp/env/com.sample.TestRA/connectionFactory reference.
messages.log
[08/11/18 14:15:18:991 CET] 00000011 com.ibm.ws.sib.utils.ras.SibMessage I CWSID0108I: JMS server has started.
[08/11/18 14:15:19:101 CET] 00000011 com.ibm.ws.security.jaspi.AuthConfigFactoryWrapper I CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set.
[08/11/18 14:15:19:971 CET] 0000002e om.ibm.ws.app.manager.rar.internal.RARApplicationHandlerImpl I J2CA7018I: Installing resource adapter eciResourceAdapter.
[08/11/18 14:15:21:570 CET] 00000019 com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: The Liberty Explore Tool.
[08/11/18 14:15:21:572 CET] 00000019 com.ibm.ws.webcontainer I SRVE0250I: Web Module The Liberty Explore Tool has been bound to default_host.
[08/11/18 14:15:21:568 CET] 0000001c com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: The Liberty Admin Center.
[08/11/18 14:15:21:575 CET] 0000001c com.ibm.ws.webcontainer I SRVE0250I: Web Module The Liberty Admin Center has been bound to default_host.
[08/11/18 14:15:21:574 CET] 00000019 com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/ibm/adminCenter/explore-1.0/
[08/11/18 14:15:21:570 CET] 0000001f com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: ibm/api.
[08/11/18 14:15:21:579 CET] 0000001f com.ibm.ws.webcontainer I SRVE0250I: Web Module ibm/api has been bound to default_host.
[08/11/18 14:15:21:571 CET] 00000032 com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: The Liberty Server Config Tool.
[08/11/18 14:15:21:571 CET] 0000002d com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: IBMJMXConnectorREST.
[08/11/18 14:15:21:581 CET] 00000032 com.ibm.ws.webcontainer I SRVE0250I: Web Module The Liberty Server Config Tool has been bound to default_host.
[08/11/18 14:15:21:581 CET] 0000002d com.ibm.ws.webcontainer I SRVE0250I: Web Module IBMJMXConnectorREST has been bound to default_host.
[08/11/18 14:15:21:587 CET] 0000001f com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/ibm/api/
[08/11/18 14:15:21:588 CET] 0000001c com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/adminCenter/
[08/11/18 14:15:21:594 CET] 0000002d com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/IBMJMXConnectorREST/
[08/11/18 14:15:21:618 CET] 0000002e org.jboss.weld.Version I WELD-000900: 2.4.5 (Final)
[08/11/18 14:15:21:666 CET] 0000002d com.ibm.ws.jmx.connector.server.rest.RESTAppListener I CWWKX0103I: The JMX REST connector is running and is available at the following service URL: service:jmx:rest://localhost:9543/IBMJMXConnectorREST
[08/11/18 14:15:21:718 CET] 00000021 com.ibm.ws.session.WASSessionCore I SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
[08/11/18 14:15:21:746 CET] 0000002d com.ibm.ws.jmx.connector.server.rest.RESTAppListener I CWWKX0103I: The JMX REST connector is running and is available at the following service URL: service:jmx:rest://localhost:9543/IBMJMXConnectorREST
[08/11/18 14:15:21:747 CET] 00000020 com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/ibm/api
[08/11/18 14:15:21:746 CET] 00000021 com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/ibm/adminCenter/explore-1.0
[08/11/18 14:15:21:748 CET] 0000002c com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/adminCenter
[08/11/18 14:15:21:767 CET] 00000032 com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/ibm/adminCenter/serverConfig-1.0/
[08/11/18 14:15:21:785 CET] 00000032 com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/ibm/adminCenter/serverConfig-1.0
[08/11/18 14:15:21:788 CET] 00000020 com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:21:820 CET] 00000032 com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:21:824 CET] 00000021 com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:21:826 CET] 0000002c com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:21:851 CET] 0000002d com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/IBMJMXConnectorREST
[08/11/18 14:15:21:852 CET] 0000002d com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:22:113 CET] 0000002c com.ibm.ws.cache.CacheServiceImpl I DYNA1056I: Dynamic Cache (object cache) initialized successfully.
[08/11/18 14:15:22:543 CET] 0000002d com.ibm.ws.webcontainer.servlet I SRVE0242I: [com.ibm.ws.jmx.connector.server.rest] [/IBMJMXConnectorREST] [JMXRESTProxyServlet]: Initialization successful.
[08/11/18 14:15:22:808 CET] 0000002e om.ibm.ws.app.manager.rar.internal.RARApplicationHandlerImpl A J2CA7001I: Resource adapter eciResourceAdapter installed in 2.837 seconds.
[08/11/18 14:15:22:915 CET] 0000001f com.ibm.ws.app.manager.AppMessageHelper I CWWKZ0018I: Starting application informationrequest-ui.
[08/11/18 14:15:22:928 CET] 00000019 com.ibm.ws.app.manager.AppMessageHelper I CWWKZ0018I: Starting application SoapApp0.
[08/11/18 14:15:22:937 CET] 0000002e com.ibm.ws.app.manager.AppMessageHelper I CWWKZ0018I: Starting application Connector-web.
[08/11/18 14:15:23:311 CET] 0000001f com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: informationrequest-ui.
[08/11/18 14:15:23:312 CET] 0000001f com.ibm.ws.webcontainer I SRVE0250I: Web Module informationrequest-ui has been bound to default_host.
[08/11/18 14:15:23:314 CET] 0000001f com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/informationrequest-ui/
[08/11/18 14:15:23:315 CET] 0000001f com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application informationrequest-ui started in 0.400 seconds.
[08/11/18 14:15:23:342 CET] 00000021 com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/informationrequest-ui
[08/11/18 14:15:23:342 CET] 00000021 com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:23:690 CET] 0000001c com.ibm.ws.webcontainer.osgi.mbeans.PluginGenerator I SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at C:\Users\abdelkarim.chokri\Desktop\ELSA\Tools\wlp-webProfile7-17.0.0.4\wlp\usr\servers\defaultServer\logs\state\plugin-cfg.xml.
[08/11/18 14:15:24:418 CET] 00000020 com.ibm.ws.webcontainer.osgi.mbeans.PluginGenerator I SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at C:\Users\abdelkarim.chokri\Desktop\ELSA\Tools\wlp-webProfile7-17.0.0.4\wlp\usr\servers\defaultServer\logs\state\plugin-cfg.xml.
[08/11/18 14:15:28:602 CET] 0000002e com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: Connector-web.
[08/11/18 14:15:28:602 CET] 0000002e com.ibm.ws.webcontainer I SRVE0250I: Web Module Connector-web has been bound to default_host.
[08/11/18 14:15:28:603 CET] 0000002e com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/Connector-web/
[08/11/18 14:15:28:607 CET] 0000002e com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application Connector-web started in 5.668 seconds.
[08/11/18 14:15:28:963 CET] 00000032 com.ibm.ws.webcontainer.osgi.mbeans.PluginGenerator I SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at C:\Users\abdelkarim.chokri\Desktop\ELSA\Tools\wlp-webProfile7-17.0.0.4\wlp\usr\servers\defaultServer\logs\state\plugin-cfg.xml.
[08/11/18 14:15:29:066 CET] 0000001f com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/Connector-web
[08/11/18 14:15:29:067 CET] 0000001f com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:31:183 CET] 00000019 com.ibm.ws.webcontainer.osgi.webapp.WebGroup I SRVE0169I: Loading Web Module: SoapApp0.
[08/11/18 14:15:31:183 CET] 00000019 com.ibm.ws.webcontainer I SRVE0250I: Web Module SoapApp0 has been bound to default_host.
[08/11/18 14:15:31:183 CET] 00000019 com.ibm.ws.http.internal.VirtualHostImpl A CWWKT0016I: Web application available (default_host): http://localhost:9086/SoapApp0/
[08/11/18 14:15:31:187 CET] 00000019 com.ibm.ws.app.manager.AppMessageHelper A CWWKZ0001I: Application SoapApp0 started in 8.259 seconds.
[08/11/18 14:15:31:319 CET] 00000018 com.ibm.ws.kernel.feature.internal.FeatureManager A CWWKF0012I: The server installed the following features: [servlet-3.1, beanValidation-1.1, ssl-1.0, jndi-1.0, jca-1.7, jms-2.0, ejbPersistentTimer-3.2, appSecurity-2.0, j2eeManagement-1.1, jdbc-4.1, jaxrs-2.0, wasJmsServer-1.0, javaMail-1.5, adminCenter-1.0, cdi-1.2, webProfile-7.0, jpa-2.1, jcaInboundSecurity-1.0, jsp-2.3, ejbLite-3.2, managedBeans-1.0, jsf-2.2, ejbHome-3.2, jaxws-2.2, localConnector-1.0, jsonp-1.0, restConnector-1.0, el-3.0, jaxrsClient-2.0, concurrent-1.0, appClientSupport-1.0, ejbRemote-3.2, javaee-7.0, jaxb-2.2, mdb-3.2, jacc-1.5, batch-1.0, ejb-3.2, json-1.0, jaspic-1.1, jpaContainer-2.1, distributedMap-1.0, websocket-1.1, wasJmsSecurity-1.0, wasJmsClient-2.0].
[08/11/18 14:15:31:319 CET] 00000018 com.ibm.ws.kernel.feature.internal.FeatureManager I CWWKF0008I: Feature update completed in 34.273 seconds.
[08/11/18 14:15:31:320 CET] 00000018 com.ibm.ws.kernel.feature.internal.FeatureManager A CWWKF0011I: The server defaultServer is ready to run a smarter planet.
[08/11/18 14:15:31:470 CET] 0000002d com.ibm.ws.session.WASSessionCore I SESN0176I: A new session context will be created for application key default_host/SoapApp0
[08/11/18 14:15:31:471 CET] 0000002d com.ibm.ws.util I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[08/11/18 14:15:31:742 CET] 00000019 com.ibm.ws.webcontainer.osgi.mbeans.PluginGenerator I SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at C:\Users\abdelkarim.chokri\Desktop\ELSA\Tools\wlp-webProfile7-17.0.0.4\wlp\usr\servers\defaultServer\logs\state\plugin-cfg.xml.
[08/11/18 14:15:31:961 CET] 0000002d com.ibm.ws.webcontainer.servlet I SRVE0242I: [SoapApp0] [/SoapApp0] [AdminServlet]: Initialization successful.
[08/11/18 14:15:34:040 CET] 0000001f com.ibm.ws.jca.internal.BootstrapContextImpl W J2CA8501E: Property portNumber of configuration element eis/ECI cannot be set because it is not found on the class com.eis.hw.ManagedConnectionFactoryImpl.
[08/11/18 14:15:34:135 CET] 0000001f com.ibm.ws.recoverylog.spi.RecoveryDirectorImpl I CWRLS0010I: Performing recovery processing for local WebSphere server (defaultServer).
[08/11/18 14:15:37:437 CET] 0000001f com.ibm.ws.recoverylog.spi.RecoveryDirectorImpl I CWRLS0012I: All persistent services have been directed to perform recovery processing for this WebSphere server (defaultServer).
[08/11/18 14:15:37:438 CET] 00000049 com.ibm.tx.jta.impl.RecoveryManager I WTRN0135I: Transaction service recovering no transactions.
[08/11/18 14:15:37:620 CET] 0000001f com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "java.lang.IllegalArgumentException: Can not set com.eis.hw.HelloWorldConnectionFactory field com.sample.TestRA.connectionFactory to com.eis.hw.HelloWorldConnectionFactoryImpl com.ibm.wsspi.injectionengine.InjectionTarget.inject 140" at ffdc_18.11.08_14.15.37.0.log
[08/11/18 14:15:38:379 CET] 0000001f com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "com.ibm.wsspi.injectionengine.InjectionException: CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member. com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet 228" at ffdc_18.11.08_14.15.37.1.log
[08/11/18 14:15:38:380 CET] 0000001f com.ibm.ws.webcontainer.servlet E SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member.
[08/11/18 14:15:38:986 CET] 0000001f com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "javax.servlet.UnavailableException: SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 302" at ffdc_18.11.08_14.15.38.0.log
[08/11/18 14:15:39:081 CET] 0000001f com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "javax.servlet.UnavailableException: SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member. com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter 144" at ffdc_18.11.08_14.15.38.1.log
[08/11/18 14:15:39:222 CET] 0000001f com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "javax.servlet.UnavailableException: SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member. com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters 1064" at ffdc_18.11.08_14.15.39.0.log
[08/11/18 14:15:39:222 CET] 0000001f com.ibm.ws.webcontainer.webapp E SRVE0315E: An exception occurred: java.lang.Throwable: javax.servlet.UnavailableException: SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member.
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:5006)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:314)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:995)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:279)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:957)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.wrapHandlerAndExecute(HttpDispatcherLink.java:357)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:316)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:499)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:433)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest(HttpInboundLink.java:313)
at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpInboundLink.java:284)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:165)
at com.ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:74)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(WorkQueueManager.java:501)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:571)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueManager.java:926)
at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueueManager.java:1015)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.servlet.UnavailableException: SRVE0319E: For the [com.sample.TestRA] servlet, com.sample.TestRA servlet class was found, but a resource injection failure has occurred. CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory com.sample.TestRA.connectionFactory member.
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1602)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1503)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:587)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:440)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.security.jaspi.JaspiServletFilter.doFilter(JaspiServletFilter.java:56)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:995)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1124)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1004)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1414)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:171)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:790)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.security.jaspi.JaspiServletFilter.doFilter(JaspiServletFilter.java:56)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:995)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1124)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4962)
... 19 more
Please help me to solve this problem or at least to debug this issue to proceed further. There is no much information in Google as well since I'm trying to use IBM Liberty.
Looking at the log I see the following issues:
J2CA8501E: Property portNumber of configuration element eis/ECI cannot be set because it is not found on the class com.eis.hw.ManagedConnectionFactoryImpl.
looks like configuration/implementation issue
and
CWNEN0074E: The com.eis.hw.HelloWorldConnectionFactoryImpl type of the object
instance obtained for the java:comp/env/com.sample.TestRA/connectionFactory reference is
incompatible with the type of the private com.eis.hw.HelloWorldConnectionFactory
com.sample.TestRA.connectionFactory member.
So you have some classloader issues, make sure you dont have any resource adapter related classes in the application itself, as jar/rar included in WEB-INF/lib or anywhere else.

Axis2 1.3 and WebSphere 8.5 compatibility. [AxisServlet]: java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver

I have an application migrating from Java 5 to Java 7 and Websphere 6 to 8.5.
This application have some web services developed through AXIS2 1.3.
When launching in Websphere the ear give me this error.
[] 00000088 WarBasedAxisC I org.apache.axis2.deployment.WarBasedAxisConfigurator <init> Could not find axis2.xml, loading default org/apache/axis2/deployment/axis2_default.xml from classpath
[] 00000088 DeploymentEng I org.apache.axis2.deployment.DeploymentEngine prepareRepository No modules directory was found under /apps/WebSphere85/profiles/node/installedApps/s00va9943461Network/NAME.ear/a_NAME.war/WEB-INF.
[] 00000088 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper init Uncaught.init.exception.thrown.by.servlet
[] 00000088 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /apps/WebSphere85/profiles/node/logs/ffdc/sa-iNAME-biz-1_83a50d9f_15.12.22_13.03.50.8155934160160475396565.txt com.ibm.ws.webcontainer.servlet.ServletWrapperImpl 272
[] 00000088 WarBasedAxisC I org.apache.axis2.deployment.WarBasedAxisConfigurator <init> Could not find axis2.xml, loading default org/apache/axis2/deployment/axis2_default.xml from classpath
[] 00000088 DeploymentEng I org.apache.axis2.deployment.DeploymentEngine prepareRepository No modules directory was found under /apps/WebSphere85/profiles/node/installedApps/s00va9943461Network/NAME.ear/a_NAME.war/WEB-INF.
[] 00000088 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper init Uncaught.init.exception.thrown.by.servlet
[] 00000088 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /apps/WebSphere85/profiles/node/logs/ffdc/sa-iNAME-biz-1_83a50d9f_15.12.22_13.03.50.8778098661991316840273.txt com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter 82
[] 00000088 FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /apps/WebSphere85/profiles/node/logs/ffdc/sa-iNAME-biz-1_83a50d9f_15.12.22_13.03.50.8947148831197547706091.txt com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters -SE 1078
[] 00000088 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[AxisServlet]: java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:93)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:170)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:62)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:815)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:391)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:144)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:569)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:457)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:342)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:634)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:79)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3923)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:986)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
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:175)
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:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
Caused by: java.lang.ClassNotFoundException: org.apache.woden.resolver.URIResolver
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:703)
... 42 more
What I've tried:
Set the parent last parameter in WebSphere
Rebuilding ear and webservices
The services are deployed on was6 (evidently application not working because was6 doesn't support java 7)
Tomcat run war without any problems.
Probably in websphere is configured JAX-WS/AXIS2 1.3 is correct with websphere 8.5? I've supposed that is related to the axis2 version because this error happen in [Axis Servlet].
I'm a newbie on Websphere, but I have the necessity to make working this ear, thank you for help.
Mine deployement.xml:
<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1449152598274">
<deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1449152598274" deploymentId="0" startingWeight="1" binariesURL="$(APP_INSTALL_ROOT)/s0000000001Network/App_NAME.ear" useMetadataFromBinaries="false" enableDistribution="true" createMBeansForResources="true" reloadEnabled="false" appContextIDForSecurity="href:s00000000001Network/App_NAME" filePermission=".*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755" allowDispatchRemoteInclude="false" allowServiceRemoteInclude="false" asyncRequestDispatchType="DISABLED" standaloneModule="false" enableClientModule="false">
<targetMappings xmi:id="DeploymentTargetMapping_1449152598274" enable="true" target="ServerTarget_1449152598274"/>
<targetMappings xmi:id="DeploymentTargetMapping_1449152598275" enable="true" target="ServerTarget_1449152598275"/>
<classloader xmi:id="Classloader_1449152598274" mode="PARENT_FIRST"/>
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1449152598274" deploymentId="1" startingWeight="10000" uri="APP_NAME.war" containsEJBContent="0">
<targetMappings xmi:id="DeploymentTargetMapping_1449152598276" target="ServerTarget_1449152598274"/>
<targetMappings xmi:id="DeploymentTargetMapping_1449152598277" target="ServerTarget_1449152598275"/>
<classloader xmi:id="Classloader_1449152598275"/>
</modules>
<properties xmi:id="Property_1449152598274" name="metadata.complete" value="true"/>
</deployedObject>
<deploymentTargets xmi:type="appdeployment:ServerTarget" xmi:id="ServerTarget_1449152598274" name="sa-App_NAME-biz-1" nodeName="s00000000001"/>
<deploymentTargets xmi:type="appdeployment:ServerTarget" xmi:id="ServerTarget_1449152598275" name="sw-App_NAME-biz-1" nodeName="s00000000001"/>
</appdeployment:Deployment>
Class Loader correctly setted
If you are bundling axis2 engine with your application, you have to disable WebSphere JAX-WS runtime. You need to :
configure your web moudle to PARENT LAST classloader
set DisableIBMJAXWSEngine: true in the META-INF/MANIFEST.MF of a WAR file
Or migrate your application to use web service engine provided by WAS 8.5.5 (which supports JAX-WS).
For more details check - Using a third-party JAX-WS web services engine

Error with WebService on Websphere Spring JAXWS

I have a webservice deployed on Geronimo Server, it works perfectly
but when i try to deploy it on Websphere Application Server 7 doesnt work
this's the exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at gov.cgn.serviciosweb.ws.conceptos.ConceptosPortBindingStub.consultarConceptosCHIP(ConceptosPortBindingStub.java:112)
at gov.cgn.serviciosweb.ws.conceptos.ConceptosWSProxy.consultarConceptosCHIP(ConceptosWSProxy.java:50)
at Test.test.main(test.java:18)
{http://xml.apache.org/axis/}hostname:P1D017HLAMPREA
java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at gov.cgn.serviciosweb.ws.conceptos.ConceptosPortBindingStub.consultarConceptosCHIP(ConceptosPortBindingStub.java:112)
at gov.cgn.serviciosweb.ws.conceptos.ConceptosWSProxy.consultarConceptosCHIP(ConceptosWSProxy.java:50)
at Test.test.main(test.java:18)
I have tried by changing Parent Classloader policy [Classes loaded with application class loader first ] but doesnt work.
This is the SystemOut.log on the WAS:
[8/1/14 9:40:59:475 GMT-05:00] 0000001a WebServiceExc E org.apache.axis2.jaxws.WebServiceExceptionLogger log A java.lang.NullPointerException throwable was caught. The detail message is: at gov.cgn.serviciosweb.ws.conceptos.ConceptosWS.consultarConceptosCHIP(ConceptosWS.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.axis2..sejaxwsrver.dispatcher.JavaDispatcher.invokeTargetOperation(JavaDispatcher.java:100)
at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:117)
at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:111)
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:189)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3944)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
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$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
I called the method on web servcie with this line in the client.
ConceptosWSProxy proxy = new ConceptosWSProxy();
System.out.println(proxy.consultarConceptosCHIP("K2", "01", "03", "2012"));
The solution is change the MANIFEST.MF for add the line DisableIBMJAXWSEngine: true. This line Disabled the IBM JAX WS and enable the third party JAX-WS engine. In this Case the AXIS2 Engine.

java.lang.LinkageError: loading constraint violation

I getting error below while deploying the Web service war file in Websphere 7. This web service war file is created using Axis2 and contain a Very basic Service (Hello World!). Can some one point me what could be issue?
[6/25/14 17:10:42:132 IST] 0000000f SystemOut O [ERROR] loading constraint violation: loader "org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader#679e679e" previously initiated loading for a different type with name "org/apache/axiom/soap/SOAPFactory" defined by loader "com/ibm/ws/classloader/CompoundClassLoader#71817181"
java.lang.LinkageError: loading constraint violation: loader "org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader#679e679e" previously initiated loading for a different type with name "org/apache/axiom/soap/SOAPFactory" defined by loader "com/ibm/ws/classloader/CompoundClassLoader#71817181"
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:550)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:520)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:451)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassName(ClasspathManager.java:430)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:154)
at org.apache.rampart.RampartMessageData.(RampartMessageData.java:270)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:60)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
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.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
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.HttpInboundLink.ready(HttpInboundLink.java:272)
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: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)
Refer the this article which has details about running Axis2 and resolving error in Websphere with Axis2
http://zacktutorials.blogspot.ca/2014/04/axis2-installation-in-websphere-80-to.html
Problem: java.lang.VerifyError: class loading constraint violated (class: org/apache/xerces/dom/CoreDocumentImpl method: getDomConfig()Lorg/w3c/dom/DOMConfiguration;) at pc: 0
Solution : (FIX for "java.lang.VerifyError: JVMVRFY013 class loading constraint violated" )
In the xmlbeans-2.3.0.jar à remove org.dom package
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011249

WCS 7.0 and Sterling integration Issue

We are trying to integrate the WebSphere commerce 7.0 (Feature Pack 4) and Sterling (DOM) system. We followed the steps mentioned in the IBM infocenter. BUt we are getting the below exception when we are trying to GetProductAvailability.
Our wc-component-client.xml is similar to below,
Path : workspace\WC\xml\config\com.ibm.commerce.inventory.external
<_config:action name="GetProductAvailability" asynchronous="false">
<_config:preinvokemediator
mediatorImpl="com.ibm.commerce.foundation.services.invocation.internal.impl.JSPMessageInvocationMediatorImpl">
<_config:property name="url"
value="http://localhost:80/webapp/wcs/stores/IBM.WC.Compose/mediation/SterlingCommerce/GetProductAvailabilityRequestMediator.jsp" />
</_config:preinvokemediator>
<_config:postinvokemediator
mediatorImpl="com.ibm.commerce.foundation.services.invocation.internal.impl.JSPMessageInvocationMediatorImpl">
<_config:property name="url"
value="http://localhost:80/webapp/wcs/stores/IBM.WC.Compose/mediation/SterlingCommerce/GetProductAvailabilityResponseMediator.jsp" />
</_config:postinvokemediator>
</_config:action>
And the exception which we are getting while checking for inventory is
0000003f commands I com.ibm.commerce.inventory.facade.server.commands.ComposeDOMInventoryAvailabilityCmdImpl callGetInventoryAvailabilityService CWXFR0031E: Failed to read the file "wc-component-client.xml" due to "com.ibm.commerce.foundation.services.invocation.internal.impl.JSPMessageInvocationMediatorImpl incompatible with com.ibm.commerce.foundation.internal.client.services.invocation.spi.MessageInvocationMediator".
com.ibm.commerce.foundation.common.exception.ComponentConfigurationException: CWXFR0031E: Failed to read the file "wc-component-client.xml" due to "com.ibm.commerce.foundation.services.invocation.internal.impl.JSPMessageInvocationMediatorImpl incompatible with com.ibm.commerce.foundation.internal.client.services.invocation.spi.MessageInvocationMediator".
at com.ibm.commerce.foundation.common.config.ComponentConfiguration.loadConfigServices(ComponentConfiguration.java:452)
at com.ibm.commerce.foundation.common.config.ComponentConfiguration.initialize(ComponentConfiguration.java:205)
at com.ibm.commerce.foundation.common.config.ComponentConfiguration.<init>(ComponentConfiguration.java:124)
at com.ibm.commerce.foundation.common.config.ComponentConfigurationRegistry.loadComponentConfiguration(ComponentConfigurationRegistry.java:293)
at com.ibm.commerce.foundation.common.config.ComponentConfigurationRegistry.getComponentConfiguration(ComponentConfigurationRegistry.java:258)
at com.ibm.commerce.foundation.internal.client.services.invocation.impl.DefaultInvocationServiceSourceImpl.getComponentConfiguration(DefaultInvocationServiceSourceImpl.java:65)
at com.ibm.commerce.foundation.internal.client.services.invocation.impl.DefaultInvocationServiceSourceImpl.getAction(DefaultInvocationServiceSourceImpl.java:145)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationServiceFactory.createAction(InvocationServiceFactory.java:107)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationService.invoke(InvocationService.java:76)
at com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient.sendBusinessObjectDocument(AbstractBusinessObjectDocumentFacadeClient.java:421)
at com.ibm.commerce.inventory.facade.client.ExternalInventoryFacadeClient.getInventoryAvailability(ExternalInventoryFacadeClient.java:91)
at com.ibm.commerce.inventory.facade.server.commands.ComposeDOMInventoryAvailabilityCmdImpl.callGetInventoryAvailabilityService(ComposeDOMInventoryAvailabilityCmdImpl.java:343)
at com.ibm.commerce.inventory.facade.server.commands.ComposeDOMInventoryAvailabilityCmdImpl.getInventoryAvailabilityFromDOM(ComposeDOMInventoryAvailabilityCmdImpl.java:320)
at com.ibm.commerce.inventory.facade.server.commands.ComposeDOMInventoryAvailabilityCmdImpl.execute(ComposeDOMInventoryAvailabilityCmdImpl.java:990)
at com.ibm.commerce.inventory.facade.server.commands.FetchInventoryAvailabilityCmdImpl.performExecute(FetchInventoryAvailabilityCmdImpl.java:1468)
at com.ibm.commerce.foundation.internal.server.command.impl.CommandTarget.executeCommand(CommandTarget.java:66)
at com.ibm.websphere.command.TargetableCommandImpl.execute(TargetableCommandImpl.java:139)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:138)
at com.ibm.commerce.foundation.server.command.bod.AbstractGetBusinessObjectDocumentCmdImpl.performExpression(AbstractGetBusinessObjectDocumentCmdImpl.java:282)
at com.ibm.commerce.foundation.server.command.bod.AbstractGetBusinessObjectDocumentCmdImpl.performExecute(AbstractGetBusinessObjectDocumentCmdImpl.java:145)
at com.ibm.commerce.foundation.server.command.bod.BusinessObjectCommandTargetImpl.executeCommand(BusinessObjectCommandTargetImpl.java:112)
at com.ibm.websphere.command.TargetableCommandImpl.execute(TargetableCommandImpl.java:139)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:138)
at com.ibm.commerce.foundation.server.command.bod.BusinessObjectDocumentProcessor.processBusinessObjectDocument(BusinessObjectDocumentProcessor.java:199)
at com.ibm.commerce.inventory.facade.server.InventoryFacadeImpl.getInventoryAvailability(InventoryFacadeImpl.java:49)
at com.ibm.commerce.inventory.facade.server.EJSLocalStatelessInventory_65d6ce99.getInventoryAvailability(EJSLocalStatelessInventory_65d6ce99.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at com.ibm.commerce.foundation.internal.client.services.invocation.impl.LocalEJBInvocationBindingImpl.invoke(LocalEJBInvocationBindingImpl.java:173)
at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationService.invoke(InvocationService.java:113)
at com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient.sendBusinessObjectDocument(AbstractBusinessObjectDocumentFacadeClient.java:421)
at com.ibm.commerce.inventory.facade.client.AbstractInventoryFacadeClient.getInventoryAvailability(AbstractInventoryFacadeClient.java:130)
at com.ibm.commerce.inventory.facade.client.AbstractInventoryFacadeClient.getInventoryAvailability(AbstractInventoryFacadeClient.java:281)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at com.ibm.commerce.foundation.internal.client.taglib.config.GetDataConfig$DataTypeConfig.invokeClientFacadeMethod(GetDataConfig.java:863)
at com.ibm.commerce.foundation.internal.client.taglib.GetDataHandler.execute(GetDataHandler.java:733)
at com.ibm.commerce.foundation.internal.client.taglib.GetDataTag.doTag(GetDataTag.java:388)
at com.ibm._jsp._CatalogEntryInventoryStatus._jspService(_CatalogEntryInventoryStatus.java:786)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:259)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:686)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:375)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:211)
at com.ibm._jsp._CachedProductOnlyDisplay._jspx_meth_c_import_1(_CachedProductOnlyDisplay.java:11982)
at com.ibm._jsp._CachedProductOnlyDisplay._jspService(_CachedProductOnlyDisplay.java:1367)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:259)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:686)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:375)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:211)
at com.ibm._jsp._ProductDisplay._jspx_meth_c_import_5(_ProductDisplay.java:7139)
at com.ibm._jsp._ProductDisplay._jspService(_ProductDisplay.java:1188)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:259)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:354)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.ibm.commerce.struts.ECActionServlet.processRequest(ECActionServlet.java:215)
at com.ibm.commerce.struts.ECActionServlet.doGet(ECActionServlet.java:157)
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:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at com.ibm.commerce.campaigns.filter.CampaignsFilter.doFilter(CampaignsFilter.java:148)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.likeminds.filter.LikeMindsFilter.doFilter(LikeMindsFilter.java:183)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.dynacache.filter.CacheFilter$2.run(CacheFilter.java:376)
at com.ibm.commerce.dynacache.filter.CacheFilter.doFilter(CacheFilter.java:507)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilterAction(RuntimeServletFilter.java:367)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.access$0(RuntimeServletFilter.java:247)
at com.ibm.commerce.webcontroller.RuntimeServletFilter$1.run(RuntimeServletFilter.java:210)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilter(RuntimeServletFilter.java:231)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
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:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
Caused by: java.lang.ClassCastException: com.ibm.commerce.foundation.services.invocation.internal.impl.JSPMessageInvocationMediatorImpl incompatible with com.ibm.commerce.foundation.internal.client.services.invocation.spi.MessageInvocationMediator
at com.ibm.commerce.foundation.internal.client.services.invocation.metadata.InvocationServiceConfiguration.getMessageInvocationMediator(InvocationServiceConfiguration.java:175)
at com.ibm.commerce.foundation.internal.client.services.invocation.metadata.InvocationServiceConfiguration.parseElement(InvocationServiceConfiguration.java:106)
at com.ibm.commerce.foundation.internal.common.config.node.AbstractConfigNodeImpl.load(AbstractConfigNodeImpl.java:78)
at com.ibm.commerce.foundation.internal.common.config.AbstractServiceConfigurationImpl.loadConfig(AbstractServiceConfigurationImpl.java:88)
at com.ibm.commerce.foundation.common.config.ComponentConfiguration.loadConfigServices(ComponentConfiguration.java:445)
... 140 more
I believe you are using the wrong version of JSPMessageInvocationMediatorImpl try the one with client in the package name. com.ibm.commerce.foundation.services.internal.client.services.invocation.impl.JSPMessageInvocationMediatorImpl
I got this working on my desktop but following the instructions. Still I would contact IBM Software Support.