Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-440

NoClassDefFoundError in ironjacamar-validator-maven

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta3
    • 1.0.0.Beta2
    • Validator
    • None
    • Hide

      Added the following lines to the pom.xml of the rar-builder pom.xml

      <build>
      <plugins>
      <plugin>
      <groupId>org.jboss.ironjacamar</groupId>
      <artifactId>ironjacamar-validator-maven</artifactId>
      <version>1.0.0.Beta2</version>
      <executions>
      <execution>
      <goals>
      <goal>validate</goal>
      </goals>
      </execution>
      </executions>
      <configuration>
      <outputDir>.</outputDir>
      <rarFile>target/rule-rar-1.0.2-SNAPSHOT.rar</rarFile>
      </configuration>
      </plugin>
      </plugins>
      ....
      </build>

      <pluginRepositories>
      <pluginRepository>
      <id>jboss-nexus</id>
      <url>http://repository.jboss.org/nexus/content/groups/public</url>
      </pluginRepository>
      </pluginRepositories>

      Show
      Added the following lines to the pom.xml of the rar-builder pom.xml <build> <plugins> <plugin> <groupId>org.jboss.ironjacamar</groupId> <artifactId>ironjacamar-validator-maven</artifactId> <version>1.0.0.Beta2</version> <executions> <execution> <goals> <goal>validate</goal> </goals> </execution> </executions> <configuration> <outputDir>.</outputDir> <rarFile>target/rule-rar-1.0.2-SNAPSHOT.rar</rarFile> </configuration> </plugin> </plugins> .... </build> <pluginRepositories> <pluginRepository> <id>jboss-nexus</id> <url> http://repository.jboss.org/nexus/content/groups/public </url> </pluginRepository> </pluginRepositories>

      The maven validator plugin fails with an exception:

      [INFO] Building jar: D:\Projects\iocc-rule\rule-rar\target\rule-rar-1.0.2-SNAPSH
      OT.rar
      [INFO] [ironjacamar:validate

      {execution: default}

      ]
      java.lang.NoClassDefFoundError: org/jboss/jca/common/api/metadata/common/CommonPool
      at org.jboss.jca.common.metadata.MetadataFactory.getStandardMetaData(MetadataFactory.java:74)
      at org.jboss.jca.validator.Validation.validate(Validation.java:143)
      at org.jboss.jca.validator.maven.ValidatorMojo.execute(ValidatorMojo.java:72)
      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: org.jboss.jca.common.api.metadata.common.CommonPool
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
      at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      ... 21 more

              jeff.zhang_jira Jeff Zhang (Inactive)
              schiewe_jira Jürgen Schiewe (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: