RE: [OT] DTD URL in web.xml
Well, I just had a D'Oh-moment! While upgrading to Struts 1.1, I had upgraded my web.xml gleefully using the example apps as inspiration. Therein lies the rub -- the example apps assume that you are on a Servlet 2.3 container. However JRun 3.1 is not; it is downright prehistoric. (I have since (re)updated my web.xml to use the old DTD) Now I have a different problem. The ServletException message is: Could not instantiate org.apache.struts.action.ActionServlet [1]java.lang.NullPointerException I was hoping that updating my application code base would be all I had to do; I guess not :( Sri P.S. I *have* seen the earlier posts on this subject such as http://marc.theaimsgroup.com/?l=struts-user&m=103643076609041&w=2 -Original Message- From: Sri Sankaran Sent: Wednesday, February 26, 2003 3:17 PM To: Struts-User Subject: [OT] DTD URL in web.xml Does the servlet container actually access the location specified for the DTD in the DOCTYPE statement of the web.xml? Couple of reasons for this question: * JRun 3.1 is having heartache with my app that I just ported to Struts 1.1. It throws a ServletException with the message External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";. * This seems un-necessary and circuitous. One would think the container would maintain a copy of the DTD The odd thing is that it works for the Struts 1.0 web.xml. Sri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] DTD URL in web.xml
Geeta wrote: > You know I *vaguely* remember an error like this and I *think* we resolved it by > changing 2_3.dtd to 2_2.dtd or some such > thing.. So maybe you may want to check that..? Long shot, i agree..;) This doesn't seem to be just Struts... all of the sudden as I work on my Struts webapp, JEdit is popping up windows complaining that "This XML file depends on a resource which is stored at the following Internet address ..." and do I want the XML plugin to download the resource and cache it. Have the tags in the xml files been changed recently? -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: [OT] DTD URL in web.xml
On Wed, 26 Feb 2003, Sri Sankaran wrote: > Date: Wed, 26 Feb 2003 15:17:17 -0500 > From: Sri Sankaran <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts-User <[EMAIL PROTECTED]> > Subject: [OT] DTD URL in web.xml > > Does the servlet container actually access the location specified for > the DTD in the DOCTYPE statement of the web.xml? > It depends on the container -- Tomcat has a built-in copy of the DTDs and accesses those if the public ID that you specify matches. For other containers, you'd have to ask their developers. > Couple of reasons for this question: > * JRun 3.1 is having heartache with my app that I just ported > to Struts 1.1. It throws a ServletException with the message > External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";. > * This seems un-necessary and circuitous. One would think the > container would maintain a copy of the DTD > Yep :-). > The odd thing is that it works for the Struts 1.0 web.xml. > > Sri > > Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] DTD URL in web.xml
You know I *vaguely* remember an error like this and I *think* we resolved it by changing 2_3.dtd to 2_2.dtd or some such thing.. So maybe you may want to check that..? Long shot, i agree..;) Geeta Sri Sankaran wrote: > Does the servlet container actually access the location specified for the DTD in the > DOCTYPE statement of the web.xml? > > Couple of reasons for this question: > * JRun 3.1 is having heartache with my app that I just ported > to Struts 1.1. It throws a ServletException with the message > External entity not found: "http://java.sun.com/dtd/web-app_2_3.dtd";. > * This seems un-necessary and circuitous. One would think the > container would maintain a copy of the DTD > > The odd thing is that it works for the Struts 1.0 web.xml. > > Sri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]