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

Shawn,

On 8/19/14, 2:31 PM, NEW IT wrote:
> So you meant after I fired up the Tomcat 7 then change the
> environment variables for the version 6 and startup there too?

Yes, you can do that, but...

> CATALINA_HOME could set to version 7 and CATALINA_BASE set to
> version 6 OK?

No, CATALINA_BASE has to agree with CATALINA_HOME's configuration. So
you can't for example create a setup under /opt/tomcats/mywebapp/ and
then launch with CATALINA_BASE=/opt/tomcats/mywebapp/ under both
Tomcat 6 and Tomcat 7. The reason is that server.xml usually contains
certain things that are version-specific.

But, if you want to deply the same web application to Tomcat 6 and
Tomcat 7, you could do something like this:

$ JAVA_HOME=/opt/java-7
$ CATALINA_HOME=/opt/apache-tomcat-7.0.55
$ CATALINA_BASE=/opt/tomcats/mywebapp-tc7/
$ CATALINA_HOME/startup.sh

$ JAVA_HOME=/opt/java-6
$ CATALINA_HOME=/opt/apache-tomcat-6.0.41
$ CATALINA_BASE=/opt/tomcats/mywebapp-tc6/
$ CATALINA_HOME/startup.sh

This will launch Tomcat 6 on Java 6 with your webapp configured in
mywebapp-tc6 and a similar setup with later versions for mywebapp-tc7.

- -chris

> On Tue, Aug 19, 2014 at 10:43 AM, Christopher Schultz 
> <ch...@christopherschultz.net> wrote: To whom it may concern,
> 
> On 8/19/14, 1:32 PM, NEW IT wrote:
>>>> Besides setting for the 2 different ports, how do deal with
>>>> the Environment Variables of Path, CATALINA_HOME? They are
>>>> having the values for the 7 for now and JAVA_HOME could be
>>>> using the the same one for Tomcat 7 and 6?
> 
> You can do anything you want, here.
> 
> CATALINA_HOME specifies where the Tomcat installation is. 
> CATALINA_BASE specifies where your "local" deployment goes: this 
> allows you to use a single CATALINA_HOME with multiple Tomcat 
> instances running with separate configurations (those with
> different CATALINA_BASEs). JAVA_HOME specifies the JVM to use.
> 
> You can set the above environment variables, launch Tomcat, then
> set them to other values and launch another instance of Tomcat. You
> can change your JVM, Tomcat version, etc. whenever you want. Once
> the JVM is launched, that process is independent of the shell you
> used to launch it.
> 
> On our development servers, we have multiple developers with
> multiple per-webapp JVMs running all off the same CATALINA_HOME
> under different JVMs. All you have to worry about is the port
> settings in each CATALINA_BASE/conf/server.xml.
> 
> Hope that helps, -chris
> 
>>>> On Sun, Aug 17, 2014 at 4:54 AM, André Warnier
>>>> <a...@ice-sa.com> wrote:
>>>>> NEW IT wrote:
>>>>>> 
>>>>>> Thanks Sapir for the fast and helpful answer!
>>>>>> 
>>>>>> On Sat, Aug 16, 2014 at 11:50 PM, Igal Sapir 
>>>>>> <i...@getrailo.org> wrote:
>>>>>>> 
>>>>>>> Sure, as long as each instance listens on a unique
>>>>>>> IP:port combination. On Aug 16, 2014 11:25 PM, "NEW
>>>>>>> IT" <newi...@gmail.com> wrote:
>>>>>>> 
>>>>>>>> Hello experts,
>>>>>>>> 
>>>>>>>> For development purpose, I wonder if I could install
>>>>>>>> and run Tomcat 6 and 7 the same time on my same
>>>>>>>> development box?
>>>>>>>> 
>>>>>>>> 
>>>>> 
>>>>> You probably also want to use 2 different ports here :
>>>>> <Server port="8005" shutdown="SHUTDOWN"> (see
>>>>> conf/server.xml)
>>>>> 
>>>>> 
>>>>> 
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>
>
>>>>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>>> For additional commands, e-mail:
>>>>> users-h...@tomcat.apache.org
>>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>>
>>>>
>
>>>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>> For additional commands, e-mail:
>>>> users-h...@tomcat.apache.org
>>>> 
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJT86/KAAoJEBzwKT+lPKRYUSUP/iaj/NlY5cQ2QziSQy6w3a8Z
HDWSgttsVk9vLmop3g+kRzY9WfnuhsxgMeVsAwYdNl+PXHMZdtoA7sxkx2DeDx+s
Eye3nVGM2StF3tP6NH2sy+L+4lQYsm9YTgP9bUhnOKUeUZDyFqvH5SeFHIvjVeOS
Dkg9P+fuQroxwxWVW6tBUUiqrIvKPLw3YKLy15pEwwbXg3xylldSyXXpA8IQyFOr
6BNDvWWeaNI6NXGgWd/ES48o5vdkRXULxJZLh9/HMjzUI5ur+62kT62IwSxOY2Ef
VisVa89GDPQMZJ0oCUQwPYBUNYl69zRLxL/IKghUEWp0TiDJgPnXuQYbs/GdECGC
fXY9KKC8SR8ytJDGI7wWldibv0+PxzgmVJY5MNXltb1hmwjF7+HWlNC8hWoVfEz7
NbtU3nDGKCTkNoLCx1aJsQEHmqeT5ag/FE7+tttkL2XfvozdGOnEljfnGGUDK587
2O0bH9zMKCM1ExoVyRY5cQcPsA7O6rE3YeM2GJ1Q7G1FsCaqr6LNw3L+fQEleNiy
lsrSvi41k6onJC6s/c629afgjuuEUSvxC8ls/8XNngToBvi1ws/u3Q4+gu1tf649
UpkreOjtSwXdU/V33Jhwx9hLstRDCFpM3HoQ6qh+FKJC1OFHmPZiCaa5wBin+8AC
8UazTHOTYWGL8cIvXtXC
=RbCO
-----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