cancel
Showing results for 
Search instead for 
Did you mean: 

Workdesk - Human Ressources Application error

luigi
Champ in-the-making
Champ in-the-making
Hi,

I have downloaded the Alfresco Community 4.2.e <i>"Custom Instal"</i> and  Alfresco Workdesk Community 4.1.1.1.
The simple deploy of Workdesk folder on my Apache Tomcat web server working fine:
   at http://localhost:8080/workdesk i am able to login with my share credential.
   
But if I try to install Human Ressources Application, when run install-owd-hr.bat


c:\app\Human Resources Application>install-workdesk-hr.bat -ap c:\develop\apache-tomcat-7.0.47_previp\webapps\alfresco -u admin -p admin


I got the message


Exception in thread "main" com.wewebu.ooa.OwOAIncompatibleAfrescoException:
The Alfresco deployment at c:\develop\apache-tomcat-7.0.47_previp\webapps\alfresco
is not compatible with this version of the
Workdesk Human Resources Application installer!
        at com.wewebu.ooa.OwOpenAir.install(OwOpenAir.java:53)
        at com.wewebu.ooa.OwOpenAir.main(OwOpenAir.java:279)
       
       

Note:
I have Windows 7 and I run command line window (cmd.exe) as administrator.

Any ideas ?
5 REPLIES 5

afaust
Legendary Innovator
Legendary Innovator
Hello,

well, the error message is pretty precise. The version of the Workdesk Human Resources application does not support the particular Alfresco version you are using. I think there is a note in the Readme that only Alfresco Community 4.2c (and below) has been tested.

As far as I remember, this could also be a problem with you having done a "custom install" of Alfresco instead of running the installer. When I tried out Workdesk and the HR application the first time (and I <b>always</b> do a custom install, installer is just for end-user evals IMHO), it did not work on my installation and I had to tinker a bit - i.e. modify the HR application installer script so it would just bootstrap the contents after I manually deployed the model and Spring context files. I vaguely remember that the installer checks for a specific folder structure that results from the installer, but which you may not have if doing a custom install.

Regards
Axel

luigi
Champ in-the-making
Champ in-the-making
Thank you very much for the prompt reply Axel.
I have also a Bitnami installation (4.2.e) and the result is the same.
I'll try a 4.2.c !

Bye
Luigi

deko
Star Contributor
Star Contributor
Hi Luigi,

I guess the problem is the Alfresco path you define while starting the importer batch file. The importer was made to support Alfresco Communtiy standard installations, where you would reference to C:\Alfresco only for example.

The tool itselfs is then going through the standard installation subfolders, for example it is traversing from C:/Alfresco down to /tomcat/webapps to locate the alfresco.war file there and deploy the custom Human Resources content models.

Your path is currently defined as

c:\develop\apache-tomcat-7.0.47_previp\webapps\alfresco

So if you would rename your tomcat folder from apache-tomcat-7.0.47_previp to tomcat (be aware that automated services might have to be changed also), your folder structure would be equal to an standard Alfresco community installation:


c:\develop\tomcat\webapps\alfresco

You then should be able to run the importer using following ap parameter only:


-ap c:\develop

Could you try this approach please and give feedback? I don´t know your custom installation structure, but you might run into other problems then, as your custom installation might miss the tomcat/shared structure for extensions, which comes with a standard Alfresco installation.

Best regards,
deko

luigi
Champ in-the-making
Champ in-the-making
hi deko,

thanks very much for your valuable suggestion.

After rename "apache-tomcat-7.0.47_previp" in "tomcat"
begins the process but ends with this error:


2014-01-30 14:41:20,589 [main] INFO  OwOpenAir [] - Starting [Alfresco 3xx Stop]
2014-01-30 14:41:24,043 [main] INFO  OwOpenAir [] - CMIS Repository Main Repository
2014-01-30 14:41:24,044 [main] ERROR OwOpenAir [] - Failed to gnip CMIS WS @SIMPLE_CMIS{http://localhost:8080/alfresco/cmis} >> Sleeping …
2014-01-30 14:41:24,045 [main] WARN  OwOpenAir [] - Alfresco online @ [CMIS connction to SIMPLE_CMIS{http://localhost:8080/alfresco/cmis} ]
2014-01-30 14:41:24,048 [main] INFO  OwOpenAir [] - Stopping [Alfresco 3xx Stop]
2014-01-30 14:41:24,049 [main] FATAL OwOpenAir [] - fatal error on running action [Alfresco 3xx Stop]. Undoing changes.
com.wewebu.ooa.OwOAInstallError: java.io.IOException: Cannot run program "c:\develop/servicerun.bat" (in directory "c:\develop"): CreateProcess error=2, Impossibile trovare il file specificato
   at com.wewebu.ooa.ace.OwBatchScript.run(OwBatchScript.java:61)
   at com.wewebu.ooa.ace.OwAlfrescoBatchAction.runBatchScript(OwAlfrescoBatchAction.java:21)
   at com.wewebu.ooa.ace.OwStopAlfresco3xAction.runBare(OwStopAlfresco3xAction.java:37)
   at com.wewebu.ooa.OwInstallActionBase.run(OwInstallActionBase.java:21)
   at com.wewebu.ooa.OwOpenAir.install(OwOpenAir.java:87)
   at com.wewebu.ooa.OwOpenAir.main(OwOpenAir.java:279)
Caused by: java.io.IOException: Cannot run program "c:\develop/servicerun.bat" (in directory "c:\develop"): CreateProcess error=2, Impossibile trovare il file specificato
   at java.lang.ProcessBuilder.start(Unknown Source)
   at java.lang.Runtime.exec(Unknown Source)
   at java.lang.Runtime.exec(Unknown Source)
   at com.wewebu.ooa.ace.OwBatchScript.run(OwBatchScript.java:41)
   … 5 more
Caused by: java.io.IOException: CreateProcess error=2, Impossibile trovare il file specificato
   at java.lang.ProcessImpl.create(Native Method)
   at java.lang.ProcessImpl.<init>(Unknown Source)
   at java.lang.ProcessImpl.start(Unknown Source)
   … 9 more
2014-01-30 14:41:24,053 [main] FATAL OwOpenAir [] -    deleting c:\develop\oat\workdesk-hr\1_Stop_Alfresco


so i put a simple servicerun.bat in c:\develop with this content:


@echo off
rem START or STOP Services
rem ———————————-
rem Check if argument is STOP or START

set "CATALINA_HOME=C:\develop\tomcat"

if not ""%1"" == ""START"" goto stop
if exist C:\develop\tomcat\bin\startup.bat (start C:\develop\tomcat\bin\startup.bat)

goto end

:stop
echo "Stopping services …"
if exist C:\develop\tomcat\bin\shutdown.bat (start C:\develop\tomcat\bin\shutdown.bat)

:end


and then the process is completed successfully


2014-01-30 15:38:32,002 [main] INFO  OwOpenAir [] - Successfully ran Workdesk Hu
man Resources application installer @ Alfresco Community Edition 4.2.x


Now HR is visible in my repository (see the image workdesk HR.png) !

many many thanks deko !

Luigi

deko
Star Contributor
Star Contributor
Well done Luigi and thanks to you also!

Now we know the process how to run the installer for custom Alfresco Community installations 😉 (The installer never was developped for this special case).

Hope you can enjoy Alfresco Workdesk and the HR scenario now.

Best regards,
Deko
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.