|
|
Installing JServ on Red Hat 6.0 |
| Didn't see anything on RH6 on the page, so thought I'd chip in my $0.02 - most of this will be old hat to Apache diehards, but my Apache admin experience is limtied to a few small intranets - please bear with me! 1. Blow away the Red Hat rpm - it is highly customised compared to the normal Apache layout (much more so than Red Hat 5.x) and it will be a lot of hassle to make it work. In particular, it lacks the DSO support stuff. rpm -e `rpm -q -l | grep apache`2. Get hold of the Apache 1.3.6 (or latest) sources and compile it. It builds out of the box against a standard RH6 full install, with the following caveat: Don't use --enable-module=most as it doesn't seem to have some db stuff that's required. Get this working and test it. Example config: ./configure --prefix=/usr/local/apache --mandir=/usr/local/man \
--enable-shared=max
make
make install
and then test it properly.3. Download and and install the Blockdown JDK (see http://java.blackdown.org/) and test. There was much mail flying back and forth about blackdown not working on RH6, but their jdk117_v3 release seems stable on my system. I got all 6 packages, i.e. jdk, jre and rt with and without native threads and installed them all in the same directory tree (/usr/local/blackdown/jdk117_v3/...) 4. Download Javasoft's JSDK2.0, and, you guessed it, install it - I put it in /usr/local/javasoft/JSDK2.0/... 5. As per the Blackdown and JSDK suggestions, add the following or equivalent to /etc/profile to make them readily available JAVA_HOME="/usr/local/blackdown/jdk117_v3" JSDK_HOME="/usr/local/javasoft/JSDK2.0" CLASSPATH="$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar" PATH="$PATH:$JAVA_HOME/bin:$JSDK_HOME/bin" export PATH CLASSPATH JAVA_HOME JSDK_HOME6. Download ApacheJServ 1.0 and configure - I found that it wouldn't pick up the location of JSDK form that CLASSPATH, ergo I used: ./configure --with-apache-install=/usr/local/apache \
--with-jsdk=/usr/local/javasoft/JSDK2.0
make
make install
and then follow the instructions, i.e. add the "Include" line for java.conf to your httpd.conf and restart itFeel free to mail me with questions, and leave the experts to deal with more tricky stuff! Dave dcc@dcs.ed.ac.uk dccATdcsDOTedDOTacDOTuk | |
| Actually, I've been able to successfully install JServ 1.0 w/
stock RedHat 6.0 installation. I believe the previous
posters comments about lack of DSO support in RH6.0/Apache
are incorrect. Some hints follow, YMMV. * make sure that you have the following packages installed: max@piglet:~> rpm -qa | grep apache
apache-devel-1.3.6-7
apache-1.3.6-7
* unpack Apache_JServ.1.0.tgz (my is in /usr/local/)* here's the configuration line I used; note that apache-install directory is "/usr"* important: in /etc/http/, create a symlink from libexec to modules ln -s modules libexec* then make, make install, and configure as the directions say maxATeeeyoreDOTcom | |
| I have a running Apache 1.3.9 with JServe 1.0b3. Now I would like to upgrade to JServ 1.0. I am not able to compile the java code. My environment is: CLASSPATH=/usr/local/JDK11/lib/classes.zip:/usr/local/oracle/u01/app/oracle/prod ucts/8.0.5/jdbc/lib/classes111.zip:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/js erv/lib/Apache-JServ.jar: TERM=ansi HOSTTYPE=i386 PATH=/usr/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/ bin/X11:/usr/X11R6/bin:/usr/local/bin:/usr/local/oracle/u01/app/oracle/products/ 8.0.5/bin:/usr/local/JDK11/bin:/root/bin I am running JDK 1.1.7v3 I configure JServ with ./configure --with-apache-src=/usr/local/src/apach e/apache_1.3.9 --with-jdk-home=/usr/local/JDK11 then I try to make it.. make[2]: Entering directory `/usr/local/src/apache/ApacheJServ-1.0/src/java' CLASSPATH=/usr/local/JDK11/lib/classes.zip:/usr/local/oracle/u01/app/oracle/prod ucts/8.0.5/jdbc/lib/classes111.zip:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/js erv/lib/Apache-JServ.jar::/usr/local/JSDK2.0/lib/jsdk.jar:. /usr/local/JDK11/bin /javac -g -deprecation ./org/apache/jserv/JServLog.java ./org/apache/jserv/JServ Connection.java ./org/apache/jserv/JServServletManager.java ./org/apache/jserv/J Serv.java ./org/apache/jserv/JServContext.java ./org/apache/jserv/JServSTMStore. java ./org/apache/jserv/JServSession.java ./org/apache/jserv/JServ.java:448: Wrong number of arguments in constructor. socket = new AuthenticatedSocket("127.0.0.1", port);
^
./org/apache/jserv/JServ.java:449: Exception java.io.IOException is never thrown
in the body of the corresponding try statement.
} catch (IOException e) {
^
2 errors
make[2]: *** [org/apache/jserv/JServ.class] Error 1
make[2]: Leaving directory `/usr/local/src/apache/ApacheJServ-1.0/src/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/apache/ApacheJServ-1.0/src'
make: *** [all-recursive] Error 1----------- Acording to the jdk documentation the Socket class takes two parameters when i is created..... What am I doing wrong ?? - helge helgeDOTsmebyeATgeodataDOTno | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||||