cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulty getting FDK to work on 3.4d

jim_g
Champ in-the-making
Champ in-the-making
Hey guys;

We're trying to add the FDK into a fresh install of Alfresco 3.4d and have followed the directions here:

http://wiki.alfresco.com/wiki/Forms_Development_Kit

The AMP appears to have successfully installed via the Module Management Tool and we dropped the .JAR file into the share/WEB-INF/lib - for the life of me I can't figure out where <tomcat>/shared/lib is.

After restarting, if I try to access localhost:8080/share/page/fdk I get a Tomcat 500 error.

If I try to access localhost:8080/share/page/form-console I get the top box of the expected form console page followed by "A form could not be found, has an 'itemKind' and 'itemID" been provided?" and the content that is there doesn't appear to work.

Any help?  A lot of this is new to me so I'm learning as I go… I suspect I'm missing something obvious.
6 REPLIES 6

eddie
Champ in-the-making
Champ in-the-making
Hi,

This is just a part response to your question - I had similar problems myself.

<tomcat>/shared/lib doesn't exist in the baked-in tomcat 6. You have to create the folder itself and then configure the tomcat classloader to pick up jar files from this location. This can be done by following the instructions given here: http://wiki.alfresco.com/wiki/Install_Tomcat6

I have also had problems getting share to pick up jar files by placing them in the WEB-INF/lib folder. Have not yet had success explaining to myself how to go about this.

Hope this gets you at least one step further.

Regards, Søren

jim_g
Champ in-the-making
Champ in-the-making
Thanks for your reply, Søren Smiley Happy

I had a look at those instructions and I've found that:

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

is already inside the catalina.properties file…  Everything appears to be done for me already.

One thing I don't understand, though:
Note that for Tomcat 6 on Ubuntu catalina.base has been set to /var/lib/tomcat6 instead of /usr/share/tomcat6. So, you may want to list /var/lib/tomcat6 directly

…does that mean replacing ${catalina.base} with /var/lib/tomcat6 and then creating the /shared/classes etc. directory tree in the /var/lib/tomcat6 directory (which doesn't exist by default)?

I tried doing that and it didn't work either.  I'm still at a loss Smiley Sad  I assume that others have gotten the FDK to work with 3.4d?  I'm considering trying another version to see how I fare…

eddie
Champ in-the-making
Champ in-the-making
Hm, depends what Tomcat installation you are using. If using the default Ubuntu, follow those instructions. If you use the baked-in tomcat that came with Alfresco, (the one that resides under your alfresco dir), the properties in $catalina_base should reflect that. Does that make sense?

Otherwise, try to post your setup (folder structure), and the script you use to start alfresco with.

Regards, Søren

radar1975
Champ in-the-making
Champ in-the-making
Is there a way to make this work

I have tried the procedure over and over and still getting a error while loading http://localhost:8080/share/page/fdk

I read all the post regarding this issue and none help me solve it. I'm using  alfresco-community-3.4.d version

What i did
1- copy alfresco-fdk.amp into C:\Alfresco\amps\alfresco-fdk.amp
2- java -jar alfresco-mmt.jar install C:\Alfresco\amps\alfresco-fdk.amp C:\Alfresco\tomcat\webapps\alfresco.war
3- create folder lib in C:\Alfresco\tomcat\shared\lib
4- Copy alfresco-fdk.jar into C:\Alfresco\tomcat\shared\lib
5- making sure that the C:\Alfresco\tomcat\conf\catalina.properties have the correct shared options shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

and still not working

i also tried to copy the jar file (alfresco-fdk.jar) into  C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib

Can someone help please ?

vincent_saulnie
Champ in-the-making
Champ in-the-making
Hi,

I've got the same problem as Radar1975. Can somebody please help us?

Regards,

acurs
Champ in-the-making
Champ in-the-making
Radar,

I think you are doing wrong in step 3. You should copy the fdk.jar in c:\alfresco\tomcat\lib according to your path…

regards