1 2 Previous Next 16 Replies Latest reply on May 16, 2013 8:16 AM by Stephen Coy

    Deploying Struts application in jboss AS 7

    ashishkaw Newbie

      Please help me.. I m new to jboss 7.

      I m using jboss-as-7.1.0-Final and i want to deploy my struts appliaction .war in jboss standalone server.

       

      I deployed my application .war in jboss-as-7.1.0.Final\standalone\deployments, but its showing class not found on running the appliaction as its not reading struts jar form the war library

       

      Then, I created a module for struts in jboss-as-7.1.0.Final\modules\org\apache\struts2\ and added its dependency (Dependencies: org.apache.struts2) in .war/META-INF/MANIFEST.MF,

       

      bt. i exactly dnt know what is the best procedure for adding dependencies to Jboss AS 7 for struts and other jars that are not provided in the modules.

       

      Thanks..

        • 1. Re: Deploying Struts application in jboss AS 7
          Nicklas Karlsson Master

          They can be deployed as jars in the war or as a module on the AS side, there shouldn't be much difference. Try putting them in the lib and paste the stack trace, perhaps someone will recognize the error...

          1 of 1 people found this helpful
          • 2. Re: Deploying Struts application in jboss AS 7
            ashishkaw Newbie

            Thanks Nicklas..!!

            I added all the jars in the .warweb-inf/lin still i was not able to correct the error then i declared a global module in standalone.xml and added all jars to that module, I also made their entry in module.xml, all jar were scanned but still these jars also have some dependencies that need to be define. I m getting the folowing error that i think is due to dependencies required.

            --------------------------------------------------------------Stack trace-------------------------------------------------------------------------------------------------

            in Module "org.apache.struts13:main" from local module loader @fc9944 (roots: D:\jboss-as-7.1.0.Final\modules): java.lang.LinkageE

            rror: Failed to link org/apache/strutsel/taglib/html/ELParamTag (Module "org.apache.struts13:main" from local module loader @fc994

            4 (roots: D:\jboss-as-7.1.0.Final\modules))

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]Caused by: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/ParamTag

                    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

                    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

                    at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

                    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_26]

                    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

                    ... 16 more

            Caused by: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.ParamTag from [Module "org.apache.struts13:main" from l

            ocal module loader @fc9944 (roots: D:\jboss-as-7.1.0.Final\modules)]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                    ... 22 more

             

             

            16:27:14,821 WARN  [org.jboss.modules] (MSC service thread 1-2) Failed to define class org.apache.strutsel.taglib.html.ELParamTag

            in Module "deployment.SimpleProgram.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/struts

            el/taglib/html/ELParamTag (Module "deployment.SimpleProgram.war:main" from Service Module Loader)

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

            Caused by: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/ParamTag

                    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

                    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

                    at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

                    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_26]

                    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

                    ... 16 more

            Caused by: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.ParamTag from [Module "deployment.SimpleProgram.war:mai

            n" from Service Module Loader]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                    ... 22 more

             

             

            16:27:14,868 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."

            SimpleProgram.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SimpleProgram.war".POST_MOD

            ULE: Failed to process phase POST_MODULE of deployment "SimpleProgram.war"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

            Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.apache

            .strutsel.taglib.html.ELParamTag

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                    ... 5 more

            Caused by: java.lang.ClassNotFoundException: org.apache.strutsel.taglib.html.ELParamTag from [Module "deployment.SimpleProgram.war:main" from Service Module Loader]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                    ... 7 more

             

            ----------------------------------------------------------------------------------------------------------------------------------------------------

             

            Also adding dependencies for every jar is very long task..

            Is there any other way to link all required jars to .war file. or any way of adding dependencies.

            Please hlep me in this..

             

            Thanks in advance..!!

            Ashish

            • 3. Re: Deploying Struts application in jboss AS 7
              Nicklas Karlsson Master

              I think it's easiest to just use the WEB-INF/lib for the libraries. Are you saying you had all the struts-related jars in the WAR lib and you still got a CNFE from a class that you saw could be found in one of the jars?

              • 4. Re: Deploying Struts application in jboss AS 7
                Stephen Coy Master

                Are you using struts 2 or struts 1.3?

                 

                Your first question references struts 2, but your subsequent stacktraces look like you're using 1.3.

                 

                In any event, you seem to be missing struts-taglib-1.3.10.jar, which ideally would be in your WEB-INF/lib directory otherwise it's taglibs will not be automatically discovered (and you would need to configure them manually in the web.xml file).

                • 5. Re: Deploying Struts application in jboss AS 7
                  ashishkaw Newbie

                  Thanks Stephen and Nicklas.

                   

                  Yes i have tried for both struts 2.0 and 1.3

                  Both cases resulted in class not found exception. I have added all the required jars in WEB-INF/lib directory even the jar required for struts 1.3 tag library.

                  The problem is my app's war file is working very fine in apache tomcat and jboss 5.1 but not in jboss AS 7.

                  Jboss AS 7 is not able to find jars in WEB-INF/lib directory of .war file.

                   

                  In jboss AS 7 library for jars is replaced by modules and jars in these modules can be used by adding dependencies to link each jar with other required jars.

                   

                  What can be the better approach for adding dependencies and rather then adding dependencies is there any other approach to deploy struts war in jboss AS 7?

                  • 6. Re: Deploying Struts application in jboss AS 7
                    Stephen Coy Master

                    Forget about JBoss Modules for the time being.

                     

                    Please show us the exact stack trace that you get with the exact same war file that is known to work in JBoss 5.1.

                     

                    Additionally, please show us the result of

                     

                         jar tf SimpleProgram.war

                    • 7. Re: Deploying Struts application in jboss AS 7
                      ashishkaw Newbie

                      Hi Stephen..

                       

                      Here is the Stacktarce: SimpleProgram.war

                      ----------------------------------------------------------------------------------------------------------Stack trace-----------------------------------------------------------

                      in Module "deployment.SimpleProgram.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/struts

                      el/taglib/html/ELParamTag (Module "deployment.SimpleProgram.war:main" from Service Module Loader)

                              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

                      Caused by: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/ParamTag

                              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

                              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

                              at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

                              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_26]

                              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

                              ... 16 more

                      Caused by: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.ParamTag from [Module "deployment.SimpleProgram.war:mai

                      n" from Service Module Loader]

                              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                              ... 22 more

                       

                       

                      11:10:22,181 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."

                      SimpleProgram.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SimpleProgram.war".POST_MOD

                      ULE: Failed to process phase POST_MODULE of deployment "SimpleProgram.war"

                              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

                      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.apache

                      .strutsel.taglib.html.ELParamTag

                              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                              ... 5 more

                      Caused by: java.lang.ClassNotFoundException: org.apache.strutsel.taglib.html.ELParamTag from [Module "deployment.SimpleProgram.war

                      :main" from Service Module Loader]

                              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                              at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                              ... 7 more

                      ---------------------------------------------------------------------------------------------------trace ends-----------------------------------------------------------------------------

                       

                      And here is the result of jar -tf SimpleProgram.war:

                       

                       

                      D:\jboss-as-7.1.0.Final\standalone\deployments>jar -tf SimpleProgram.war

                      META-INF/MANIFEST.MF

                      fail.jsp

                      WEB-INF/lib/

                      WEB-INF/lib/struts-tiles-1.3.10.jar

                      WEB-INF/lib/commons-chain-1.1.jar

                      WEB-INF/lib/commons-logging.jar

                      WEB-INF/lib/antlr.jar

                      WEB-INF/lib/apache-commons-lang.jar

                      WEB-INF/lib/commons-fileupload.jar

                      WEB-INF/lib/commons-beanutils.jar

                      WEB-INF/lib/struts.jar

                      WEB-INF/lib/struts-core-1.3.5.jar

                      WEB-INF/lib/apache-commons-lang.jar

                      WEB-INF/lib/struts-el-1.3.8.jar

                      WEB-INF/lib/commons-digester.jar

                      WEB-INF/lib/commons-collections-3.2.1.jar

                      WEB-INF/lib/servlet-api-2.3.jar

                      WEB-INF/lib/commons-validator.jar

                      WEB-INF/classes/com/candidjava/LinkAction.java

                      WEB-INF/struts-config_1_1.dtd

                      example.jsp

                      WEB-INF/validation_1_1.dtd

                      WEB-INF/struts-html.tld

                      WEB-INF/classes/com/candidjava/

                      WEB-INF/struts-tiles.tld

                      WEB-INF/classes/

                      layout.jsp

                      WEB-INF/struts-config.xml

                      WEB-INF/classes/com/

                      WEB-INF/web.xml

                      WEB-INF/struts-logic.tld

                      WEB-INF/classes/com/candidjava/LinkAction.class

                      success.jsp

                      WEB-INF/classes/com/candidjava/NumToWords.class

                      search.jsp

                      WEB-INF/classes/com/candidjava/MyController.class

                      office.jsp

                      menu.jsp

                      WEB-INF/classes/com/candidjava/NumToWords.java

                      index.jsp

                      header.jsp

                      WEB-INF/classes/com/candidjava/ApplicationResource.properties

                      WEB-INF/tiles-defs.xml

                      WEB-INF/tiles-config_1_1.dtd

                      Title.jsp

                      body.jsp

                      WEB-INF/validation.xml

                      WEB-INF/classes/com/candidjava/MyController.java

                      WEB-INF/validator-rules.xml

                      WEB-INF/classes/com/candidjava/MyModel.class

                      WEB-INF/classes/com/candidjava/MyModel.java

                      META-INF/

                      WEB-INF/struts-bean.tld

                      friends.jsp

                      baseLayout.jsp

                      footer.jsp

                      WEB-INF/

                      • 8. Re: Deploying Struts application in jboss AS 7
                        Nicklas Karlsson Master

                        Does the stacktrace change if you remove servlet-api-2.3.jar?

                        In what struts file is org.apache.strutsel.taglib.html.ELParamTag supposed to be?

                        • 9. Re: Deploying Struts application in jboss AS 7
                          ashishkaw Newbie

                          After Removing servlet-api-2.3.jar stacktarce remains same :

                          and

                          org.apache.strutsel.taglib.html.ELParamTag is present in struts-el-1.3.8.jar

                           

                          --------------------------------------------------------------------------------- Stack trace-----------------------------

                           

                          in Module "deployment.SimpleProgram.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/strutsel/taglib/html/ELParamTag (Module "deployment.SimpleProgram.war:main" from Service Module Loader)

                                  at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.Module.loadModuleClass(Module.java:517) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

                          Caused by: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/ParamTag

                                  at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_26]

                                  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_26]

                                  at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_26]

                                  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_26]

                                  at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.1.GA]

                                  ... 16 more

                          Caused by: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.ParamTag from [Module "deployment.SimpleProgram.war:main" from Service Module Loader]

                                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                                  ... 22 more

                           

                           

                          13:29:22,068 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."

                          SimpleProgram.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SimpleProgram.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "SimpleProgram.war"

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

                          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class org.apache.strutsel.taglib.html.ELParamTag

                                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)

                                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                                  ... 5 more

                          Caused by: java.lang.ClassNotFoundException: org.apache.strutsel.taglib.html.ELParamTag from [Module "deployment.SimpleProgram.war:main" from Service Module Loader]

                                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                                  ... 7 more

                          -----------------------------------------------------------------trace ends--------------------------------

                           

                          Thanks..

                          • 10. Re: Deploying Struts application in jboss AS 7
                            Nicklas Karlsson Master

                            I am a bit confused about

                             

                            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)

                             

                            What does an EE component interceptor annotation processor have to do with an EL parameter? Ring any bells?

                            • 11. Re: Deploying Struts application in jboss AS 7
                              Stephen Coy Master

                              I think you have jumbled up struts versions here. Some of those files look like they're from struts 1.1 or 1.2.

                               

                              You have a struts.jar and a struts-core.jar, and I think the former is an older version. Furthermore, you need to ensure that those WEB-INF/*.tld files correspond to the version that you're using. The best way to ensure this is to remove them altogether as they are typically made available in a struts-taglib.jar, which seems to be missing too.

                               

                              And as Nicklas suggested, you need to lose the servlet-api.jar. The classes in this jar are provided by the application server.

                              • 12. Re: Deploying Struts application in jboss AS 7
                                ashishkaw Newbie

                                I have tried all versions till now.. but i am not able to understand if there would a version conflict in struts jars then why it would be working fine in tomcat and jboss 5.1.

                                And as per you adding all jars required in .war/WEB-INF/lib is enough to run the .war in jboss AS 7 or somthing extra has to be done??

                                Also i have removed servlet-api.jar but this is not making any difference in erros

                                • 13. Re: Deploying Struts application in jboss AS 7
                                  Nicklas Karlsson Master

                                  All classes in all jars placed in the WEB-INF\lib of the WAR is automatically available, and since you have the struts-el jar in there, the class should be visible. The only thing I can think of is that there is still some sort of conflict between two struts jars.

                                  Take out all struts jar:s. Pick one version and stick to that - drop the struts core jar in the lib and then keep adding missing struts-related jars (of the same version) as CNFE:s occur.

                                  • 14. Re: Deploying Struts application in jboss AS 7
                                    Stephen Coy Master

                                    When your app has two jars containing the same classes, it becomes a classloader lottery as to which one gets loaded first.

                                    1 2 Previous Next