• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat, Eclipse, and server.xml  RSS feed

 
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 ]
 
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.
 
Sheriff
Posts: 67259
170
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!
 
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.
 
money grubbing section goes here:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!