java.lang.NoClassDefFoundError: org/glassfish/embeddable/GlassFishException

JBoss Issue Tracker | hantsy bai | 6 years ago
  1. 0

    I created the a weld based java ee6 project using weld archetype. I followed this guide to create a java ee 6 web application. http://seamframework.org/Documentation/CDIQuickstartForMavenUsers But when I run test. mvn clean test -Parq-glassfish-embedded And get the following errors. ------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.184s [INFO] Finished at: Fri Apr 08 14:30:41 GMT+08:00 2011 [INFO] Final Memory: 4M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project rainforest-ex22: Could not resolve dep endencies for project com.ltree:rainforest-ex22:war:1.0-SNAPSHOT: Failure to fin d org.jboss.arquillian.container:arquillian-glassfish-embedded-3:jar:1.0.0.Alpha 5 in https://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ----------------------------------- I browse the jboss maven repository directly, there is no org.jboss.arquillian.container:arquillian-glassfish-embedded-3:jar:1.0.0.Alpha5. There is a org.jboss.arquillian.container:arquillian-glassfish-embedded-3:jar:1.0.0.Alpha4 or org.jboss.arquillian.container:arquillian-glassfish-embedded-3.1:jar:1.0.0.Alpha5. So I think the dependency is needed to be updated to arquillian 1.0 Alpha 5. ----------------------------------------------------------------------------- <dependencies> <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-glassfish-embedded-3.1</artifactId> <version>${arquillian.version}</version> <scope>test</scope> </dependency> <!-- This imports the Java EE 6 runtime libraries provided by GlassFish Embedded --> <dependency> <groupId>org.glassfish.extras</groupId> <artifactId>glassfish-embedded-all</artifactId> <version>3.1</version> <scope>provided</scope> </dependency> </dependencies> --------------------------------------------------------------------------------

    JBoss Issue Tracker | 6 years ago | hantsy bai
    java.lang.NoClassDefFoundError: org/glassfish/embeddable/GlassFishException
  2. 0

    pdf library seems to have error

    GitHub | 4 years ago | processing-bugs
    java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
  3. 0

    Soapui transfer problem; getting NoClassDefFoundError | ansaurus

    ansaurus.com | 1 year ago
    java.lang.NoClassDefFoundError: org/custommonkey/xmlunit/DifferenceListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    使用XFire+Spring构建Web Service(二) - 阿蜜果 - BlogJava

    blogjava.net | 1 year ago
    java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEntity
  6. 0

    Running a RESTlet Tutorial, I'm receiving java.lang.NoClassDefFoundError

    Stack Overflow | 6 years ago | Mido
    java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector

    24 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.glassfish.embeddable.GlassFishException

      at java.net.URLClassLoader$1.run()
    2. Java RT
      Class.getConstructor
      1. java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      4. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      6. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      7. java.lang.Class.getDeclaredConstructors0(Native Method)
      8. java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      9. java.lang.Class.getConstructor0(Class.java:2699)
      10. java.lang.Class.getConstructor(Class.java:1657)
      10 frames
    3. org.jboss.arquillian
      SecurityActions$1.run
      1. org.jboss.arquillian.impl.SecurityActions$1.run(SecurityActions.java:77)
      2. org.jboss.arquillian.impl.SecurityActions$1.run(SecurityActions.java:74)
      2 frames
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. org.jboss.arquillian
      ContainerRegistryCreator.createRegistry
      1. org.jboss.arquillian.impl.SecurityActions.getConstructor(SecurityActions.java:73)
      2. org.jboss.arquillian.impl.DynamicServiceLoader.createInstance(DynamicServiceLoader.java:268)
      3. org.jboss.arquillian.impl.DynamicServiceLoader.onlyOne(DynamicServiceLoader.java:94)
      4. org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:69)
      5. org.jboss.arquillian.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:67)
      5 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. org.jboss.arquillian
      ConfigurationRegistrar.loadConfiguration
      1. org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
      2. org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
      3. org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
      4. org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
      5. org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
      6. org.jboss.arquillian.impl.core.ManagerImpl.bindAndFire(ManagerImpl.java:221)
      7. org.jboss.arquillian.impl.core.InstanceImpl.set(InstanceImpl.java:74)
      8. org.jboss.arquillian.impl.bootstrap.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:58)
      8 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. org.jboss.arquillian
      DeployableTestBuilder.build
      1. org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
      2. org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)
      3. org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)
      4. org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)
      5. org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)
      6. org.jboss.arquillian.impl.core.ManagerImpl.<init>(ManagerImpl.java:91)
      7. org.jboss.arquillian.impl.core.ManagerBuilder.create(ManagerBuilder.java:74)
      8. org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:97)
      9. org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:67)
      9 frames
    10. Arquillian TestRunner JUnit Core
      Arquillian.<init>
      1. org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:82)
      1 frame
    11. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    12. JUnit
      ClassRequest.getRunner
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
      3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
      5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
      6 frames
    13. JUnit4 Provider
      JUnit4DirectoryTestSuite.createTestSet
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45)
      2. org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
      2 frames
    14. SureFire
      Surefire.run
      1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
      2. org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
      3. org.apache.maven.surefire.Surefire.run(Surefire.java:156)
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    16. SureFire
      SurefireBooter.main
      1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      2 frames