tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32680] - jakarta-tomcat-connectors has SUN specific code causes problem in Kaffe
Date Tue, 14 Dec 2004 06:44:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32680>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32680


robilad@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |




------- Additional Comments From robilad@yahoo.com  2004-12-14 07:44 -------
Actually ... it is a bug in tomcat-connector because the class that jikes
complains about, sun.security.provider.Sun is *not* part of JSSE, afaict.

See the log at
http://brutus.apache.org/gump/kaffe/jakarta-tomcat-connectors/jakarta-tomcat-util/gump_work/build_jakarta-tomcat-connectors_jakarta-tomcat-util.html

For your convenience, I'll provide the relevant excerpt here:

    [javac]     69.             Security.addProvider (new
sun.security.provider.Sun());
    [javac]                                               ^-^
    [javac] *** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package "sun" in: 
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/build/xercesImpl.jar
    [javac]                 /usr/local/gump-kaffe/jre/lib/rt.jar
    [javac]                 /usr/local/gump-kaffe/lib/kjc.jar
    [javac]                 /usr/local/gump-kaffe/lib/gjdoc.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/build/classes
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-stylebook.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant-jmf.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-swing.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-trax.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-junit.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-launcher.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-nodeps.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jcert.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jnet.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jsse.jar
    [javac]                 /usr/local/gump/packages/jmx-1_2-ri/lib/jmxri.jar
    [javac]                
/usr/local/gump/kaffe/workspace/jakarta-commons/logging/dist/commons-logging.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/java
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/tools/resolver.jar
    [javac]                 .



    [javac]     69.             Security.addProvider (new
sun.security.provider.Sun());
    [javac]                                                   ^------^
    [javac] *** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package "sun.security"
in: 
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/build/xercesImpl.jar
    [javac]                 /usr/local/gump-kaffe/jre/lib/rt.jar
    [javac]                 /usr/local/gump-kaffe/lib/kjc.jar
    [javac]                 /usr/local/gump-kaffe/lib/gjdoc.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/build/classes
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-stylebook.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant-jmf.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-swing.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-trax.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-junit.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-launcher.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-nodeps.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jcert.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jnet.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jsse.jar
    [javac]                 /usr/local/gump/packages/jmx-1_2-ri/lib/jmxri.jar
    [javac]                
/usr/local/gump/kaffe/workspace/jakarta-commons/logging/dist/commons-logging.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/java
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/tools/resolver.jar
    [javac]                 .



    [javac]     69.             Security.addProvider (new
sun.security.provider.Sun());
    [javac]                                                            ^------^
    [javac] *** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package
"sun.security.provider" in: 
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/build/xercesImpl.jar
    [javac]                 /usr/local/gump-kaffe/jre/lib/rt.jar
    [javac]                 /usr/local/gump-kaffe/lib/kjc.jar
    [javac]                 /usr/local/gump-kaffe/lib/gjdoc.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/build/classes
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-stylebook.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant-jmf.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-swing.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-trax.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-junit.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-launcher.jar
    [javac]                
/usr/local/gump/kaffe/workspace/ant/dist/lib/ant-nodeps.jar
    [javac]                 /usr/local/gump/kaffe/workspace/ant/dist/lib/ant.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jcert.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jnet.jar
    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jsse.jar
    [javac]                 /usr/local/gump/packages/jmx-1_2-ri/lib/jmxri.jar
    [javac]                
/usr/local/gump/kaffe/workspace/jakarta-commons/logging/dist/commons-logging.jar
    [javac]                
/home/gump/workspaces2/kaffe/workspace/jakarta-tomcat-connectors/util/java
    [javac]                
/usr/local/gump/kaffe/workspace/xml-xerces2/java/tools/resolver.jar
    [javac]                 .



    [javac]     69.             Security.addProvider (new
sun.security.provider.Sun());
    [javac]                                                                     ^-^
    [javac] *** Semantic Error: Type "sun.security.provider.Sun" was not found.


It only complains about the "sun.security.provider.Sun" class and not about the
com.sun.net.ssl.internal.ssl.Provider (which it finds on the classpath, as you
can see in the 

    [javac]                 /usr/local/gump/packages/jsse1.0.3/lib/jsse.jar

line).

I'd suggest using 

Provider default = Security.getProvider("Sun");
if (null == sun) {
  default = Security.getProviders()[0];
}
Security.addProvider(default); 

if you specifically need Sun's crypto provider (or whetever Sun's provider's
name is), and want to have a fallback when it's not available. 

Kaffe comes with its own implementation of JSSE from JESSIE [1], on a side note.

cheers,
dalibor topic

[1] http://www.nongnu.org/jessie/

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message