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

WAR Deployment Problem (WEB-INF/web.xml not found)

0 views
Skip to first unread message

Donald Ye

unread,
Mar 29, 2001, 6:15:10 PM3/29/01
to

I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy it
when it start up. Here is what I did,

1. I jared all necessary files including WEB-INF\web.xml in the myapp.war file;
here I used all uppercase for WEB-INF directory, but after I jared it, it shew
up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file. I think
this is the behavior of jar program.

2. I appended the myapp.war to the weblogicclasspath in the start script;

3. In weblogic.properties file, I specified two lines:
weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
weblogic.httpd.defaultWebApp=myapp

4. Then I start up the WebLogic server named "default". It shew the following
error messages:

java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
ml
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
java:177)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)

Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp' as d
efault servlet context
java.lang.NullPointerException
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)

Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application 'c:/weblo
gic/default/myapp.war'
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
java:134)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)


Please help me find out what is wrong with this. Greatly Appreciated.

Thanks in advance,

Donald

Cindre

unread,
May 10, 2001, 10:47:33 AM5/10/01
to

If it is still not working, try to set the weblogic.httpd.documentRoot =c:/weblogic/default
in the weblogic.properties & try.

"Donald Ye" <y...@lehman.com> wrote:
>
>
>I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy
>it
>when it start up. Here is what I did,
>
>1. I jared all necessary files including WEB-INF\web.xml in the myapp.war
>file;
>here I used all uppercase for WEB-INF directory, but after I jared it,
>it shew
>up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file.
>I think
>this is the behavior of jar program.
>
>2. I appended the myapp.war to the weblogicclasspath in the start script;
>
>3. In weblogic.properties file, I specified two lines:
>weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
>weblogic.httpd.defaultWebApp=myapp
>
>4. Then I start up the WebLogic server named "default". It shew the following
>error messages:
>
>java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
>ml
> at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader

>.java:177)

>.java:134)

0 new messages