aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 4.1 Context Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 4.1 Context Problems" Watch "Tomcat 4.1 Context Problems" New topic
Author

Tomcat 4.1 Context Problems

Alister Pate
Ranch Hand

Joined: Sep 13, 2002
Posts: 34
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"/>
</Context>


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....
Ezra Simon
Greenhorn

Joined: Sep 18, 2004
Posts: 9
Hi,

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

path="/iBAS"

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

good luck,

Jon
----------------------
Projects on GoodNoodles
http://www.goodnoodles.com/
[ September 30, 2004: Message edited by: Ezra Simon ]
Alister Pate
Ranch Hand

Joined: Sep 13, 2002
Posts: 34
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.
 
Consider Paul's rocket mass heater.
 
subject: Tomcat 4.1 Context Problems