cancel
Showing results for 
Search instead for 
Did you mean: 

Seam Client for Alfresco rivet

rivetlogic
Champ on-the-rise
Champ on-the-rise
SCAr

SCAr (Seam Client for Alfresco rivet) is a production-ready demo application for accessing an Alfresco document management repository. SCAr is built with JBoss Richfaces, JBoss Seam and RAAr (http://wiki.rivetlogic.org/display/RAAR/).

A demo site can be accessed at http://scar.rivetlogic.com.

SCAr lives here:
http://wiki.rivetlogic.org/display/SCAR/

Feel free to ask questions about SCAr in this thread.

–Sumer
46 REPLIES 46

rivetlogic
Champ on-the-rise
Champ on-the-rise
I see. That's the problem. RAAr also has a compatibility matrix with Alfresco version which you can find here:

http://wiki.rivetlogic.com/display/RAAR/Compatibility+Matrix

The reason this is the case is because sometimes the Alfresco Foundation Services' APIs change from one release to the next.

We would need to release a new version of SCAr that uses RAAr 1.9.0 in order for it to work with Alfresco 3.0.x

Is this something you need soon?

–Alaaeldin

amitoj
Champ in-the-making
Champ in-the-making
Yes, I need to give a 'proof of concept' demo by 2nd week of January.
My original plan was to use the Alfresco UI, but there is too much unwanted functionality in it.

SCAr has a very neat UI compared to Alfresco and I would like to implement it.

What is the best possible ETA?

rivetlogic
Champ on-the-rise
Champ on-the-rise
We'll do our best to try and push it out this week. I'll post on this thread when I have an update.

Cheers,

–Alaaeldin

amitoj
Champ in-the-making
Champ in-the-making
Thanks.

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

We just released SCAr 1.0.3 which works with Alfresco 3.0.x using RAAr 1.9.0.

You can download it here: http://wiki.rivetlogic.com/display/SCAr/Downloads

Cheers,

–Alaaeldin

amitoj
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the update.

I am still getting the following error

11:51:53,840 ERROR [TreeUtil] A CMA runtime exception occurred:
com.rivetlogic.core.cma.exception.CmaRuntimeException: java.lang.NoSuchMethodError: org.alfresco.service.cmr.security.Acc
essPermission.getPosition()I
        at com.rivetlogic.core.cma.impl.SearchServiceImpl.execute(SearchServiceImpl.java:399)
        at com.rivetlogic.core.cma.impl.SearchServiceImpl.query(SearchServiceImpl.java:219)
        at org.rivetlogic.scar.util.RaarUtil.search(RaarUtil.java:166)
        at org.rivetlogic.scar.util.RaarUtil.searchSpacesStore(RaarUtil.java:101)
        at org.rivetlogic.scar.util.TreeUtil.getAllChildFoldersByPath(TreeUtil.java:120)
        at org.rivetlogic.scar.action.SpacesListAction.getFolderData(SpacesListAction.java:105)

        at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

        at org.rivetlogic.scar.action.SpacesListAction_$$_javassist_3.getFolderData(SpacesListAction_$$_javassist_3.java)


Caused by: java.lang.NoSuchMethodError: org.alfresco.service.cmr.security.AccessPermission.getPosition()I
        at com.rivetlogic.core.cma.repo.AccessPermissionImpl.<init>(AccessPermissionImpl.java:32)
        at com.rivetlogic.core.cma.alfresco.webscripts.bean.SearchServiceWebScript.createNode(SearchServiceWebScript.java
:311)
        at com.rivetlogic.core.cma.alfresco.webscripts.bean.SearchServiceWebScript.createNodes(SearchServiceWebScript.jav
a:247)
        at com.rivetlogic.core.cma.alfresco.webscripts.bean.SearchServiceWebScript.query(SearchServiceWebScript.java:167)

        at com.rivetlogic.core.cma.alfresco.webscripts.bean.SearchServiceWebScript.executeInternal(SearchServiceWebScript
.java:98)
        at com.rivetlogic.core.cma.alfresco.webscripts.bean.AbstractCmaWebScript.executeInTransaction(AbstractCmaWebScrip
t.java:189)
        at com.rivetlogic.core.cma.alfresco.webscripts.bean.AbstractCmaWebScript.execute(AbstractCmaWebScript.java:140)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:295)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:340)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:228)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)




May be it is because of wrong config inside app-config.xml

<repository-config>
   <repository-url>http://p1-alfresco:8080/alfresco</repository-url>
   <repository-public-url>http://p1-alfresco:8080/alfresco</repository-public-url>
   <repository-root-location>/app:company_home</repository-root-location>
   <std-folders-location>/app:company_home/app:dictionary/app:space_templates</std-folders-location>

</repository-config>


How do I find out repository-root-location and std-folders-location?


Reg,

Amitoj.

amitoj
Champ in-the-making
Champ in-the-making
My Alfresco Node Reference is

workspace://SpacesStore/11f9c67b-405e-4ff8-9842-6557c97b0d40


and Home folder path is

/Company Home/User Homes/MilkyWay


or is it the Unix path to alf_data?

/opt/Alfresco/alf_data

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Your app-config.xml file looks ok. The paths used in that file are the same one you use in Alfresco lucene queries.

The error you're getting is this:

11:51:53,840 ERROR [TreeUtil] A CMA runtime exception occurred:
com.rivetlogic.core.cma.exception.CmaRuntimeException: java.lang.NoSuchMethodError: org.alfresco.service.cmr.security.Acc
essPermission.getPosition()I

getPoisition() is a new method added in Alfresco 3.0 which implies that you're not using RAAr 1.9.0.

The versions you should be using are:

Alfresco 3.0
RAAr 1.9.0 AMP
SCAr Alfresco 1.0.3 AMP
SCAr 1.0.3

Are these the versions you're using?

Also make sure when you apply the amps to use the -verbose argument to make sure the AMPs are being installed correctly.

–Alaaeldin

amitoj
Champ in-the-making
Champ in-the-making
The versions I am using are correct

I re-installed the Alfresco 3.0 with the two AMPs RAAr and SCAr I downloaded today.
Also re-installed SCAr.

Module 'SCArAmp' installed in '/opt/Alfresco/tomcat/webapps/alfresco.war'
   -    Title:        Seam Client for Alfresco module
   -    Version:      1.0.3
   -    Install Date: Mon Dec 29 11:47:54 GMT 2008
   -    Desription:   Enables direct upload/download to/from the repository for use by external web clients

Module 'RivetCmaAlfrescoAmp' installed in '/opt/Alfresco/tomcat/webapps/alfresco.war'
   -    Title:        RivetLogic Alfresco CMA Integration
   -    Version:      1.9.0
   -    Install Date: Mon Dec 29 11:48:02 GMT 2008
   -    Desription:   Enables RivetLogic CMA (Content Management Adapted) to plug in to / integrate with Alfresco

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

We looked into this issue and found that Alfresco's 3.0 Community version (downloaded from the Alfresco website) is missing the following method:

org.alfresco.service.cmr.security.AccessPermission.getPosition()

This method is available in the Enterprise version which is what we test RAAr against.

It seems that your options are:

- Get a free trial Alfresco Enterprise 3.0 version for your proof of concept

OR

- Checkout the HEAD of the Alfresco Community source from SVN and verify that this method is there, then compile/build alfresco.war

Hope this helps,

–Alaaeldin