On 31-03-09 10:17, struts-u...@henrik.synth.no wrote:
I am upgrading from Struts 2.0.11 to 2.1.6, which mostly works as it should thanks to the migration guide [1]. A couple of things elude me, though:

1) I am not able to get fetch static files from dojo. They are supposed to be in the classpath per default [2], but the /struts/dojo/struts_dojo.js path only gives me a 404. These files are in the struts2-dojo-plugin jar, and the jar is included in my War (under WEB-INF/lib/)

Solved: I "forgot" that I have Apache/mod_jk in front of my application server. Thus I had to add a JkMount for /struts/*.

2) I also get NullPointers in com.opensymphony.xwork2.util.TextParseUtil.java (155) and com.opensymphony.xwork2.util.LocalizedTextUtil.findText (318) when accessing certain pages. It seems that it's unable to fetch the strings in under WEB-INF/classes/my/app/package.properties

Solved: @VisitorFieldValidator(message = "") gives a NullPointer in Struts 2.1. More info at http://thread.gmane.org/gmane.comp.jakarta.struts.user/165088

Henrik

  • Struts woes struts-user
    • Re: Struts woes Henrik Brautaset Aronsen

Reply via email to