• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in Message Resource Properties.

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic