杰克兔 on Wildfly 11

JackRabbit on Wildfly 11

我们计划使用 jackrabbit 存储库来存储 files.Trying 以在 Wildlfy 11 上部署 jackrabbit。

已从以下位置下载 jackrabbit-jca -2.8.7.rar http://central.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jca/2.8.7/jackrabbit-jca-2.8.7.rar

尝试在 wildlfy 11 中部署此 rar 文件时出现以下异常。 12:33:29,107 错误 [org.jboss.msc.service.fail](ServerService 线程池 --72)MSC000001:无法启动服务 jboss.ra.deployer。"jackrabbit-jca -2.8.7.rar":org.jboss.msc.service.StartException 在服务 jboss.ra.deployer."jackrabbit-jca-2.8.7.rar": WFLYJCA0046: 无法启动 RA 部署 [jackrabbit-jca-2.8.7.rar]

非常感谢任何帮助

我根据这些步骤在 Wildfly 上部署了 jackrabbit

关于在 WILDFLY 11 上部署大兔子的分步程序

1. Downloaded latest version of jackrabbit-jca-2.8.7.rar file from following location

    http://central.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jca/2.4.3/jackrabbit-jca-2.8.7.rar

2. Configured Jackrabbit repo in standalone-full.xml under <subsystem xmlns="urn:jboss:domain:resource-adapters:5.0">

<resource-adapters>
    <resource-adapter id="jackrabbit-jca-2.8.7.rar">
        <archive>jackrabbit-jca-2.8.7.rar</archive>
        <connection-definitions>
        <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory" jndi-name="jcr/local" enabled="true" pool-name="RabbitAdapter">
        <config-property name="homeDir">//The location you wish to store files</config-property>
        <security>
        <application/>
        </security>
        <validation>
        <background-validation>false</background-validation>
        </validation>
        </connection-definition>
        </connection-definitions>
    </resource-adapter>
</resource-adapters>

3. updated the existing jca archive validation property as false under <subsystem xmlns="urn:jboss:domain:jca:5.0">

    <archive-validation enabled="false"

4. Configured hsqldb as DefaultDS datasource in standalone-full.xml.

<datasource jndi-name="java:/DefaultDS" pool-name="DefaultDS" enabled="true" use-java-context="true">
<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
<driver>hsqldb</driver>
<pool>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
</pool>
<security>
<user-name>sa</user-name>
<password></password>
</security>
</datasource>

5. Created module in wildfly for hsqldb dependency

location : wildfly-11.0.0.Final\modules\system\layers\base\org\hsqldb\main

jar : hsqldb.jar,hsqldb-plugin.jar

module.xml

<module xmlns="urn:jboss:module:1.3" name="org.hsqldb">
<properties>
<property name="jboss.api" value="private"/>
</properties>

<resources>
<resource-root path="hsqldb.jar"/>
<resource-root path="hsqldb-plugin.jar"/>
</resources>
</module>

Added hsqldb driver in standalone-full.xml under<drivers> tag

<driver name="hsqldb" module="org.hsqldb">
<driver-class>org.hsqldb.jdbcDriver</driver-class>
</driver>

6. Create a module for jcr dependency in Wildlfy 11
    location : wildfly-11.0.0.Final\modules\system\layers\base\javax\jcr\main

    jar name : jcr-2.0.jar

 module.xml

 <module xmlns="urn:jboss:module:1.3" name="javax.jcr">

    <resources>
        <resource-root path="jcr-2.0.jar"/>
    </resources>
</module>