BTW - My problem went away with the SNAPSHOT. Actually, I switched back off the snapshot because I was hitting a different problem. When I went back to the 3.3 version, the problem didn't resurface. So something with the temporary change to 3.3.1-SNAPSHOT must have fixed it.
On Tue, Dec 16, 2008 at 10:51 PM, Ryan Moquin <[email protected]>wrote: > Sure, I'll give that a shot. Thanks!! > > > On Tue, Dec 16, 2008 at 10:16 PM, Freeman Fang <[email protected]>wrote: > >> Hi Ryan, >> >> Could you try with the 3.3.1 snapshot [1]? >> I believe this problem already get fixed. In the snapshot the >> servciemix-http use the 4.0 jbi-maven-plugin. >> >> [1] >> http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/apache-servicemix/3.3.1-SNAPSHOT/ >> >> Freeman >> >> >> Ryan Moquin wrote: >> >>> So, I made my antrun plugin copy the jar to my hotdeploy directory and >>> rename it to a zip file. Now, my build fails for a different reason at a >>> different point: >>> >>> 2008-12-16 14:00:58,922 [main ] INFO >>> DefaultListableBeanFactory - >>> Pre-instantiating singletons in >>> >>> org.springframework.beans.factory.support.defaultlistablebeanfact...@9f4025 >>> : >>> defining beans >>> [org.apache.servicemix.http.endpoints.HttpConsumerEndpoint,marshaller]; >>> root >>> of factory hierarchy >>> [FATAL ERROR] >>> >>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo#execute() >>> caused a linkage error (java.lang.IncompatibleClassChangeError) >>> and may be out-of-date. Check the realms: >>> [FATAL ERROR] Plugin realm = >>> app0.child-container[org.apache.servicemix.tooling: >>> jbi-maven-plugin] urls[0] = >>> >>> file:/C:/m2_repo/repository/org/apache/servicemix/tooling/jbi-maven-plugin/3.2.3/jbi-maven-plugin-3.2.3.jar >>> >>> The interesting thing about this error is that I'm NOT using the 3.2.3 >>> version of the plugin. The project generating this error is using >>> servicemix-http. This explains a lot. So apparently I'm hitting issues >>> because even though I'm using 4.0 for the plugin, components must be >>> pulling >>> in 3.2.3. >>> >>> I'll keep looking but I'm not sure why 3.2.3 of the plugin is getting >>> pulled >>> into my build.. apparently it's causing me all my issues and I don't know >>> why this is only now happening. >>> >>> Ryan >>> >>> On Tue, Dec 16, 2008 at 12:45 PM, Ryan Moquin <[email protected] >>> >wrote: >>> >>> >>> >>>> Also, I'm using Maven 2.0.9, Servicemix 3.3 and the JBI plugin 4.0. >>>> >>>> >>>> On Tue, Dec 16, 2008 at 12:43 PM, Ryan Moquin <[email protected] >>>> >wrote: >>>> >>>> >>>> >>>>> Ok, so I'm restarting this question since some of my other thread might >>>>> have been confusing due to some confusion I had and since I have more >>>>> details now that narrow down this problem. The issue I'm having, out >>>>> of the >>>>> blue, is that my jbi-maven-plugin for my Service Archive projects, no >>>>> longer >>>>> generates a zip file on subsequent builds. So the first time I build >>>>> my >>>>> service archive, I will get a zip file (I'm copying it to my servicemix >>>>> hotdeploy using ant, for convenience), but the second time I run it, I >>>>> won't >>>>> get a zip file. I actually have to delete my plugin from my maven2 >>>>> repository in order to get it to work again. I haven't made any >>>>> changes to >>>>> my environment, such as maven2 versions or servicemix versions, so I'm >>>>> not >>>>> sure what's triggering this or if anyone else has had a similar issue. >>>>> >>>>> Here is the output: >>>>> >>>>> When I start with no jbi-maven-plugin in my Maven2 repository, this is >>>>> what happens: >>>>> >>>>> working after delete: >>>>> >>>>> [INFO] [jbi:jbi-service-assembly] >>>>> [INFO] Generating service assembly >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip >>>>> >>>>> [INFO] Building jar: >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip >>>>> [INFO] [jar:jar] >>>>> [INFO] Building jar: >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar >>>>> [INFO] [antrun:run {execution: default}] >>>>> [INFO] Executing tasks >>>>> [copy] Copying 1 file to c:\servicemix\hotdeploy >>>>> [INFO] Executed tasks >>>>> [INFO] [install:install] >>>>> [INFO] Installing >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar >>>>> to C:\m2_repo\re >>>>> >>>>> >>>>> pository\test\services\my-service-sa\2.0-SNAPSHOT\my-service-sa-2.0-SNAPSHOT.zip >>>>> [INFO] Installing >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip >>>>> to C:\m2_repo\re >>>>> >>>>> >>>>> pository\test\services\my-service-sa\2.0-SNAPSHOT\my-service-sa-2.0-SNAPSHOT.zip >>>>> >>>>> If I rerun the build after the first success, I get this: >>>>> >>>>> [INFO] [jbi:jbi-service-assembly] >>>>> [INFO] [jar:jar] >>>>> [INFO] Building jar: >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar >>>>> [INFO] [antrun:run {execution: default}] >>>>> [INFO] Executing tasks >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [ERROR] BUILD ERROR >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Error executing ant tasks >>>>> >>>>> Embedded error: Warning: Could not find file >>>>> >>>>> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip >>>>> to copy. >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] For more information, run Maven with the -e switch >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Total time: 2 minutes 53 seconds >>>>> [INFO] Finished at: Tue Dec 16 12:11:56 EST 2008 >>>>> [INFO] Final Memory: 117M/227M >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> I'm a little confused on why the zip doesn't get built unless I delete >>>>> the >>>>> plugin? >>>>> >>>>> Thanks, >>>>> Ryan >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >> >> >
