IntelliJ Java IDE
The moose likes IDEs, Version Control and other tools and the fly likes how to map dynamic web project name to root directory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "how to map dynamic web project name to root directory " Watch "how to map dynamic web project name to root directory " New topic
Author

how to map dynamic web project name to root directory

Alex Roskin
Greenhorn

Joined: Mar 24, 2011
Posts: 8
Hello,

I would like to be able to make the site come up under localhost instead of localhost/defaultsite/

Thank you,
Alex
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

What container?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Alex Roskin
Greenhorn

Joined: Mar 24, 2011
Posts: 8
This is for a dynamic web project in Eclipse that is being exported as WAR and deployed on Tomcat.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Such questions should be posed in the IDEs forum. I have moved this there for you.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 7602

With the sysdeo plugin you don't even need to build deploy!!!


[Donate a pint, save a life!] [How to ask questions]
Alex Roskin
Greenhorn

Joined: Mar 24, 2011
Posts: 8
I prefer not to use additional plug ins, from my understanding wither web.xml or server.xml file needs to be updated, but not sure with what?
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 879
Actually I would think this would be a Tomcat question, as the method of using the 'default' directory with a deployment is dependant on which server you are using.

The relevant page in the Tomcat docs

For Tomcat I think the best approach is to add a context.xml file to the META-INF directory of your war file.
Within this file you define the context, and give it a path="".



 
 
subject: how to map dynamic web project name to root directory
 
Threads others viewed
problems trying to access a deployed EAR file
JBoss initialcontext problem
RMI server IP/Port values
How to get own ip Address:
rmiregistry programmatically
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture