File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Error in Message Resource Properties. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error in Message Resource Properties." Watch "Error in Message Resource Properties." New topic
Author

Error in Message Resource Properties.

Dhiraj Srivastava
Ranch Hand

Joined: Aug 29, 2001
Posts: 49
Hi,

Following are some of my issues while setting up Tomcat and Eclipse. Please note my application is working file.

1. Getting following errors while starting up Tomcat

org.xml.sax.SAXParseException: Elements "struts-config" allows no further input; "message-resources" is not allowd.

This is my entry in strtus-config file. I have added this file in classes folder under com.resources package.
<message-resources parameter="com.resources.ApplicationResources"/>

2. Following are the jars which I have added under my /lib folder and added in my .classpath file

<classpathentry kind="lib" path="WEB-INF/lib/antlr-2.7.2.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-chain-1.1.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-digester-1.8.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-fileupload-1.1.1.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-io-1.1.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/commons-validator-1.3.1.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/jstl-1.0.6.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/oro-2.0.8.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/standard-1.0.6.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/struts-core-1.3.8.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/struts-extras-1.3.8.jar"/>
<classpathentry kind="lib" path="WEB-INF/lib/struts-taglib-1.3.8.jar"/>

Is it fine to add this way as there is no struts.jar file.

Waiting for response.

Thanks in advacne.

Dhiraj Srivastava
SCJP
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Firstly, I don't think you should post the same post twice within such a short duration of time. And if done so accidentally, then please delete the other post.

Alright then, so you're using struts 1.3.8. You don't need a struts.jar because there's already struts-core-1.3.8.jar to do all that the struts.jar used to do. And all the things it can't do are packaged in the struts-extras-1.3.8.jar. So well, there's no problem with your "lib".

Now the only problem can be in your struts-config.xml. Perhaps there's some unintentional mistake that you might have missed out upon. I've worked in struts 1.3.8 and specifying a <message-resources> was never a problem. Your tag also seems to be perfectly fine.
You might also want to take a look and confirm that your DOCTYPE declaration is pointing to the correct DTD.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Message Resource Properties.