• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem with servlet in glassfish server.

Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
create, convert, edit or print DOC and DOCX in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!