|
Page Edited :
GMOxDOC21 :
Apache Harmony
Apache Harmony has been edited by Runhua Chi (May 11, 2009). Content:Running Geronimo on HarmonyThis article describes the ways and known issues to run Geronimo This article has the following structure: General noteThis article was written using the following environment: Geronimo In geronimo-tomcat6, the behavior is slightly different, which we already elaborated in the later paragraph. Unresolved issuesHere's the brief summary of all the unresolved issues that require attention:
Geronimo configurationIt's recommended that you backup your var/config/config.xml file before editing it – you may need the original file if you want to run your Geronimo Configure the server to use Harmony RMI Registry provider for JNDIHarmony For that, edit var/config/config.xml file, adjust NamingProperties GBean configuration as follows: <gbean name="NamingProperties"> <attribute name="namingFactoryUrlPkgs">org.apache.harmony.jndi.provider</attribute> <attribute name="namingProviderUrl">rmi://${ServerHostname}:${NamingPort + PortOffset}</attribute> </gbean> Use TLS instead of SSLHarmony <module name="org.apache.geronimo.configs/j2ee-corba-yoko/2.1-SNAPSHOT/car"> <gbean name="CORBASSLConfig"> <attribute name="protocol">TLS</attribute> </gbean> <gbean name="NameServer"> ... Change default keystore typeGeronimo To convert the existing Geronimo Alternatively, you could use the pregenerated PKCS12 or BKS keystore attached to this article: geronimo.pkcs12 To instruct Geronimo <module name="org.apache.geronimo.framework/server-security-config/2.1-SNAPSHOT/car"> <gbean name="geronimo-default"> <attribute name="keystorePath">var/security/keystores/geronimo.pkcs12</attribute> <attribute name="keystoreType">PKCS12</attribute> </gbean> </module> Alternatively, you may just overwrite you keystore file over the var/security/keystores/geronimo-default, then you may omit the keystorePath tag in the config. However, this is not recommended, as you may need the original keystore if you need to run your Geronimo Change keystore type in TomcatWebSSLConnectorIf you intend to use geronimo-tomcat6-javaee5-2.1-SNAPSHOT-bin as the application server, edit var/config/config.xml file and adjust TomcatWebSSLConnector GBean configuration to set the path for keystore in attribute KeystoreFile and keystore type in attribute KeystoreType as followed : <gbean name="TomcatWebSSLConnector"> <attribute name="host">${ServerHostname}</attribute> <attribute name="port">${HTTPSPort + PortOffset}</attribute> <attribute name="maxHttpHeaderSize">8192</attribute> <attribute name="maxThreads">150</attribute> <attribute name="minSpareThreads">25</attribute> <attribute name="maxSpareThreads">75</attribute> <attribute name="enableLookups">false</attribute> <attribute name="acceptCount">100</attribute> <attribute name="disableUploadTimeout">false</attribute> <attribute name="clientAuth">false</attribute> <attribute name="algorithm">Default</attribute> <attribute name="sslProtocol">TLS</attribute> <attribute name="keystoreFile">var/security/keystores/geronimo.pkcs12</attribute> <attribute name="keystorePass">secret</attribute> <attribute name="keystoreType">PKCS12</attribute> </gbean> Place the required jar files in <harmony-hdk>\jdk\jre\lib\extCopy the jar files yoko-rmi-spec-1.0.jar and yoko-spec-corba-1.0.jar present in geronimo-tomcat6-javaee5-2.1\lib\endorsed into <harmony-hdk>\jdk\jre\lib\ext folder. Customize the server startupYou may either edit the Geronimo 1. Harmony 2. Geronimo 3. SPECjAppServer2004 4. Harmony Your final startup line may look like this: java -Xms256M -Xmx512M -Djava.endorsed.dirs=lib/endorsed -Dopenejb.jndiname.failoncollision=true -Dopenejb.jndiname.format={ejbName} -Dhttp.proxyHost=your.proxy -Dhttp.proxyPort=8080 -jar bin/server.jar Configure Deployer to use Harmony RMI Registry provider for JNDIThe Geronimo java -Djava.naming.factory.url.pkgs=org.apache.harmony.jndi.provider -jar bin/deployer.jar ... Harmony configurationUse DRLVMYou should use DRLVM Harmony |