wood burning stoves*
The moose likes BEA/Weblogic and the fly likes Error 404--Not Found:when deploying application in exploded directory format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Error 404--Not Found:when deploying application in exploded directory format" Watch "Error 404--Not Found:when deploying application in exploded directory format" New topic
Author

Error 404--Not Found:when deploying application in exploded directory format

Amitav Chowdhury
Greenhorn

Joined: Nov 13, 2009
Posts: 10
Hi All,

I am trying to deploy a simple HelloWorld servlet in weblogic 10.0 in exploded directory format. But I get a "Error 404--Not Found" error when trying to see the servlet output through the browser.

Below are the steps I follow to deploy the application.

1. Create a domain in weblogic (say "test_domain").
2. Create a folder called "HelloWorld" in "WLS_HOME\user_projects\domains\test_domain\autodeploy".
3. In "HelloWorld" create "WEB-INF" folder. In it create a "classes" folder containing HelloWorld.class
4. Directly under "WEB-INF" create web.xml. Following is the content of web.xml:



5. Start the admin server
6. Try to access the output using : http://localhost:7001/HelloWorld/hello

How do I fix this issue?

Thanks in advance,
Amitava
Sai Yelisetty
Greenhorn

Joined: Jul 07, 2010
Posts: 2
Go to the WLS Admin console and see if the application status is New. If yes, you need to start the application and make sure it turned to Active status. Then you can browse your application.

1. Logon to Admin connsole: http://localhost:7001/console [use the userId/Password you provided while creating the domain]
2. Click on the "deployments" link on the left side pane of the page
3. Check the box against your application and click on the start button (service all requests).
4. You should finally see the apllication in "Active" state once it is started successfully.
5. Now, browse your application http://localhost:7001/HelloWorld/hello
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error 404--Not Found:when deploying application in exploded directory format
 
Similar Threads
Starting out on Servlets - from Head First Servlets and JSP
Problem with webapplication during deploying
war flie won't deply
Problems getting servlets to work on Tomcat 4
Unable to load servlet in Tomcat 5.5