无法在 WinXP 上运行 Apache Geronimo 3

发布于 2024-10-19 18:24:19 字数 3472 浏览 4 评论 0原文

当我尝试通过 bin/geronino run 命令在 Windows XP 上运行 Geronimo 3.0-M1(带有 Tomcat)时,出现 java.security.NoSuchAlgorithmException 。据报道没有任何 AES 实施。但如果我尝试使用 AES 运行简单的应用程序,它就会起作用。我在互联网上查了一下,但没有找到任何结果。有没有人有同样的经历? (Geronimo 输出如下。)

C:\g\bin>geronimo run
Using GERONIMO_HOME:   C:\g
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        c:\Program files\Java\jdk1.6.0_21

  Apache Geronimo (3.0-M1)

geronimo> Booting Geronimo Kernel (in Java 1.6.0_21)...
Starting Geronimo Application Server v3.0-M1
[****                                    ]  12%   0s  Loading org.apache.ger...2011-02-25 18:23:33,000 ERROR [AbstractEncryption] Unable to decrypt
java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES
        at javax.crypto.Cipher.getInstance(DashoA13*..)
        at org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:74)
        at org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:108)
        at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.loadUserRepositories(PluginRepositoryDownloader.java:122)
        at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.<init>(PluginRepositoryDownloader.java:80)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:917)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:461)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:189)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:88)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32) 

I get a java.security.NoSuchAlgorithmException when I'm trying to run Geronimo 3.0-M1 (with Tomcat) on Windows XP via bin/geronino run command. There is reportedly not any AES implementation. But if I try run simple application using AES, it works. I had a look on Internet, but nothing have found. Is there anybody with the same experience? (Geronimo output follows.)

C:\g\bin>geronimo run
Using GERONIMO_HOME:   C:\g
Using GERONIMO_TMPDIR: var\temp
Using JRE_HOME:        c:\Program files\Java\jdk1.6.0_21

  Apache Geronimo (3.0-M1)

geronimo> Booting Geronimo Kernel (in Java 1.6.0_21)...
Starting Geronimo Application Server v3.0-M1
[****                                    ]  12%   0s  Loading org.apache.ger...2011-02-25 18:23:33,000 ERROR [AbstractEncryption] Unable to decrypt
java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES
        at javax.crypto.Cipher.getInstance(DashoA13*..)
        at org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:74)
        at org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:108)
        at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.loadUserRepositories(PluginRepositoryDownloader.java:122)
        at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.<init>(PluginRepositoryDownloader.java:80)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:917)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:461)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:189)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:88)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32) 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谷夏 2024-10-26 18:24:19

我已经在Linux上解决了这个问题。我使用 JRE 而不是 JDK 来运行 Geronimo,它可以工作。

Using GERONIMO_HOME:   /usr/devel/geronimo-tomcat6-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/devel/jre1.6.0_24
Booting Geronimo Kernel (in Java 1.6.0_24)...
Starting Geronimo Application Server v2.2
[****************************************] 100%  28s Startup complete          

我已经这样设置系统变量:

JRE_HOME=/usr/devel/jre1.6.0_24
JAVA_HOME=/usr/devel/jdk1.6.0_24

I have solved this problem on Linux. I use JRE instead JDK to run Geronimo and it works.

Using GERONIMO_HOME:   /usr/devel/geronimo-tomcat6-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/devel/jre1.6.0_24
Booting Geronimo Kernel (in Java 1.6.0_24)...
Starting Geronimo Application Server v2.2
[****************************************] 100%  28s Startup complete          

I have set system variables in this way:

JRE_HOME=/usr/devel/jre1.6.0_24
JAVA_HOME=/usr/devel/jdk1.6.0_24
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文