Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 55987 invoked from network); 26 Jul 2005 11:15:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 11:15:58 -0000 Received: (qmail 24822 invoked by uid 500); 26 Jul 2005 11:15:46 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 24785 invoked by uid 500); 26 Jul 2005 11:15:46 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 24768 invoked by uid 99); 26 Jul 2005 11:15:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 04:15:33 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 25864E1 for ; Tue, 26 Jul 2005 13:15:30 +0200 (CEST) Message-ID: <942206863.1122376530130.JavaMail.jira@ajax.apache.org> Date: Tue, 26 Jul 2005 13:15:30 +0200 (CEST) From: "Vamsavardhana Reddy (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-433) Tolerate non-Sun JREs In-Reply-To: <1099929085.1099588472238.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-433?page=comments#action_12316737 ] Vamsavardhana Reddy commented on GERONIMO-433: ---------------------------------------------- I tried building the Geronimo M4 source thru Eclipse using Sun's SDK 1.4.2 and IBM's SDK 1.4.2 . Here are my findings: With IBM's SDK, only one file, namely, modules\security\src\test\org\apache\geronimo\security\network\protocol\SubjectCarryingProtocolTest.java fails to compile with error, "import com.sun.security.auth.login.ConfigFile can not be resolved". All other references to com.sun.* classes are made indirectly by coding the class name as a String parameter. -- Did not find any references to com.sun.security.jgss.GSSUtil in the workspace -- com.sun.jndi.rmi.registry.RegistryContextFactory is available in IBM's SDK under server.jar -- com.sun.security.auth.login.ConfigFile is not in IBM's SDK, but, com.ibm.security.auth.login.ConfigFile is available in security.jar -- com.sun.security.auth.module.Krb5LoginModule is not in IBM's SDK, but, com.ibm.security.auth.module.Krb5LoginModule is in ibmjgssprovider.jar The classes available in IBM's SDK implement the same interface/extend the same class as their counterparts in Sun's SDK. To tolerate other JRE's, the references to these classes need to be moved into a configuration file instead of hardcoding them in the java files. OpenEJB seems to have a dependency on Sun's SDK. As of now, I don't know how this can be made to tolerate non-Sun JREs > Tolerate non-Sun JREs > --------------------- > > Key: GERONIMO-433 > URL: http://issues.apache.org/jira/browse/GERONIMO-433 > Project: Geronimo > Type: Improvement > Components: general > Reporter: Glyn Normington > Assignee: Alan Cabrera > Priority: Critical > > Geronimo fails to build against a non-Sun JRE (e.g. IBM's) because of the use of non-standard Sun internal classes (in com.sun.* packages) such as com.sun.security.jgss.GSSUtil. The build stops with: > A compilation error occurred in the network module: > C:\apache\geronimo\modules\network\src\java\org\apache\geronimo\network\protocol\GSSAPIServerProtocol.java:29: > package com.sun.security.jgss does not exist import com.sun.security.jgss.GSSUtil; > grep also found the following other references to com.sun in Java files, some of which will need to be modified to tolerate non-Sun JREs. > modules/client/src/java/org/apache/geronimo/client/StaticJndiContextPlugin.java: System.setProperty("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory"); > modules/connector/src/test/org/apache/geronimo/connector/outbound/ManagedConnectionFactoryWrapperTest.java: env.put("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory"); > modules/naming/src/test/org/apache/geronimo/naming/geronimo/GeronimoRootContextTest.java: System.setProperty("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory"); > modules/naming/src/test/org/apache/geronimo/naming/java/AbstractContextTest.java: System.setProperty("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory"); > modules/naming/src/test/org/apache/geronimo/naming/java/ThreadContextTest.java: System.setProperty("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory"); > modules/security/src/java/org/apache/geronimo/security/realm/providers/KerberosSecurityRealm.java: AppConfigurationEntry entry = new AppConfigurationEntry("com.sun.security.auth.module.Krb5LoginModule", > modules/security/src/test/org/apache/geronimo/security/jaas/LoginKerberosNonGeronimoTest.java: gbean.setAttribute("loginModuleName", "com.sun.security.auth.module.Krb5LoginModule"); > modules/security/src/test/org/apache/geronimo/security/network/protocol/SubjectCarryingProtocolTest.java:import com.sun.security.auth.login.ConfigFile; > modules/system/src/test/org/apache/geronimo/system/properties/NamingPropertiesTest.java: private static final String NAMING_FACTORY_INITIAL = "com.sun.jndi.rmi.registry.RegistryContextFactory"; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira