New context in server.xml prevents war unpacking (TC 4.1.12)

2002-10-24 Thread Ken Pelletier
I recently added a new context to server.xml so that I can set up a  
database
connection pool resource for my webapp.

The webapp was deploying/running well prior to adding this context.

With the context added, starting Tomcat produces an error for that app  
context:

java.lang.IllegalArgumentException: Document base  
/usr/local/tomcat/webapps/myapp does not exist or is not a readable  
directory
at  
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav 
a:193)

This suggests that docBase directory is expected to exist at start.  
Without that context in server.xml, the war unpacks and
creates its directory.

The context looks like this:

	
	  reloadable="true" crossContext="true>
	... resources here ...
	

If I change the docBase to "myapp.war", the application loads and runs  
properly, db conn pooling works a treat, BUT
the war isn't unpacked at all.

The behavior I want is to have the war get unpacked ( as it was before  
) so that I can serve some of the static content
directly from Apache httpd, but still package/deliver/deploy the webapp  
as a war to Tomcat.

Any thoughts as to why this is happening / how to solve?

Thanks.

- Ken


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: [Mac OS X] /examples not working

2002-02-23 Thread Ken Pelletier

Ken,

Did you make sure to use gnutar and not tar?  I believe the Jakarta tar 
files use gnu extensions, and gnutar must be used.  At least that's what 
I read and it got me out of a jam with a mangled pathname within Tomcat 
when unpacked with tar - or StuffIt, for that matter.

- Ken

On Friday, February 22, 2002, at 05:12 PM, Ken Martin wrote:

> I have gone through the list archives and can't find a solution (though 
> this could certainly be my fault)...
>
> I have installed Tomcat 4.0.1 but I can't get the /examples to work. I 
> did try decompressing the .tar using Stuffit, tar in Terminal, and I 
> tried the .zip.
>
> I tried to follow the instructions at the Apple site (and I think I 
> succeeded in following the instructions), but no /examples. I also 
> tried to set it up for Apache and get the same error as I get at :8080.
>
> Thanks for any help/advice,
>
> Ken Martin
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: