On Fri, 21 Sep 2001, Bruce Kaufman wrote:

> Date: Fri, 21 Sep 2001 15:07:05 -0700
> From: Bruce Kaufman <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Compile failure on Tomcat 4.0 rc2 on Linux (RedHat 7.1)
>
> I am trying to compile the Tomcat 4.0 rc2 source on a Redhat 7.1 box and
> I get the following ant error when I do a ant dist.
>
>     [javac] Compiling 2 source files to
> /usr/local/jakarta/jakarta-tomcat-4.0-rc2-src/catalina/build/classes
>     [javac]
> 
>/usr/local/jakarta/jakarta-tomcat-4.0-rc2-src/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java:71:
> cannot resolve symbol
>     [javac] symbol  : class ServerSocketFactory
>     [javac] location: package net
>     [javac] import javax.net.ServerSocketFactory;
>     [javac]                  ^
>
> Setting CLASSPATH seems to make no differences (greped for the jar with
> this class)
>
> Gory details:
>
> I am running RedHat 7.1 on a PII -350.  Using Java 1.3.1  I followed the
> 15 step installation BUILD doc (All the sub packages are in
> /usr/local/jakarta and I modified build.xml to point to the sub-packages
> correctly. I tried removing the CLASSIC line but that doesn't totally
> help.
>

You don't actually have to modify build.xml -- the basic idea is that you
set configurable things in your personal copy of "build.properties",
either local to this project in the top level directory, or global to all
your Jakarta builds in the user home directory.  A
"build.properties.sample" file is present to give you a starting point.

> I looked at the FAQ's and searched the archives to no avail (search for
> build.xml, serversocket, class not found, cannot resolve symbol  and
> some others but no good hits).
>
> I downloaded the Tomcat binary and that installs and runs fine but
> I want to compile the source since I'm thinking about helping out (but
> I have an apparent learning curve first).
>

The particular class you are getting the error on
(javax.net.ServerSocketFactory) is part of JSSE.  Double check that you've
defined the "jsse.jar", "jcert.jar", and "jnet.jar" properties correctly.

> Thanks in advance,
> Bruce Kaufman
>
>
>
Craig


Reply via email to