Struts 2 IncompatibleClassChangeError on WebSphere 6.1 - Websphere

This is a discussion on Struts 2 IncompatibleClassChangeError on WebSphere 6.1 - Websphere ; I am experiencing a runtime problem with struts 2 on WebSphere 6.1. Specifically: I have WebSphere Application Server 6.1.0.17 with Webservices Feature pack and EJB Feature Pack installed. The related xwork version is 2.0.4 I set com.ibm.ws.webcontainer.invokefilterscompatibility = true. The ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Struts 2 IncompatibleClassChangeError on WebSphere 6.1

  1. Struts 2 IncompatibleClassChangeError on WebSphere 6.1

    I am experiencing a runtime problem with struts 2 on WebSphere 6.1.

    Specifically:
    I have WebSphere Application Server 6.1.0.17 with Webservices Feature pack and EJB Feature Pack installed.
    The related xwork version is 2.0.4
    I set com.ibm.ws.webcontainer.invokefilterscompatibility = true.
    The struts version is 2.0.11
    The classpath is set to "application first"/Parent last.
    Using xercesImpl-2.8.1.jar

    The application deploys fine with no evident warnings or errors.
    At run time I get the following error which suggests a problem with the web.xml setting for a struts filter (action2) defined with filter-class org.apache.struts2.dispatcher.FilterDispatcher.

    Any assistance or direction would be great.

    WebApp E [Servlet Error]-[Filter [action2]: could not be initialized]: java.lang.IncompatibleClassChangeError
    at com.opensymphony.xwork2.util.location.LocationAttr ibutes.addLocationAttributes(LocationAttributes.ja va:77)
    at com.opensymphony.xwork2.util.location.LocationAttr ibutes$Pipe.startElement(LocationAttributes.java:3 17)
    at com.opensymphony.xwork2.util.DomHelper$StartHandle r.startElement(DomHelper.java:304)
    at org.apache.xerces.parsers.AbstractSAXParser.startE lement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startEl ement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.sc anStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NS ContentDispatcher.scanRootElementHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at com.opensymphony.xwork2.util.DomHelper.parse(DomHe lper.java:121)
    at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.loadConfigurationFiles(XmlConfigur ationProvider.java:830)
    at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.loadDocuments(XmlConfigurationProv ider.java:131)
    at com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.init(XmlConfigurationProvider.java :100)
    at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reload(DefaultConfiguration.java:130)
    at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:52)
    at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:395)
    at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:452)
    at org.apache.struts2.dispatcher.FilterDispatcher.ini t(FilterDispatcher.java:201)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.init(FilterInstanceWrapper.java:142)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager ._loadFilter(WebAppFilterManager.java:473)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .loadFilter(WebAppFilterManager.java:387)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .getFilterInstanceWrapper(WebAppFilterManager.java :246)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .getFilterChain(WebAppFilterManager.java:304)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:733)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:681)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .invokeFilters(WebAppFilterManager.java:696)
    at com.ibm.ws.wswebcontainer.filter.WebAppFilterManag er.invokeFilters(WebAppFilterManager.java:118)
    at com.ibm.ws.webcontainer.extension.DefaultExtension Processor.invokeFilters(DefaultExtensionProcessor. java:791)
    at com.ibm.ws.webcontainer.extension.DefaultExtension Processor.handleRequest(DefaultExtensionProcessor. java:472)
    at com.ibm.ws.wswebcontainer.extension.DefaultExtensi onProcessor.handleRequest(DefaultExtensionProcesso r.java:113)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3391)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:811)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)

  2. Re: Struts 2 IncompatibleClassChangeError on WebSphere 6.1

    I got further with the application by using xml-api-1.3.04.jar instead of xml-apis-1.0.b2.jar. Still testing, but this concerns me since the application worked with xml-apis-1.0.b2.jar but without the WebServcies Feature Pack.

+ Reply to Thread