geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Forrest Xia (JIRA)" <j...@apache.org>
Subject [jira] Closed: (GERONIMO-5477) Daytrader web assembly plugins cannot be compiled caused by NoClassDefFoundError
Date Thu, 19 Aug 2010 02:43:15 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Forrest Xia closed GERONIMO-5477.
---------------------------------

    Fix Version/s: 3.0
       Resolution: Fixed

This problem disappears in 0819 build, so close this jira.

> Daytrader web assembly plugins cannot be compiled caused by NoClassDefFoundError
> --------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5477
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5477
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: sample apps
>    Affects Versions: 3.0
>         Environment: ubuntu 8.04
> sun jdk 1.6.0_20
> geronimo samples trunk code
>            Reporter: Forrest Xia
>            Priority: Minor
>             Fix For: 3.0
>
>
> steps:
> 1. check out samples trunk code
> 2. compile it with command: mvn clean install
> 3. When compiling daytrader web assembly plugins, a NoClassDefFoundError throws out like
this:
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] javax/jms/Destination
> javax.jms.Destination
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: javax/jms/Destination
> 	at java.lang.Class.getDeclaredFields0(Native Method)
> 	at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
> 	at java.lang.Class.getDeclaredFields(Class.java:1743)
> 	at org.apache.xbean.finder.AbstractFinder.findAnnotatedFields(AbstractFinder.java:253)
> 	at org.apache.geronimo.j2ee.deployment.annotation.ResourceAnnotationHelper.processResource(ResourceAnnotationHelper.java:99)
> 	at org.apache.geronimo.j2ee.deployment.annotation.ResourceAnnotationHelper.processAnnotations(ResourceAnnotationHelper.java:80)
> 	at org.apache.geronimo.connector.deployment.AdminObjectRefBuilder.buildNaming(AdminObjectRefBuilder.java:133)
> 	at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:69)
> 	at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.configureBasicWebModuleAttributes(AbstractWebModuleBuilder.java:642)
> 	at org.apache.geronimo.jetty8.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:469)
> 	at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:700)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:250)
> 	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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:869)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
> 	at org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(PackageMojo.java:560)
> 	at org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:376)
> 	at org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:243)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 	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.jms.Destination
> 	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
> 	at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
> 	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> 	... 43 more
> Though daytrader web assemblies does not use JMS function, but its dependent modules
might include some classes which refer to JMS resource, while the car-maven-plugin will scan
code for any JMS related annotation, then leads to this error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message