Tag: java

Sun Java JDK 1.6 update 16 on CentOS 5.3

Today I needed to install Sun Java SDK 1.6 on CentOS 5.3. Unfortunately, Sun Java does not appear to be packaged in CentOS. Instead, there are instructions at http://wiki.centos.org/HowTos/JavaOnCentOS on how to install Sun Java using a “helper” SRPM (source RPM) package from the JPackage Project. The latest generic JPackage SRPM is for 1.6 update 11 and it does not work for update 16 without minor modifications.

I created a new version for 1.6 update 16 by extracting the old version using rpm2cpio, modifying the spec file and recreating the SRPM using rpmbuild. I tested the package on 32-bit CentOS 5.3 and it worked without problems.

The SRPM for Sun Java 1.6 update 16 is available here. It works with the instructions mentioned in the url in the beginning of this posting.

SJSAS 9.1 u1, AJP/mod_jk and log4j troubles

I have been preparing for an update of Sun ONE Application Server 7 at work for some time now. A week ago I finally found a decent way to run Sun Java System Application Server 9.1 u1 on Solaris 9 under unprivileged account so that SJSAS could be reached on ports 80 and 443. The solution was to put Apache HTTP server in front of SJSAS using mod_jk and AJP (just like Tomcat often is installed). In the solution Apache will listen for the ports and deliver the requests to SJSAS using AJP. Gladly, Sun has provided instructions for this.

Read more »