6 Replies Latest reply on May 9, 2007 12:33 PM by jaikiran pai

    I've a problem when redeploying a WAR.

    tonytse Newbie

      HI..guys.

      I am challenged by the JBOSS redeployment. My war is supported with Stusts Framework.
      I have no problem in my WAR when using "Stop " and "Start" in command line.

      But After using the URL redeploying function, it doesn't work yet.

      Here comes my error ouput:


      2004-04-11 13:27:56,177 INFO [org.apache.struts.util.PropertyMessageResources] <> - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
      2004-04-11 13:27:56,177 INFO [org.apache.struts.util.PropertyMessageResources] <> - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
      2004-04-11 13:27:56,458 ERROR [org.apache.commons.digester.Digester] <> - Begin 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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
      at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
      at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
      at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
      at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
      at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259)
      at org.apache.commons.digester.Rule.begin(Rule.java:200)
      at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:434)
      at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:832)
      at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:796)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
      at org.apache.commons.digester.Digester.parse(Digester.java:1548)
      at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:944)
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
      at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3422)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      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.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:425)
      at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:399)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      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.jmx.adaptor.control.Server.invokeOpByName(Server.java:234)
      at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:200)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:241)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:79)
      at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:56)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.LinkageError: loader constraints violated when linking org/apache/struts/action/ActionMapping class
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at org.apache.struts.config.FormBeanConfig.class$(FormBeanConfig.java:190)
      at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:190)
      ... 93 more


        • 1. Re: I've a problem when redeploying a WAR.
          tonytse Newbie

          And my web.xml is:


          <?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>admin</display-name>

          <filter>
          <filter-name>FilterRedirector</filter-name>
          <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
          </filter>

          <filter-mapping>
          <filter-name>FilterRedirector</filter-name>
          <url-pattern>/FilterRedirector</url-pattern>
          </filter-mapping>

          <servlet>
          <servlet-name>debugjsp</servlet-name>
          <description>Added to compile JSPs with debug info</description>
          <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
          <init-param>
          <param-name>classdebuginfo</param-name>
          <param-value>true</param-value>
          </init-param>
          <load-on-startup>3</load-on-startup>
          </servlet>

          <servlet>
          <servlet-name>action</servlet-name>
          <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
          <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.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>

          <servlet>
          <servlet-name>ServletRedirector</servlet-name>
          <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
          </servlet>

          <servlet>
          <servlet-name>JspRedirector</servlet-name>
          <jsp-file>/jspRedirector.jsp</jsp-file>
          </servlet>

          <servlet-mapping>
          <servlet-name>debugjsp</servlet-name>
          <url-pattern>*.jsp</url-pattern>
          </servlet-mapping>

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

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

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

          <taglib>
          <taglib-uri>http://jakarta.apache.org/taglibs/session-1.0</taglib-uri>
          <taglib-location>/WEB-INF/taglibs-session.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>http://jakarta.apache.org/taglibs/request-1.0</taglib-uri>
          <taglib-location>/WEB-INF/taglibs-request.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>http://jakarta.apache.org/taglibs/mailer-1.1</taglib-uri>
          <taglib-location>/WEB-INF/taglibs-mailer.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>http://jakarta.apache.org/taglibs/log-1.0</taglib-uri>
          <taglib-location>/WEB-INF/taglibs-log.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>http://struts-menu.sf.net/tag</taglib-uri>
          <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-layout.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-layout.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>http://jakarta.apache.org/taglibs/display</taglib-uri>
          <taglib-location>/WEB-INF/displaytag-12.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
          </taglib>

          </web-app>


          • 2. Re: I've a problem when redeploying a WAR.
            tonytse Newbie

            Can U give me a hand?
            Tks.please.

            • 3. Re: I've a problem when redeploying a WAR.
              tonytse Newbie

              Any one help me??

              • 4. Re: I've a problem when redeploying a WAR.
                Raja Master

                Your web.xml looks wierd.
                All servlet-name and servlet-class must be enclosed within an outer tag. recheck your web.xml according to
                http://java.sun.com/dtd/web-app_2_3.dtd

                • 5. Re: I've a problem when redeploying a WAR.
                  Harigopal Bhangariya Newbie

                  I am getting the same exception. Has anyone come across same kind of exception? This problem is bugging me a lot. Please if someone can help. I would really appreciate.

                  • 6. Re: I've a problem when redeploying a WAR.
                    jaikiran pai Master

                    Whats the error that you are seeing. Post the exception stacktrace and provide more details. And this thread is 3 years old, you should have created your own new post.