Hi everybody, I am new to Weblogic and recently installed Weblogic6.1 on my machine and I am trying to access my application using weblogic and it gives Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.5 404 Not Found I have uploaded the WAR file of my application using the Admin console. The WAR file is place under \bea\wlserver6. \config\mydomain\applications\screen.war. What am I doing wrong ? Thanks is advance. PS: I am also including my web.xml file and config.xml
Are you trying to access your application in the correct web context? For example since your war is named screen.war it will be placed in the /screen context. Assuming you have an index.jsp page you would access your application from the local machine using the following url: http://localhost:7001/screen/index.jsp.
Yes I am accessing the application using http://localhost:7001/index.jsp. Does Weblogic has any problems if I have JAR files in my WEB-INF/lib/ directory in my WAR file. And also I have images/ directory at the same level as WEB-INF, also the index.jsp is in the same level as the WEB-INF directory in my WAR file. Is Weblogic dependent on the directory structure of the WAR file that is being deployed. Thanks in advance. Ravi.
Everything seems okay with your war's directory structure from what you describe. Two more things to double-check (though from the config.xml snippet you posted everything should be okay): 1) Make sure the web application has its target set. Goto WebLogic Console -> Web Applications -> screen -> Targets. 2) Make sure the web application is marked to deploy. Next check the logs to make sure the application is deploying sucessfully. You should see an entry similar to the following:
I checked what you said and the application is deployed. Also checked the weblogic.log file and it shows the screen delopyed statement. Is there anything else I am missing? I used the same war file and deployed on Tomcat and it works without any problems.
Everything looks right to me, also. I did notice in the config.xml piece you posted you have a default web app specified as DefaultWebApp. This is OK, but I have seen sometimes some problems (with 6.x, I think) if that DefaultWebApp was not deployed. Maybe try unsetting the default web app and see if that helps. It is a "long shot", but everything else looks OK. Also, sometimes it can help to undeploy it and start again. Since applications is a "magic" directory, you'll have to remove the war from there. Then make sure it is undeployed (check config.xml to be sure it got removed). If you really want to clean things up, stop the server and delete the temp cache directories created by the server - mainly applications/.wlnotdelete and myserver directories (these temp directories move around from release to release, so I don't remember what they were called in 6.1, but its something like that). Copy the war back to applications directory and see if it works this time.
Ahh... the magical and mystical delete all the do not delete folders procedure. It usually has to get pretty bad before I resort to that tactic though I have also ran into cases where this has mysteriously fixed my problems. Gotta love those solutions .
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop