0 Replies Latest reply on Sep 28, 2005 10:30 AM by Amar Syed

    redeploy causes

    Amar Syed Newbie

      We are using JBoss 3.2.3 with Tomcat4.

      When redeploying an EAR file around 80 times we get the following error:

      12:13:48,464 INFO [EmbeddedTomcatService] undeploy, ctxPath=/XMPVXE0Partion/VXE1_ContentTestService, warUrl=file:/C:/DevTools/jboss-3.2.3/ser
      ver/VXEOnSYED/tmp/deploy/tmp19909VXE1_ContentTestService.ear-contents/VXE1_ContentTestService.war/
      12:13:48,464 INFO [Engine] StandardHost[localhost]: Removing web application at context path /XMPVXE0Partion/VXE1_ContentTestService
      12:13:48,464 ERROR [Engine] StandardHost[localhost]: ContainerBase.removeChild: stop:
      LifecycleException: Container StandardContext[/XMPVXE0Partion/VXE1_ContentTestService] has not been started
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3658)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
      at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:470)
      at org.apache.catalina.core.StandardHost.remove(StandardHost.java:868)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performUndeploy(EmbeddedTomcatService.java:348)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:476)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:504)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:467)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:440)
      at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy26.undeploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:332)
      at org.jboss.ha.framework.server.FarmMemberService.undeploy(FarmMemberService.java:434)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:452)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      12:13:48,464 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/farm/VXE1_ContentT
      estService.ear
      12:13:51,993 WARN [DeploymentInfo] Could not delete file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/tmp/deploy/tmp19909VXE1_ContentTestService
      .ear-contents/VXE1_ContentTestService.war/ restart will delete it
      12:13:51,993 WARN [DeploymentInfo] Could not delete file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/tmp/deploy/tmp19909VXE1_ContentTestService
      .ear restart will delete it
      12:13:51,993 INFO [MainDeployer] Starting deployment of package: file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/farm/VXE1_ContentTestService.
      ear
      12:13:52,039 INFO [EARDeployer] Init J2EE application: file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/farm/VXE1_ContentTestService.ear
      12:13:54,303 INFO [EmbeddedTomcatService] deploy, ctxPath=/XMPVXE0Partion/VXE1_ContentTestService, warUrl=file:/C:/DevTools/jboss-3.2.3/serve
      r/VXEOnSYED/tmp/deploy/tmp19960VXE1_ContentTestService.ear-contents/VXE1_ContentTestService.war/
      12:13:54,350 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploying class repositories to work directory C:\DevTools\
      jboss-3.2.3\server\VXEOnSYED\work\MainEngine\localhost\XMPVXE0Partion_VXE1_ContentTestService
      12:13:54,350 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy class files /WEB-INF/classes to C:\DevTools\jboss-3.
      2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\classes
      12:13:54,350 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/alarm-api.jar to C:\DevTools\jboss-
      3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\alarm-api.jar
      12:13:54,366 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to C:\DevTool
      s\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-beanuti
      ls.jar
      12:13:54,382 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-collections.jar to C:\DevTo
      ols\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-colle
      ctions.jar
      12:13:54,444 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-configuration.jar to C:\Dev
      Tools\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-con
      figuration.jar
      12:13:54,460 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-digester.jar to C:\DevTools
      \jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-digester
      .jar
      12:13:54,491 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-fileupload.jar to C:\DevToo
      ls\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-fileup
      load.jar
      12:13:54,491 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-lang-2.0.jar to C:\DevTools
      \jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-lang-2.0
      .jar
      12:13:54,522 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-logging.jar to C:\DevTools\
      jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-logging.j
      ar
      12:13:54,538 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/commons-validator.jar to C:\DevTool
      s\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\commons-validat
      or.jar
      12:13:54,553 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/engine-web.jar to C:\DevTools\jboss
      -3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\engine-web.jar
      12:13:54,553 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar to C:\DevTools\jbos
      s-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\jakarta-oro.jar
      12:13:54,569 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/javax.servlet.jar to C:\DevTools\jb
      oss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\javax.servlet.jar
      12:13:54,600 INFO [STDOUT] WebappClassLoader: validateJarFile(C:\DevTools\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestSer
      vice.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
      class: javax/servlet/Servlet.class
      12:13:54,600 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/jmxtools.jar to C:\DevTools\jboss-3
      .2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\jmxtools.jar
      12:13:54,616 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/log4j.jar to C:\DevTools\jboss-3.2.
      3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\log4j.jar
      12:13:54,616 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/mgmt-shared.jar to C:\DevTools\jbos
      s-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\mgmt-shared.jar
      12:13:54,631 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/service-mgmt.jar to C:\DevTools\jbo
      ss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\service-mgmt.jar
      12:13:54,631 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/serviceloader.jar to C:\DevTools\jb
      oss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\serviceloader.jar
      12:13:54,631 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/struts.jar to C:\DevTools\jboss-3.2
      .3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\struts.jar
      12:13:54,647 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/utils.jar to C:\DevTools\jboss-3.2.
      3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\utils.jar
      12:13:54,647 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/xmp-vxml-taglib.jar to C:\DevTools\
      jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.war\WEB-INF\lib\xmp-vxml-taglib.j
      ar
      12:13:54,663 INFO [Engine] WebappLoader[/XMPVXE0Partion/VXE1_ContentTestService]: Deploy JAR /WEB-INF/lib/xmp_com_vicorp_qa_xmp_content_Conte
      ntTestService.jar to C:\DevTools\jboss-3.2.3\server\VXEOnSYED\tmp\deploy\tmp19960VXE1_ContentTestService.ear-contents\VXE1_ContentTestService.
      war\WEB-INF\lib\xmp_com_vicorp_qa_xmp_content_ContentTestService.jar
      12:13:55,412 ERROR [Engine] SingleSignOnContextConfig[/XMPVXE0Partion/VXE1_ContentTestService] Exception processing JAR at resource path /WEB-
      INF/lib/commons-lang-2.0.jar
      javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/commons-lang-2.0.jar
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanJar(SingleSignOnContextConfig.java:1074)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:999)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162)
      at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:182)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy26.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:377)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      12:13:55,443 ERROR [Engine] ----- Root Cause -----
      java.io.IOException: Too many open files
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(File.java:1314)
      at java.io.File.createTempFile(File.java:1402)
      at java.io.File.createTempFile(File.java:1439)
      at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScanJar(SingleSignOnContextConfig.java:1043)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.tldScan(SingleSignOnContextConfig.java:999)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.start(SingleSignOnContextConfig.java:752)
      at org.jboss.web.tomcat.tc4.SingleSignOnContextConfig.lifecycleEvent(SingleSignOnContextConfig.java:255)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162)
      at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:182)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:549)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy26.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:377)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      12:13:55,521 INFO [Engine] SingleSignOnContextConfig[/XMPVXE0Partion/VXE1_ContentTestService]: Marking this application unavailable due to pr
      evious error(s)
      12:13:55,771 INFO [EmbeddedTomcatService] Using Java2 parent classloader delegation: false
      12:13:55,771 INFO [Engine] StandardManager[/XMPVXE0Partion/VXE1_ContentTestService]: Seeding random number generator class java.security.Secu
      reRandom
      12:13:55,771 INFO [Engine] StandardManager[/XMPVXE0Partion/VXE1_ContentTestService]: Seeding of random number generator has been completed
      12:13:55,771 INFO [Engine] StandardContext[/XMPVXE0Partion/VXE1_ContentTestService]: Context startup failed due to previous errors
      12:13:55,787 INFO [EARDeployer] Started J2EE application: file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/farm/VXE1_ContentTestService.ear
      12:13:55,787 INFO [MainDeployer] Deployed package: file:/C:/DevTools/jboss-3.2.3/server/VXEOnSYED/farm/VXE1_ContentTestService.ear