struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <tommy...@gmail.com>
Subject S2 Convention Plugin broken on Tomcat 8?
Date Sun, 02 Mar 2014 20:22:10 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message