0 Replies Latest reply on Sep 24, 2015 11:13 AM by Carl Vancer

    jaxb 1.x class loading issue in EAP 6.3

    Carl Vancer Newbie

      Hi,

       

      Having issues with class not found issues when deploying Maven jar on an legacy application that is working fine locally under JBoss Developer Studio.  I'm sure it's a class loading issue, but can't determine the root cause. I'm using jaxb

       

      I'm using jaxb1-impl to make it backwards compatible with jaxb1 generated bindings, but having jaxb loading issues as shown below.  Any ideas?

       

      <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb1-impl</artifactId>
      <version>2.2.5.1</version>
      </dependency>

       

       

      Nested exception javax.xml.bind.JAXBException <start>

      javax.xml.bind.JAXBException: class com.acme.binding.facilitylist.request.impl.SCSMSGImpl nor any of its super class is known to this context.

      Stack trace <start>

      javax.xml.bind.JAXBException: class com.acme.binding.facilitylist.request.impl.SCSMSGImpl nor any of its super class is known to this context.

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:588)

        at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:482)

        at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)

        at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)

        at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:74)

        at com.acme.util.JAXBUtils.marshalAsString(JAXBUtils.java:49)

        at com.acme.common.AbstractRequestXMLMsg.marshal(AbstractRequestXMLMsg.java:846)

        at com.acme.request.FacilityListRequestXMLMsg.generateMsg(FacilityListRequestXMLMsg.java:52)

        at com.acme.transp.adapter.FacilityListReqResAdapter.getRequestString(FacilityListReqResAdapter.java:38)

        at com.tdbank.imsconnect.transp.TransProcessorIMSConnectImpl.execute(TransProcessorIMSConnectImpl.java:122)

        at com.acme.transp.adapter.FacilityListReqResAdapter.execute(FacilityListReqResAdapter.java:70)

        at com.acme.component.FacilityBean.getFacilityListResultPage(FacilityBean.java:263)

        at com.acme.facilitylist.FacilityListViewPageAction.execute(FacilityListViewPageAction.java:93)

        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

        at com.acme.common.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:232)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

        at com.acme.common.MainRequestProcessor.process(MainRequestProcessor.java:76)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

        at com.acme.common.MainServlet.process(MainServlet.java:72)

        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482)

        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

        at com.acme.common.MainRequestProcessor.processForwardConfig(MainRequestProcessor.java:335)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

        at com.acme.common.MainRequestProcessor.process(MainRequestProcessor.java:76)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

        at com.acme.common.MainServlet.process(MainServlet.java:72)

        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482)

        at com.acme.servlet.FidFundsTransferServlet.doExecute(FidFundsTransferServlet.java:68)

        at com.acme.servlet.FidFundsTransferServlet.doGet(FidFundsTransferServlet.java:85)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)

        at java.lang.Thread.run(Thread.java:745)

      Stack trace <end>

      Nested exception javax.xml.bind.JAXBException <end>

      ca.tdbank.bps.request.RequestException <end>

      >>>

      <<< http-/127.0.0.1:9080-5:1443107151618:ERROR    :com.acme.common.MainExceptionHandler::: Error Code [system.error.general]

      com.acme.exception.SystemException: Unexpected Host request error. Error creating facility list request XML document.

        at com.acme.component.FacilityBean.getFacilityListResultPage(FacilityBean.java:307)

        at com.acme.facilitylist.FacilityListViewPageAction.execute(FacilityListViewPageAction.java:93)

        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

        at com.acme.common.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:232)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

        at com.acme.common.MainRequestProcessor.process(MainRequestProcessor.java:76)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

        at com.acme.common.MainServlet.process(MainServlet.java:72)

        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482)

        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

        at com.acme.common.MainRequestProcessor.processForwardConfig(MainRequestProcessor.java:335)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

        at com.acme.common.MainRequestProcessor.process(MainRequestProcessor.java:76)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

        at com.acme.common.MainServlet.process(MainServlet.java:72)

        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:620)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:553)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:482)

        at com.acme.servlet.FidFundsTransferServlet.doExecute(FidFundsTransferServlet.java:68)

        at com.acme.servlet.FidFundsTransferServlet.doGet(FidFundsTransferServlet.java:85)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)

        at java.lang.Thread.run(Thread.java:745)