2 Replies Latest reply on Jan 10, 2009 4:56 PM by Ales Justin

    Google reference not found

    glm Newbie

      Hi alesj;

      Yesterday I downloaded the DZone_1_0 example code and built it then moved the jboss-demos-classloading.jar, jboss-demos-ioc.jar into the sandbox directory and everything deployed. Then I put the jboss-demos-models.jar in the sandbox and got the following error on deployment:


      JBoss-MC-Demo DEBUG [09-01-2009 10:29:36] AbstractDeploymentContext - Added component springPojo to vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos
      -models.jar
      JBoss-MC-Demo DEBUG [09-01-2009 10:29:36] AbstractDeploymentContext - Added component GuicePlugin#1 to vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-de
      mos-models.jar
      JBoss-MC-Demo DEBUG [09-01-2009 10:29:36] KernelDeploymentDeployer - Error during deploy: vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.ja
      r

      org.jboss.deployers.spi.DeploymentException: Error deploying: vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
      at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
      at org.jboss.demos.bootstrap.MainDeployerHelper.process(MainDeployerHelper.java:86)
      at org.jboss.demos.bootstrap.HDScanner.scan(HDScanner.java:153)
      at org.jboss.demos.bootstrap.HDScanner.run(HDScanner.java:113)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.NoClassDefFoundError: com/google/inject/AbstractModule
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:62)
      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:509)
      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:469)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:467)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:444)
      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:254)
      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:148)
      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:256)
      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1099)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:735)
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)
      at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
      ... 29 more
      Caused by: java.lang.ClassNotFoundException: com.google.inject.AbstractModule



      Where should I find this required class? I should also mention that previously I was getting a referenced error for the SpringFrameWork as well but I found the SpringFrameWork library,org.springframework.beans-3.0.0.M1.jar online and included it in my classpath. This fixed the springframework missing class error but the com.google.inject.AbstractModule is still missing. Was there a requirements list of third party libraries that I missed?

      Regards,

      GMarsh