cancel
Showing results for 
Search instead for 
Did you mean: 

Can't deploy my first custom workflow, can anybody helps?

paolo26670
Champ in-the-making
Champ in-the-making
Hi everybody

I'm trying to deploy to alfresco my first workflow but I cannot reach the goal!

I'm using Eclipse

I've tried to reproduce the tutorial recorded at Alfresco Summit 2013 (http://summit.alfresco.com/boston/sessions/boost-your-productivity-next-gen-bpm-tooling)

I do everything the programmer do in the tutorial, the Form is ok , then I deploy with CMIS to my alfresco with no error , then I enter Alfresco, start a new Workflow on a document, the Workflow name is in the list  but when the start form shows.. the result is not what I was expecting, the fields I designed in Eclipse are not in the Alfresco form..

The form displayed is a mix between the form I designed and a standard workflow form..

Can somebody help me?

thanks in advance!

Paolo
16 REPLIES 16

jbarrez
Star Contributor
Star Contributor
What Alfresco version are you using?

Are you using the dynamic deploy? Did you read https://github.com/frederikheremans/alfresco-share-modules-refresh ?

paolo26670
Champ in-the-making
Champ in-the-making
I'm using Alfresco Community 4.2f and yes, I didn't read ….

After reading the article, I did all the steps but I got an error from Tomcat

Do you think this is needed? Is it not enough to restart alfresco server?

thanks for your help, be patient with Newbies 🙂

paolo26670
Champ in-the-making
Champ in-the-making
SOLVED..

Problems with reload-module-deployments… the module didnt' work for PATH problems..

Now everything is ok

thanks!

P

Hi, how did you fix this? I'm having troubling in running the github hack. If I do the steps, my Share stops working giving:

"CannotLoadBeanClassException: Error loading class [org.al…] for bean with name 'webscript.module-deployments-reload.get' defined in file [/opt/alfresco-4.2.f/tomcat/shared/classes/alfresco/web-extension/redeploy-modules-share-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/spring….

can you guys, expand the instruction in the github in a more defined manner? I may be doing something wrong.

frederikherema1
Star Contributor
Star Contributor
The hack is what is is -> a hack Smiley Wink. Probabily it uses a configuration feature/class in share which is no longer supported, hence the java.lang.NoClassDefFoundError.

Can you share the full stacktrace, so we know the offending class?

paolo26670
Champ in-the-making
Champ in-the-making
My problem was that the Share Reload Webscript  URL in the Eclipse->Preferences->Kickstart Settings didn't work..
if you copy the URL in a browser it should give you back a simple string that says that the Reload works correctly.
my setting is http://192.168.1.239:8080/share/service/reload-module-deployments, you should change the server IP address.

I tried many times to make the GITHUB hack works. at the end, following step by step the instructions (my server is a Virtual Server so I rolled back the initial snapshot everytime) the system worked. If something is wrong the entire Alfresco Share doesn't work anymore..

Be patient and try it again…

(https://github.com/frederikheremans/alfresco-share-modules-refresh)

paolo26670
Champ in-the-making
Champ in-the-making
https://github.com/frederikheremans/alfresco-share-modules-refresh


Adding the webscript to share should be done the same as with any other
custom webscripts. To get started quick, you can find a simple guide to add
the webscript, using the tomcat 'shared' folder.
1.Add the 'reload-modules.jar' file to the classpath of the Share-webapp
(eg. WEB-INF/lib)
2.Make sure the 'shared' folder is added to the shared loader of your tomcat
container (see http://wiki.alfresco.com/wiki/Install_Tomcat6, or
alternatively, just use the real WEB-INF/classes folder)
3.Make sure the folder '$tomcat/shared/classes/alfresco/web-extension'
exists.
4.Copy all files in 'share-artifacts' folder to the web-extensions folder.
5.Add (or modify if you already have one) the share-config-custom.xml file
in the web-extensions folder and add the folowing line to the
'Web-Framework' config evaluator:
<enable-dynamic-extension-modules>true</enable-dynamic-extension-modules> .
6.Also, alter the module-deployment mode configuration in the same
'Web-Framework' config evaluator:
      <mode>auto</mode>
      <enable-auto-deploy-modules>true</enable-auto-deploy-modules>
   </module-deployment>….

Diventa
           <mode>auto</mode>
           <enable-auto-deploy-modules>true</enable-auto-deploy-modules>

<enable-dynamic-extension-modules>true</enable-dynamic-extension-mo$
        </module-deployment>



then from the shell
export tomcat="/opt/alfresco-4.2.f/tomcat/"

modsley
Champ in-the-making
Champ in-the-making
Hello.
I have same problem with forms
http://localhost:8080/share/service/reload-module-deployments  returns "Refreshed all internal caches" so I think reload script works.

What am I doing wrong?
May be I have to try to deploy manually? But I can't find info where to deploy files created by Kickstart.
Please, help.

jbarrez
Star Contributor
Star Contributor