简体   繁体   English

Apache Sling:配置 Oracle 钱包时出现 Sling 错误 - java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet

[英]Apache Sling: Sling error when configuring Oracle Wallets - java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet

I'm trying to configure a DB Connect connection that uses Oracle Wallets, but keep running into the following error in the apache sling error log:我正在尝试配置使用 Oracle 钱包的 DB Connect 连接,但在 apache 吊索错误日志中不断遇到以下错误:

PKI classes not found.未找到 PKI 类。 To use 'connect /' functionality, oraclepki.jar must be in the classpath: java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet要使用“连接/”功能,oraclepki.jar 必须在类路径中:java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet

I've put the osdt_cert.jar, osdt_core.jar, ojdbc6-12.1.0.1.jar and oraclepki.jar in the portal/lib directory, and I've tried several entries to put the above files in the java classpath via the properties when start the sling app. I've put the osdt_cert.jar, osdt_core.jar, ojdbc6-12.1.0.1.jar and oraclepki.jar in the portal/lib directory, and I've tried several entries to put the above files in the java classpath via the properties启动吊索应用程序时。
But nothing has seemed to work.但似乎没有任何效果。

Please note I'm using Apache Sling 6 version.请注意,我使用的是Apache Sling 6版本。

Tried with the below solution as well.也尝试了以下解决方案。 But it also didn't work.但它也没有奏效。
https://community.splunk.com/t5/All-Apps-and-Add-ons/Error-when-configuring-DB-Connect-3-1-4-and-Oracle-Wallets/mp/484200 https://community.splunk.com/t5/All-Apps-and-Add-ons/Error-when-configuring-DB-Connect-3-1-4-and-Oracle-Wallets/mp/484200

If you have any suggestions on how to resolve the above error, please let me know.如果您对如何解决上述错误有任何建议,请告诉我。
Thanks谢谢

I have tried to create an OSGI bundle for pki jar using Bnd tools, Eclipse and Maven bundle plugin .我尝试使用Bnd 工具、Eclipse 和 Maven 捆绑插件pki jar创建一个 OSGI 捆绑包。

Bnd tools gave below error when creating OSGI bundle for pki jar.在为 pki jar 创建 OSGI 包时,Bnd 工具给出了以下错误。 And also unable to create OSGI bundle from Eclipse as well.并且也无法从 Eclipse 创建 OSGI 包。

oracle_wallet_bnd_tool]$./bnd.sh wrap./input/oraclepki.jar Errors 000: /data/workspace/portal/VFI/oracle_wallet/oracle_wallet_bnd_tool/./input/oraclepki.jar The default package '.' oracle_wallet_bnd_tool]$./bnd.sh wrap./input/oraclepki.jar Errors 000: /data/workspace/portal/VFI/oracle_wallet/oracle_wallet_bnd_tool/./input/oraclepki.jar The default package '.' is not permitted by the Import-Package syntax. Import-Package 语法不允许。 This can be caused by compile errors in Eclipse because Eclipse creates valid class files regardless of compile errors.这可能是由 Eclipse 中的编译错误引起的,因为 Eclipse 会创建有效的 class 文件,而不管编译错误如何。 The following package(s) import from the default package null以下包从默认 package null 导入

Have created OSGI bundle for pki jar using Maven bundle plugin without any error.使用Maven 捆绑插件pki jar创建了 OSGI 捆绑包,没有任何错误。 It needs at least one dependency for pki bundle.它至少需要一个 pki bundle 依赖项。 But when deploying the tomcat, it gives above mentioned PKI classes not found error in apache sling log .但是在部署 tomcat 时,它会在 apache 吊索日志中给出上述 PKI classes not found 错误

We have tried to create OSGI bundle for ojdbc6 with oraclepki, osdt_cert and osdt_core dependency using Maven bundle plugin.我们尝试使用 Maven 捆绑插件为具有 oraclepki、osdt_cert 和 osdt_core 依赖项的 ojdbc6 创建 OSGI 捆绑包。 It was also unsuccessful.它也没有成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发送到oracle aq时出现java.lang.NoClassDefFoundError - java.lang.NoClassDefFoundError when sending to oracle aq 严重:配置类org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError的应用程序侦听器时出错: - SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener java.lang.NoClassDefFoundError: apache java.lang.NoClassDefFoundError - apache java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource - 新的 - java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource - New One java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole - java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole java.lang.NoClassDefFoundError:oracle / net / ns / RefusePacket - java.lang.NoClassDefFoundError: oracle/net/ns/RefusePacket Jdeveloper错误“ java.lang.NoClassDefFoundError:无法初始化类oracle.dbtools.raptor.config.DBConfig” - Jdeveloper error “java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig” on start java.lang.NoClassDefFoundError中的错误: - Error in java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/Credentials 错误 - java.lang.NoClassDefFoundError: org/apache/commons/httpclient/Credentials error 使用Apache FileUpload时java.lang.NoClassDefFoundError - java.lang.NoClassDefFoundError when using Apache FileUpload
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM