File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Moving jackrabbit repository Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Moving jackrabbit repository" Watch "Moving jackrabbit repository" New topic
Author

Moving jackrabbit repository

Ashish Sathaye
Greenhorn

Joined: Jul 05, 2010
Posts: 5
Hello,
Not sure if this is right path of posting problem we are facing in jackrabbit repository movement.

We are moving our application that uses jackrabbit repository from one server to another. The database and schema for jackrabbit remains the same.

when we move application and start the server we start gettings errors like below:

[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR org.apache.jackrabbit.core.fs.db.OracleFileSystem - failed to open output stream to file: /meta/rep.properties
java.io.IOException: No such file or directory
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at org.apache.jackrabbit.util.TransientFileFactory.createTransientFile(TransientFileFactoryjava:122)
at org.apache.jackrabbit.core.fs.db.OracleFileSystem.getOutputStream(OracleFileSystem.java:360)
at org.apache.jackrabbit.core.fs.BasedFileSystem.getOutputStream(BasedFileSystem.java:135)
at org.apache.jackrabbit.core.fs.FileSystemResource.getOutputStream(FileSystemResource.java174)
at org.apache.jackrabbit.core.RepositoryImpl.storeRepProps(RepositoryImpl.java:1289)
at org.apache.jackrabbit.core.RepositoryImpl.loadRepProps(RepositoryImpl.java:1269)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:285)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:627)
at org.apache.jackrabbit.jca.JCARepositoryManager$Reference.create(JCARepositoryManager.jav:178)

We tried moving the entire jackrabbit content directory from source server to new server but this also did not work.

The reference to /meta/rep.properties was found in the Oracle table REPOFS_FSENTRY table.

So to get the application deployed we had to delete everything in the file system and drop these database tables. When the system came up it recreated the database tables as expected. This of course creates a clean and EMPTY document repository so this is unacceptable.

Any solution??

Regards,
Ashish
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Post it to jackrabbit repository forms .


Save India From Corruption - Anna Hazare.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Moving jackrabbit repository
 
Similar Threads
Pet Store
Spring with Apache Jackrabbit.
Using ant create-tables in NetBeans 5.5
Using ant create-tables in NetBeans 5.5
Session bean and confirmation from the client