cancel
Showing results for 
Search instead for 
Did you mean: 

FDK Installation

jpashley
Champ in-the-making
Champ in-the-making
Hi,
I am trying to install the FDK in Alfresco version 3.4.c and following the instructions in http://wiki.alfresco.com/wiki/3.3_Forms_Development_Kit.
I have installed the alfresco-community-fdk-3.4.c.amp successfully modifying and backing up the share.war.
When I list the alfresco-fdk-3.4.c.jar I see that the files listed are not being put into the directory structure e.g. alfresco/site-data/template-instances/fdk-unit-tests.xml
I have tried copying the alfresco-fdk-3.4.c.jar into both <tomcat>/shared/lib and <tomcat>/webapps/<appname>/WEB-INF/lib and restarting the services but the files listed in alfresco-fdk-3.4.c.jar to not appear anywhere in the directory structure. Note: appname is share (maybe it should be alfresco?)
I can start the FDK using http://localhost:8080/share/page/fdk and can view a nodeRef but that is all.
Q: How to solve?
Environment: MS Windows XP SP 3. Standard Alfresco Community 3.4.c. installation.
John
20 REPLIES 20

gavinc
Champ in-the-making
Champ in-the-making
Hi,

Firstly, the FDK AMP file needs to be installed into alfresco.war and not in share.war.

Secondly, you won't see the files in the alfresco-fdk-3.4.c.jar in the directory structure, they remain in the JAR file, Tomcat will read them from within the JAR.

I need a bit more info to diagnose your issue. Once installed go to the document details page of a node and click the "Change Type" action, in the popup dialog do you have some options present i.e. Gadget, Company and Everything? If you go to http://localhost:8080/share/page/form-console what happens?

jpashley
Champ in-the-making
Champ in-the-making
Tks Gavin,

did as you instructed.

I created content "test01.txt" (mimetype plain text) and tried to change the type. The popup dialog shows Gadget, Company, Everything and Article. Selecting e.g. Everything fails.

Accessing http://localhost:8080/share/page/form-console presents the Form Console page but only the top (blue background) part as depicted in http://wiki.alfresco.com/wiki/File:Nested-sets-form-console.jpg

If I enter the node id: of test01.txt I see the form but not as depicted in the jpg namely "Built In", "Custom Data", etc.

Hope this helps.
John

jpashley
Champ in-the-making
Champ in-the-making
Hi Gavin,

I did as you advised and wondered if you had time to look at my response?

John

stevegreenbaum
Champ in-the-making
Champ in-the-making
Selecting e.g. Everything fails.

Are you receiving an error message at this point?

If I enter the node id: of test01.txt I see the form but not as depicted in the jpg namely "Built In", "Custom Data", etc.
What exactly do you see after you enter the node id?

jpashley
Champ in-the-making
Champ in-the-making
Selecting e.g. Everything fails.

Are you receiving an error message at this point?

Yes the following message display in a grey background box:
Could not change type for 'test03.txt'

If I enter the node id: of test01.txt I see the form but not as depicted in the jpg namely "Built In", "Custom Data", etc.
What exactly do you see after you enter the node id?

The following:
Sorry about the presentation but you should be able to recognise that I input "Kind = node" and "Id: = workspace://SpacesStore/979219cb-94c0-46e4-9bf6-02b149c4876e (that of the text document in question namely test03.txt)
The display mirrors the original "Create Content" mask itself.
PS: Is it not possible to include a screen shot in the forum input mask?

Form Console
Item Details
Kind: node Id: workspace://SpacesStore/979219cb-94c0-46e4-9bf6-02b149c4876e
Destination:
Form Details
Id: Mode:  View   Edit   Create  Submit Type:  Multipart   JSON   URL Encoded  
Redirect:
Name:*
Title:
Description: test03
Mimetype:
Author:
Tags:
Select
Submit  Cancel

Hope this helps.
John

jpashley
Champ in-the-making
Champ in-the-making
Hi Steve,

I subsequently checked in the stdout_*.log and found the following after trying to change the type to "Everything":

11:11:30,167  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 00140001 Wrapped Exception (with status template): 00140278 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/type.post.json.js': Namespace prefix fdk is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 00140001 Wrapped Exception (with status template): 00140278 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/type.post.json.js': Namespace prefix fdk is not mapped to a namespace URI
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)
etc.
etc.
etc.

Maybe this helps.
John

stevegreenbaum
Champ in-the-making
Champ in-the-making
Did you copy the jar file to tomcat/shared/lib and make the change to catalina.properties?

jpashley
Champ in-the-making
Champ in-the-making
Hi,

yes alfresco-fdk-3.4.c.jar is installed in ..\tomcat\shared\lib.

catalina.properties has the following line:
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
which I guess should load the above?

John

mrogers
Star Contributor
Star Contributor
You are missing  ${catalina.base}/shared/lib/*.jar