You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kan Leung, MK" <lm...@digitalempires.net> on 2001/02/26 07:22:56 UTC

message error after compiling other classes

Hi,

During development, I always recompile my classes when the container is
up and running. Newly compiled classes can be reloaded correctly.
However, the browser always shows Message Tag errors if the page contain
<bean:message .../> tags. The classes which I re-compiled haven't use
any Struts-specific libraries.

The only relation is in the JSP page, that contains <bean:message  .../>
tags and uses the beans which I just recompiled. Any clue?

==========8<==========
Internal Servlet Error:

javax.servlet.ServletException:
org.apache.struts.util.PropertyMessageResources
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:459)
        at
_0002fregister_0005fdn_0005fpasswd_0002ejspregister_0005fdn_0005fpasswd_
jsp_13._jspService(_0002fregister_0005fdn_0005fpasswd_0002ejspregister_0
005fdn_0005fpasswd_jsp_13.java:228)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 ..........
 ..........

Root cause:

java.lang.ClassCastException:
org.apache.struts.util.PropertyMessageResources
        at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:282)
        at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
        at
_0002fregister_0005fdn_0005fpasswd_0002ejspregister_0005fdn_0005fpasswd_
jsp_13._jspService(_0002fregister_0005fdn_0005fpasswd_0002ejspregister_0
005fdn_0005fpasswd_jsp_13.java:145)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 ..........
 ..........
 ..........
==========8<==========


--
Kan LEUNG, M K
email: lmk@digitalempires.net
Digital Empires Company Limited






Re: message error after compiling other classes

Posted by "Kan Leung, MK" <lm...@digitalempires.net>.
Hi Robert,

Yes, I do. In fact, the <bean:message /> tags returns the correct
strings if the servlet container (tomcat 3.2.1) just starts. Everything
is okay until I re-compile my own classes. My own classes have no
relation with Struts-specific classes. They are just linked up by the
JSP page.

Any clue?


--
Kan LEUNG, M K
email: lmk@digitalempires.net
Digital Empires Company Limited


----- Original Message -----
From: "Robert Leland" <Ro...@free2create.org>
To: <st...@jakarta.apache.org>
Sent: Monday, February 26, 2001 6:36 PM
Subject: Re: message error after compiling other classes


> "Kan Leung, MK" wrote:
> > Internal Servlet Error:
> >
> > javax.servlet.ServletException:
> > org.apache.struts.util.PropertyMessageResources
> >         at
>
> Do you have a copy of your Property.Resources
> located somewhere under your
> WEB-INF/classes/net.digitalempires.yourapp
> or in you are creating a jar file in the .jar ?
>
>
> > Kan LEUNG, M K
> > email: lmk@digitalempires.net
> > Digital Empires Company Limited
>



Re: message error after compiling other classes

Posted by Robert Leland <Ro...@free2create.org>.
"Kan Leung, MK" wrote:
> Internal Servlet Error:
> 
> javax.servlet.ServletException:
> org.apache.struts.util.PropertyMessageResources
>         at

Do you have a copy of your Property.Resources
located somewhere under your
WEB-INF/classes/net.digitalempires.yourapp
or in you are creating a jar file in the .jar ?


> Kan LEUNG, M K
> email: lmk@digitalempires.net
> Digital Empires Company Limited