|
| Home > Apache Geronimo v2.0 - JA > Documentation > 9. サンプル・アプリケーション > 9.1. Apache Harmony |
この文章では、Apache
Harmony
を JVM として利用して Geronimo
v2.0.2
を実行する方法と、既知の問題について説明します。
この文章の構成は以下のとおりです。
Harmony
では org.apache.harmony.jndi に JNDI
providers
のパッケージ・ツリーがあり、Sun
Java
の com.sun.jndi のものとは違います。ですので、Geronimo
に RMI
レジストリー・プロバイダーがどこにあり、どのようにアクセスするのかを指定しなければいけません。
そのために、var/config/config.xml ファイルを編集し、NamingProperties GBean の構成を以下のとおりにしてください。
<gbean name="NamingProperties"> <attribute name="namingFactoryInitial">org.apache.harmony.jndi.provider.rmi.registry.RegistryContextFactory</attribute> <attribute name="namingFactoryUrlPkgs">org.apache.harmony.jndi.provider</attribute> <attribute name="namingProviderUrl">rmi://${ServerHostname}:${NamingPort + PortOffset}</attribute> </gbean>
Geronimo
のデプロイヤーは var/config/config.xml ファイルを利用しないので (上記を確認してください)、JNDI
の構成にシステム・プロパティを与える必要があります。例えば以下のとおりです。
java -Djava.naming.factory.initial=org.apache.harmony.jndi.provider.rmi.registry.RegistryContextFactory -Djava.naming.factory.url.pkgs=org.apache.harmony.jndi.provider -jar bin/deployer.jar ...
DRLVM
(Harmony
VM) を利用して Geronimo
を実行します。
Harmony
はまた、IBM
J9
VM もサポートしていますが、これでは Geronimo
は動きません。それは、Geronimo
は sun.misc.Unsafe の実装クラスとしての java.util.concurrent
パッケージをあてにしていますが、IBM
J9
VM にはこれが無いからです。
GERONIMO-2014
- Geronimo uses outdated version of ApacheDS
GERONIMO-2015
- Let's replace JKS to PKCS12 key store type
GERONIMO-2113
- Geronimo doesn't start if restarted using another JDK
GERONIMO-2128
- Allow user to specify the Isolation Level for a CMP bean's SQL access
GERONIMO-2595
- Hardcoded MX4J logger in org.apache.geronimo.kernel.log.GeronimoLogging class
HARMONY-1259
- NoClassDefFoundError while working with MX4J loggers
この問題はもう発生しないように見えます。
GERONIMO-1805
- org.apache.geronimo.directory.RunningTest hangs on BEA Jrockit VMs
GERONIMO-1826
- Naming tests might not work on non-Sun VMs
GERONIMO-1832
- Non-public Sun classes dependencies in tests
GERONIMO-1833
- Non-public Sun classes dependencies in tests
GERONIMO-1840
- NamingPropertiesTest is not compatible with non-Sun VMs
GERONIMO-2055
- RunningTest is not compatible with non-Sun VMs