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-4294) Struts 2.3.16 Convention plugin failed on Tomcat 8.0.3 with JDK 1.7.0_51
Date Mon, 03 Mar 2014 08:09:21 GMT

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

Lukasz Lenart commented on WW-4294:
-----------------------------------

Informed Apache Tomcat team http://markmail.org/thread/opktu6xqketvwdkf

And I think we must wait for clarification from them before I can start fixing this issue.

> Struts 2.3.16 Convention plugin failed on Tomcat 8.0.3 with JDK 1.7.0_51
> ------------------------------------------------------------------------
>
>                 Key: WW-4294
>                 URL: https://issues.apache.org/jira/browse/WW-4294
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Annotations
>    Affects Versions: 2.3.16
>         Environment: Windows 8.1 x64
> Oracle/Sun JDK 1.7.0_51 (x64)
> Tomcat 7.0.52 (x64)  << works
> Tomcat 8.0.3 (x64)  << failed with HTTP 404
>            Reporter: Tommy Pham
>              Labels: patch
>
> Used Annotations tutorial at:
> https://cwiki.apache.org/confluence/display/WW/Struts+2+Annotations
> But adapted to use Log4j 2 instead.
> Sample project:
> https://github.com/tommyhp2/struts-annotations
> Failed on Tomcat 8.0.3 with error:
> {noformat}
> 2014-03-02 12:12:56,899 WARN  [localhost-startStop-1] com.opensymphony.xwork2.util.logging.commons.CommonsLogger
- Cannot translate url to external form!
> java.lang.NullPointerException
> 	at com.opensymphony.xwork2.util.finder.UrlSet.load(UrlSet.java:93) [UrlSet.class:2.3.16]
> 	at com.opensymphony.xwork2.util.finder.UrlSet.<init>(UrlSet.java:83) [UrlSet.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildUrlSet(PackageBasedActionConfigBuilder.java:415)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.readUrls(PackageBasedActionConfigBuilder.java:410)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:389)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
[ClasspathPackageProvider.class:2.3.16]
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:268)
[DefaultConfiguration.class:2.3.16]
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
[ConfigurationManager.class:2.3.16]
> 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
[Dispatcher.class:2.3.16]
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) [Dispatcher.class:2.3.16]
> 	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
[InitOperations.class:2.3.16]
> 	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
[StrutsPrepareAndExecuteFilter.class:2.3.16]
> 	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697) [catalina.jar:8.0.3]
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976) [catalina.jar:8.0.3]
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1762) [catalina.jar:8.0.3]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_51]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_51]
> 	at java.lang.Thread.run(Thread.java:744) [?:1.7.0_51]
> 2014-03-02 12:12:56,917 ERROR [localhost-startStop-1] com.opensymphony.xwork2.util.logging.commons.CommonsLogger
- Unable to scan named packages
> java.lang.NullPointerException
> 	at com.opensymphony.xwork2.util.finder.UrlSet.includeClassesUrl(UrlSet.java:193) ~[UrlSet.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildUrlSet(PackageBasedActionConfigBuilder.java:442)
~[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.readUrls(PackageBasedActionConfigBuilder.java:410)
~[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:389)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347)
[PackageBasedActionConfigBuilder.class:2.3.16]
> 	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
[ClasspathPackageProvider.class:2.3.16]
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:268)
[DefaultConfiguration.class:2.3.16]
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
[ConfigurationManager.class:2.3.16]
> 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
[Dispatcher.class:2.3.16]
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) [Dispatcher.class:2.3.16]
> 	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
[InitOperations.class:2.3.16]
> 	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
[StrutsPrepareAndExecuteFilter.class:2.3.16]
> 	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
[catalina.jar:8.0.3]
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702) [catalina.jar:8.0.3]
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697) [catalina.jar:8.0.3]
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976) [catalina.jar:8.0.3]
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1762) [catalina.jar:8.0.3]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_51]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_51]
> 	at java.lang.Thread.run(Thread.java:744) [?:1.7.0_51]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message