It's not a dependency on Java6, it's a dependency on StAX (java.xml.stream). That happens to be included in Java6, but it is also included in Java5 Enterprise Edition and is available separately for use on Java5 Standard Edition and J2SE 1.4.

It seems the SDO implementation now has a hard runtime dependency on StAX in much the same way as it does on EMF so you need to make sure a StAX implementation is available at runtime. You can:
* run on Java6
* run on Java 5 EE
* run on 1.4 and supply your own StAX implementation

If you choose to supply your own implementation, you can use the java.xml.stream API classes from Sun or use the open-source version stax-api v1.0 or 1.0.1. Similarly you can use the reference implementation (from Sun/BEA), or use an open-source implementation such as woodstox.

--
Jeremy

On Feb 13, 2007, at 1:40 PM, Robbie Minshall wrote:

By compiling with a jar that has Java 6 dependancy we are ourselves creating a dependancy on Java 6 for the SDO impl jar. This seems to be a problem to
me.   No ?

Robbie





On 2/13/07, Yang ZHONG <[EMAIL PROTECTED]> wrote:

sdo/impl/pom.xml declares dependency on stax-api, that's required to
compile
sdo impl.
StAX impl will be required for runtime if StAX support code path is
executed.


On 2/13/07, Robbie Minshall <[EMAIL PROTECTED]> wrote:
>
> Paul identified a problem in
> https://issues.apache.org/jira/browse/TUSCANY-1105 which appears to
> indicate
> that the sdo impl jar has dependancies upon Java 6 for some code paths. > This scneario is not limited to the CTS execution but should probably
> present itSelf at least when using the
> org.apache.tuscany.sdo.helper.XMLDocumentImpl.load code path.
>
> Paul points out that the issue is that the wstx-asl-3.2.0.jar and
> stax-api-1.0.1.jar files are built using java 6 since they contain
> references to javax.xml.stream.XMLStreamException which only exists in
> Java
> 6.
>
> The pom file indicates that stax is for optional features, and that
> woodstax
> is for testing purposes.
>
> Do we need these dependancies ?
>
> Should we use a different version of these dependancies ?
>
> What solutions do people suggest for resolving this issue ?
>
> cheers,
> Robbie
>
>
>
> --
> * * * Charlie * * *
> Check out some pics of little Charlie at
> http://www.flickr.com/photos/[EMAIL PROTECTED]/sets/
>
> Check out Charlie's al crapo blog at http:// robbieminshall.blogspot.com
>
> * * * Addresss * * *
> 1914 Overland Drive
> Chapel Hill
> NC 27517
>
> * * * Number * * *
> 919-225-1553
>



--

Yang ZHONG




--
* * * Charlie * * *
Check out some pics of little Charlie at
http://www.flickr.com/photos/[EMAIL PROTECTED]/sets/

Check out Charlie's al crapo blog at http:// robbieminshall.blogspot.com

* * * Addresss * * *
1914 Overland Drive
Chapel Hill
NC 27517

* * * Number * * *
919-225-1553


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

Reply via email to