cancel
Showing results for 
Search instead for 
Did you mean: 

FlexSpaces+AIR, FlexSpaces, + Alfresco Web Scripts

stevereiner
Champ in-the-making
Champ in-the-making
59 REPLIES 59

stevereiner
Champ in-the-making
Champ in-the-making
Did some testing of FlexSpaces+AIR on non windows AIR client platforms:

Worked fine on Linux Ubuntu 8.04 including the AIR specific features (native drag/drop, native clipboard, make files offline)
1. To install adobe air alpha runtime for linux:
http://labs.adobe.com/technologies/air/
http://www.sizlopedia.com/2008/04/06/how-to-install-adobe-air-on-ubuntu/
2. Double click on FlexSpacesAir.air from http://forge.alfresco.com/projects/flexspaces/  and install
3. Set host and port in /opt/FlexSpacesAir/alfresco-config.xml
(note the linux air alpha currently does not support internal viewing of pdfs)(make pdf, make flash preview, view flash preview features of FlexSpaces still work)

On Mac OSX 10.5.2 Leopard, works except for things involving upload (upload files…, native shell drag/drop, native shell clipboard), make files offline worked. On windows and linux flash players, able to authenticate and thus upload a new file, on mac flashplayer getting 401 codes back.  Still working on this issue.
1. Install released AIR 1.x runtime for the Mac
http://get.adobe.com/air/
2.  Double click on FlexSpacesAir.air from http://forge.alfresco.com/projects/flexspaces/ and install
3. Set host and port name in alfresco-config.xml
a. In finder choose "Show Package Contents" on installed FlexSpacesAir.app
b. alfresco-config.xml is in contents/resources/

Windows, basic and air specific features (native drag/drop, native clipboard, make files offline) work
1. Install air runtime http://get.adobe.com/air/
2.  Double click on FlexSpacesAir.air from http://forge.alfresco.com/projects/flexspaces/ and install
3. Set host and port in c:\Program Files\FlexSpacesAIR\alfresco-config.xml

(Would make things easier if you could set the host and port from the UI of FlexSpaces.)

Steve
http://www.integratedsemantics.org
http://www.integratedsemantics.com

stevereiner
Champ in-the-making
Champ in-the-making
New FlexSpaces prototype 0.2 release

http://forge.alfresco.com/projects/flexspaces/

1. Updated FlexSpaces+AIR to have better support for mac (fixes upload files, native drag/drop, native clipboard, create content html), and fixed having some extra authentication dialogs on Windows

2. Added FlexSpaces+Browser prototype for browser based (no AIR) FlexSpaces from a web server

3. Added XML data webscripts only download for use with any ajax/html or flex or xyz custom application

Steve
http://www.integratedsemantics.org
http://www.integratedsemantics.com

dmatejka
Champ in-the-making
Champ in-the-making
Hi Steve,
thank you for the update..

we have been trying to install new browser version of your webscripts and we have run into the following error

after installation of custom-transform-context.xml and flexspaces/ webapp
we've got these errors:


10:36:36,425  ERROR [web.context.ContextLoader] Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transformer.Pdf2swf'
defined in file
[/opt/alfresco/tomcat/shared/classes/alfresco/extension/custom-transform-context.xml]:
Error setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [java.util.ArrayList] to required
type [java.util.List] for property 'explicitTransformations'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type
[org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey]
to required type [org.alfresco.repo.content.transform.E
xplictTransformationDetails] for property 'explicitTransformations[0]': no
matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [java.util.ArrayList] to required type [java.util.List] for
property 'explicitTransformations'; nested exception is java.lang.Il
legalArgumentException: Cannot convert value of type
[org.alfresco.repo.content.transform.ContentTransformerR
egistry$TransformationKey] to required type
[org.alfresco.repo.content.transform.ExplictTransformationDetails
] for property 'explicitTransformations[0]': no matching editors or
conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type
[org.alfresco.repo.content.transf
orm.ContentTransformerRegistry$TransformationKey] to required type
[org.alfresco.repo.content.transform.Expli
ctTransformationDetails] for property 'explicitTransformations[0]': no
matching editors or conversion strategy found



do you have any hint regarding what we are missing?

stevereiner
Champ in-the-making
Champ in-the-making
The custom-transform-context.xml is only needed for doing the "Make flash preview" and "Preview" features. It also depends on headless openoffice that is really working (the Tools / Make PDF in flexspaces works) and a new dev snapshot of pdf2swf from swftools.org  installed and on your path. (Had gotten the custom-transform-context.xml from the  knowledge-base /ace in alfresco svn module section.  Changed it to have different parms to pdf2swf for flash9 and to not have built-in nav arrows, etc. 

I think you  are get these errors since it can'f find the pdf2swf program

Had been using it with alfresco 2.90C_dev  and pdf2swf on a windows machine.  Haven't tried with linux server or other alfresco version.  (Only thing I tried on linux was as a client with AIR talking to alfresco on windows machine)  What version of alfresco are you using?

Would suggest trying it first without the custom-transform-context.xml  and then if you want flash previews, then work to get that it working.

Steve

dmatejka
Champ in-the-making
Champ in-the-making
Hi Steve
thank you for the reply

actually we cannot make any client to work (brower nor AIR) .. seems that we do not have a connection to the server (yes we have changed localhost according to our server path)

maybe the problem is that we are running Linux server(?)

our environment is:
java -version:
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)

alfresco:
Installed version 2.9.0 (C_dev 813) schema 124

pdf2swf:
/usr/bin/pdf2swf –version
pdf2swf - part of swftools 2008-05-05-0902

echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/ant/bin


Is there anybody that have installed it on the linux server sucessfully?

stevereiner
Champ in-the-making
Champ in-the-making
What does your flexspaces/alfresco-config.xml look like for browser + webserver?
What does your  alfresco-config.xml  on air client (see readmeFlexSpacesForAIR.txt for platform locations look like)?
What OS / Browers clients are you running from ?

I assume your trying without the custom-transform-context.xml since if your getting those errors things probably don't work

Linux shouldn't be an issue with just the web scripts,  may be some linux specific system config for pdf2swf

The alfresco-config.xml from alfresco's "flex-sdk" is only designed to set the protocol, host name (or ip address) and port
so  in flexspaces webscripts are called with the configured  <protocol>://<host>:<port>/alfresco/xxxx
(Maybe I need to support more configuration?)

Where did you install the webscripts from the "integratedsemantics" folder ?
Can you list webscripts with these urls ( with your particular hostname, port)
http://<host>:<port>/alfresco/service/
Does http://<host>:<port>/alfresco/service/index/package/
list  /integratedsemantics/checkin  /integratedsemantics/copy  …  /integratedsemantics/upload

Steve

toxmox
Champ in-the-making
Champ in-the-making
I just installed Alfresco yesterday and am playing around with things.  I installed FlexSpaces+AIR as well as the web version.  I really like it.   Smiley Very Happy  Can't wait for more functionality such as allowing multiple file downloads etc.  Couple of notes:
On the web version if I try to login I get this error:

Application Error: Security error accessing url
Stack Trace:
null

The AIR app works.

If I rename Company Home to something else then I no longer see any folders in the AIR app.
Also if I give permissions to a user to only have access to their home space and remove the everyone group from Company Home then same thing with not seeing any folders.

Perhaps I'm doing something wrong.

stevereiner
Champ in-the-making
Champ in-the-making
Implemented multple select for about everything except "File / Download File…",  (make available offline does work with multiple selections in air version). Will look into, not built-in to apis.

"sercurity error accessing url, stack trace null" on web version
What client OS, what browser  and version?  If you got the air version working did you need to change its the alfresco-config.xml hostname / port  (would need to same change in  webapps/fiexspaces/alfresco-config.xml). Was it from inside vmware ?   what was the platform of the webserver with flexspaces and alfresco?
Sounds like what I saw with LInux Ubuntu with firefoxn 3 beta from inside vmware. (maybe vmware issue?) The air version worked from this Linux client. Tested web version with clients outside of vmware: from Windows Vista (Firefox 2, IE7) and Mac OS X 10.5.2  (Safari 3.1 and Firefox 2).

Will look at the Company Home issues.

Steve

toxmox
Champ in-the-making
Champ in-the-making
Running latest community edition on Vista x64 with the embedded Tomcat etc.  I did make the appropriate changes to point to the alfresco server and port.
Browser is Firefox 2.0.0.14
All on same machine.
I would love to have the ability to download from the alfresco documents pane on top to the local folder I have selected when I enable that window/pane in the AIR app.  I mainly want to use Alfresco as a visual gui type replacement for FTP via a web interface for some users and webdav or AIR app for others where they can easily do batch uploading and downloading of files and folders.
Let me know if you need any other info.

stevereiner
Champ in-the-making
Champ in-the-making
ToxMox,
I actually have Vista x64 too (SP1) and same firefox (what are the odds!)  with 2.90C_dev 04 23 08 alfresco, embedded tomcat, as my server, dev machine.
In <install dir>\tomcat\webapps\flexspaces\alfresco.config.xml have domain="ip address of this machine"

On Firefox 2.0.0.14 on the same windows vista x64 machine:
   with machine name in url, get security error accessing url, and org.alfresco.framework.server.authentication error stack when try to login
      http://vista2:8080/flexspaces/FlexSpaces.html
   This works fine:
       http://localhost:8080/flexspaces/FlexSpaces.html

From other real machines: mac osx,  windows vista 32, windows xp SP2; from vmware virtual machine on xp: ubuntu 8.04 with firefox 3 beta5
    this gives the same security error:
       http://vista2:8080/flexspaces/FlexSpaces.html
    this works
       http://<ip address of vista2>:8080/flexspaces/FlexSpaces.html
(ubuntu inside vmware now works too once I switched to use the ip address!)

Steve
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.