Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

After deployment got "404 Not Found". How to find the correct URL?

J. NewmanNov 2 2009 — edited Nov 3 2009
To the experienced:

In preparing to deploy my application, I am using JDeveloper 10.1.3.4 to deploy the application to the standalone oc4j server that is included in JDeveloper. After the deployment, I get the "404 Not Found" error when trying to invoke the application in a browser. The deployment looks OK, becasue the log window in JDeveloper showed no error when running deployment from inside JDeveloper. Therefore I guess the question is how to find out the correct URL to invoke the application. The steps I took in doing the deployment are as follows.

I first installed the standalone oc4j by running the <jdev_home>\jdev\bin\start_oc4j .bat file. The installation is OK because I deployed the SRTutorial applcation and invoked it in a browser successfully.

The WAR file was created by right-clicking the ViewController project and select to create a WAR file. To the application's Context Root its own name, I typed "ZB" in the box for the context root.

Then in ViewController -> Resources, right_click the deployment file (ZBOV.deploy) and chose "Deploy to" the local_standalone_oc4j. The messages in JDeveloper's log window for the deployment are all clean without errors.

I then used this url to invoke the deployed application in a browser:

http://localhost:8888/ZB/faces/staff/login.jspx

But I got an "404 Not Found" error. Right away I tried invoking the SRTutorial application, and it runs fine.

login.jspx is one of the pages for the appllication. In the application navigator, it is located with other files in the ViewController/Web Content/staff folder, therefore I used /staff/login.jspx after ZB/faces.

What could be wrong? If the deployment is actually successful, how to find out the correct url to invoke the application?

Many thanks for your help!


Newman
This post has been answered by Arunkumar Ramamoorthy-Oracle on Nov 3 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2009
Added on Nov 2 2009
8 comments
789 views