You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Marc L. Veary" <ma...@mlveary.demon.co.uk> on 2003/06/13 16:49:57 UTC

Message Resources Problem?

Hi

I have:

jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08

A simple application which uses <bean:message key=..."/> and everything
works, except
when a JSP is rendered which contains one or more of the above tag JBoss
shows some exceptions:

Element type "message-resource" must be declared....

  and:

Element type "plug-in must be declared....

These elements are present in the struts-config.xml, and the message
resource is being read,
it is just these odd exceptions?

Any clues would be gratefully recieved.

Kindly,
--
Marc (A Newbie to Struts)


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Message Resources Problem?

Posted by "Marc L. Veary" <ma...@mlveary.demon.co.uk>.
Aha!

There seems to have been something odd about the DOCTYPE defined in the
struts-config.xml

The Struts Console could not read the file.  So, I re-did the DOCTYPE and...

No more exceptions!

Many thanks.

Kind regards,
--
Marc

-----Original Message-----
From: James Mitchell [mailto:jmitchell@apache.org]
Sent: 13 June 2003 16:21
To: Struts Users Mailing List
Subject: Re: Message Resources Problem?


Ok, first thing I would do is verify that the entry for your struts-config
is correct in your web.xml.
Next thing I would do is deploy the ear expanded instead of packaged and
play around with various settings.....such as moving around the elements in
the struts-config (in case you've gotten them out of order.  Touch the
web.xml and JBoss will instantly redploy your app.

Verify the struts-config by using the Struts Cosole by James Holmes:

http://jamesholmes.com/struts


Hope this helps

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


----- Original Message -----
From: "Marc L. Veary" <ma...@mlveary.demon.co.uk>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, June 13, 2003 11:08 AM
Subject: RE: Message Resources Problem?


> I am using ant to automate a WAR contained in an EAR and this is then
copied
> directly to the deploy directory of JBoss.
>
> Regards,
> --
> Marc
>
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: 13 June 2003 16:01
> To: Struts Users Mailing List
> Subject: Re: Message Resources Problem?
>
>
> Marc, are you deploying a .war file or do you use the exploded format?
>
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.struts-atlanta.org
> 770-822-3359
> AIM:jmitchtx
>
>
> ----- Original Message -----
> From: <ha...@informatiefabriek.nl>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, June 13, 2003 10:53 AM
> Subject: Re: Message Resources Problem?
>
>
> > Hi Marc,
> >
> > I have pretty much the same configuration as you do (jboss, struts,
> > jdk1.4.1).
> >
> > I don't know what is causing your exceptions. But I can tell you that I
> > don't suffer the same problem.
> > So my guess is that something is wrong.
> >
> > Sorry, can't help you any further.
> >
> > Cheers,
> >
> > Harm.
> >
> >
> >
> >
> > "Marc L. Veary" <ma...@mlveary.demon.co.uk>
> > 06/13/2003 04:49 PM
> > Please respond to
> > "Struts Users Mailing List" <st...@jakarta.apache.org>
> >
> >
> > To
> > "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> > cc
> >
> > Subject
> > Message Resources Problem?
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I have:
> >
> > jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08
> >
> > A simple application which uses <bean:message key=..."/> and everything
> > works, except
> > when a JSP is rendered which contains one or more of the above tag JBoss
> > shows some exceptions:
> >
> > Element type "message-resource" must be declared....
> >
> >   and:
> >
> > Element type "plug-in must be declared....
> >
> > These elements are present in the struts-config.xml, and the message
> > resource is being read,
> > it is just these odd exceptions?
> >
> > Any clues would be gratefully recieved.
> >
> > Kindly,
> > --
> > Marc (A Newbie to Struts)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Message Resources Problem?

Posted by "Marc L. Veary" <ma...@mlveary.demon.co.uk>.
Thanks for the help.

I'll go and do this right now, and let you know the results.

Cheers m8...

Regards,
--
Marc

-----Original Message-----
From: James Mitchell [mailto:jmitchell@apache.org]
Sent: 13 June 2003 16:21
To: Struts Users Mailing List
Subject: Re: Message Resources Problem?


Ok, first thing I would do is verify that the entry for your struts-config
is correct in your web.xml.
Next thing I would do is deploy the ear expanded instead of packaged and
play around with various settings.....such as moving around the elements in
the struts-config (in case you've gotten them out of order.  Touch the
web.xml and JBoss will instantly redploy your app.

Verify the struts-config by using the Struts Cosole by James Holmes:

http://jamesholmes.com/struts


Hope this helps

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


----- Original Message -----
From: "Marc L. Veary" <ma...@mlveary.demon.co.uk>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, June 13, 2003 11:08 AM
Subject: RE: Message Resources Problem?


> I am using ant to automate a WAR contained in an EAR and this is then
copied
> directly to the deploy directory of JBoss.
>
> Regards,
> --
> Marc
>
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: 13 June 2003 16:01
> To: Struts Users Mailing List
> Subject: Re: Message Resources Problem?
>
>
> Marc, are you deploying a .war file or do you use the exploded format?
>
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.struts-atlanta.org
> 770-822-3359
> AIM:jmitchtx
>
>
> ----- Original Message -----
> From: <ha...@informatiefabriek.nl>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, June 13, 2003 10:53 AM
> Subject: Re: Message Resources Problem?
>
>
> > Hi Marc,
> >
> > I have pretty much the same configuration as you do (jboss, struts,
> > jdk1.4.1).
> >
> > I don't know what is causing your exceptions. But I can tell you that I
> > don't suffer the same problem.
> > So my guess is that something is wrong.
> >
> > Sorry, can't help you any further.
> >
> > Cheers,
> >
> > Harm.
> >
> >
> >
> >
> > "Marc L. Veary" <ma...@mlveary.demon.co.uk>
> > 06/13/2003 04:49 PM
> > Please respond to
> > "Struts Users Mailing List" <st...@jakarta.apache.org>
> >
> >
> > To
> > "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> > cc
> >
> > Subject
> > Message Resources Problem?
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I have:
> >
> > jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08
> >
> > A simple application which uses <bean:message key=..."/> and everything
> > works, except
> > when a JSP is rendered which contains one or more of the above tag JBoss
> > shows some exceptions:
> >
> > Element type "message-resource" must be declared....
> >
> >   and:
> >
> > Element type "plug-in must be declared....
> >
> > These elements are present in the struts-config.xml, and the message
> > resource is being read,
> > it is just these odd exceptions?
> >
> > Any clues would be gratefully recieved.
> >
> > Kindly,
> > --
> > Marc (A Newbie to Struts)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Message Resources Problem?

Posted by James Mitchell <jm...@apache.org>.
Ok, first thing I would do is verify that the entry for your struts-config
is correct in your web.xml.
Next thing I would do is deploy the ear expanded instead of packaged and
play around with various settings.....such as moving around the elements in
the struts-config (in case you've gotten them out of order.  Touch the
web.xml and JBoss will instantly redploy your app.

Verify the struts-config by using the Struts Cosole by James Holmes:

http://jamesholmes.com/struts


Hope this helps

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


----- Original Message ----- 
From: "Marc L. Veary" <ma...@mlveary.demon.co.uk>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Friday, June 13, 2003 11:08 AM
Subject: RE: Message Resources Problem?


> I am using ant to automate a WAR contained in an EAR and this is then
copied
> directly to the deploy directory of JBoss.
>
> Regards,
> --
> Marc
>
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchell@apache.org]
> Sent: 13 June 2003 16:01
> To: Struts Users Mailing List
> Subject: Re: Message Resources Problem?
>
>
> Marc, are you deploying a .war file or do you use the exploded format?
>
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.struts-atlanta.org
> 770-822-3359
> AIM:jmitchtx
>
>
> ----- Original Message ----- 
> From: <ha...@informatiefabriek.nl>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, June 13, 2003 10:53 AM
> Subject: Re: Message Resources Problem?
>
>
> > Hi Marc,
> >
> > I have pretty much the same configuration as you do (jboss, struts,
> > jdk1.4.1).
> >
> > I don't know what is causing your exceptions. But I can tell you that I
> > don't suffer the same problem.
> > So my guess is that something is wrong.
> >
> > Sorry, can't help you any further.
> >
> > Cheers,
> >
> > Harm.
> >
> >
> >
> >
> > "Marc L. Veary" <ma...@mlveary.demon.co.uk>
> > 06/13/2003 04:49 PM
> > Please respond to
> > "Struts Users Mailing List" <st...@jakarta.apache.org>
> >
> >
> > To
> > "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> > cc
> >
> > Subject
> > Message Resources Problem?
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I have:
> >
> > jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08
> >
> > A simple application which uses <bean:message key=..."/> and everything
> > works, except
> > when a JSP is rendered which contains one or more of the above tag JBoss
> > shows some exceptions:
> >
> > Element type "message-resource" must be declared....
> >
> >   and:
> >
> > Element type "plug-in must be declared....
> >
> > These elements are present in the struts-config.xml, and the message
> > resource is being read,
> > it is just these odd exceptions?
> >
> > Any clues would be gratefully recieved.
> >
> > Kindly,
> > --
> > Marc (A Newbie to Struts)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Message Resources Problem?

Posted by "Marc L. Veary" <ma...@mlveary.demon.co.uk>.
I am using ant to automate a WAR contained in an EAR and this is then copied
directly to the deploy directory of JBoss.

Regards,
--
Marc


-----Original Message-----
From: James Mitchell [mailto:jmitchell@apache.org]
Sent: 13 June 2003 16:01
To: Struts Users Mailing List
Subject: Re: Message Resources Problem?


Marc, are you deploying a .war file or do you use the exploded format?


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


----- Original Message ----- 
From: <ha...@informatiefabriek.nl>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, June 13, 2003 10:53 AM
Subject: Re: Message Resources Problem?


> Hi Marc,
> 
> I have pretty much the same configuration as you do (jboss, struts, 
> jdk1.4.1).
> 
> I don't know what is causing your exceptions. But I can tell you that I 
> don't suffer the same problem. 
> So my guess is that something is wrong. 
> 
> Sorry, can't help you any further.
> 
> Cheers,
> 
> Harm.
> 
> 
> 
> 
> "Marc L. Veary" <ma...@mlveary.demon.co.uk> 
> 06/13/2003 04:49 PM
> Please respond to
> "Struts Users Mailing List" <st...@jakarta.apache.org>
> 
> 
> To
> "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> cc
> 
> Subject
> Message Resources Problem?
> 
> 
> 
> 
> 
> 
> Hi
> 
> I have:
> 
> jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08
> 
> A simple application which uses <bean:message key=..."/> and everything
> works, except
> when a JSP is rendered which contains one or more of the above tag JBoss
> shows some exceptions:
> 
> Element type "message-resource" must be declared....
> 
>   and:
> 
> Element type "plug-in must be declared....
> 
> These elements are present in the struts-config.xml, and the message
> resource is being read,
> it is just these odd exceptions?
> 
> Any clues would be gratefully recieved.
> 
> Kindly,
> --
> Marc (A Newbie to Struts)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Message Resources Problem?

Posted by James Mitchell <jm...@apache.org>.
Marc, are you deploying a .war file or do you use the exploded format?


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


----- Original Message ----- 
From: <ha...@informatiefabriek.nl>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, June 13, 2003 10:53 AM
Subject: Re: Message Resources Problem?


> Hi Marc,
> 
> I have pretty much the same configuration as you do (jboss, struts, 
> jdk1.4.1).
> 
> I don't know what is causing your exceptions. But I can tell you that I 
> don't suffer the same problem. 
> So my guess is that something is wrong. 
> 
> Sorry, can't help you any further.
> 
> Cheers,
> 
> Harm.
> 
> 
> 
> 
> "Marc L. Veary" <ma...@mlveary.demon.co.uk> 
> 06/13/2003 04:49 PM
> Please respond to
> "Struts Users Mailing List" <st...@jakarta.apache.org>
> 
> 
> To
> "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> cc
> 
> Subject
> Message Resources Problem?
> 
> 
> 
> 
> 
> 
> Hi
> 
> I have:
> 
> jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08
> 
> A simple application which uses <bean:message key=..."/> and everything
> works, except
> when a JSP is rendered which contains one or more of the above tag JBoss
> shows some exceptions:
> 
> Element type "message-resource" must be declared....
> 
>   and:
> 
> Element type "plug-in must be declared....
> 
> These elements are present in the struts-config.xml, and the message
> resource is being read,
> it is just these odd exceptions?
> 
> Any clues would be gratefully recieved.
> 
> Kindly,
> --
> Marc (A Newbie to Struts)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Message Resources Problem?

Posted by "Marc L. Veary" <ma...@mlveary.demon.co.uk>.
Hi Harm,

I followed the install instructions to the letter as well with the latest
versions of the
various required libraries (xerces, etc).

Here is some more of the stacktrace:

14:33:47,421 ERROR [Digester] Parse Error at line 64 column 66: Element type
"me
ssage-resources" must be declared.
org.xml.sax.SAXParseException: Element type "message-resources" must be
declared
.
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:232)
        at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.
java:173)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:362)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:296)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDV
alidator.java:2874)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidat
or.java:814)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:748)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:333)

Kind regards,
--
Marc


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Message Resources Problem?

Posted by ha...@informatiefabriek.nl.
Hi Marc,

I have pretty much the same configuration as you do (jboss, struts, 
jdk1.4.1).

I don't know what is causing your exceptions. But I can tell you that I 
don't suffer the same problem. 
So my guess is that something is wrong. 

Sorry, can't help you any further.

Cheers,

Harm.




"Marc L. Veary" <ma...@mlveary.demon.co.uk> 
06/13/2003 04:49 PM
Please respond to
"Struts Users Mailing List" <st...@jakarta.apache.org>


To
"'Struts Users Mailing List'" <st...@jakarta.apache.org>
cc

Subject
Message Resources Problem?






Hi

I have:

jakarta-struts-1.1-b3, JBoss 3.2.1, JDK 1.3.1_08

A simple application which uses <bean:message key=..."/> and everything
works, except
when a JSP is rendered which contains one or more of the above tag JBoss
shows some exceptions:

Element type "message-resource" must be declared....

  and:

Element type "plug-in must be declared....

These elements are present in the struts-config.xml, and the message
resource is being read,
it is just these odd exceptions?

Any clues would be gratefully recieved.

Kindly,
--
Marc (A Newbie to Struts)


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org