1 Reply Latest reply on Jul 12, 2007 8:39 PM by Scott Stark

    Seeing unexpected redeploy breaking all web apps in head

    Scott Stark Master

      In testing against the cts config, I'm seeing a strange redeployment attempt happen, after which all web apps are unreachable. I have not seen it in the default config yet, but don't know why the invalid redeployment should be triggered in one but not the other. The jmx-console.war has not been redeployed, so why the undeploy is happening is what I'm trying to determine first.

      14:27:52,080 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNTag=JBoss_5_0_0_Beta3 date=200707111842)] Started in 28s:779ms
      14:29:40,472 INFO [TomcatDeployment] undeploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
      14:29:40,574 ERROR [WebAppParsingDeployer] Error during deploy: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/cts/deploy/jmx-console.war/
      org.jboss.deployers.spi.DeploymentException: Error parsing meta data jmx-console.war/WEB-INF/web.xml
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:90)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:201)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:177)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:140)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:164)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:657)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:623)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:587)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:304)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1257)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:685)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:813)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:735)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:573)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:374)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:426)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:340)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:287)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
       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: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/cts/deploy/jmx-console.war/WEB-INF/web.xml@4,46
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:180)
       at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:86)
       ... 28 more
      Caused by: java.lang.NullPointerException
       at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:506)
       at org.jboss.util.xml.JBossEntityResolver.resolvePublicID(JBossEntityResolver.java:314)
       at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:244)
       at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
       at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
       ... 30 more
      14:29:40,577 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/cts/deploy/jmx-console.war/ state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error parsing meta data jmx-console.war/WEB-INF/web.xml
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:90)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:201)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:177)
       at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:140)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:164)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:657)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstall(DeployersImpl.java:623)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:587)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:304)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1257)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:685)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:813)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:735)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:573)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:374)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:426)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:340)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:287)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
       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: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/cts/deploy/jmx-console.war/WEB-INF/web.xml@4,46
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:180)
       at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:86)
       ... 28 more
      Caused by: java.lang.NullPointerException
       at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:506)
       at org.jboss.util.xml.JBossEntityResolver.resolvePublicID(JBossEntityResolver.java:314)
       at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:244)
       at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
       at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:169)
       ... 30 more
      14:29:40,583 WARN [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/cts/deploy/jmx-console.war/ -> java.lang.NullPointerException
      
      
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:552)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:379)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:288)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:219)
       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)
      


      After this all web apps fail with:
      [starksm@succubus connector]$ wget http://localhost:8080/
      --14:20:16-- http://localhost:8080/
       => `index.html.2'
      Resolving localhost... 127.0.0.1
      Connecting to localhost|127.0.0.1|:8080... connected.
      HTTP request sent, awaiting response... 400 No Host matches server name localhost
      14:20:16 ERROR 400: No Host matches server name localhost.