aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts cofiguration problem" Watch "Struts cofiguration problem" New topic
Author

Struts cofiguration problem

Aloke Kuamr Das
Greenhorn

Joined: Sep 03, 2003
Posts: 4
Hello,
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 http://127.0.0.1:8080/struts/jsp/LoginView.jsp to my browser it throws HTTP 500 error saying
javax.servlet.ServletException: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String Ljava/util/Set;
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java)
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
http://www.javaranch.com/newsletter/Mar2003/newslettermar2003.jsp#struts
Praveen Teegala
Greenhorn

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"/>
</plug-in>
---
2.<message-resources key="org.apache.struts.action.MESSAGE" parameter="resources.application"/>


Praveen
Aloke Kuamr Das
Greenhorn

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,
Aloke
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"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- ========== 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" />
</form-bean>

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

<!-- Validation-->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>

<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction"
name="login"
input="/jsp/LoginView.jsp"
validate="true">
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
</action>
</action-mappings>
</struts-config>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts cofiguration problem