Error 404--Not Found:when deploying application in exploded directory format
posted 5 years ago
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:
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