Hi Rajika, I also faced a similar issue sometime back. The solution was to remove some realm jars specified in the error log from m2 repository. E.g :- urls[1] = file:/home/rajika/.m2/ repository/org/apache/maven/archetype/archetype-packaging/2.0-alpha-4/archetype-packaging-2.0-alpha-4.jar urls[2] = file:/home/rajika/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
I am not 100% sure about the cause for this error. But it worked after removing above jars from m2 repository and doing a online build. Probably due to some corrupted jar files Hope this is useful. Thanks AmilaJ On Tue, Jan 4, 2011 at 9:37 AM, Rajika Kumarasiri <[email protected]> wrote: > > > On Tue, Jan 4, 2011 at 8:31 AM, Samisa Abeysinghe <[email protected]> wrote: > >> You need to build Axiom with tests enabled. > > > I did that, if you see the log you'll notice that. > > Rajika > >> >> >> On Mon, Jan 3, 2011 at 9:56 PM, Rajika Kumarasiri <[email protected]>wrote: >> >>> It seems the problem is local to me. Upon building axiom separately fixed >>> the problem. Thanks Heshan for your note. >>> >>> Rajika >>> >>> On Mon, Jan 3, 2011 at 12:41 PM, Heshan Suriyaarachchi >>> <[email protected]>wrote: >>> >>>> Hi Rajika, >>>> >>>> I was able to build Carbon trunk's Axiom successfully (with tests). >>>> >>>> On Mon, Jan 3, 2011 at 9:45 AM, Rajika Kumarasiri <[email protected]>wrote: >>>> >>>>> I am running into the following build error while building the >>>>> dependencies in the carbon trunk. Any clue to fix the problem ? >>>>> >>>>> Rajika >>>>> >>>>> T E S T S >>>>> ------------------------------------------------------- >>>>> There are no tests to run. >>>>> >>>>> Results : >>>>> >>>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >>>>> >>>>> [INFO] [bundle:bundle] >>>>> [INFO] Preparing source:jar >>>>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive >>>>> invocation. >>>>> [INFO] No goals needed for project - skipping >>>>> [INFO] [source:jar {execution: attach-sources}] >>>>> [INFO] Building jar: >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-build/target/axiom-osgi-build-1.2.11-SNAPSHOT-sources.jar >>>>> [INFO] [apache-rat:check {execution: default}] >>>>> [INFO] Exclude: src/test/resources/** >>>>> [INFO] [install:install] >>>>> [INFO] Installing >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-build/target/axiom-osgi-build-1.2.11-SNAPSHOT.jar >>>>> to >>>>> /home/rajika/.m2/repository/org/apache/ws/commons/axiom/axiom-osgi-build/1.2.11-SNAPSHOT/axiom-osgi-build-1.2.11-SNAPSHOT.jar >>>>> [INFO] Installing >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-build/target/axiom-osgi-build-1.2.11-SNAPSHOT-sources.jar >>>>> to >>>>> /home/rajika/.m2/repository/org/apache/ws/commons/axiom/axiom-osgi-build/1.2.11-SNAPSHOT/axiom-osgi-build-1.2.11-SNAPSHOT-sources.jar >>>>> [INFO] [bundle:install] >>>>> [INFO] Parsing file:/home/rajika/.m2/repository/repository.xml >>>>> [INFO] Installing >>>>> org/apache/ws/commons/axiom/axiom-osgi-build/1.2.11-SNAPSHOT/axiom-osgi-build-1.2.11-SNAPSHOT.jar >>>>> [INFO] Writing OBR metadata >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Building Axiom OSGI Test Suite - Run >>>>> [INFO] task-segment: [clean, install] >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] [clean:clean] >>>>> [INFO] Deleting >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/target >>>>> [INFO] [remote-resources:process {execution: default}] >>>>> [INFO] snapshot >>>>> org.apache.ws.commons.axiom:axiom-osgi-build:1.2.11-SNAPSHOT: checking for >>>>> updates from com.springsource.repository.bundles.external >>>>> [INFO] snapshot >>>>> org.apache.ws.commons.axiom:axiom-osgi-build:1.2.11-SNAPSHOT: checking for >>>>> updates from apache.snapshots >>>>> [INFO] [resources:resources] >>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>>>> [INFO] skip non existing resourceDirectory >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/src/main/resources >>>>> [INFO] Copying 3 resources >>>>> [INFO] [compiler:compile] >>>>> [INFO] No sources to compile >>>>> [INFO] [resources:testResources] >>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>>>> [INFO] skip non existing resourceDirectory >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/src/test/resources >>>>> [INFO] Copying 3 resources >>>>> [INFO] [compiler:testCompile] >>>>> [INFO] No sources to compile >>>>> [INFO] [surefire:test] >>>>> [INFO] Surefire report directory: >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/target/surefire-reports >>>>> >>>>> ------------------------------------------------------- >>>>> T E S T S >>>>> ------------------------------------------------------- >>>>> There are no tests to run. >>>>> >>>>> Results : >>>>> >>>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >>>>> >>>>> [INFO] [jar:jar] >>>>> [INFO] Building jar: >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/target/axiom-osgi-run-1.2.11-SNAPSHOT.jar >>>>> [INFO] Preparing source:jar >>>>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive >>>>> invocation. >>>>> [INFO] No goals needed for project - skipping >>>>> [INFO] [source:jar {execution: attach-sources}] >>>>> [INFO] Building jar: >>>>> /home/rajika/projects/carbon/trunk/dependencies/axiom/modules/axiom-osgi/axiom-osgi-run/target/axiom-osgi-run-1.2.11-SNAPSHOT-sources.jar >>>>> [INFO] [junit4osgi:test {execution: default}] >>>>> >>>>> ------------------------------------------------------- >>>>> T E S T S >>>>> ------------------------------------------------------- >>>>> The current artifact axiom-osgi-run-1.2.11-SNAPSHOT.jar is not a valid >>>>> bundle >>>>> Running org.apache.axiom.test.ServiceTest >>>>> Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec >>>>> [FATAL ERROR] >>>>> org.apache.felix.ipojo.junit4osgi.plugin.Junit4osgiPlugin#execute() >>>>> caused a >>>>> linkage error (java.lang.LinkageError) and may be out-of-date. Check the >>>>> realms: >>>>> [FATAL ERROR] Plugin realm = >>>>> app0.child-container[org.apache.felix:maven-junit4osgi-plugin:1.0.0] >>>>> urls[0] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/maven-junit4osgi-plugin/1.0.0/maven-junit4osgi-plugin-1.0.0.jar >>>>> urls[1] = >>>>> file:/home/rajika/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar >>>>> urls[2] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.apache.felix.framework/1.6.1/org.apache.felix.framework-1.6.1.jar >>>>> urls[3] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.osgi.core/1.2.0/org.osgi.core-1.2.0.jar >>>>> urls[4] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.osgi.compendium/1.2.0/org.osgi.compendium-1.2.0.jar >>>>> urls[5] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.osgi.foundation/1.2.0/org.osgi.foundation-1.2.0.jar >>>>> urls[6] = >>>>> file:/home/rajika/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar >>>>> urls[7] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.apache.felix.ipojo/1.2.0/org.apache.felix.ipojo-1.2.0.jar >>>>> urls[8] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.apache.felix.ipojo.metadata/1.2.0/org.apache.felix.ipojo.metadata-1.2.0.jar >>>>> urls[9] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.apache.felix.ipojo.handler.extender/1.2.0/org.apache.felix.ipojo.handler.extender-1.2.0.jar >>>>> urls[10] = >>>>> file:/home/rajika/.m2/repository/org/apache/felix/org.apache.felix.ipojo.junit4osgi/1.0.0/org.apache.felix.ipojo.junit4osgi-1.0.0.jar >>>>> urls[11] = >>>>> file:/home/rajika/.m2/repository/net/sourceforge/cobertura/cobertura/1.9/cobertura-1.9.jar >>>>> urls[12] = file:/home/rajika/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar >>>>> urls[13] = file:/home/rajika/.m2/repository/asm/asm/2.2.1/asm-2.2.1.jar >>>>> urls[14] = >>>>> file:/home/rajika/.m2/repository/asm/asm-tree/2.2.1/asm-tree-2.2.1.jar >>>>> urls[15] = >>>>> file:/home/rajika/.m2/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar >>>>> urls[16] = >>>>> file:/home/rajika/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar >>>>> urls[17] = >>>>> file:/home/rajika/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar >>>>> urls[18] = http://felix.extensions:9/ >>>>> [FATAL ERROR] Container realm = plexus.core >>>>> urls[0] = >>>>> file:/home/rajika/installations/maven2/apache-maven-2.1.0/lib/maven-2.1.0-uber.jar >>>>> urls[1] = >>>>> file:/home/rajika/.m2/repository/org/apache/maven/archetype/archetype-packaging/2.0-alpha-4/archetype-packaging-2.0-alpha-4.jar >>>>> urls[2] = >>>>> file:/home/rajika/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [ERROR] FATAL ERROR >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] loader constraint violation: loader (instance of >>>>> org/codehaus/classworlds/RealmClassLoader) previously initiated loading >>>>> for >>>>> a different type with name "org/codehaus/plexus/util/xml/XMLWriter" >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Trace >>>>> java.lang.LinkageError: loader constraint violation: loader (instance >>>>> of org/codehaus/classworlds/RealmClassLoader) previously initiated loading >>>>> for a different type with name "org/codehaus/plexus/util/xml/XMLWriter" >>>>> at java.lang.ClassLoader.defineClass1(Native Method) >>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:616) >>>>> at >>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >>>>> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) >>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:303) >>>>> at >>>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) >>>>> at >>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) >>>>> at >>>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248) >>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) >>>>> at >>>>> org.apache.felix.ipojo.junit4osgi.plugin.XMLReport.generateReport(XMLReport.java:194) >>>>> at >>>>> org.apache.felix.ipojo.junit4osgi.plugin.Junit4osgiPlugin.executeTest(Junit4osgiPlugin.java:573) >>>>> at >>>>> org.apache.felix.ipojo.junit4osgi.plugin.Junit4osgiPlugin.invokeRun(Junit4osgiPlugin.java:447) >>>>> at >>>>> org.apache.felix.ipojo.junit4osgi.plugin.Junit4osgiPlugin.execute(Junit4osgiPlugin.java:253) >>>>> at >>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) >>>>> at >>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) >>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) >>>>> 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:597) >>>>> at >>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>>>> at >>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Total time: 3 minutes 11 seconds >>>>> [INFO] Finished at: Mon Jan 03 09:33:47 IST 2011 >>>>> [INFO] Final Memory: 192M/612M >>>>> >>>>> >>>>> _______________________________________________ >>>>> Carbon-dev mailing list >>>>> [email protected] >>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Heshan Suriyaarachchi >>>> Software Engineer >>>> WSO2 Inc.; http://wso2.com/ >>>> >>>> Blog: http://heshans.blogspot.com/ >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> [email protected] >>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> Thanks, >> Samisa... >> >> Samisa Abeysinghe >> VP Engineering >> WSO2 Inc. >> http://wso2.com >> http://wso2.org >> >> >> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
