-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Steve,

On 1/22/13 11:59 PM, sry...@jsrsys.com wrote:
> I thought you had hit the nail on the head of 5.0 vs. 5.5, but when
> I recoded the short form into the long form I still get the same
> error. I am ready to install a new Tomcat.   Is there any reason to
> NOT go to most recent 7.x release?

In general, there's no reason not to upgrade all the way. I personally
went from 4.1 up through 7.0 over the past few years because I wanted
as few surprises as possible. I probably wasted my own time. The
biggest jump for me was going from 4.1 -> 5.5 because of many
configuration changes. Most of those were in 5.0 so you should have
less of a headache than I did.

As long as your web app doesn't rely on some weird old bug, you should
be able to simply drop it into a running Tomcat 7 instance with no
additional configuration and have it auto-deploy and "just work". That
is, if you have META-INF/context.xml setup properly with your JNDI
DataSource.

Since you want a shared data source, your best bet is to put a
<Resource> element (<ResourceParams are no longer required) in
conf/server.xml and a <ResourceLink> in each webapp's
META-INF/context.xml. I prefer the use of META-INF/context.xml because
then the app generally works when you move it between container
installs, rather than having some magic make it work in one place but
not another. If you don't have a META-INF/context.xml, you may
completely forget that the server-default links a JNDI object for you
and you won't be able to figure out why it does work one place and not
in another. Sounds familiar, huh?

> I realize that as long as I stay at Java 5 and MySQL 5 I don't have
> to worry about writing code that won't work on the production
> machine (which is more difficult to change).

Java 5 and MySQL 5 should be fine. Tomcat 7 actually requires Java 6,
though. I believe that every system on which Java runs can tolerate
more than one Java version installed side-by-side, so you might want
to talk to your NOC team about installing Java 1.7 before Java 1.8
ships in November.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEAIMQACgkQ9CaO5/Lv0PDuPACgksD7m8kcC4PHCJLJTOHjIwX8
znQAn07eisQGFN0UZd7Yy1rnPZFu/ET3
=aNAU
-----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