2 Replies Latest reply on Mar 18, 2009 6:01 AM by jaikiran pai

    Deployment issue Error during deploy: vfszip

    Rajul Goyal Newbie

      Hello

      We are deploying a .ear file in JbossAS 5.
      During deployment, I am facing issue as "Error during deploy: vfszip".
      Later in console, it says "java.lang.NoClassDefFoundError : abc".

      However I have checked that the class abc is present in the ear & MANIFEST.MF contains classpath which has this jar.

      Kindly suggest.
      Thanks in advance.

        • 1. Re: Deployment issue Error during deploy: vfszip
          Rajul Goyal Newbie

          The error in full is as follows

          15:11:45,722 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:D:/JBOSS/jboss-5.0.0.GA/server/default/deploy/Application.ear state=PreReal mode=Manual
          requiredState=Real
          org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/D:JBOSS/jboss-5.0.0.GA/server/default/deploy/Application.ear/codelist-ejb.jar
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
          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.doInstallParentFirst(DeployersImpl.java:1210)
          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.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
          at org.jboss.Main.boot(Main.java:209)
          at org.jboss.Main$1.run(Main.java:547)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.NoClassDefFoundError: abc
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          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:251)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          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:251)
          at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB$WebServiceDeclarationAdapter.getComponentClass(WebServiceDeployerEJB.java:172)
          at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB$WebServiceDeclarationAdapter.getAnnotation(WebServiceDeployerEJB.java:159)
          at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookEJB3.isWebServiceBean(JAXWSDeployerHookEJB3.java:123)
          at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookEJB3.isWebServiceDeployment(JAXWSDeployerHookEJB3.java:110)
          at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:41)
          at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
          at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:112)
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
          ... 19 more
          15:11:45,863 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

          *** CONTEXTS IN ERROR: Name -> Error

          vfszip:/D:/JBOSS/jboss-5.0.0.GA/server/default/deploy/Application.ear -> java.lang.NoClassDefFoundError: abc


          15:11:45,894 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
          15:11:45,925 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
          15:11:45,925 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 1m:39s:704ms

          Thanks

          • 2. Re: Deployment issue Error during deploy: vfszip
            jaikiran pai Master

             

            However I have checked that the class abc is present in the ear & MANIFEST.MF contains classpath which has this jar.


            Where is the jar file placed within the EAR? You can place the jar file in the EAR/lib folder and it will be available in the classpath.