• 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

deploying an application

 
Ranch Hand
Posts: 43
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 43
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
finally got the solution here
http://stackoverflow.com/questions/11853901/context-path-for-web-application-on-glassfish-3-1-2-2
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic