Hi, I have a Java class as a model which has a method taking a MessageResources as a parameter and returning a String loaded from a properties file using the MessageResources. The model is created in Action.execute(). The project can be compiled but when running it, we get java.lang.NoClassDefFoundError org/apache/struts/util/MessageResources.
I checked classpath and it contains struts-core-1.3.5.jar. I also checked the MessageResources argument and it is not null. Any idea about why it happens? Thanks. In Search.java (model): public String getSearchIntro(MessageResources mr) { return mr.getMessage("search.intro"); } In Action.execute(): MessageResources mr = getResources(...); Search s = new Search(); String intro = mr.getSearchIntro(mr); -- View this message in context: http://www.nabble.com/s1%3A-java.lang.NoClassDefFoundError-MessageResources-tp21593753p21593753.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org