On Wed, Oct 13, 2010 at 9:45 AM, Simon Nash <[email protected]> wrote: > Simon Laws wrote: >> >> On Tue, Oct 12, 2010 at 5:43 PM, Simon Nash <[email protected]> wrote: >>> >>> Raymond Feng wrote: >>>> >>>> Are there any newer versions in public repos? >>>> /________________________________________________________________ >>>> Raymond >>>> Feng >>>> [email protected] <mailto:[email protected]> >>>> /Apache Tuscany PMC member and committer: tuscany.apache.org >>>> Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com >>>> Personal Web Site: www.enjoyjava.com >>>> / >>>> ________________________________________________________________/ >>>> >>>> On Oct 12, 2010, at 6:36 AM, ant elder wrote: >>>> >>>>> The Tuscany runtime seems to now require jaxws-rt-2.1.7.jar or you get >>>>> various ws or xml failures but that jar isn't easily available in any >>>>> repo now, the only one i can find it in is the old java.net >>>>> <http://java.net> Maven 1.x >>>>> legacy repo but thats so slow the download always times out. Does >>>>> anyone know why we need this or if theres a different version that we >>>>> can use which is more easily available? >>>>> >>>>> ...ant >>> >>> Where does this dependency come from? I recently went through 1.6.1 >>> checking for this and I was able to change all these dependencies >>> to jaxws-api except for a couple with test scope. >>> >>> Simon >>> >>> >> >> In 2.x it appears in a number of places where native JAX-WS endpoints are >> used. >> >> >> testing/compliance-tests/assembly/pom.xml: >> <artifactId>jaxws-rt</arti >> factId> >> >> testing/compliance-tests/assembly/target/test-classes/META-INF/maven/org.apache. >> tuscany.sca/tuscany-otests-asm-tests/pom.xml: >> <artifactId>jaxws-rt</a >> rtifactId> >> >> testing/compliance-tests/binding-ws/target/test-classes/META-INF/maven/org.apach >> e.tuscany.sca/tuscany-otests-sca-ws-tests/pom.xml: >> <artifactId>jaxws- >> rt</artifactId> >> >> testing/compliance-tests/java-caa/target/test-classes/META-INF/maven/org.apache. >> tuscany.sca/tuscany-otests-sca-j-caa-tests/pom.xml: >> <artifactId>jaxws >> -rt</artifactId> >> >> testing/compliance-tests/java-ci/target/test-classes/META-INF/maven/org.apache.t >> uscany.sca/tuscany-otests-sca-j-ci-tests/pom.xml: >> <artifactId>jaxws-r >> t</artifactId> >> >> testing/compliance-tests/policy/target/test-classes/META-INF/maven/org.apache.tu >> scany.sca/tuscany-otests-policy-tests/pom.xml: >> <artifactId>jaxws-rt</ >> artifactId> >> testing/itest/databindings/jaxb-bottom-up/pom.xml: >> <artifactId>jaxws- >> rt</artifactId> >> testing/itest/databindings/jaxb-top-down/pom.xml: >> <artifactId>jaxws-r >> t</artifactId> >> testing/itest/ws/external-client/pom.xml: >> <artifactId>jaxws-rt</artif >> actId> >> >> I can't speak directly to the otests but I don't see why we can't look >> to get rid of it from the Tuscany specific ones to start with. >> >> Simon >> > It should be possible to change itest/databindings/jaxb-bottom-up and > itest/databindings/jaxb-top-down to use jaxws-api instead of jaxws-rt. > I've already made this change in 1.6.1 under revision r1006269. >
A difference in 2.x is that we require JDK6 and use the xml dependencies that are included in that, and they don't necessarily work with other versions of things. So for example changing to use the jaxws-api dependency as used in 1.6.1 gives me the following exception: Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api .JAXBRIContext Looking at the dependency tree the Tuscany module databinding-jaxb is using com.sun.xml.bind:jaxb-impl:jar:2.1.12 so i guess we have to have dependencies that are compatible with that, or change databinding-jaxb to use just the base JDK classes. ...ant ...ant
