Re: Problem creating server from embedded server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Problem creating server from embedded server

Kristian Nordal
Laran Evans <lc278 <at> cornell.edu> writes:

< ... cut ... >

> And the exception I get is:

< ... cut ... >

> SEVERE: Multiple exceptions
> org.mortbay.util.MultiException[org.xml.sax.SAXParseException: Element
> type "web
> -app" is not declared.]
>          at org.mortbay.http.HttpServer.doStart(HttpServer.java:673)
>          at org.mortbay.util.Container.start(Container.java:72)
>          at org.my.Main.main(Main.java:84)
> org.xml.sax.SAXParseException: Element type "web-app" is not declared.
>          at org.apache.crimson.parser.Parser2.error(Parser2.java:3354)
>          at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1502)
>          at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
>          at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
>          at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>
>          at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>          at org.mortbay.xml.XmlParser.parse(XmlParser.java:206)
>          at org.mortbay.xml.XmlParser.parse(XmlParser.java:224)
>          at
> org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfi
> guration.java:154)
>          at
> org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(Web
> ApplicationContext.java:415)
>          at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicatio
> nContext.java:464)
>          at org.mortbay.util.Container.start(Container.java:72)
>          at org.mortbay.http.HttpServer.doStart(HttpServer.java:695)
>          at org.mortbay.util.Container.start(Container.java:72)
>          at org.my.Main.main(Main.java:84)

I have the exact same problem. This is my web.xml file:

<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Archetype Created Web Application</display-name>
</web-app>
 
Did you find a solution to this?

Sorry for cutting out the first part (and other stuff), but Gmane wouldn't
let me post with so much quoted text.

--
Thanks,
Kristian





-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support