Hi,
I did the following:
* download the Jackrabbit RAR file from
http://jackrabbit.apache.org/downloads.cgi.
* I followed the Weblogic RAR deploy instructions which included setting up
a weblogic-ra.xml. An example one exists in "jackrabbit-jca\deploy\weblogic"
within the Jackrabbit source code (attached).
* I had to tweak the MANIFEST.MF as described below before deploying the
RAR.
* Make sure the JNDI name referenced in the ra.xml is as per your
requirements.
That should be it.
Regards,
S.
-----Original Message-----
From: Estelle Carr [mailto:[EMAIL PROTECTED]
Sent: 22 May 2007 16:32
To: [email protected]
Subject: Re: Model 2 deployment on Weblogic
Hi Shaun,
That sounds very interesting. Do you know if there's any documentation on
how to do this anywhere?
Many thanks.
On 5/22/07, Shaun Barriball <[EMAIL PROTECTED]> wrote:
>
> Hi Estelle,
> I had a similar problem last week with Weblogic 9.1. Using the
> Jackrabbit Resource Archive (RAR) package I was able to get it to work as
follows:
>
> ==== Snippet from Post =======
> I was able to successfully deploy Jackrabbit as a JCR Resource Archive
> in Weblogic 9.1.
>
> RAR Modification Required for Weblogic 9.1
> -------------------------------------------
> Deploying the prebuilt Jackrabbit 1.3 RAR file within Weblogic 9.1
> failed initially with:
>
> <19-May-2007 15:18:26 o'clock BST> <Error> <Console> <BEA-240003>
> <Console encountered the following error
> weblogic.application.library.LibraryDeploymentException:
> [J2EE:160144]Failed
> to register library Extension-Name: jackrabbit-jca,
> Implementation-Version:
> 1.3: Library cannot have Implementation-Version set, without also
> specifying its Specification-Version.
>
> I was able to resolve this by removing the following line from
> META-INF/Manifest.mf within the RAR file:
> Implementation-Version: 1.3
>
> Hope this helps,
> Shaun.
>
>
>
> -----Original Message-----
> From: Estelle Carr [mailto:[EMAIL PROTECTED]
> Sent: 22 May 2007 16:10
> To: [email protected]
> Subject: Model 2 deployment on Weblogic
>
> Hi,
> Has anyone successfully achieved model 2 deployment of a Jackrabbit
> repository on Weblogic 8.1? I'm having trouble declaring the
> necessary JNDI resource, and am wondering if Weblogic actually
> supports this?
>
> Thanks.
>
>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
<jndi-name>jackrabbitRA</jndi-name>
<enable-access-outside-app>true</enable-access-outside-app>
<enable-global-access-to-classes>
true
</enable-global-access-to-classes>
<outbound-resource-adapter>
<connection-definition-group>
<connection-factory-interface>
javax.jcr.Repository
</connection-factory-interface>
<connection-instance>
<jndi-name>jackrabbit</jndi-name>
<connection-properties>
<pool-params>
<initial-capacity>2</initial-capacity>
<max-capacity>10</max-capacity>
<capacity-increment>1</capacity-increment>
<shrinking-enabled>true</shrinking-enabled>
<shrink-frequency-seconds>
60
</shrink-frequency-seconds>
</pool-params>
<properties>
<property>
<name>HomeDir</name>
<value>/temp/jackrabbit</value>
</property>
<property>
<name>ConfigFile</name>
<value>/temp/jackrabbit/repository.xml</value>
</property>
</properties>
</connection-properties>
</connection-instance>
</connection-definition-group>
</outbound-resource-adapter>
</weblogic-connector>