RE: Message Resources Problem?
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:[EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > > 06/13/2003 04:49 PM > > Please respond to > > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > > To > > "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > 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 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Message Resources Problem?
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:[EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > > 06/13/2003 04:49 PM > > Please respond to > > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > > To > > "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > 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 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > > 06/13/2003 04:49 PM > > Please respond to > > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > > To > > "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > > 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 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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:[EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > 06/13/2003 04:49 PM > Please respond to > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > To > "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > 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 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Message Resources Problem?
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > 06/13/2003 04:49 PM > Please respond to > "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > To > "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > 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 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> 06/13/2003 04:49 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> 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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Message Resources Problem in SubApp - Bug?
Hi James, Just want to report another relate error on this topic. When deploy on JRUN4, and not using struts validator. My static forward action (ie an action with static forward to a jsp) which displays a blank form, can only run once. When I try again, Jrun complains about not able to find resources in my jsp page. Is it a JRun bug? I then copy the message resource to the default app configuration, JRUN 4 is then happy. -Da - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 2:10 PM Subject: RE: Message Resources Problem in SubApp - Bug? > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 > > > James Mitchell > Software Engineer/Struts Evangelist > http://www.open-tools.org > > "Only two things are infinite, the universe and human stupidity, and I'm not > sure about the former." > - Albert Einstein (1879-1955) > > > > -Original Message- > > From: Dan Tran [mailto:danttran@;hotmail.com] > > Sent: Wednesday, October 30, 2002 4:56 PM > > To: Struts Users Mailing List > > Subject: Message Resources Problem in SubApp - Bug? > > > > > > I have two Struts config files: struts-config.xml and > > struts-config-myapp.xml > > All of my work is in the second one ( the subapp). > > > > What I found out, I have to copy message resources in the subapp > > to the default (struts-config.xml) > > as well inorder for struts validator to work. Other wise, it > > would throw an exception which has something to > > do with the Message class. > > > > Is it the intended behaviour? > > > > I am not able to find any reference of the behavior any where, > > include the archive. > > > > Any advice? > > > > > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
RE: Message Resources Problem in SubApp - Bug?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein (1879-1955) > -Original Message- > From: Dan Tran [mailto:danttran@;hotmail.com] > Sent: Wednesday, October 30, 2002 4:56 PM > To: Struts Users Mailing List > Subject: Message Resources Problem in SubApp - Bug? > > > I have two Struts config files: struts-config.xml and > struts-config-myapp.xml > All of my work is in the second one ( the subapp). > > What I found out, I have to copy message resources in the subapp > to the default (struts-config.xml) > as well inorder for struts validator to work. Other wise, it > would throw an exception which has something to > do with the Message class. > > Is it the intended behaviour? > > I am not able to find any reference of the behavior any where, > include the archive. > > Any advice? > > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
Message Resources Problem in SubApp - Bug?
I have two Struts config files: struts-config.xml and struts-config-myapp.xml All of my work is in the second one ( the subapp). What I found out, I have to copy message resources in the subapp to the default (struts-config.xml) as well inorder for struts validator to work. Other wise, it would throw an exception which has something to do with the Message class. Is it the intended behaviour? I am not able to find any reference of the behavior any where, include the archive. Any advice?