It is entirely possible that this environment isn't setup in a optimal way, and also that I may be messing up some of the proper names.

To provide a real world example (names and paths have been changed, but all information is the same), here is the Host entry for a domain (same in both TC5 and 6 currently) that we are using, as well as the work directories for each:

server.xml entry:
<Host name='www.domain.com'
debug='0'
appBase='/home/user/html'
unpackWARs='true'
autoDeploy='false'>
<Alias>domain.com</Alias>
<Context path='' docBase='' debug='0' reloadable='false'/>
<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>


Work directory under Tomcat 5:
[EMAIL PROTECTED] www.domain.com]# pwd; find .
/web/tomcat/work/hosting/www.domain.com
.
./_
./_/tldCache.ser

Work directory under Tomcat 6:
[EMAIL PROTECTED] www.domain.com]# pwd ; find .
/web/tomcat/work/hosting/www.domain.com
.
./_
./stats
./files
./includes
./misc
./modules
./profiles
./scripts
./sites
./themes
./forum
./lists
./members
./staging

As for why the WEB-INF is at the same level as a war file, it is a shared hosting environment, and that is their document root. It allows the user to have an application at http://domain.com as well as upload a war file for additional applications they wish to run from say, http://domain.com/blog. It sounds as though this should be done differently?

I'm more or less rebuilding the environment with the upgrade, so any recommendations are very welcome.

Thanks,
Dan

----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, February 07, 2008 2:46 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

Customer has the following directory structure:

/home/user/html
\_ WEB-INF/
|    \_ classes/
|    \_ lib/
\_ images/
\_ movies/
\_ mp3s/
\_ blog/
\_ new_application.war

That looks very wrong.  Why is there a .war file at the same level as
WEB-INF?

Now, in Tomcat 5, they would have a work directory structure of the
following:
/{tomcat.home}/work/{engine.name}/
    \_ ./application_name
        \_  _ (the directory name is simply "_")
        |     \_ tldCache.ser
        \_   new_application
        \_ tldCache.ser

That also looks wrong; all tldCache.ser files should be at the same
level - immediately under the respective work/Catalina/[host]/[appname]
directories.  Even if you're confusing "application_name" with the name
on a <Host> element, something seems very broken with your appBase
and/or docBase settings.  Until that's straightened out, all bets are
off.

- 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