-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dfobox,

On 4/29/2009 2:12 PM, dfobox wrote:
> I got mochahost Tomcat plan and moving website to remote server. My
> server ran Tomcat 4.0.4-50 and now website has to work under 5.5.26. 
> What should be done to make this process smooth?

My best advice would be to get the stock version of server.xml that
comes with TC 5.5 and start with that. Use your 4.0 server.xml as a
reference and add /only/ the things you absolutely need to your new
server.xml.

(If you're moving from 4.0 to a later version, why not go all the way up
to 6.x?)

A major difference between TC 4.x and 5.x+ is that you should no longer
be putting <Context> elements in your server.xml file. Instead, create a
META-INF directory in your webapp (or WAR file) and stick a
"context.xml" file in there that contains your <Context> element. If you
are using a JNDI DataSource and it doesn't need to be used by any other
webapp, then put the <Resource> definition in there instead of in
server.xml under <GlobalNamingResources>.

See
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
and
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Also, logging is completely different, so you can ignore any <Logger>
elements you may have in your old config.

Basically, server.xml should only contain your <Connector> elements and
any <Service>, <Host>, and <Alias> customizations you may have made in
the past.

I hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkn7KbYACgkQ9CaO5/Lv0PBNIwCbBIpg/2UX0+b1WHHQqB1Wk8+f
4IgAoLXtDX/ZVqTOMkN8mj1xrTsbnbxa
=SWy9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to