Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

web.xml context-param entries

0 views
Skip to first unread message

Brian Homrich

unread,
Sep 14, 2000, 3:00:00 AM9/14/00
to
I'm trying to setup a web app into a directory structure according to
the
specification, and I'm working on a web.xml file that I want to add some

context-param entries to.

I've built a small web.xml file so far, and it works fine; servlets are

refered to and are loaded as expected. So, before adding any
context-param,
web.xml is well-formed and valid.

If I add ANY contextp-param stanzas:
<context-param>
<param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
<param-value>0</param-value>
</context-param>

I get this error from weblogic on server start:
Thu Sep 14 00:54:33 CDT 2000:<E> <HTTP> Error parsing descriptor in Web
applicat
ion '/home/bhomrich/webApps/gbci'
org.xml.sax.SAXParseException: Element "web-app" does not allow
"context-param" here.
at com.sun.xml.parser.Parser.error(Parser.java:2775)
at
com.sun.xml.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:310)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1280)
at com.sun.xml.parser.Parser.content(Parser.java:1498)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at
weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:81)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:189)
at
weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:586)
at
weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:559)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1305)

I've looked at the example web.xml in the weblogic documentation for web
applications, and it looks the same as mine.

Anyone have any ideas?

Thanks,

Brian Homrich
Chicago Illinois

Scott Jacobs

unread,
Sep 14, 2000, 3:00:00 AM9/14/00
to
I think your problem may be that you need to have these come
immediately after the <display-name> and <description> tags in your
war file. I too had this problem - and it was that I did not have
these in the proper sequence according to the DTD.
0 new messages