Hi,

1. Your error looks like an XML parsing error.  Compare with the DTD to make sure that 
you are placing the elements in the correct locations and that you don't have 
attributes out of place. 

I think that weblogic is telling you that it does not expect <servlet> element where 
you've placed it. Try making sure the order of the elements is correct.

The general order is 
<!ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, 
servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, 
error-page*, taglib*, resource-ref*, security-constraint*, login-config?, 
security-role*, env-entry*, ejb-ref*)>

Hope that helps

> Hi folks,
> 
> I have to use Weblogic 5.1 SP8. My war file has a
> normal web.xml to
> support struts. When the war file is deployed, the
> weblogic server is
> not starting up properly. When the weblogic server is
> started it gives
> an xml parser exception and says <servlet> attribute
> is not expected
> under web-app.
> 
> My war file works fine in Tomcat.
> 
> What could be wrong? Please help.
> 
> The stacktrace is as follows.
> 
> org.xml.sax.SAXParseException: Element "web-app" does
> not
> allow "servlet" here.
> at
> at
> at
> t com.sun.xml.parser.Parser.error(Parser.java:2775)
> at
> at
> at
> t
> com.sun.xml.parser.ValidatingParser$ChildrenValidator.
> onsume
> 
> (Validat
> ingParser.java:310)
> at
> at
> at
> t
> com.sun.xml.parser.Parser.maybeElement(Parser.java:128
> )
> at
> at
> at
> t com.sun.xml.parser.Parser.content(Parser.java:1498)
> at
> at
> at
> t
> com.sun.xml.parser.Parser.maybeElement(Parser.java:139
> )
> at
> at
> at
> t
> com.sun.xml.parser.Parser.parseInternal(Parser.java:49
> )
> at
> at
> at com.sun.xml.parser.Parser.parse(Parser.java:283)
> at weblogic.xml.dom.SunDOMParser.getDocument
> (SunDOMParser.java:69)
> at
> at
> at
> t
> weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:
> 02)
> at
> at
> at
> t
> weblogic.servlet.internal.dd.DescriptorLoader.<init>
> (DescriptorLoader
> .java:134)
> at weblogic.t3.srvr.HttpServer.loadWARContext
> (HttpServer.java:627)
> at
> at
> at weblogic.t3.srvr.HttpServer.initServletContexts
> (HttpServer.java, Comp
> iled Code)
> at
> at
> at
> t
> weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java,
> r.java, Compiled Code)
> at
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
> at java.lang.reflect.Method.invoke(Native
> (Native Method)
> at
> at
> at
> t
> weblogic.Server.startServerDynamically(Server.java:99)
> at weblogic.Server.main(Server.java:65)
> at weblogic.Server.main(Server.java:55)
> 
> thanks,
> Jacob
> 
> ------------------------------------------------------
> ------------------------------------------------------
> ---------
> Information transmitted by this E-MAIL is proprietary
> to Wipro and/or its Customers and
> is intended for use only by the individual or entity
> to which it is
> addressed, and may contain information that is
> privileged, confidential or
> exempt from disclosure under applicable law. If you
> are not the intended
> recipient or it appears that this mail has been
> forwarded to you without
> proper authority, you are notified that any use or
> dissemination of this
> information in any manner is strictly prohibited. In
> such cases, please
> notify us immediately at mailto:[EMAIL PROTECTED]
> and delete this mail
> from your records.
> ------------------------------------------------------
> ------------------------------------------------------
> ----------
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>


--
Sent via jApache.org

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to