You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/12/05 23:35:39 UTC

DO NOT REPLY [Bug 5295] New: - Error building Catalina when optional build.jsse Ant property not used

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5295>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5295

Error building Catalina when optional build.jsse Ant property not used

           Summary: Error building Catalina when optional build.jsse Ant
                    property not used
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ruvinsky@yahoo.com


JSSE is not a required library in order to build Catalina.  However, if in the
build.properties file, jsse.home and other JSSE-related properties are not
defined (hence the build.jsse won't be defined in the Ant build script), javac
gives a compiler error.

Here is the problem:

In the Ant build script, if build.jsse is not defined, javac is told to exclude
the class "org.apache.catalina.net.SSLServerSocketFactory" from its FileSet. 
However, since there are other Java class files that reference
SSLServerSocketFactory, javac attempts to compile it but fails when it cannot
import the dependent JSSE-related classes.
Suggested solution:

The Catalina class "org.apache.catalina.startup.Embedded" references class
SSLServerSocketFactory, so it must be patched to no longer import the class. 
Also it must be updated to not explicity create an instance of
SSLServerSocketFactory but perhaps use the
Class.forName(...)/clazz.newInstance() mechanism.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>