wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes When deploying launch the project url is incorrect (SOLVED) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "When deploying launch the project url is incorrect (SOLVED)" Watch "When deploying launch the project url is incorrect (SOLVED)" New topic
Author

When deploying launch the project url is incorrect (SOLVED)

Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

I had a project named db_test, where I got everything working like I wanted to. Then I made a new project called buth, and instead of making everything anew, I just imported the file system from db_test to buth. Now, when I open the project in a browser, the url is http://meghiddo-pc:8080/db_test/ instead of http://meghiddo-pc:8080/buth/

Where is this handled? I would like to change this but dont know how or where. When I look at MyEclipse/.metadata/.me_tcat/webapps the project folder is being called db_test instead of buth. I cant just change the name from there of course because the files are in use, and that would only be temporary anyhow

edit - forgot to mention it is a struts 1.1 project with a MySQL database if it matters at all


True wisdom is in knowing you know nothing - Socrates
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

Well, if you're referring to that WST plugin in Eclipse, I'm not sure they give you a choice (one of many reasons I preferred sysdeo). I seem to recall fighting furiously with the server setup over that.


Customer surveys are for companies who didn't pay proper attention to begin with.
Matt Kohanek
Village Idiot
Ranch Hand

Joined: Apr 04, 2009
Posts: 483

No that is not it. I know my post was not very clear.

What I had to do was right click on the project and go to properties, then go to MyEclipse->Web and change the Web-Context Root from /db_test to /buth

So the Web Context Root is what I needed to change, but I did not know the term Web Context Root until I found it myself
 
jQuery in Action, 2nd edition
 
subject: When deploying launch the project url is incorrect (SOLVED)
 
Similar Threads
Help on Axis2 Webservice calls
multiple URL mapping for one web app
Need an attribute to be available in different places (SOLVED)
rich:tree working now... all the work has finally paid off - THANKS
Tomcat intranet Web Application