2 Replies Latest reply on Oct 16, 2017 12:03 PM by niha g

    Struts 2.5 application deployment issue with JBOSS-EAP-7

    niha g Newbie

      Hi,

       

      I am deploying the struts 2.5 simple application to jboss-eap-7 application server, i am getting the following server log message.

       

      "{

          \"WFLYCTL0080: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./HelloWorldExample.UndertowDeploymentInfoService\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./HelloWorldExample.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter from [Module \\\"deployment.HelloWorldExample.war:main\\\" from Service Module Loader]

          Caused by: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter from [Module \\\"deployment.HelloWorldExample.war:main\\\" from Service Module Loader]\"},

          \"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available.\" => {

              \"Services that were unable to start:\" => [

                  \"jboss.deployment.unit.\\\"HelloWorldExample.war\\\".deploymentCompleteService\",

                  \"jboss.undertow.deployment.default-server.default-host./HelloWorldExample\"

              ],

              \"Services that may be the cause:\" => [

                  \"jboss.deployment.subunit.\\\"vir.ear\\\".\\\"virEjb.jar\\\".beanmanager\",

                  \"jboss.deployment.unit.\\\"vir.ear\\\".beanmanager\",

                  \"jboss.naming.context.java.comp.vir.virEjb.AdminSessionBean\",

                  \"jboss.naming.context.java.comp.vir.virEjb.InvoiceSessionBean\"

              ]

          }

      }"

       

      my web.xml is as follows

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

          <filter>

              <filter-name>struts2</filter-name>

              <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>

          </filter>

          <filter-mapping>

              <filter-name>struts2</filter-name>

              <url-pattern>/*</url-pattern>

          </filter-mapping>

          <session-config>

              <session-timeout>

                  30

              </session-timeout>

          </session-config>

          <welcome-file-list>

              <welcome-file>index.jsp</welcome-file>

              </welcome-file-list>

          </web-app>

       

      I am new to JBOSS, Please help me with this. Thanks.

        • 1. Re: Struts 2.5 application deployment issue with JBOSS-EAP-7
          Wolfgang Knauf Master

          Hi,

           

          do you bundle the Struts2 jar files in WEB-INF\lib of your war file? If yes: which ones?

           

          Best regards

           

          Wolfgang

          • 2. Re: Struts 2.5 application deployment issue with JBOSS-EAP-7
            niha g Newbie

            Now my application has deployed to jboss but when i tried to access the web page it is givng the error as mentioned below. i have extracted the tld file from struts jar file and i placed it in the WEB-INF folder also. please help me this this.  Thanks.

             

            11:52:44,547 ERROR [stderr] (default task-29) org.apache.jasper.JasperException: JBWEB004036: File "/struts-tags" not found

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:57)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:278)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:75)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:158)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:412)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1456)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Parser.parse(Parser.java:143)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:223)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:200)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:402)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:346)

            11:52:44,547 ERROR [stderr] (default task-29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:81)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:266)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:201)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:202)

            11:52:44,547 ERROR [stderr] (default task-29) at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:109)

            11:52:44,547 ERROR [stderr] (default task-29) at org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:173)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)

            11:52:44,548 ERROR [stderr] (default task-29) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)

            11:52:44,548 ERROR [stderr] (default task-29) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:53)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:577)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.dispatcher.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:88)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

            11:52:44,548 ERROR [stderr] (default task-29) at org.apache.struts2.dispatcher.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:94)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

            11:52:44,548 ERROR [stderr] (default task-29) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

            11:52:44,548 ERROR [stderr] (default task-29) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)