Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 56974 invoked from network); 25 May 2007 16:12:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 16:12:41 -0000 Received: (qmail 26153 invoked by uid 500); 25 May 2007 16:12:42 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 26088 invoked by uid 500); 25 May 2007 16:12:42 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 26077 invoked by uid 99); 25 May 2007 16:12:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 09:12:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 09:12:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A953714058 for ; Fri, 25 May 2007 09:12:16 -0700 (PDT) Message-ID: <17634994.1180109536564.JavaMail.jira@brutus> Date: Fri, 25 May 2007 09:12:16 -0700 (PDT) From: "Bruce Hitchcock (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2676) Issues using two different implementations of JABX in Axis and WS In-Reply-To: <18723304.1179322398289.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org