jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi goel <Ruchi.G...@Sun.COM>
Subject Re: Help needed in installing Jackrabbit on Glassfish/Sun Appserver
Date Thu, 19 Oct 2006 10:39:51 GMT
Ok. I deployed Jackrabbit RAR as Connector , as a result of which  I see 
the application Jackrabbit-jca-1 under j2ee-modules. This application is 
collection of all the jackrabbit dependent jars .

Now I have  following changes in my domain.xml

<connector-resource enabled="true" jndi-name="jcr/globalRepository" 
object-type="user" pool-name="jacrabbit-pool"/>
   <resource-adapter-config object-type="user" 
resource-adapter-name="jackrabbit-jca-1" 
thread-pool-ids="jackrabbit-pool"/>


<connector-connection-pool 
connection-definition-name="javax.jcr.Repository" 
fail-all-connections="false" idle-timeout-in-seconds="300" 
is-connection-validation-required="false" max-pool-size="32" 
max-wait-time-in-millis="60000" name="jacrabbit-pool" 
pool-resize-quantity="2" resource-adapter-name="jackrabbit-jca-1" 
steady-pool-size="8">
     <property name="configFilePath" 
value="c:/testRepository/repository-xml.xml"/>
     <property name="repHomeDir" 
value="c:/testRepository/PortalRepository"/>
   </connector-connection-pool>



<resource-ref enabled="true" ref="jcr/globalRepository"/>

I restarted the server.

Still , I do not see the registered repository under 
c:/testRepository/PortalRepository

Am I missing something ?

-Ruchi


Ottinger, Joseph wrote:

>You shouldn't need to do this. Get the Jackrabbit RAR, and install it in
>glassfish as a connector. Much easier and has the benefit of actually
>being correct - no need to copy files, either. 
>
>-----Original Message-----
>From: Ruchi.Goel@Sun.COM [mailto:Ruchi.Goel@Sun.COM] 
>Sent: Thursday, October 19, 2006 4:54 AM
>To: users@jackrabbit.apache.org
>Subject: Help needed in installing Jackrabbit on Glassfish/Sun Appserver
>
>Hi all,
>   I am trying model2 deployment of JAckrabbit. Was able to successfully
>do it on Tomcat .
>
>Now I want to port it to glassfish/Sun Java Enterprise Server 8.x. I
>have followed  the following steps.
>
>1. copied  the following from
>commons-collections-3.1.jar
>concurrent-1.3.4.jar
>derby-10.1.3
>jackrabbit-core-1.0.1.jar
>jackrabbit-jcr-commons-1.0.1.jar
>jackrabbit-jcr-rmi-1.0.1.jar
>jcr-1.0.jar
>log4j-1.2.8.jar
>lucene-1.4.3.
>slf4j-log4j12-1.0.jar
>xercesImpl-2.6.2
>xmlParserApis-2.0.2.jar
>
>
>from tomcat's commons/lib to /glassfish/domain/domain1/lib.
>
>2. Added the following in  /glassfish/domain/domain1/config/domain.xml
>
><custom-resource enabled="true" 
>factory-class="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
>" 
>jndi-name="jcr/globalRepository" object-type="user" 
>res-type="javax.jcr.Repository">
>      <property name="configFilePath"
>value="c:/repo/repository-xml.xml"/>
>      <property name="repHomeDir" value="c:/repo/PortalRepository"/>
>    </custom-resource>
>   
>3.Restarted the server.
>
>4. I should see three folders under c:/rep/Repository
>    something like myrepository,versions,workspaces but I do not see
>anything.
>
>5. Following is c:/repo/repository-xml.xml
>
><?xml version="1.0" encoding="ISO-8859-1"?> <Repository>
>    <FileSystem
>class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>        <param name="path" value="${rep.home}/myrepository"/>
>    </FileSystem>
>    <Security appName="Jackrabbit">
>        <AccessManager
>class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
>        <LoginModule
>class="org.apache.jackrabbit.core.security.SimpleLoginModule"/>
>    </Security>
>   
>    <Workspaces rootPath="${rep.home}/workspaces" 
>defaultWorkspace="default" />
>    <Workspace name="${wsp.name}">
>        <FileSystem
>class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>            <param name="path" value="${wsp.home}"/>
>        </FileSystem>
>        <PersistenceManager
>class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
>        <SearchIndex
>class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>            <param name="path" value="${wsp.home}/index"/>
>        </SearchIndex>
>    </Workspace>
>    <Versioning rootPath="${rep.home}/versions">
>        <FileSystem
>class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>            <param name="path" value="${rep.home}/versions"/>
>        </FileSystem>
>        <PersistenceManager
>class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
>    </Versioning>
>
></Repository>
>
>
>Please not that above configuration works fine on Tomcat.
>
>
>Help appreciated. I have to do a POC using Jackrabbit and graffito and
>this is a bit urgent.
>
>
>Thanks,
>Ruchi
>
>
>
>
>  
>


Mime
View raw message