jboss 7不扫描jre的ext文件夹 [英] jboss 7 does not scan ext folder of jre

查看:136
本文介绍了jboss 7不扫描jre的ext文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在jboss上运行的软件,它需要位于jre/lib/ext中的加密库.我收到以下异常:

i have a software which runs on jboss and it requires crypto library which resides in jre/lib/ext. I get the following exception:

Caused by: java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE from [Module "deployment.myatrium-intranet-ear.ear.myatrium_intranet.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

我在此链接中尝试了以下解决方案:

i have tried the following solution in this link:

http://www.liferay.com/it/community/wiki/-/wiki/Main/JBoss+AS7+tips/maximized#section-JBoss+AS7+tips-sunjce_provider.jar

但无法扫描ext文件夹.

but failed to get ext folder scanned.

确实处于绝望的境地.非常感谢您的帮助.

Really in a desperate situation. A help is really appreciated.

预先感谢

推荐答案

几个月前,我遇到了一个非常相似的问题,似乎标准方法无法正常工作.

I had a very similar problem a few months ago and it seems that the standard approach is not working.

此链接解决了我的问题: https://community.jboss.org/thread/175395

This link solved my problem: https://community.jboss.org/thread/175395

它讨论了bouncycastle提供程序,但也应该适用于sunjce_provider.

It talks about the bouncycastle provider, but should work for sunjce_provider too.

这篇关于jboss 7不扫描jre的ext文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆