Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Tomcat 4.1 Context Problems

Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

I'm having a problem deploying my web-app. It works fine as a war file, but when I try to use the context in the server.xml, it doesn't pick up my files at all: I get 404 errors. And nothing appears in the workDir.

Here is my context entry:

<Context path="/iBAS/" reloadable="true" docBase="C:\IBAS\Development\webApplication" workDir="C:\IBAS\Development\work\org\apache\jsp" >
<Logger className="org.apache.catalina.logger.SystemOutLogger" verbosity="4" timestamp="true"/>

This is the correct path, as far as I can see. Otherwise, I'm just using the default server.xml which comes with a new installation of tomcat4.

Other info: yes, it is nested correctly (i.e. inside the host). This is an automatically generated insert from eclipse, using the tomcat plugin. There are no errors when I start tomcat. Errrmmm... I'm using windows 2000 FWIW. The web app shows up quite happily in the manager. All the files are in the appropriate places. As I say, it works quite happily as a war file.

The reason I don't want to use a war is that I don't want to have to delete the old expanded war directory and restart tomcat every single time I make a change... it makes my development life hellish.

I really don't understand what the problem is here. Any suggestions gratefuly received....
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The context path should have no slash at the end, like this...


I'm not sure if that is your only problem, but it could cause the errors you are describing.

good luck,

Projects on GoodNoodles
[ September 30, 2004: Message edited by: Ezra Simon ]
Alister Pate
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that actually seems to have sorted it out. I'm using the sydeo plugin for eclipse to generate it, so I didn't think to query it.

Just goes to show... shouldn't trust machines!

Thanks Ezra-who-is-also-known-as-Jon.
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic