----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Thanks for the tip.  I added    --with-java-platform=2 as you suggested, but
still get the same error when trying to make JServ on the Sparc.

Here is my configure shell script:

#!/bin/csh

# Set some variables so that all of the configuration may be done up here
set apacheVersion="apache_1.3.12"
set jServVersion="ApacheJServ-1.1"
set apacheSrc="/home/johnc/src/$apacheVersion"
set jServSrc="/home/johnc/src/$jServVersion"
set apacheDest="/home/johnc/$apacheVersion"
set jServDest="${apacheDest}/$jServVersion"
#set jdkHome="/usr/local/jdk1.2.2"
set jdkHome="/usr/jdk1.2.2"
set jsdkJar="/home/johnc/JSDK2.0/lib/jsdk.jar"

echo ""
echo ">>>>> apacheVersion = $apacheVersion"
echo ">>>>> jServVersion = $jServVersion"
echo ">>>>> apacheSrc = $apacheSrc"
echo ">>>>> jServSrc = $jServSrc"
echo ">>>>> apacheDest = $apacheDest"
echo ">>>>> jServDest = $jServDest"
echo ">>>>> jdkHome = $jdkHome"
echo ">>>>> jsdkJar = $jsdkJar"


# Important to clear the CLASSPATH to make sure that it doesn't have
something
# harmful to us in it.
setenv CLASSPATH "${jsdkJar}"
echo ">>>>> CLASSPATH = $CLASSPATH"

setenv JAVA_HOME "$jdkHome"
echo ">>>>> JAVA_HOME = $JAVA_HOME"

setenv JDK_HOME "$jdkHome"
echo ">>>>> JDK_HOME = $JDK_HOME"


echo ">>>>> Changing to directory $apacheSrc"
cd $apacheSrc

echo ">>>>> Configuring Apache $apacheVersion"
./configure \
    --prefix=$apacheDest \
    --enable-rule=SHARED_CORE \
    --enable-module=so

echo ">>>>> Making Apache $apacheVersion"
make

echo ">>>>> Installing Apache $apacheVersion"
make install

echo ""
echo ""
echo ">>>>> Preparing to configure JServ"
echo ">>>>> Changing to directory $jServSrc"
cd $jServSrc

echo ">>>>> Configuring JServ $jServVersion"
./configure \
    --with-apxs=${apacheDest}/bin/apxs \
    --prefix=${jServDest} \
    --with-jdk-home=${jdkHome} \
    --with-JSDK=$jsdkJar \
    --with-java-platform=2

echo ">>>>> Making JServ $jServVersion"
make

echo ">>>>> Installing JServ $jServVersion"
make install

Again, the system I am having trouble with is a Sparc running Solaris 7.
I'm trying to build Apache 1.3.12 (SO support) with ApacheJServ 1.1.  The
error messages I get are consistent with those when JSDK 2.1 is being used
instead of JSDK 2.0.  As far as I can tell, JSDK 2.1 is nowhere on the
machine or network.  As may be seen by my build script, the CLASSPATH only
contains an entry to the JSDK 2.0 jar file.

The FIRST error message is:

JServ.java:171: class org.apache.jserv.JServConnection is an abstract class.
It can't be instantiated.
                JServConnection connection = new JServConnection();
                                             ^

Using the same source files (apache_1_3_12_tar.gz, ApacheJServ-1_1_tar.gz,
and jsdk20-solaris2-sparc_tar) on a RedHat Linux 6.1 machine is successful.

Karthik wrote:

> Hi John,
>
> I got the same problem a few days ago.
> I was able to fix it anyways. My setup though was on HP UX 11.0
> with Apache Web Server 1.3.11 (rest the same as you have).
>
> Here is my proposed solution : (may just work out !) ;-)
> Make a file called "create" (or whatever) under the apache
> Jserv directory (the directory where you untarred apache).
> The contents of create looks something like this for my setup -
> -----------------------------------------------------------------
> ./configure \
>         --prefix=/usr/local/jserv \
>         --with-apache-src=/usr/local/apache_1.3.11 \
>         --with-java-platform=2 \
>         --with-javac=/opt/java/bin/javac \
>         --with-jdk-home=/opt/java \
>         --with-JSDK=/opt/JSDK2.0/lib/jsdk.jar \
>         --enable-debugging
> -------------------------------------------------------------------
> Then execute "create" to configure apache jserv and then make and
> make install. Also be sure you have the GNU utilities installed -
> autoconf,
> automake, et al. Make sure that your CLASSPATH is pointing to tools.jar.
>
> CLASSPATH=/opt/java/lib/tools.jar for my setup.
>
> Now i  think the lines that made the difference here were the
> explicit declaration of the java-platform. (don't know for sure though
> !)
>
> Hope this works out !
> --
> Karthik K
> Hewlett Packard India Software Operations,
> 1, Habibullah Road, T.Nagar,
> Chennai, INDIA



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to