Re: Struts2 JQuery plugin failed on Strut2 + Tiles + Hibernate project

2017-02-13 Thread Dave Newton
On Mon, Feb 13, 2017 at 11:24 AM, THAN_HVFC 
wrote:

> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>



   - org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter


-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Struts2 JQuery plugin failed on Strut2 + Tiles + Hibernate project

2017-02-13 Thread THAN_HVFC
Hi all!
I am new to Struts2.  I downloaded Strust-2.5.8-all which bundled with Tiles.  
I created my web application with Strust-2.5.8 and Hibernate-5.1.  I deployed 
on Wildfly10 and the app ran fine.  
Now I decide to add JQuery to my project.  So I downloaded 
struts2-jquery-plugin-4.0.2 jar and put it inside my project lib folder and 
deployed on Wildfly10.  I got the error below.   As you can see the JQuery 
plugin breaks the Struts2 web app.  Please help!

16:14:15,945 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) 
MSC01: Failed to start service 
jboss.undertow.deployment.default-server.default-host./struts.UndertowDeploymentInfoService:
 org.jboss.msc.service.StartException in service 
jboss.undertow.deployment.default-server.default-host./struts.UndertowDeploymentInfoService:
 java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter from 
[Module "deployment.struts.war:main" from Service Module Loader]        at 
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:1079)
        at 
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:284)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
       at java.lang.Thread.run(Thread.java:745)Caused by: 
java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter from 
[Module "deployment.struts.war:main" from Service Module Loader]        at 
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)       
 at 
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
        at 
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
        at 
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
        at 
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:801)
        ... 6 more


 Note:  If I take out the struts2-jquery-plugin-4.0.2 jar, the project works 
fine again without JQuery.  

My web.xml
http://java.sun.com/xml/ns/j2ee"         
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;>
    Struts Blank

   org.apache.struts2.tiles.StrutsTilesListener 

tilesDefinitions 
/WEB-INF/tiles.xml 
            struts2        
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
                  struts2   
     /*    

            index.jsp    

  Hi all!
I am new to Struts2.  I downloaded Strust-2.5.8-all which bundled with Tiles.  
I created my web application with Strust-2.5.8 and Hibernate-5.1.  I deployed 
on Wildfly10 and the app ran fine.  
Now I decide to add JQuery to my project.  So I downloaded 
struts2-jquery-plugin-4.0.2 jar and put it inside my project lib folder and 
deployed on Wildfly10.  I got the error below.   As you can see the JQuery 
plugin breaks the Struts2 web app.  Please help!

16:14:15,945 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) 
MSC01: Failed to start service 
jboss.undertow.deployment.default-server.default-host./struts.UndertowDeploymentInfoService:
 org.jboss.msc.service.StartException in service 
jboss.undertow.deployment.default-server.default-host./struts.UndertowDeploymentInfoService:
 java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter from 
[Module "deployment.struts.war:main" from Service Module Loader]        at 
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:1079)
        at 
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:284)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
       at java.lang.Thread.run(Thread.java:745)Caused by: 
java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter from 
[Module "deployment.struts.war:main" from Service Module Loader]        at