On Fri, Jan 30, 2009 at 2:19 PM, ant elder <[email protected]> wrote:
> > > On Fri, Jan 30, 2009 at 2:16 PM, Simon Laws <[email protected]>wrote: > >> >> >> On Fri, Jan 30, 2009 at 2:05 PM, ant elder <[email protected]> wrote: >> >>> >>> >>> On Fri, Jan 30, 2009 at 1:45 PM, Simon Laws >>> <[email protected]>wrote: >>> >>>> >>>> >>>> On Fri, Jan 30, 2009 at 1:32 PM, ant elder <[email protected]> wrote: >>>> >>>>> Making it a compile dependency sounds right to me, i was using JDK6 so >>>>> didn't notice. >>>>> >>>>> As an FYI as of r739271 trunk builds cleanly for me from an empty maven >>>>> repository with JDK6, so "mvn clean install" or "mvn clean install >>>>> -Pdistribution" to get the all distribution archives built. >>>>> >>>>> I'm still getting tons of problems with eclipse:eclipse and getting the >>>>> modules imported into eclipse cleanly. >>>>> >>>>> ...ant >>>>> >>>>> >>>>> On Fri, Jan 30, 2009 at 1:17 PM, Mark Combellack < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi ant, >>>>>> >>>>>> >>>>>> >>>>>> Thanks for starting to work on getting Tuscany 2.x to cleanly build. I >>>>>> pulled your latest changes and started to get a failure in the core >>>>>> module. >>>>>> >>>>>> >>>>>> >>>>>> In commit 739245 you added a runtime dependency on stax. With that >>>>>> change, I can no longer compile the core module on JDK 1.5. I get the >>>>>> following message (full error output at end of email): >>>>>> >>>>>> >>>>>> >>>>>> [INFO] Resolving OSGi bundles >>>>>> >>>>>> [ERROR] [Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0", Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0", Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0"] >>>>>> >>>>>> >>>>>> >>>>>> The version of Java I am running is: >>>>>> >>>>>> >>>>>> >>>>>> java version "1.5.0_16" >>>>>> >>>>>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02) >>>>>> >>>>>> Java HotSpot(TM) Server VM (build 1.5.0_16-b02, mixed mode) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> If I switch to JDK 1.6, the core module compiles without this error. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> My question is should this dependency actually be a compile time >>>>>> dependency? If I do this change, the module compiles on JDK 1.5 >>>>>> >>>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> >>>>>> >>>>>> Mark >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> [INFO] Resolving OSGi bundles >>>>>> >>>>>> [ERROR] [Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0", Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0", Missing Constraint: Import-Package: javax.xml.stream; >>>>>> version="0.0.0"] >>>>>> >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> [ERROR] BUILD FAILURE >>>>>> >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> [INFO] Compilation failure >>>>>> >>>>>> >>>>>> >>>>>> org/apache/tuscany/sca/core/invocation/impl/CallbackReferenceImpl.java:[1,0] >>>>>> The type javax.xml.stream.XMLStreamReader cannot be resolved. It is >>>>>> indirectly referenced from required .class files >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java:[21,872] >>>>>> The import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java:[58,2329] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/CompositeContext.java:[28,994] The >>>>>> import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/CompositeContext.java:[127,4693] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/CompositeContext.java:[141,5014] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[1,0] >>>>>> The type javax.xml.stream.XMLStreamWriter cannot be resolved. It is >>>>>> indirectly referenced from required .class files >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[1,0] >>>>>> The type javax.xml.stream.XMLStreamException cannot be resolved. It is >>>>>> indirectly referenced from required .class files >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[31,1091] >>>>>> Only a type can be imported. javax.xml.stream.XMLInputFactory resolves >>>>>> to a >>>>>> package >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[32,1132] >>>>>> Only a type can be imported. javax.xml.stream.XMLOutputFactory resolves >>>>>> to a >>>>>> package >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[33,1174] >>>>>> The import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[34,1215] >>>>>> The import javax.xml.stream.XMLStreamWriter cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[79,3726] >>>>>> XMLInputFactory cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[80,3777] >>>>>> XMLOutputFactory cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[87,4193] >>>>>> xmlInputFactory cannot be resolved or is not a field >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[87,4232] >>>>>> XMLInputFactory cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[88,4269] >>>>>> xmlOutputFactory cannot be resolved or is not a field >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[88,4309] >>>>>> XMLOutputFactory cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[227,11185] >>>>>> XMLStreamWriter cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[227,11216] >>>>>> xmlOutputFactory cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[248,11977] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[248,12008] >>>>>> xmlInputFactory cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[255,12227] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CompositeContextImpl.java:[270,12824] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/CallableReferenceExt.java:[25,928] >>>>>> The import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/CallableReferenceExt.java:[66,1857] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[23,908] >>>>>> The import javax.xml.stream.XMLStreamException cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[24,952] >>>>>> The import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[25,993] >>>>>> The import javax.xml.stream.XMLStreamWriter cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[41,1734] >>>>>> The type ReferenceParameterProcessor must implement the inherited >>>>>> abstract >>>>>> method StAXArtifactProcessor<ReferenceParameters>.read(XMLStreamReader) >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[41,1734] >>>>>> The type ReferenceParameterProcessor must implement the inherited >>>>>> abstract >>>>>> method >>>>>> StAXArtifactProcessor<ReferenceParameters>.write(ReferenceParameters, >>>>>> XMLStreamWriter) >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[63,2530] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[63,2588] >>>>>> XMLStreamException cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[73,3086] >>>>>> XMLStreamWriter cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/assembly/impl/ReferenceParameterProcessor.java:[74,3153] >>>>>> XMLStreamException cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[28,1059] >>>>>> The import javax.xml.stream.XMLStreamReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[90,4212] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[104,4559] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[276,10580] >>>>>> xmlReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[282,11027] >>>>>> xmlReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[283,11103] >>>>>> xmlReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[284,11135] >>>>>> xmlReader cannot be resolved >>>>>> >>>>>> org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java:[525,21693] >>>>>> XMLStreamReader cannot be resolved to a type >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> > -----Original Message----- >>>>>> >>>>>> > From: [email protected] [mailto:[email protected]] >>>>>> >>>>>> > Sent: 30 January 2009 11:32 >>>>>> >>>>>> > To: [email protected] >>>>>> >>>>>> > Subject: svn commit: r739245 - >>>>>> /tuscany/java/sca/modules/core/pom.xml >>>>>> >>>>>> > >>>>>> >>>>>> > Author: antelder >>>>>> >>>>>> > Date: Fri Jan 30 11:31:58 2009 >>>>>> >>>>>> > New Revision: 739245 >>>>>> >>>>>> > >>>>>> >>>>>> > URL: http://svn.apache.org/viewvc?rev=739245&view=rev >>>>>> >>>>>> > Log: >>>>>> >>>>>> > Add missing transitive dependency on stax >>>>>> >>>>>> > >>>>>> >>>>>> > Modified: >>>>>> >>>>>> > tuscany/java/sca/modules/core/pom.xml >>>>>> >>>>>> > >>>>>> >>>>>> > Modified: tuscany/java/sca/modules/core/pom.xml >>>>>> >>>>>> > URL: >>>>>> >>>>>> > >>>>>> http://svn.apache.org/viewvc/tuscany/java/sca/modules/core/pom.xml?rev=739 >>>>>> >>>>>> > 245&r1=739244&r2=739245&view=diff >>>>>> >>>>>> > >>>>>> ========================================================================== >>>>>> >>>>>> > ==== >>>>>> >>>>>> > --- tuscany/java/sca/modules/core/pom.xml (original) >>>>>> >>>>>> > +++ tuscany/java/sca/modules/core/pom.xml Fri Jan 30 11:31:58 2009 >>>>>> >>>>>> > @@ -60,6 +60,13 @@ >>>>>> >>>>>> > </dependency> >>>>>> >>>>>> > >>>>>> >>>>>> > <dependency> >>>>>> >>>>>> > + <groupId>org.apache.geronimo.specs</groupId> >>>>>> >>>>>> > + <artifactId>geronimo-stax-api_1.0_spec</artifactId> >>>>>> >>>>>> > + <version>1.0.1</version> >>>>>> >>>>>> > + <scope>runtime</scope> >>>>>> >>>>>> > + </dependency> >>>>>> >>>>>> > + >>>>>> >>>>>> > + <dependency> >>>>>> >>>>>> > <groupId>org.codehaus.woodstox</groupId> >>>>>> >>>>>> > <artifactId>wstx-asl</artifactId> >>>>>> >>>>>> > <version>3.2.4</version> >>>>>> >>>>>> > >>>>>> >>>>>> >>>>>> >>>>> Hi Ant >>>> >>>> You don't need eclipse:eclipse anymore. Give mvn -Peclipse a try and see >>>> if that helps. >>>> >>>> Simon >>>> >>>> >>>> >>> >>> Thats better, but still 2908 errors. I probably need to refresh the >>> target platform thing but how do you do that now? >>> >>> ...ant >>> >>> >>> >> Import the pde target distribution into your workspace as a project. Then >> open up the "target" file and open up the features/target.target file. In >> the top right hand corner there is a "import taget" link, or similar (can't >> quite remember what it's called). Press the link and Eclipse sets up your >> target OSGI environment based on the jars listed in the target file. >> >> I'll just repeat this now myself to make sure what I'm telling you is >> correct as things have moved about a bit since I last did it on Wednesday. >> >> Simon >> > > Thats a module i deleted this morning :) See > http://apache.markmail.org/message/uqwmigdapce5xnds > > There is a target in distribution\all\target\features but not sure how do > you get that into eclipse > > ...ant > Ah, I was afraid I hadn't caught up with things yet. You'll have to run mvn -Peclipse on the PDE target first then import the module into Eclipse. Simon
