1 Reply Latest reply on Oct 20, 2008 4:15 AM by Gert Vanthienen

    Servicemix 4 problem - linkage error

    David Sikter Newbie

      Hi,

       

      I'm trying to use Servicemix 4 and migrate my earlier servicemix 3.3.1.6 bidning components. After various work with the pom:files, I still get a strange error I can't trace down. The error only occurs when I try to register a name space, using the following xml in my pom:

       

       

      <plugin>

      <groupId>org.apache.xbean</groupId>

      <artifactId>maven-xbean-plugin</artifactId>

      <version>${xbean.version}</version>

      <executions>

      <execution>

      <configuration>

      &lt;namespace&gt;http://www.myorg.se/mycomponent/1.0</namespace>

      &lt;/configuration&gt;

      &lt;goals&gt;

      &lt;goal&gt;mapping&lt;/goal&gt;

      &lt;/goals&gt;

      &lt;/execution&gt;

      &lt;/executions&gt;

      &lt;/plugin&gt;

       

       

       

       

       

      This generates the build output:

       

       

       

      NOTE: Maven is executing in offline mode. Any artifacts not already in your local

      repository will be inaccessible.

       

      Scanning for projects...

      -


      Building FastTrack : Orc Protocol ServiceMix adapter

          task-segment:

      -


      xbean:mapping {execution: default}

      org.apache.xbean.maven.XBeanMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:

      Plugin realm = app0.child-container[org.apache.xbean:maven-xbean-plugin]

      urls[0] = file:/C:/Documents and Settings/dasi/.m2/repository/org/apache/xbean/maven-xbean-plugin/3.4.3/maven-xbean-plugin-3.4.3.jar

      urls[1] = file:/C:/Documents and Settings/dasi/.m2/repository/org/apache/xbean/xbean-spring/3.4.3/xbean-spring-3.4.3.jar

      urls[2] = file:/C:/Documents and Settings/dasi/.m2/repository/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar

      urls[3] = file:/C:/Documents and Settings/dasi/.m2/repository/org/springframework/spring-beans/2.0.5/spring-beans-2.0.5.jar

      urls[4] = file:/C:/Documents and Settings/dasi/.m2/repository/org/springframework/spring-core/2.0.5/spring-core-2.0.5.jar

      urls[5] = file:/C:/Documents and Settings/dasi/.m2/repository/org/springframework/spring-context/2.0.5/spring-context-2.0.5.jar

      urls[6] = file:/C:/Documents and Settings/dasi/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar

      urls[7] = file:/C:/Documents and Settings/dasi/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

      urls[8] = file:/C:/Documents and Settings/dasi/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

      urls[9] = file:/C:/Documents and Settings/dasi/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar

      urls[10] = file:/C:/Documents and Settings/dasi/.m2/repository/org/apache/maven/maven-archiver/2.0/maven-archiver-2.0.jar

      urls[11] = file:/C:/Documents and Settings/dasi/.m2/repository/ant/ant/1.6.2/ant-1.6.2.jar

      urls[12] = file:/C:/Documents and Settings/dasi/.m2/repository/com/thoughtworks/qdox/qdox/1.6.3/qdox-1.6.3.jar

      urls[13] = file:/C:/Documents and Settings/dasi/.m2/repository/jmock/jmock/1.0.0/jmock-1.0.0.jar

      Container realm = plexus.core

      urls[0] = file:/C:/Programming/Tools/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar

      -


      FATAL ERROR

      -


      javax/transaction/SystemException

      javax.transaction.SystemException

      -


      Trace

      java.lang.NoClassDefFoundError: javax/transaction/SystemException

      at java.lang.Class.getDeclaredConstructors0(Native Method)

      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

      at java.lang.Class.getConstructors(Class.java:1459)

      at com.thoughtworks.qdox.JavaDocBuilder.createBinaryClass(JavaDocBuilder.java:183)

      at com.thoughtworks.qdox.JavaDocBuilder.getClassByName(JavaDocBuilder.java:119)

      at com.thoughtworks.qdox.model.ClassLibrary.getClassByName(ClassLibrary.java:37)

      at com.thoughtworks.qdox.model.Type.getJavaClass(Type.java:98)

      at com.thoughtworks.qdox.model.JavaClass.getSuperJavaClass(JavaClass.java:86)

      at org.apache.xbean.spring.generator.QdoxMappingLoader.loadElement(QdoxMappingLoader.java:178)

      at org.apache.xbean.spring.generator.QdoxMappingLoader.loadElements(QdoxMappingLoader.java:143)

      at org.apache.xbean.spring.generator.QdoxMappingLoader.loadNamespaces(QdoxMappingLoader.java:101)

      at org.apache.xbean.spring.generator.QdoxMappingLoader.loadNamespaces(QdoxMappingLoader.java:96)

      at org.apache.xbean.maven.XBeanMojo.execute(XBeanMojo.java:185)

      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)

      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)

      Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException

      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

      ... 31 more

      -


      Total time: 2 seconds

      Finished at: Thu Sep 25 14:23:11 CEST 2008

      Final Memory: 11M/21M

      -


       

      C:\PROGRA~2\eclipsews\ServiceMix\FastTrackOrcProtocolBC\op-bc&gt;

       

       

       

      Any ideas about this error is?

      thanks//David

       

        • 1. Re: Servicemix 4 problem - linkage error
          Gert Vanthienen Novice

          David,

           

          We recently modified the JBI Components and shared library to be independent of any specific JBI container.  Can you try adding this dependency to your pom.xml?

           

          <dependency>
              <groupId>org.apache.geronimo.specs</groupId>
              <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
              <version>1.1</version>
          </dependency>
          

           

          Regards,

           

          Gert