Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat, Eclipse, and server.xml

 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't seem to get the path to my application right in its server.xml type file. I have Tomcat in one Eclipse project and the code I want to debug in another. The file currently looks like this:



When I go to localhost:8080/ethos, it tells me the requested resource is not available. Can anyone suggest what I might be doing wrong?

TIA!
g.

Added: Oh, and I post this in here because this is in Mac OSX and it works fine on my Windows PC at work.
[ October 19, 2005: Message edited by: Garann Means ]
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A guess: Should you be using forward slashes (rather than backslashes) on the Mac?
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestion, but I'm afraid that didn't do it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work if you run Tomcat outside of Eclipse? I've never had issues.
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a good question. I don't really know how to run an Eclipse project in Tomcat without going through Eclipse. I'll see if I can figure it out... Thanks for the suggestion!
 
Mahsa Teimourikia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the same problem, however the solution was very easy. I had to Clean Tomcat server in eclipse before restarting it. To be more clear, here is how I set the context in Eclipse,

In the Servers in project explorer, find the Tomcat version you are using, open the server.xml file. Before the HOST closing tag (</Host>) add the context tag with the right parameters, e.g:



then right click on your Tomcat in the Server tab and Clean. Then restart the Tomcat. and you should be good to go.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic