This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

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: 8436

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


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
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: 1005
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="".



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to map dynamic web project name to root directory
 
Similar Threads
JBoss initialcontext problem
problems trying to access a deployed EAR file
RMI server IP/Port values
rmiregistry programmatically
How to get own ip Address: