You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@henrik.synth.no on 2009/03/31 10:17:40 UTC

Struts woes

Hi.

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/)

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

Best regards,
Henrik

[1] 
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
[2] http://struts.apache.org/2.x/docs/configuration-files.html


Re: Struts woes

Posted by Henrik Brautaset Aronsen <st...@henrik.synth.no>.
On 31-03-09 10:17, struts-user@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