Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: org.jboss.libra.LibraException in AS 7 #1

Open
wolfc opened this issue Aug 16, 2012 · 1 comment
Open

Comments

@wolfc
Copy link
Owner

wolfc commented Aug 16, 2012

When trying to use Libra within a deployment, the deployment will fail as follows:

12:42:00,380 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC00001: Failed to start service jboss.deployment.unit."remote-ejb-distinct-name-jar-test-case.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."remote-ejb-distinct-name-jar-test-case.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "remote-ejb-distinct-name-jar-test-case.jar"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]
    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class org.jboss.as.test.integration.ejb.remote.distinctname.StatelessEcho with ClassLoader ModuleClassLoader for Module "deployment.remote-ejb-distinct-name-jar-test-case.jar:main" from Service Module Loader
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
    at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
    ... 5 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/libra/LibraException
    at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_26]
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_26]
    at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_26]
    at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
    ... 10 more
Caused by: java.lang.ClassNotFoundException: org.jboss.libra.LibraException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [rt.jar:1.6.0_26]
    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_26]
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [rt.jar:1.6.0_26]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [rt.jar:1.6.0_26]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [rt.jar:1.6.0_26]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [rt.jar:1.6.0_26]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:395) [jboss-modules.jar:1.1.2.GA]
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.2.GA]
    ... 15 more
@wolfc
Copy link
Owner Author

wolfc commented Aug 16, 2012

As a work-around instead of trying to use the Attach API to initiate Libra, use the javaagent command line argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant