struts problems with build 5734

I'm trying to get the blank struts 1.3.5 app to work in my project. I have the struts libs listed as a dependency (but not exporting them).

1. struts-config cannot find MessageResources with
<message-resources parameter="MessageResources" />

My is located in my resources directory. That directory is mapped to the content root "/".

2. validator-rules.xml does not recognize and of the errors.* constants - problem related to item 1?

3. I also get this error when trying to build the project.

Information:Compilation completed with 1 error and 2 warnings
Information:1 error
Information:2 warnings
Error:CreateProcess: "C:\Program Files\JetBrains\IntelliJ IDEA 6.0 Beta\bin\java.exe" -Xmx128m -classpath "C:\Java\IDEA5734\lib\xerces.jar;C:\Java\IDEA5734\lib\xml-apis.jar;C:\Java\IDEA5734\lib\ant\lib\ant.jar;C:\Program Files\JetBrains\IntelliJ IDEA 6.0 Beta\lib\tools.jar;C:\Java\IDEA5734\lib/org.eclipse.jdt.core.jar;C:\Java\IDEA5734\lib\jasper2_rt.jar;C:\Java\IDEA5734\lib\jasper2_rt.jar;C:\Java\IDEA5734\lib\rt\jasper2\commons-el.jar;C:\Java\IDEA5734\lib\rt\jasper2\commons-logging-api.jar;C:\Java\IDEA5734\lib\rt\jasper2\jasper-compiler.jar;C:\Java\IDEA5734\lib\rt\jasper2\jasper-runtime.jar;C:\Java\IDEA5734\lib\rt\jasper2\jsp-api.jar;C:\Java\IDEA5734\lib\rt\jasper2\servlet-api.jar;C:\Java\IDEA5734\lib\javaee.jar" com.intellij.rt.jasper2.Jasper2Runner -source 1.5 -d "C:
Documents and Settings
jasper2_temp_34102956" -mapped -compile -uriroot C:\FunProjects\GroceryJunction\Dev\GJWeb\exploded -p jsp error=2


For point one, make sure your properties files are mapped to the "properties" file type, rather than a plain text file type - this one bit me this week.



After installing 5745, my issues went away.

However, thanks for the tip because my properties extension was mapped to text files. I did not know that plugins and/or IDEA relied upon file types to determine the existence of specific files. I believe your suggestion would have fixed my problem in the previous build.





With 5745, I still have the problem with IDEA not finding the

I realized that my resources folder had to be on my source path list.


You are right, resource bundles should be located under a source root to be
recognized by IDEA.


Please sign in to leave a comment.