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 problem in parsing struts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem in parsing struts-config" Watch "problem in parsing struts-config" New topic
Author

problem in parsing struts-config

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
Hi
i have a problem in parsing my struts-config.
the error appears only when i add my message-resources tag
<message-resources key="resource" parameter="ApplicationResources" />
<message-resources key="property" parameter="ProjectProperties" />

what is the problem in it?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It'd be easier to help if you specified what the error is. For example, is it in the correct place in the config file?
Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89


i get it when i run the server.
As well- I have a red mark on the <struts-config> which says that it's not formed correctly.
when i remove the <message-resources> tag, it's valid again!
Kuyni Kumar
Greenhorn

Joined: Jan 18, 2011
Posts: 14
Please change your struts dtd configuration.
It should work.
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

04/12/2008 15:05:15 org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 115 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

If it doesnt work, also check for the order of the elements. Check if you are facing "message-resources" definition after the "controller" and before the "plug-in" definitions as mentioned above.



Have Fun with Java
little,little.. little by little makes a lot..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in parsing struts-config