struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4635) java.lang.ClassNotFoundException: when upgrading 2.3.16 to 2.3.28.1
Date Tue, 17 May 2016 19:00:14 GMT

    [ https://issues.apache.org/jira/browse/WW-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15287293#comment-15287293
] 

Lukasz Lenart commented on WW-4635:
-----------------------------------

In Struts 2.5 some classes were moved to proper packages, to keep things consistent. Please
see Version Notes, there is a section with changed packages
http://struts.apache.org/docs/version-notes-25.html#VersionNotes2.5-Packagenameshavechanged

In your case just drop {{ng}} package, ie.
{{org.apache.struts2.dispatcher.ng.filter. StrutsPrepareAndExecuteFilter}} -> {{org.apache.struts2.dispatcher.filter.
StrutsPrepareAndExecuteFilter}}

> java.lang.ClassNotFoundException: when upgrading 2.3.16 to 2.3.28.1
> -------------------------------------------------------------------
>
>                 Key: WW-4635
>                 URL: https://issues.apache.org/jira/browse/WW-4635
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter, Integration
>    Affects Versions: 2.3.28
>         Environment: JBoss EAP 6.4
>            Reporter: Nick Hoang
>              Labels: documentation, easyfix, patch
>             Fix For: 2.3.29
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> The application crashed when built and deployed with Struts 2.3.28.1. The log file shows:
> {noformat}
> 12:52:02,948 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed
to start service jboss.deployment.unit."NXFolio.war".POST_MODULE: org.jboss.msc.service.StartException
in service jboss.deployment.unit."NXFolio.war".POST_MODULE: JBAS018733: Failed to process
phase POST_MODULE of deployment "NXFolio.war"
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166)
[jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
[jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
[jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_51]
> 	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_51]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter from [Module "deployment.NXFolio.war:main"
from Service Module Loader]
> 	at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(JaxrsComponentDeployer.java:79)
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
[jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
> 	... 5 more
> Caused by: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
from [Module "deployment.NXFolio.war:main" from Service Module Loader]
> 	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
[jboss-modules.jar:1.3.6.Final-redhat-1]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
[jboss-modules.jar:1.3.6.Final-redhat-1]
> 	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
[jboss-modules.jar:1.3.6.Final-redhat-1]
> 	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
[jboss-modules.jar:1.3.6.Final-redhat-1]
> 	at org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer.deploy(J
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message