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.
请先登录再写评论。
But how did you define the location of the resources properties file in the struts-config file? Make sure the path is correct there.
Track http://www.jetbrains.net/jira/browse/STRUTS-42 regarding the message resources file problem
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.
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.
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.