I got this error a LOT in writing up my instructions for using Struts
within VAJ.  In 9 cases out of 10 what was happening was that Struts was
failing to load either the DTD's or the struts-config.xml file.  Basically,
what is happening is that the servlet init() method in the Struts
ActionServlet tries to do some one-time-only setup - this includes setting
up some shared configuration information. If the setup doesn't complete
successfully (usually because it can't find a configuration file) then none
of the tag libraries (or the rest of struts for that matter) will work.

Look back through your log files and see if there isn't a set of earlier
messages about not finding one or more files.  Fix that problem and this
one will probably go away.

Kyle Brown


"RoleModel Software" <[EMAIL PROTECTED]> on 06/07/2001
09:03:17 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Re: exception in MessageTag.doStartTag()



We have struts.jar in /WEB-INF/lib/

I believe that everthing is in the classpath... but that we probably have a
configuration problem in one of our files.
The immediate problem that I see in the doStartTag() method is that the
message we get back is null.

----- Original Message -----
From: "Oleg V Alexeev" <[EMAIL PROTECTED]>
To: "RoleModel Software" <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 1:06 AM
Subject: Re: exception in MessageTag.doStartTag()


> Hello RoleModel,
>
> Thursday, June 07, 2001, 1:44:37 AM, you wrote:
>
> RS> We're just starting to learn about Struts. We have downloaded the
code
(and binaries) (v.b3) for struts-example. The binaries run fine, and we get
the expected output. When we try to set up the
> RS> source version, though, we get the following error:
>
> RS>   javax.servlet.jsp.JspException
> RS>         java.lang.Throwable(java.lang.String)
> RS>         java.lang.Exception(java.lang.String)
> RS>         javax.servlet.jsp.JspException(java.lang.String)
> RS>         int org.apache.struts.taglib.bean.MessageTag.doStartTag()
> RS>         void
_0002findex_0002ejspindex_jsp_0.
_jspService(javax.servlet.http.HttpServletRe
quest, javax.servlet.http.HttpServletResponse)...
>
> RS> Can anybody give us a clue about what's going on? As far as we can
tell, we've got everything configured properly, but we're guessing we made
a
mistake somewhere.
>
> I think you place struts.jar to the CLASSPATH. struts.jar must be placed
> to the WEB-INF/lib directory of your application, remove any
> references to it from CLASSPATH.
>
> If struts.jar in WEB-INF/lib , CLASSPATH is free of links to the
> struts.jar and you are already has this exception then explane please
> your problem.
>
> --
> Best regards,
>  Oleg                            mailto:[EMAIL PROTECTED]
>
>



Reply via email to