----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Looks like javac is finding a copy of JSDK that is more recent than version
2.0. Check your CLASSPATH to see if there is a more recent version lurking
somewhere. Don't forget to check in /usr/local/java/jdk-1.2.1/lib and
/usr/local/java/jdk-1.2.1/jre/lib.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan
Barragan
Sent: Wednesday, March 15, 2000 11:06 AM
To: [EMAIL PROTECTED]
Subject: Problem installing JServ - can anyone help?
----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Hello,
I am having a problem installing JServ 1.1 with apache 1.3.12 on a Sun
Solaris 7 unix machine. I have been unable to find anything in the FAQ
regaring my problem.
I have apache installed with DSO from source and it is running fine.
I am attemping to following the "How to install Apache JServ on UNIX
systems" from the Apache Project page. I am running the configure script
with the following parameters:
./configure \
--prefix=/space/httpd/jserv \
--with-apxs=/space/httpd/apache_db/bin/apxs \
--with-jdk-home=/usr/local/java/jdk-1.2.1/ \
--with-JSDK=/tmp/JSDK2.0/lib/jsdk.jar
The problem occurs when I run make. It start compiling files but when it
reaches JServ.java there is a compilation error which terminates the
process. Here is the except of the output where the error occurs:
make[5]: Entering directory `/tmp/ApacheJServ-1.1/src/java/org/apache/jserv'
Compiling Ajpv12InputStream.java ...
Compiling JServ.java ...
JServ.java:171: class org.apache.jserv.JServConnection is an abstract class.
It can't be instantiate
d.
JServConnection connection = new JServConnection();
^
/tmp/ApacheJServ-1.1/src/java/org/apache/jserv/JServConnection.java:85:
class org.apache.jserv.JServ
Connection must be declared abstract. It does not define java.lang.String
encodeURL(java.lang.String
) from interface javax.servlet.http.HttpServletResponse.
public class JServConnection
^
/tmp/ApacheJServ-1.1/src/java/org/apache/jserv/JServConnection.java:85:
class org.apache.jserv.JServ
Connection must be declared abstract. It does not define java.lang.String
encodeRedirectURL(java.lan
g.String) from interface javax.servlet.http.HttpServletResponse.
public class JServConnection
[About 17 more compilations errors similar to the one above]
Note: 4 files use or override a deprecated API. Recompile with
"-deprecation" for details.
20 errors, 1 warning
make[5]: *** [JServ.class] Error 1
make[5]: Leaving directory `/tmp/ApacheJServ-1.1/src/java/org/apache/jserv'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/ApacheJServ-1.1/src/java/org/apache'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/ApacheJServ-1.1/src/java/org'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/ApacheJServ-1.1/src/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/ApacheJServ-1.1/src'
make: *** [all-recursive] Error 1
So I noticed the deprecated API warning and thought it might be the 1.2.1
JDK (I have also tried the 1.2.2 JDK with the same result) so I have tried
to use the 1.1.8 JDK which leads me to a different problem. Specifically,
when I point the --with-jdk-home parameter to the location of the 1.1.8 JDK
I get the following error in the configure script:
checking for JDK location (please wait)... /usr/java1.1/
checking Java platform... forced Java 1
checking for false... (cached) /bin/false
checking java... /usr/java1.1//bin/java
checking javac... /usr/java1.1//bin/javac
checking javadoc... /usr/java1.1//bin/javadoc
checking jar... /usr/java1.1//bin/jar
checking JSDK... configure: error: javax.servlet.Servlet not found in
/tmp/JSDK2.0/lib/jsdk.jar
maya:ApacheJServ-1.1%
So at this point I am out of ideas and hoping someone can help me get JServ
running. I would prefer it be with the 1.2.2 JDK but at this point I am
willing to work with anything.
Thanks in advance,
-Dan
--
--------------------------------------------------------------
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]
--
--------------------------------------------------------------
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]