Changing web.xml to 2.4 allows me to debug again.

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>      http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>      version="2.4">


--
Jody Garnett

On 4 August 2016 at 20:57, Jody Garnett <[email protected]> wrote:

> So I have been having trouble debugging geoserver in eclipse due to the
> following:
>
> 04 Aug 20:48:48 WARN [webapp.WebAppContext] - Failed startup of context
>> o.e.j.w.WebAppContext@626c44e7
>> {/geoserver,file:/Users/jody/java/geoserver/jive/src/web/app/src/main/webapp/,null}{src/main/webapp}
>> java.net.ProtocolException: Server redirected too many  times (20)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1848)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1305)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1271)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:263)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1167)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
>
>
> Since the stack trace was from the DTDDriver I figured I would look at the
> XML for web.xml for a DTD reference.
>
> There is one at the top of the file:
>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
>> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>
> Visiting that page does not work ...
>
> The www.oracle.com page isn’t working
>> *www.oracle.com <http://www.oracle.com>* redirected you too many times.
>> Try:
>>
>>    - Reloading the page
>>
>>
>>    - Clearing your cookies
>>
>> ERR_TOO_MANY_REDIRECTS
>
>
> So did Oracle just break Servlet 2.3 web.xml files? That would be bad ...
> and an example of why xml is brittle :)
> Is anyone else having this trouble? Is it time to update our web.xml ...
>
> Running a standalone geoserver does not demonstrate this issue so I think
> it may just be me in a bad spot.
> --
> Jody Garnett
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to