| Author |
deploying an application
|
caleb momanyi
Ranch Hand
Joined: Jun 17, 2012
Posts: 43
|
|
hi all
I have created a new web project in netbeans and I am using glassfish server 3.x
the project name is myProject
how can I get my project name to display in the address bar of my browser when I click run. ie instead of
localhost:8080/web/
I want it to display,
localhost:8080/myProject
the problem is that when I try to deploy a different application to glassfish I get an error that there is already an application deployed at that place of deployment. I wish there was an error message ti report but as yall can see this is just something I am overlooking. please help soon. thenks
|
 |
Dave Elwood
Ranch Hand
Joined: Dec 27, 2002
Posts: 83
|
|
how are you writing the web app?
are you using the javaee libraries and glassfish server?
You've got to do some mapping.
I am writing stuff like that now and I found that after Tomcat 4 you need to add some extra stuff to the web.xml file when writing the app.
look at this one.
if you call localhost:8080/Servlet1, this calls a goodie by the name of test and the goodie by the name of test is actually a servlet class called Servlet1
if you call localhost:8080/dogfood, this calls a goodie by the name of test and the goodie by the name of test is actually a servlet class called Servlet1
url-patterns leads to servlet-name which leads to servlet-class.
hope it helps
|
 |
caleb momanyi
Ranch Hand
Joined: Jun 17, 2012
Posts: 43
|
|
finally got the solution here
http://stackoverflow.com/questions/11853901/context-path-for-web-application-on-glassfish-3-1-2-2
|
 |
 |
|
|
subject: deploying an application
|
|
|