FlexSpaces+AIR, FlexSpaces, + Alfresco Web Scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2008 05:46 AM
http://integratedsemantics.org/2008/04/08/12/
1. AIR specific features (FlexSpaces+AIR)
http://integratedsemantics.org/__oneclick_uploads/2008/04/air-features2.html
2. General features screencam (FlexSpaces+AIR, FlexSpaces+browser)
http://integratedsemantics.org/__oneclick_uploads/2008/04/flex-features2.html
screenshots:
http://integratedsemantics.org/2008/04/02/hello-world/
features:
http://www.integratedsemantics.com/products.html
Some mention of features, dataformats in
http://forums.alfresco.com/viewtopic.php?f=36&t=11793&start=0&st=0&sk=t&sd=a
Steve Reiner
http://www.integratedsemantics.org
http://www.integratedsemantics.com
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2008 11:30 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 03:21 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 05:17 AM
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 initializationfailedorg.springframework.beans.factory.BeanCreationException: Error creatingbean with name 'transformer.Pdf2swf'defined in file[/opt/alfresco/tomcat/shared/classes/alfresco/extension/custom-transform-context.xml]:Error setting property values; nested exception isorg.springframework.beans.PropertyBatchUpdateException; nestedPropertyAccessExceptions (1) are:PropertyAccessException 1: org.springframework.beans.TypeMismatchException:Failed to convert property value of type [java.util.ArrayList] to requiredtype [java.util.List] for property 'explicitTransformations'; nestedexception is java.lang.IllegalArgumentException: Cannot convert value oftype[org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey]to required type [org.alfresco.repo.content.transform.ExplictTransformationDetails] for property 'explicitTransformations[0]': nomatching editors or conversion strategy foundCaused by: org.springframework.beans.PropertyBatchUpdateException; nestedPropertyAccessException details (1) are:PropertyAccessException 1:org.springframework.beans.TypeMismatchException: Failed to convert propertyvalue of type [java.util.ArrayList] to required type [java.util.List] forproperty '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.ExplictTransformationDetails] for property 'explicitTransformations[0]': no matching editors orconversion strategy foundCaused by: java.lang.IllegalArgumentException: Cannot convert value of type[org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey] to required type[org.alfresco.repo.content.transform.ExplictTransformationDetails] for property 'explicitTransformations[0]': nomatching editors or conversion strategy found
do you have any hint regarding what we are missing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 05:53 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 08:06 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 09:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 12:05 PM

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 01:43 PM
"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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 02:18 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 03:23 PM
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
