On Sat, 22 Jan 2005 09:04:23 +0530, Vinod Easaw Varghese
<[EMAIL PROTECTED]> wrote:
> But my web .xml refers to the 2.2 DTD

Do you have the DTD in the right place in the class path?

org/apache/struts/resources/web-app_2_2.dtd

--
Martin Cooper


> <!DOCTYPE web-app
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> With thanks and Regards
> Vinod Easaw Varghese
> 
> -----Original Message-----
> From: Martin Cooper [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 22, 2005 9:01 AM
> To: Struts Developers List
> Subject: Re: ------HELP-----STRUTS source setup on WSAD5.1
> 
> My guess is that you are using Servlets 2.4, and you are not online.
> Struts has copies of the 2.2 and 2.3 DTDs locally, but not the 2.4
> XSD, so it will try to retrieve that from the Sun web site. If you're
> not online, that will fail, obviously.
> 
> --
> Martin Cooper
> 
> On Sat, 22 Jan 2005 08:43:04 +0530, Vinod Easaw Varghese
> <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> >            I am trying to setup the STRUTS framework source for
> version
> > 1.2.6 within WSAD5.1. When I try to create any JSP page utilizing the
> > framework through the STRUTS source I have set up in the same project
> I
> > get the following error
> >
> > [1/22/05 8:40:24:040 IST] 4f8552d4 ActionServlet E
> > org.apache.struts.action.ActionServlet  The /WEB-INF/web.xml was not
> > found.
> > [1/22/05 8:40:24:087 IST] 4f8552d4 ActionServlet E
> > org.apache.struts.action.ActionServlet  TRAS0014I: The following
> > exception was logged java.net.UnknownHostException: java.sun.com
> >      at java.net.InetAddress.getAllByName0(InetAddress.java:591)
> > at java.net.InetAddress.getAllByName0(InetAddress.java:560)
> >      at java.net.InetAddress.getByName(InetAddress.java:469)
> >      at java.net.Socket.<init>(Socket.java:121)
> >      at sun.net.NetworkClient.doConnect(NetworkClient.java:65)
> >      at sun.net.www.http.HttpClient.openServer(HttpClient.java:361)
> >      at sun.net.www.http.HttpClient.openServer(HttpClient.java:548)
> >      at sun.net.www.http.HttpClient.<init>(HttpClient.java:296)
> >      at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
> >      at sun.net.www.http.HttpClient.New(HttpClient.java:318)
> >      at
> >
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
> > va:466)
> >      at
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
> > tion.java:562)
> >      at java.net.URL.openStream(URL.java:826)
> >      at
> >
> org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav
> > a:748)
> >      at
> >
> org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.
> > java:708)
> >      at
> >
> org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImp
> > l.java:258)
> >      at
> >
> org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XML
> > DocumentScannerImpl.java:833)
> >      at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
> > cumentFragmentScannerImpl.java:333)
> >      at
> >
> org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
> > erConfiguration.java:525)
> >      at
> >
> org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardPars
> > erConfiguration.java:581)
> >      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
> >      at
> >
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
> > :1158)
> >      at org.apache.commons.digester.Digester.parse(Digester.java:1591)
> >      at
> >
> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:11
> > 42)
> >      at
> > org.apache.struts.action.ActionServlet.init(ActionServlet.java:328)
> >
> > I believe this is happening  within ActionServlet class when it is
> > trying to parse the web.xml . Could anyone tell me why is this
> happening
> >
> > With thanks and Regards
> > Vinod Easaw Varghese
> >
> >
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to