• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with servlet in glassfish server.

 
Ranch Hand
Posts: 50
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic