André Warnier wrote:
David kerber wrote:
Caldarale, Charles R wrote:
From: David kerber [mailto:dcker...@verizon.net]
Subject: Re: Installation differences between 6.0.24 and 5.5.28

Why not?  Here are the entries on the java tab of tomcat6w:
-Dcatalina.base=C:\TomcatClients\Pelican
-Djava.io.tmpdir=C:\TomcatClients\Pelican\temp

And tomcat5w has
-Dcatalina.base=C:\TomcatClients\Pelican
-Djava.io.tmpdir=C:\TomcatClients\Pelican\temp

So you are sharing things between Tomcat 5.5.28 and 6.0.24, which you said you had no desire to do. I'd strongly recommend you stop trying to do that.

I don't *want* to do this!! I'm only doing it as a troubleshooting attempt, trying to figure out why I can't get 6.0.x to start.

Obviously there's something different in the configuration requirements, but I can't figure out what it is. That's why I asked for some suggestions as to where to find configuration differences between the two major versions. Right now, I'm in the middle of doing a line-by-line comparison of the default configuration files that the two installations set up.

This is becoming increasingly shrill on all sides.
Let's all calm down a bit.
But I'm afraid it will take some typing..

David,
maybe what you do not understand, is that what you are doing to test your migration, is at the base of your problem in making it work.
Believe me, that wasn't my first step in this; I only did it out of desperation!!!


You /are/ using the same catalina_base (and the same physical directory structure and files below it), for both Tomcat 5.5 and Tomcat 6.0. And what each one of them expects below his catalina_base is not identical in the two cases. I mentioned earlier that Tomcat 5.5, under its catalina_base dir, is expecting a subdirectory "shared", containing 2 subdirectories "lib" and "classes" (with some things in them). Well, guess what ? Tomcat 6.0 does not expect this subdirectory "shared" under its catalina_base. But it does expect a subdirectory "lib" directtly under its catalina_base. The reason why your Tomcat 5.5 works fine, from your "common" catalina_base, is that it finds what it wants there. The reason why Tomcat6 is not happy, is that under that same physical directory, it does not find what it wants. And that is because you probably set up this catalina_base directory according to the pattern of your (previous, existing) tomcat 5.5 catalina_base.

Now, I am saying this with not a lot of knowledge to back this up.

But according to the other people here, there are more differences between what Tomcat 5.5 has below its catalina_base, and what Tomcat 6.0 has there. So you should /not/ try to use the same physical directory as catalina_base for both, because it will get you in a lot of trouble, independently of the difference "shared" vs "lib". You should set up a /separate/ catalina_base directory for your Tomcat 6.0, modeled on what you find under the original catalina_home of your original Tomcat 6.0. Similarly, you should start the "conf" directory files of your Tomcat 6.0 instance on the base of the original "conf" of Tomcat6.0, and then make the needed changes in it to accomodate your applications. You should /not/ try to use the same server.xml (and other conf files) for both Tomcat5.5 and Tomcat 6.0.
Thanks for the note of calm, André . You claim you don't have a lot of knowledge to back you up, but your comments led me to the solution of the problem. It turns out that the shared vs lib issue doesn't matter (at least for my very simple case), and SOME of the config files can be used in both places, but others cannot. I didn't check all of the files in conf, but I did check server.xml, context.xml and web.xml, and found that their contents will work with both server versions (again, at least for my simple case) . However, when I started looking at some of the other files in conf, I found major differences between the two versions. So I copied all the various files from the conf folder under 6.0.24 into the conf folder in my catalina_base tree, and it immediately started working.

I guess the root of my problem was the implicit assumption (without really thinking it through) that if the server, context and web .xml files were ok, the rest wouldn't matter, so I just copied the entire application folder tree including the conf folders from my 5.5 installation to the 6.0 server. And of course that assumption was wrong (yes I know what happens when one assumes!!), and it bit me where it hurts.

So thanks for putting up with my pebkac issues, people. Hopefully next time I'll do some clearer thinking about the problem before I post...

D



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

Reply via email to