jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ottinger, Joseph" <jottin...@techtarget.com>
Subject RE: Help needed in installing Jackrabbit on Glassfish/Sun Appserver
Date Thu, 19 Oct 2006 09:24:34 GMT
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