Did you try leaving your <load-on-startup> value set to 2 on the action
servlet configuration?
Chuck
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 3:32 PM
To: [EMAIL PROTECTED]
Subject: RE: Anyone have the Struts Validator example working?
I still have the following error when I tried to access
http://localhost/share/validator/registration.jsp:
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
at /registration.jsp._jspService(/registration.jsp.java:72) (JSP
page line 9)
at com.orionserver[Orion/1.5.2 (build
10460)].http.OrionHttpJspPage.service(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
at com.evermind[Orion/1.5.2 (build
10460)].server.http.JSPServlet.service(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
==========================
My Settings are as follow:
==========================
Orion: 1.5.2
[application.xml]
<web-module id="validator"
path="../../../../dev/share/struts-validator/validator/"/>
[default-web-site.xml]
<web-app application="default" name="validator" root="/share/validator"/>
validator.war: extracted from validator20010510.zip
this war file is extracted and put in directory
"../../../../dev/share/struts-validator/validator/"
modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too ->
same error) as follows:
<!-- Validator Initialization Servlet Configuration -->
<servlet>
<servlet-name>validator</servlet-name>
<servlet-class>com.wintecinc.struts.action.ValidatorServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/validation.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.wintecinc.struts.example.validator.ApplicationResources</pa
ram-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Am I missing sth?
Thanks in advance!
Chris
-----Original Message-----
From: Chuck Stern [mailto:[EMAIL PROTECTED]]
Sent: June 5, 2001 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Anyone have the Struts Validator example working?
I'm using Orion 1.5.1 and Struts_Validator-20010510.jar.
It worked when I changed the load-on-startup value to 1 (or 0). A value of
2 caused the mentioned error. What was weird is that if I moved the
<web-app> definition for the validator below the strut action servlet
definition in the web.xml file I would get the following error:
java.lang.NullPointerException
at
com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123)
at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:20
98)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source)
It looks different but it's really the same sore of error that struts was
having, it's just not expecting null though.
Chuck
-----Original Message-----
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: RE: Anyone have the Struts Validator example working?
What version are you using and what did you change to
make it work. Maybe I can fix it. Does Orion only
accept '1' as a valid load-on-startup value?
<load-on-startup>2</load-on-startup>
David
--- Chuck Stern <[EMAIL PROTECTED]> wrote:
> Thanks, that worked.
>
> chuck
>
> -----Original Message-----
> From: DeVincentiis Giustino
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 7:06 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Anyone have the Struts Validator
> example working?
>
>
> I used the validator with Orion and had a similar
> behavior, the problem was
> in the web.xml.
> Check that the <load-on-startup> values for the
> ActionServlet and for the
> ValidatorServlet are correct.
>
> Hope this help,
> Giustino De Vincentiis
>
> -----Messaggio originale-----
> Da: Chuck Stern
> [mailto:[EMAIL PROTECTED]]
> Inviato: martedl 5 giugno 2001 12.26
> A: Struts-User
> Oggetto: Anyone have the Struts Validator example
> working?
>
>
> Hi,
>
> I would like to try David Winterfeldt's validator
> for a new project I'm
> working on but I can't seem to get it to work with
> Orion 1.51. The default
> welcome page comes up and I can see the validator
> initializing. I get the
> following when trying to go to the registration
> example page:
>
> javax.servlet.jsp.JspException: Cannot find message
> resources under key
> org.apache.struts.action.MESSAGE
> at
>
org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
> at
>
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
> at
>
/registration.jsp._jspService(/registration.jsp.java:72)
> (JSP
> page line
> 9)
> at com.orionserver[Orion/1.5.1 (build
> 10410)].http.OrionHttpJspPage.service(Unknown
> Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._ah._pcd(Unknown Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)].server.http.JSPServlet.service(Unknown
> Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._cob._xdd(Unknown Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._cob._shc(Unknown Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._iz._rzc(Unknown Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._iz._ft(Unknown Source)
> at com.evermind[Orion/1.5.1 (build
> 10410)]._ip.run(Unknown Source)
>
> Any Ideas?
>
> Thanks,
> Chuck
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/