2 Replies Latest reply on Oct 21, 2003 3:52 AM by fatmole

    deploy war error

    fatmole Newbie

      Hi,
      My system is win2k server.I use jboss-3.2.2RC4.I changed http port from 8080 to 8100.Start successed.
      When I deploy my ear file.EJB deploy successed,But war failed,show followed error.

      Pls help.


      14:43:22,968 INFO [EjbModule] Started
      14:43:22,968 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.2RC4/server/defaul
      t/tmp/deploy/tmp58127ocms.ear-contents/ocms-ejb.jar
      14:43:23,078 INFO [EmbeddedTomcatService] deploy, ctxPath=/ocms, warUrl=file:/C
      :/jboss-3.2.2RC4/server/default/tmp/deploy/tmp58127ocms.ear-contents/ocms-web.wa
      r/
      14:43:24,000 ERROR [Digester] End event threw exception
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
      a:252)
      at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:50
      5)
      at org.apache.commons.digester.Rule.end(Rule.java:276)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
      ser.java:559)
      at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind
      er.java:646)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
      idator.java:2978)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
      .java:918)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
      t(XMLDocumentFragmentScannerImpl.java:1145)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
      XMLDocumentFragmentScannerImpl.java:988)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
      LDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:585)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
      ava:1148)
      at org.apache.commons.digester.Digester.parse(Digester.java:1548)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      568)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(Embed
      dedTomcatService.java:520)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(Embedded
      TomcatService.java:301)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:42
      8)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:816)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> ImageServle
      t in servlet mapping
      at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
      ntext.java:1691)
      ... 81 more
      14:43:24,031 ERROR [Engine] ContextConfig[/ocms] Parse error in application web.
      xml
      java.lang.IllegalArgumentException: Invalid <url-pattern> ImageServlet in servle
      t mapping
      at org.apache.commons.digester.Digester.createSAXException(Digester.java
      :2540)
      at org.apache.commons.digester.Digester.createSAXException(Digester.java
      :2566)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
      ser.java:559)
      at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind
      er.java:646)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
      idator.java:2978)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
      .java:918)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
      t(XMLDocumentFragmentScannerImpl.java:1145)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
      XMLDocumentFragmentScannerImpl.java:988)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
      LDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:585)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
      ava:1148)
      at org.apache.commons.digester.Digester.parse(Digester.java:1548)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      568)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(Embed
      dedTomcatService.java:520)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(Embedded
      TomcatService.java:301)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:42
      8)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:816)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:536)
      14:43:24,140 INFO [Engine] ContextConfig[/ocms]: Occurred at line 47 column 20
      14:43:24,140 INFO [Engine] ContextConfig[/ocms]: Marking this application unava
      ilable due to previous error(s)
      14:43:24,187 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class
      loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@1a84b38
      14:43:24,187 INFO [Engine] StandardManager[/ocms]: Seeding random number genera
      tor class java.security.SecureRandom
      14:43:24,187 INFO [Engine] StandardManager[/ocms]: Seeding of random number gen
      erator has been completed
      14:43:24,203 INFO [Engine] StandardContext[/ocms]: Context startup failed due t
      o previous errors
      14:43:24,218 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-3.2.2R
      C4/server/default/deploy/ocms.ear
      14:43:24,218 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.2RC4/serv
      er/default/deploy/ocms.ear
      14:43:24,234 INFO [URLDeploymentScanner] Started
      14:43:24,296 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.2RC4/serv
      er/default/conf/jboss-service.xml
      14:43:24,296 INFO [Server] JBoss (MX MicroKernel) [3.2.2RC4 (build: CVSTag=JBos
      s_3_2_2_RC4 date=200309172341)] Started in 30s:546ms

        • 1. Re: deploy war error
          Jon Barnett Master

          There is something wrong in your web.xml. The parser is having difficulties with it for the URL pattern related to ImageServlet. Check it first and resolve the issue. If you can't locate the problem show the web.xml here and let the folks look at it.

          • 2. Re: deploy war error
            fatmole Newbie

            Thanks reply,

            My system running OK in weblogic7,I changed to Jboss 4 days.It's running OK on weblogic7.These files not changed. I used struts .My web.xml as followed.

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
            <web-app>

            <display-name>Adobe Form Server Servlet Samples</display-name>
            Demonstrates a web application that uses CES java client classes to perform SOAP based requests to the Adobe Form Server.
            <context-param>
            <param-name>SamplesRepository</param-name>
            <param-value>../SamplesRepository</param-value>
            Defines physical relative path to the web server's SamplesRepository directory.
            </context-param>
            <context-param>
            <param-name>FormServer</param-name>
            <param-value>../FormServer</param-value>
            Defines physical relative path to the web server's Form Server Web support files.
            </context-param>


            <servlet-name>ImageServlet</servlet-name>
            <servlet-class>com.oaking.ocms.img.ImageServlet</servlet-class>


            <servlet-name>SubmitFormServlet</servlet-name>
            <servlet-class>com.oaking.ocms.img.SubmitFormServlet</servlet-class>



            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
            <param-name>application</param-name>
            <param-value>com.oaking.ocms.ApplicationResources</param-value>
            </init-param>
            <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-ci.xml,/WEB-INF/struts-config-ca.xml,/WEB-INF/struts-config-sm.xml,/WEB-INF/struts-config_front.xml</param-value>
            </init-param>
            <init-param>
            <param-name>debug</param-name>
            <param-value>2</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>




            <servlet-mapping>
            <servlet-name>ImageServlet</servlet-name>
            <url-pattern>ImageServlet</url-pattern>
            </servlet-mapping>

            <servlet-mapping>
            <servlet-name>SubmitFormServlet</servlet-name>
            <url-pattern>SubmitFormServlet</url-pattern>
            </servlet-mapping>


            <servlet-mapping>
            <servlet-name>HTTP Invocation</servlet-name>
            <url-pattern>/Invoker/*</url-pattern>
            </servlet-mapping>



            <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
            </servlet-mapping>

            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>


            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>


            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>


            <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>


            <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-template.tld</taglib-location>


            <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>

            </web-app>