Can't Make Project Due to Struts Config Error?

I've just tried making my project, to run some JUnit tests, but it seems that I can't make it because of errors in one of our Struts config files.

Now, this file works perfectly in our deployment and even if it didn't I wouldn't want this to stop the entire project from being made! I can remove it from "Compilation", but I was quite surprised that it's even part of the "Make" process to be honest. Removing it from compilation also doesn't remove the error markings from the directory structure, which is a bit annoying.

The error I'm getting is that the message resources properties file can't be found, but it's definitely in the classpath.

5 comments
Comment actions Permalink

But how did you define the location of the resources properties file in the struts-config file? Make sure the path is correct there.

0
Comment actions Permalink

Track http://www.jetbrains.net/jira/browse/STRUTS-42 regarding the message resources file problem

0
Comment actions Permalink

Yep the path is correct. I don't really have a problem with it being diagnosed as a problem, I just don't expect it to stop me from running JUnit tests from within IDEA, since it's a web application problem.

0
Comment actions Permalink

Hi Simon,

there is no way to turn the Struts validation off in 5383 :(. It will be
configurable in the next EAP version.
Sorry for inconvenience.


0
Comment actions Permalink

That's not a problem :)

Maybe I'm not explaining myself very clearly anyway. I don't necessarily want to turn of Struts validation, I just don't want it to stop a Project "Make". Maybe it would be better if they were flagged as warnings during the make process, rather than fatal errors.

0

Please sign in to leave a comment.