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/

Reply via email to