Description of problem: When tomcat5 is installed without specifying a JDK package, yum chooses to install java-1.5.0-bea and java-1.5.0-bea-devel, then subsequent updates fail. How reproducible: yum install tomcat5 Steps to Reproduce: 1. Make sure no JDKs are installed. 2. Subscribe the system to the RHEL Supplementary channel. 3. Execute yum install tomcat5 4. Execute yum update Actual results: 1. java-1.5.0-bea and java-1.5.0-bea-devel are selected to be installed to satisfy the tomcat5 JDK dependencies. 2. After tomcat is installed with JRockit, when yum update is subsequently run, the update fails with the following error: Error: java-1.5.0-bea-uninstall conflicts with java-1.4.2-bea Expected results: I would expect to see OpenJDK installed to satisfy the JDK requirement. And definitely not JRockit, which should be removed in 5.3. Best order of selecting a JDK if one is not specified: 1) OpenJDK 2) Sun JDK
Please note - I am not a developer, I just happened to see this open BZ. Workaround is to install e.g. java-1.6.0-sun first, then install tomcat5. That seems to work.
I also encountered this problem. I solved it as follows: $ yum install java-1.6.0-sun $ alternatives --config java # set java-1.6 (number 3 for me) $ rpm -e --nodeps java-1.6.0-bea $ yum reinstall tomcat5 $ yum update -y Of course, you need to switch from BEA to SUN.
I have error during tomcat restart : I see error messages '/usr/bin/rebuild-jar-repository: error: JVM_LIBDIR' or '/usr/lib/jvm-exports/java ... $ rm -f /var/run/tomcat.pid $ yum install java-1.6.0-devel $ service tomcat start I verified my application : it works fine. k0b3.
java-1.5.0-bea is no longer supported. This is by no means a tomcat bug. It is merely a misfortunate way of selecting dependent packages by yum. It is not very safe to let yum pick JVM vendor automatically anyway. With these reasons, I'm closing this issue. Please reopen if necessary.