[jboss-user] [Microcontainer] - Possible issue with WebBeansWebUrlIntegrationDeployer during

beve do-not-reply at jboss.com
Tue May 5 06:00:29 EDT 2009


Hi, 

we using the branch Branch_5_x and noticed something that I've not seen before and wanted to ask if this is the expected behavior.
As part of our deployment (.esb archives) we sometimes create JBossWebMetaData to have a webservice deployed exposing a service in the esb as a web service.

Upon undeployment I get this error:
Exception:
09:18:05,087 INFO  [EsbDeployment] Stopping EBS Deployment 'Quickstart_publish_as_webservice'
  | 09:18:05,217 INFO  [JDBCDataStore] Generated token 'authToken:E05882F0-3944-11DE-AA08-96330774DB7F' for user: 'jbossesb/JBoss ESB User'
  | 09:18:05,248 INFO  [DeleteBindingFunction] Publisher 'jbossesb' deleted BindingTemplate with key: D9DBE5C0-3944-11DE-AA08-B20152A53F4F
  | 09:18:05,265 INFO  [EsbDeployment] Destroying ESB Deployment 'Quickstart_publish_as_webservice'
  | 09:18:05,266 WARN  [ServiceMessageCounterLifecycleResource] Calling cleanup on existing service message counters for identity ID-7
  | 09:18:05,316 INFO  [EsbDeployment] Setting contract publishers : null
  | 09:18:05,324 INFO  [QueueService] Queue[/queue/quickstart_publish_as_webservice_Request_esb_reply] stopped
  | 09:18:05,329 INFO  [QueueService] Queue[/queue/quickstart_publish_as_webservice_Request_esb] stopped
  | 09:18:05,331 INFO  [TomcatDeployment] undeploy, ctxPath=/Quickstart_publish_as_webservice
  | 09:18:05,348 INFO  [DefaultEndpointRegistry] remove: jboss.ws:context=Quickstart_publish_as_webservice,endpoint=ESBServiceSample_HelloWorldPubService
  | 09:18:05,364 ERROR [WebBeansWebUrlIntegrationDeployer] Error during undeploy: vfszip:/opt/jboss/as/src/Branch_5_x/build/output/jboss-5.1.0.GA/server/default/deploy/Quickstart_publish_as_webservice.esb/jbm-queue-service.xml
  | java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
  |     at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
  |     at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:616)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:763)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.isLeaf(ZipEntryContext.java:956)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.isLeaf(ZipEntryHandler.java:129)
  |     at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:677)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
  |     at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
  |     at org.jboss.deployers.vfs.plugins.structure.VFSDeploymentResourceLoaderImpl.getFile(VFSDeploymentResourceLoaderImpl.java:62)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContext.getFile(AbstractVFSDeploymentContext.java:352)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit.getFile(AbstractVFSDeploymentUnit.java:101)
  |     at org.jboss.deployers.vfs.plugins.classloader.PathUrlIntegrationDeployer.isIntegrationDeployment(PathUrlIntegrationDeployer.java:48)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.isIntegrationDeployment(UrlIntegrationDeployer.java:183)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.undeploy(UrlIntegrationDeployer.java:143)
  |     at org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer.undeploy(AbstractOptionalVFSRealDeployer.java:76)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer.internalUndeploy(AbstractOptionalRealDeployer.java:91)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
  |     at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1356)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
  |     at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
  |     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1664)
  |     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1275)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:694)
  |     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
  |     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
  |     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |     at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.util.zip.ZipException: error in opening zip file
  |     at java.util.zip.ZipFile.open(Native Method)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:203)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:234)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:474)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:609)
  |     ... 39 more
  | 09:18:05,587 ERROR [WebBeansWebUrlIntegrationDeployer] Error during undeploy: vfszip:/opt/jboss/as/src/Branch_5_x/build/output/jboss-5.1.0.GA/server/default/deploy/Quickstart_publish_as_webservice.esb/
  | java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
  |     at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
  |     at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:616)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:763)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:807)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
  |     at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
  |     at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
  |     at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
  |     at org.jboss.deployers.vfs.plugins.structure.VFSDeploymentResourceLoaderImpl.getFile(VFSDeploymentResourceLoaderImpl.java:62)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContext.getFile(AbstractVFSDeploymentContext.java:352)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit.getFile(AbstractVFSDeploymentUnit.java:101)
  |     at org.jboss.deployers.vfs.plugins.classloader.PathUrlIntegrationDeployer.isIntegrationDeployment(PathUrlIntegrationDeployer.java:48)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.isIntegrationDeployment(UrlIntegrationDeployer.java:183)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.undeploy(UrlIntegrationDeployer.java:143)
  |     at org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer.undeploy(AbstractOptionalVFSRealDeployer.java:76)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer.internalUndeploy(AbstractOptionalRealDeployer.java:91)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
  |     at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
  |     at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
  |     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1664)
  |     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1275)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:694)
  |     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
  |     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
  |     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |     at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.util.zip.ZipException: error in opening zip file
  |     at java.util.zip.ZipFile.open(Native Method)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:203)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:234)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:474)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:609)
  |     ... 39 more
  | ,,,
  | 09:18:05,642 ERROR [SeamWebUrlIntegrationDeployer] Error during undeploy: vfszip:/opt/jboss/as/src/Branch_5_x/build/output/jboss-5.1.0.GA/server/default/deploy/Quickstart_publish_as_webservice.esb/
  | java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
  |     at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
  |     at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:616)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:763)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:807)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
  |     at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
  |     at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
  |     at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
  |     at org.jboss.deployers.vfs.plugins.structure.VFSDeploymentResourceLoaderImpl.getFile(VFSDeploymentResourceLoaderImpl.java:62)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContext.getFile(AbstractVFSDeploymentContext.java:352)
  |     at org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit.getFile(AbstractVFSDeploymentUnit.java:101)
  |     at org.jboss.deployers.vfs.plugins.classloader.PathUrlIntegrationDeployer.isIntegrationDeployment(PathUrlIntegrationDeployer.java:48)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.isIntegrationDeployment(UrlIntegrationDeployer.java:183)
  |     at org.jboss.deployers.vfs.plugins.classloader.UrlIntegrationDeployer.undeploy(UrlIntegrationDeployer.java:143)
  |     at org.jboss.deployers.vfs.spi.deployer.AbstractOptionalVFSRealDeployer.undeploy(AbstractOptionalVFSRealDeployer.java:76)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractOptionalRealDeployer.internalUndeploy(AbstractOptionalRealDeployer.java:91)
  |     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
  |     at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
  |     at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
  |     at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1664)
  |     at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1275)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
  |     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:694)
  |     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
  |     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338)
  |     at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
  |     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  |     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  |     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  |     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  |     at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.util.zip.ZipException: error in opening zip file
  |     at java.util.zip.ZipFile.open(Native Method)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:203)
  |     at java.util.zip.ZipFile.<init>(ZipFile.java:234)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
  |     at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:474)
  |     at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:609)
  |     ... 39 more

The SeamWebUrlIntegrationDeployer works with JBossWebMetaData as does the .esb archive. It look to me that the SeamWebUrlIntegrationDeployer is trying to perform work on the VFSDeploymentUnit after the .esb archive has be undeployed and removed.

I've tried to add a check in SeamUrlIntegrationDeployer to see if the deployment root exists:
private static final IgnoringZipExceptionsHandler exceptionHandler = new IgnoringZipExceptionsHandler();
  |    protected boolean isIntegrationDeployment(VFSDeploymentUnit unit)
  |    {
  |       String[] files = getFiles();
  |       if (files == null || files.length == 0)
  |          return false;
  |       
  |       VirtualFile root = unit.getRoot();
  |       root.getVFS().setExceptionHandler(exceptionHandler);
  |       
  |       if (exists(root))
  |       {
  |           for(String path : files)
  |           {
  |              VirtualFile vf = unit.getFile(path);
  |              if (vf != null)
  |                 return true;
  |           }
  |       }
  |       return false;
  |    }
  |    
  |     protected boolean exists(final VirtualFile file)
  |     {
  |         try
  |         {
  |             return file.exists();
  |         } 
  |         catch (final IOException e)
  |         {
  |             return false;
  |         }
  |     }
  |     
  |     private static class IgnoringZipExceptionsHandler extends AbstractExceptionHandler
  |     {
  |         @Override
  |         public void handleZipEntriesInitException(Exception e, String name)
  |         {
  |             if (!(e instanceof ZipException))
  |             {
  |                 super.handleZipEntriesInitException(e, name);
  |             }
  |         }
  |     }
  | 
This works but is more an attempt to understand the issue. Any thoughs on this?

Thanks,

/Daniel


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228575#4228575

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228575



More information about the jboss-user mailing list