Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

deploying an application

 
Ranch Hand
Posts: 43
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!