• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat, Eclipse, and server.xml

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 11343
Mac Safari Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the suggestion, but I'm afraid that didn't do it.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic