[ 
https://issues.apache.org/jira/browse/AXIS2-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499132
 ] 

Bruce Hitchcock commented on AXIS2-2676:
----------------------------------------

"Can you please remove the sun jaxb jars from axis2, add the jaxme jars and 
give it a shot?"

Steps executed to test the above:

* Downloaded and install Apache Tomcat  v5.5.23 per standard deployment
* Started Tomcat
* Dowloaded and install Axis2 v1.1.1 per standard deployement
* Validated Axis2 installation per Adminastration webapp 'Validate' 
* Stopped Tomcat
* Removed axis.war from webapps/ so changes would not be over written went 
Tomcat starts back up
* Removed the following files from ${TOMCAT_HOME}/webapps/axis/WEB-INF/lib

   - jaxb-xjc-2.0.2.jar
   - jaxb-impl-2.0.2.jar
   - jaxb-api-2.0.2.jar

* Added the following files to ${TOMCAT_HOME/webapps/axis/WEB-INF/lib

   - jaxme2-0.5.2.jar
   - jaxmeapi-0.5.2.jar
   - jaxmejs-0.5..2.jar
   - jaxmexs-0.5.2.jar

* Started Tomcat 
* Validated Axis2 installation per Adminastration webapp 'Validate' 
* Uploaded Service per Administartion webapp 'Upload Service' 
* Validated service installation via 'Available Services'
* Debug webservice client  hitting endpoint

The following exception occurs:

javax.xml.bind.JAXBException: 
"com.comcast.cable.sams.tts.service.xao.getcustomerticket" doesnt contain 
ObjectFactory.class or jaxb.index

when execution unmarshaller.unmarshal() as below

InputSource inputSource = new InputSource(toInputStream(inputXml));
JAXBContext context = JAXBContext.newInstance(xmlInstance);
Unmarshaller unmarshaller = context.createUnmarshaller();
bean = unmarshaller.unmarshal(inputSource);

So, replacing jaxb jar with jaxme jar produces same results. I also reproduced 
with Axis2 v1.2.

However, Axis2 v1.2 does not include the jaxb .jar in the distro. I do include 
all jaxme .jar's in may .aar in the lib/.

I believe there is some classpath issue here. I will also give this 
http://wso2.org/blog/dims/1131 a try.

I will work to build a example like the examples in the Axis distro which 
demostrates this issue and share them here. Let me work on that. 





> Issues using two different implementations of JABX in Axis and WS
> -----------------------------------------------------------------
>
>                 Key: AXIS2-2676
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2676
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>         Environment: Reproduced on Mac OSX, Solaris 10, and Windows. Using 
> Java 1.4.2 and 1.6 update 1.
>            Reporter: Bruce Hitchcock
>             Fix For: 1.1.1
>
>
> I believe there is a conflict issue when a client  WS uses Apache JaxMe or 
> JAXBI inside of Axis 2 1.1.1. My WS service successfully runs outside the 
> container via junits. However, the following occurs when deployed inside Axis2
> Here is a stack trace.  The service operation is defined to take an xs:string 
> and return an xs:string. Both are really XML however, the marshalling and 
> unmarshalling is handled inside of XAOHelper. This is where the exception 
> happens. I believe "doesnt contain ObjectFactory.class or jaxb.index" is 
> particlular to the JAXB implementation inside the jar files include with 
> Axis2 (Sun's impl ?) and not to Apache JaxMe.  This might be and issue of not 
> specifing and implementation at run time. Any help will be greatly 
> appreciated.
> 2007-05-15 22:27:49,651 [http-8080-Processor25] ERROR 
> com.comcast.cable.sams.tts.service.xao.XAOHelper  - 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
> 2007-05-15 22:27:49,651 [http-8080-Processor25] ERROR 
> com.comcast.cable.sams.tts.service.xao.XAOHelper  - 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
> 2007-05-15 22:27:49,651 [http-8080-Processor25] ERROR 
> org.apache.axis2.rpc.receivers.RPCMessageReceiver  - 
> javax.xml.bind.JAXBException: 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
> java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at 
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:118)
>       at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
>       at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
>       at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
>       at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>       at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.Exception: javax.xml.bind.JAXBException: 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
>       at com.comcast.cable.sams.tts.service.xao.XAOHelper.marshall(Unknown 
> Source)
>       at 
> com.comcast.cable.sams.tts.service.xao.handler.GetCustomerTicketResponseXAOHandler.beanToXml(Unknown
>  Source)
>       at 
> com.comcast.cable.sams.tts.service.xao.handler.GetCustomerTicketResponseXAOHandler.getXml(Unknown
>  Source)
>       at 
> com.comcast.cable.sams.tts.service.GetCustomerTicketPivot.execute(GetCustomerTicketPivot.java:172)
>       at 
> com.comcast.cable.sams.tts.service.CustomerTicketService.getCustomerTicket(CustomerTicketService.java:61)
>       ... 25 more
> Caused by: javax.xml.bind.JAXBException: 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
>       at 
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:119)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
>       at javax.xml.bind.ContextFinder.find(Unknown Source)
>       at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
>       at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
>       at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
>       ... 30 more
> 2007-05-15 22:27:49,651 [http-8080-Processor25] DEBUG 
> org.apache.axis2.transport.http.AxisServlet  - org.apache.axis2.AxisFault: 
> javax.xml.bind.JAXBException: 
> "com.comcast.cable.sams.tts.service.xao.getcustomerticketresponse" doesnt 
> contain ObjectFactory.class or jaxb.index
> 2007-05-15 22:27:49,651 [http-8080-Processor25] DEBUG 
> org.apache.axis2.addressing.AddressingHelper  - isReplyRedirected: FaultTo is 
> null. Returning isReplyRedirected
> 2007-05-15 22:27:49,651 [http-8080-Processor25] DEBUG 
> org.apache.axis2.addressing.AddressingHelper  - isReplyRedirected: ReplyTo is 
> null. Returning false
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking pre-condition for Phase 
> "soapmonitorPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Invoking phase "soapmonitorPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking post-conditions for phase 
> "soapmonitorPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking pre-condition for Phase 
> "OperationOutFaultPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Invoking phase "OperationOutFaultPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking post-conditions for phase 
> "OperationOutFaultPhase"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking pre-condition for Phase 
> "PolicyDetermination"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Invoking phase "PolicyDetermination"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking post-conditions for phase 
> "PolicyDetermination"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking pre-condition for Phase "MessageOut"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Invoking phase "MessageOut"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Invoking Handler 'AddressingOutHandler' in 
> Phase 'MessageOut'
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.handlers.addressing.AddressingHandler  - Addressing is 
> disabled .....
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axis2.engine.Phase  - Checking post-conditions for phase 
> "MessageOut"
> 2007-05-15 22:27:49,682 [http-8080-Processor25] DEBUG 
> org.apache.axiom.om.util.StAXUtils  - XMLStreamWriter is 
> com.ctc.wstx.sw.SimpleNsStreamWriter

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to