• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with WAR file deployment in Weblogic 5.1

 
Rajnarayan Deenadayalan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem with WAR file deployment in Weblogic 5.1
I'm trying to deploy the sample war file(cookie example) given by weblogic. I have created the war file in the WL_HOME/myserver directory and also referenced it in the weblogic.properties file. When I start Weblogic 5.1, it's giving me the error pasted below. Essentially, it doesn't seem to recognise the XML file or the war file. Please provide any inputs you may have to resolve this.

Weblogic Server started
Fri Apr 13 14:54:38 PDT 2001:<E> <HTTP> Could not find Web application 'c:\weblogic\myserver\cookieWar.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:132)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:645)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:625)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1302)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
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)
Fri Apr 13 14:54:38 PDT 2001:<E> <HTTP> Error creating servlet context for Web application 'c:\weblogic\myserver\cookieWar.war'
java.lang.NullPointerException
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:626)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1302)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
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)
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I trust that you do have web.xml inside your .war file, right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!