[ http://issues.apache.org/jira/browse/TUSCANY-874?page=comments#action_12443659 ] Raymond Feng commented on TUSCANY-874: --------------------------------------
I have to take a workaround to remove jsr-173_api-1.0.jar (pulled in from jaxb-impl 2.0.3) from the WEB-INF/lib. It contains StAX API 1.0 which conflicts with stax_1.0.1.jar. The later is rquired by AXIOM. I also fixed several other issues in the JAXB tranformers and now I can get the web app working. I'll commit the changes into SVN. > NPE occurs on binding.ws when JAXB data type gets involved in service > --------------------------------------------------------------------- > > Key: TUSCANY-874 > URL: http://issues.apache.org/jira/browse/TUSCANY-874 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core > Affects Versions: Java-M2 > Reporter: Li Shen > Assigned To: Raymond Feng > Attachments: helloworldws.zip > > > Caused by: java.lang.NullPointerException > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:570) > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) > at > org.apache.tuscany.databinding.jaxb.JAXBContextHelper.createJAXBContext(JAXBContextHelper.java:55) > at > org.apache.tuscany.databinding.jaxb.JAXB2Node.transform(JAXB2Node.java:45) > Enclosed web app is modified from the axis2 helloworldws sample and it could > be used to reproduce this error: > 1) "mvn package" and deploy the generated war to tomcat > 2) visit http://localhost:8080/sample-helloworldws/helloworld.jsp to check > for error -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
