I am very new to
servlet programming. I am using Intelij 14.1.4 Ultimate Edition on Ubuntu 14.04. I have created a class
and the
web.xml is
Now when I click the play button up right of the corner then in the browser window is massage is shown -
HTTP Status 404 - Not Found
type Status report
messageNot Found
descriptionThe requested resource is not available.
GlassFish Server Open Source Edition 4.1
and in the browser url is -
http://localhost:8080/ServletsTest_war_exploded/index.xhtml
This is the information from the
IDE console -
Waiting for domain1 to start [2015-09-17 02:47:19,399] Artifact ServletsTest:ear exploded: Server is not connected. Deploy is not available.
Detected server admin port: 4848
Detected server http port: 8080
....
Successfully started the domain : domain1
domain Location: /home/seal/Downloads/glassfish4/glassfish/domains/domain1
Log File: /home/seal/Downloads/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
Connected to server
[2015-09-17 02:47:23,084] Artifact ServletsTest:ear exploded: Artifact is being deployed, please wait...
[2015-09-17 02:47:26,470] Artifact ServletsTest:ear exploded: Artifact is deployed successfully
[2015-09-17 02:47:26,471] Artifact ServletsTest:ear exploded: Deploy took 3,387 milliseconds
/home/seal/Downloads/glassfish4/glassfish/bin/asadmin stop-domain domain1
[2015-09-17 02:48:57,825] Artifact ServletsTest:ear exploded: Artifact is not deployed. Press 'Deploy' to start deployment
I think the server is opening, but problem with the url.
So what would be the wrong with my program ?
Thank you .