使用 Netbeans、Maven、Metro 和 Tomcat 创建 Web 服务服务器时,如何在 wsit 配置中使用相对文件路径?
例如,我在 wsit 文件中有这一行:
<sc:KeyStore wspp:visibility="private" location="SERVER_KeyStore.jks" type="JKS" storepass="*****" alias="*****"/>
我应该将 jks 文件放在哪里以便它与该位置匹配?
最佳答案
终于,我找到了答案。
when providing the keystore/trustore name and location in the wsit-*.xml files, please note that they'll be loaded as resources scanning the META-INF directory in your package (WEB-INF/classes/META-INF when using war packages on JBoss Application Server 5).
来自JBossWS - Stack Metro User Guide
就我而言,这意味着将 META-INF 文件夹添加到我的资源文件夹中并添加 <include>**/*.jks</include>
到 pom 文件。
关于java - WSIT:JKS 相对文件路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4993972/