File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying an application

 
caleb momanyi
Ranch Hand
Posts: 43
Firefox Browser Java Netbeans IDE
  • 0
  • 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
 
Dave Elwood
Ranch Hand
Posts: 84
  • 0
  • 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
Firefox Browser Java Netbeans IDE
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic