Simon Nash wrote:
Please review and vote on RC2 of the SCA Travel Sample 1.0 release.
The distribution artifacts and RAT report are available for review at:
http://people.apache.org/~nash/tuscany/travelsample-1.0-RC2/
The release tag is at:
https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/tags/travelsample-1.0-RC2/
There are no maven artifacts included in this release.
Simon
I downloaded RC2 and built and ran it on JDK 6 with no problems.
I then tried building it and running it on JDK 5 using Ant. Unfortunately
I ran into two problems with this.
1. The build failed because of a typo in the antdefs.xml file. The
problem is in line 211 which refers to the variable ${jaxws-tools-jar}
instead of the correct variable name ${#jaxws-tools-dir}. Here's the
error message from the Ant build of creditcard-payment-jaxb:
#wsimport-jaxws:
[mkdir] Created dir:
E:\testrc2\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-jaxb\target\jaxws-source
BUILD FAILED
E:\testrc2\tuscany-scatours-1.0\travelsample\build.xml:23: The following
error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\build.xml:42: The following
error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\contributions\build.xml:23: The
following error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\contributions\build.xml:48: The
following error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\antdefs.xml:738: The following
error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\antdefs.xml:138: The following
error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-jaxb\build.xml:24:
The following error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\antdefs.xml:151: The following
error occurred while executing this line:
E:\testrc2\tuscany-scatours-1.0\travelsample\antdefs.xml:207:
E:\testrc2\tuscany-scatours-1.0\travelsample\contributions\creditcard-payment-jaxb\${jaxws-tools-dir}
not found.
2. I fixed the typo and continued the build. It completed OK, so I tried to
run the notification-ws scenario. This failed because the jaxws-api jar
wasn't on the classpath. Here's the error message:
[java] Publishing SMS Gateway Service as web service:
http://localhost:8081/SMSGatewayService
[java] Press Ctrl^C to terminate...
[java] Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/ws/Endpoint
[java] at
com.tuscanyscatours.smsgateway.SMSGatewayServiceBootstrap.main(SMSGatewayServiceBootstrap.java:29)
[java] Java Result: 1
This is caused by a faulty classpath setting in the antdefs.xml file.
The fix isn't too difficult but there's a bit more to do than changing
one character.
I think it's important for the travel sample to build and run on JDK 5,
so I'm unfortunately -1 on releasing it without fixing these problems.
I'm working on a fix now and I'm hoping to put up a new RC later today
or tomorrow morning (after thorough testing with JDK 5). Because the
release won't now happen until June, I'm also going to change the May dates
to June in the README etc. files.
Simon