I think the Struts 2.3.16 example REST showcase (struts2-rest-showcase.war) also uses convention plugin. I'm having the same exact problem with it on Tomcat 8.0.3.
On Sun, Mar 2, 2014 at 1:23 PM, Tommy Pham <tommy...@gmail.com> wrote: > Hi Lukasz, > > Thanks for the prompt reply. Issue WW-4294 filed. It's my first time to > file a JIRA. > If I made a mistake in the labeling or selection of choices, please let me > know. > > Kind regards, > Tommy > > > > On Sun, Mar 2, 2014 at 12:28 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote: > >> Looks like a bug :\ Can you register a JIRA issue and attach sample >> project? >> >> Thanks in advance! >> >> 2014-03-02 21:22 GMT+01:00 Tommy Pham <tommy...@gmail.com>: >> > Hi folks, >> > >> > Is anyone having problem getting S2 2.3.16 Convention Plugin to work on >> > Tomcat 8.0.3? >> > >> > I used the tutorial [1] and built the war OK. Deployed on Tomcat 7.0.52 >> > OK. However, I'm getting this error on Tomcat 8.0.3 with the same >> > Oracle/Sun JDK 1.7.0_51 (64 bit): >> > >> > 2014-03-02 12:13:12,639 ERROR [http-apr-8080-exec-5] >> > com.opensymphony.xwork2.util.logging.commons.CommonsLogger - Could not >> find >> > action or result >> > /struts-annotations/test-hello.action >> > com.opensymphony.xwork2.config.ConfigurationException: There is no >> Action >> > mapped for namespace [/] and action name [test-hello] associated with >> > context path [/struts-annotations]. >> > at >> > >> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) >> > ~[DefaultActionProxy.class:2.3.16] >> > </snip> >> > >> > >> > Looking back further in log, I see this: >> > >> > 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] >> > </snip> >> > >> > and this: >> > >> > >> > 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] >> > </snip> >> > >> > >> > Thanks, >> > Tommy >> > >> > >> > [1] https://cwiki.apache.org/confluence/display/WW/Struts+2+Annotations >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >