File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts cofiguration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts cofiguration problem" Watch "Struts cofiguration problem" New topic

Struts cofiguration problem

Aloke Kuamr Das

Joined: Sep 03, 2003
Posts: 4
I am a beginner in struts but I have studied a lot form the very beginnig of struts, now I want to use it to my project. However according to Thomas Paul's tutorial I configured struts1.1 but I faild to get it's fruit. According to Paul when I typed to my browser it throws HTTP 500 error saying
javax.servlet.ServletException: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String Ljava/util/Set;
and some root cause,
So what should I do I mean how I can check the error message.
best regards,
Aloke Kumar Das
PS: You can visit the paul's tutorial in the following link
Praveen Teegala

Joined: Apr 03, 2004
Posts: 11
Can you please give me the link to downloading the war file.
I would like to test it myself first and tell you.
It is not quite clear from the error message, but
1.check if you have this in your struts-config.xml
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
<set-property property="stopOnFirstError" value="true"/>
2.<message-resources key="org.apache.struts.action.MESSAGE" parameter="resources.application"/>

Aloke Kuamr Das

Joined: Sep 03, 2003
Posts: 4
Hello Praveen
I was in too much busy that's why I cannot reply to your message. Than you very much to check up problem. Would you mind if I mail to your yahoo account?
Thanking you,
best regards,
struts-config.xml fiels:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
<!-- ========== Form Bean Definitions ============ -->
<form-bean name="login"
type="org.apache.struts.validator.DynaValidatorForm" >
<form-property name="userId" type="java.lang.String" />
<form-property name="passWord" type="java.lang.String" />

<!-- ========== Global Forward Definitions ========= -->
<global-forwards> </global-forwards>

<!-- Validation-->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"

<!-- ========== Action Mapping Definitions ======== -->
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
I agree. Here's the link:
subject: Struts cofiguration problem
jQuery in Action, 3rd edition