Luciano, the conclusion that we came to in this thread ... http://www.mail-archive.com/[email protected]/msg12442.html is that, the dependency must be made explicit in the using project. I admit it seems a bit painful.
Regards, Kelvin. On 19/02/07, Luciano Resende <[EMAIL PROTECTED]> wrote:
That indeed fix the issue on DAS side, even tough I think this should be fixed on the SDO side. Looking at the thread you mentioned ( http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg14026.html), looks like SDO does have the dependency on it's pom, but with <scope>provided</scope> and also a <optional>true</optional>, and this requires every project that has a dependency on this SDO functionality MUST add STAX as a dependency, by changing the SDO pom to have STAX as a non optional dependency and changing the scope to <scope>compile</scope> solves the problem on the SDO level, other then having to duplicate the same changes on every other project that uses SDO (s.g CTS, DAS, etc). Should the scope of the STAX depedency be changed on the SDO POM then ? Also, by having this as provided on the SDO level, does it mean that this functionality is never unit tested ? Tougths ? -- Luciano Resende http://people.apache.org/~lresende On 2/18/07, Yang ZHONG <[EMAIL PROTECTED]> wrote: > > Sorry, it was > http://issues.apache.org/jira/browse/TUSCANY-< > http://issues.apache.org/jira/browse/TUSCANY-1119> > *1105* > > > On 2/18/07, Yang ZHONG <[EMAIL PROTECTED]> wrote: > > > > There're some info on the email thread: > > > http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg14026.html > > and the JIRA: > > http://issues.apache.org/jira/browse/TUSCANY-1119 > > > > > > On 2/18/07, Luciano Resende <[EMAIL PROTECTED]> wrote: > > > > > > Just noticed that DAS build is failing on trunk, and was wondering if > > > anyone > > > is seeing the same... > > > Is this something related to SDO dependencies on JDK 6 ? > > > > > > ------------------------------------------------------- > > > T E S T S > > > ------------------------------------------------------- > > > Running org.apache.tuscany.das.rdb.test.suites.AllTestsDerby > > > Setting up for Derby run > > > Ending Derby run > > > Tests run: 154, Failures: 0, Errors: 70, Skipped: 0, Time elapsed: > > > 21.898sec <<< FAILURE! > > > testDeleteAndCreate( > > > org.apache.tuscany.das.rdb.test.CrudWithChangeHistory) > > > Time elapsed: 0.431 sec <<< ERROR! > > > java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException > > > at > > > > > > > org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl$SDOXMLLoadImpl.makeDefaultHandler > > > (SDOXMLResourceImpl.java :300) > > > at > > > org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.createDefaultHandler( > > > XMLLoadImpl.java:305) > > > at > > > org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl.getDefaultHandler( > > > XMLParserPoolImpl.java:186) > > > at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load( > > > XMLLoadImpl.java > > > :230) > > > at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad( > > > XMLResourceImpl.java:666) > > > at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load ( > > > XMLResourceImpl.java:634) > > > at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( > > > XMLDocumentImpl.java:238) > > > at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load( > > > XMLDocumentImpl.java:216) > > > at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( > > > XMLHelperImpl.java:78) > > > at org.apache.tuscany.sdo.helper.XMLHelperImpl.load( > > > XMLHelperImpl.java:72) > > > at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig ( > > > ConfigUtil.java:52) > > > at org.apache.tuscany.das.rdb.impl.DASImpl.<init>( DASImpl.java > > > :102) > > > at org.apache.tuscany.das.rdb.impl.DASFactoryImpl.createDAS( > > > DASFactoryImpl.java:39) > > > at > > > > > > > org.apache.tuscany.das.rdb.test.CrudWithChangeHistory.testDeleteAndCreate > > > ( > > > CrudWithChangeHistory.java:54) > > > at > > > > > > > org.apache.tuscany.das.rdb.test.CrudWithChangeHistory.testDeleteAndCreate > > > ( > > > CrudWithChangeHistory.java :54) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke( > > > NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke ( > > > DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at junit.framework.TestCase.runTest(TestCase.java:154) > > > at junit.framework.TestCase.runBare(TestCase.java :127) > > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > > at junit.framework.TestResult.runProtected(TestResult.java :124) > > > at junit.framework.TestResult.run(TestResult.java:109) > > > at junit.framework.TestCase.run(TestCase.java:118) > > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > > at junit.framework.TestSuite.run(TestSuite.java:203) > > > at junit.framework.TestSuite.runTest (TestSuite.java:208) > > > at junit.framework.TestSuite.run(TestSuite.java:203) > > > > > > -- > > > Luciano Resende > > > http://people.apache.org/~lresende > > > > > > > > > > > -- > > > > Yang ZHONG > > > > > -- > > Yang ZHONG >
