Chuck,

I updated the server.xml for this user to be:

<Host name='www.domain.com'
                               debug='0'
                               appBase='/home/user/html'
                               unpackWARs='true'
                               autoDeploy='false'>
                               <Alias>domain.com</Alias>
<Valve className='org.apache.catalina.authenticator.SingleSignOn'
                                       debug='0'/>
<Valve className='org.apache.catalina.valves.AccessLogValve'
                                       directory='/var/log/user'
                                       prefix='tomcat_access.'
                                       suffix='.log'
                                       pattern='common'
                                       resolveHosts='false'/>
                       </Host>

I added a ROOT directory in /home/user/html, with a META-INF and WEB-INF directory in it. Added context.xml with the contents of:

<Context debug='0' reloadable='false'/>

inside META-INF.

Removed WEB-INF from /home/user/html.

Removed all contents from the Tomcat work directory as well.

When starting tomcat, however, the work directory is still full of directories that have nothing to do with the actual application.

If I read your response correctly (there's a good chance I didn't), the steps I took should be the right ones. However, if that were the case, should all of the random directories still have a place in the Tomcat work directory?

Thanks!

Dan.

----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, February 07, 2008 6:09 PM
Subject: RE: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14


From: Dan D. [mailto:[EMAIL PROTECTED]
Subject: Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

<Host name='www.domain.com'
 appBase='/home/user/html'
 <Context path='' docBase='' debug='0' reloadable='false'/>
</Host>

Right there is the first problem: docBase and appBase must never be the
same - lots of things go wrong internally when they both refer to the
same directory.  You need to remove the <Context> entry for the default
webapp from server.xml and place the default webapp files under
/home/user/html/ROOT.  If you want to specify attributes for the default
webapp, put the <Context> element in
/home/user/html/ROOT/META-INF/context.xml, without the path or docBase
attributes.  This works on all levels from 5.0 on up.

When that's straightened out, delete everything under the work directory
before restarting Tomcat.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to