Subject: | |
From: | |
Reply To: | |
Date: | Tue, 8 May 2007 16:13:12 +0200 |
Content-Type: | multipart/signed |
Parts/Attachments: |
|
|
On May 8, 2007, at 3:49 PM, Alessio Curri wrote:
> Hi,
> I'm testing the new SL5 (i'm using the i386-RC2) and I tried to
> install tomcat5 ("yum install tomcat5").
> The resulted installation is broken (tomcat won't start out of the
> box, and there are both sun and gcj jvm). I think the problem is
> related to the java-sun-compat and the related sun jdk inclusion in
> the SL5.
>
>
> After a complete reinstall, I tried to install tomcat5, but this
> time excluding the sun-related packages ("yum install --
> exclude=java-1.5.0-sun-compat --exclude=jdk tomcat5").
> It worked fine. Tomcat start and run fine, but of course with
> java-1.4.2-gcj jvm.
>
> The last try involved directly jpacked.org yum repos (after another
> complete reinstall).
> After installing the java-1.5.0-sun-compat and the jta-1.0.1-0.b.
> 4jpp.noarch.rpm, I used yum forcing not to use the sl repo ("yum
> install tomcat5-webapps xml-commons\* --disablerepo=sl-\*").
> Yum installed the tomcat5 (from jpackage repos). This version used
> correctly the sun jvm, as I wish. But at the first "yum update",
> the jpackage tomcat5 is replaced with the "SL" one .
>
> How can I install a tomcat5 that use the sun jvm using yum (and\or
> rpms)?
>
> Thanks in advance,
> Alessio
Alessio,
You are in luck I've just written up this very topic:
https://twiki.cern.ch/twiki/bin/view/EGEE/GLite31JPackage
One of the solutions there is to install jpackage's tomcat5 with
sun's JDK but you have to take care when you
do so. In particular tomcat5 requires xml-commons-jaxp-1.3-apis
but this package obsoletes "xml-commons-apis"
which has the result of removing SUN's JDK since this provides
xml-commons-apis.
In short you must enable the jpackage repositories, install xml-
commons-apis followed by SUN's JDK and
then java-1.5.0-sun-compat.
After this a simple
yum install tomcat5
will then work.
I would recommend however that you use jpackage's rebuild of JDK
rather than SUN's rpm, it avoids all
the headaches above.
In fact I was considering requesting asking SL to distribute the
jpackage rebuilds of JDK rather than SUN's
JDK since they are better and avoid this problem.
Note I've never tried this on SL5 but it should work as you hit
the same problems as I observed on SL4.
Steve
>
>
> -- Alessio Curri +39 040 375 8064 Software for Measurement Group
> Experiments Division Sincrotrone Trieste S.c.p.A. S.S. 14 Km 163.5,
> in Area Science Park 34012 Basovizza - Trieste (Italy)
> <alessio.curri.vcf>
--
Steve Traylen
[log in to unmask]
CERN, IT-GD-OPS.
|
|
|