Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

struts - config

843834May 12 2004 — edited Jun 6 2008
Hi everybody!!!
I'm trying to run an struts example in tomcat
I think that the error that i get is related with the struts-config.xml file, here you have:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>
<form-bean name="lookupForm" type="wiley.LookupForm"/>

<action-mappings>
<action path="/Lookup" type="wiley.LookupAction" name="lookupForm" input="/index.jsp">
<forward name="success" path="/quote.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>

<message-resources parameter="wiley.ApplicationResources"/>
</struts-config>

When i start Tomcat, i find this errors on the server:
May 12, 2004 11:20:43 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 18 column 17: The content of element type "struts-co
nfig" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?
,action-mappings?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts-config" must
match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-map
pings?,controller?,message-resources*,plug-in*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)

Coould someone help me, please?
Thanks again.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2008
Added on May 12 2004
8 comments
1,612 views