cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] Workflows not available

nsomaru
Champ in-the-making
Champ in-the-making
Greetings Alfrescians,

When selecting 'Start Workflow' in the Alfresco Share interface, the wizard interface starts, however, the 'Please select a workflow' drop-down box is empty. Any ideas?

The associated entry in alfresco.log 'seems' to be:
11:31:38,079 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 01150004 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 01150004 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:377)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix wswf is not mapped to a namespace URI
        at org.alfresco.service.namespace.QName.createQName(QName.java:101)
        at org.alfresco.service.namespace.QName.createQName(QName.java:123)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.getTaskDefinition(JBPMEngine.java:1969)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowTaskDefinition(JBPMEngine.java:3004)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowDefinition(JBPMEngine.java:2942)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$4.doInJbpm(JBPMEngine.java:460)
        at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
        at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.getDefinitions(JBPMEngine.java:438)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.getDefinitions(WorkflowServiceImpl.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy68.getDefinitions(Unknown Source)
        at org.alfresco.repo.web.scripts.workflow.WorkflowDefinitionsGet.buildModel(WorkflowDefinitionsGet.java:52)
        at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:79)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
        … 24 more
6 REPLIES 6

mikeh
Star Contributor
Star Contributor
Looks like you've installed a module (WCM Quickstart perhaps?) and then removed it later on. You can use the workflow admin console* to remove those workflow definitions causing problems, or just add the module back in.

* /alfresco/faces/jsp/admin/workflow-console.jsp

Thanks,
Mike

nsomaru
Champ in-the-making
Champ in-the-making
Solution was:

Reinstalled with all available options (3.4c).

Basically comes down to MH's solution, i.e., replace missing modules.

Nikhil

womer
Champ in-the-making
Champ in-the-making
This sounds simple enough, but it's not so obvious on *how* exactly.

I'm getting the same error:
Namespace prefix wswf is not mapped to a namespace URI

And yes.. I deployed the Web Quick Start, then removed it as I never could get it to work correctly.  Since I was just testing with it… not something the users requested, I took it back out.  Better for it not to be there at all, instead of there and not useful.

I've poked around the workflow admin screen a bit and I am unable to figure out how to remove anything based on this information.

Any hints to share on how to do this?

Thanks,
Scott



Looks like you've installed a module (WCM Quickstart perhaps?) and then removed it later on. You can use the workflow admin console* to remove those workflow definitions causing problems, or just add the module back in.

* /alfresco/faces/jsp/admin/workflow-console.jsp

Thanks,
Mike

mpeters
Champ in-the-making
Champ in-the-making
Hi,

we have the same problem after upgrading Alfresco to a newer version without reinstalling WQS. I want to handle the problem with the workflow admin console (which is absolutely new to me), but even running the command "show workflows all" raises the error "org.alfresco.service.namespace.NamespaceException: Namespace prefix wswf is not mapped to a namespace URI".

So how could I get rid of the unwanted workflows?

Regards
Markus

mikeh
Star Contributor
Star Contributor
You'll need to boot with the module installed; then use the workflow console to remove those workflows; then you can shutdown and deploy a "clean" war file.

Thanks,
Mike

jpotts
World-Class Innovator
World-Class Innovator
I know this is an old thread but this bug bit me recently. I wasn't looking forward to multiple shutdowns and a Web Quick Start AMP reinstall to fix it. Fortunately, it's much easier to correct. You can do it without a restart.

The issue is documented in <a href="https://issues.alfresco.com/jira/browse/ALF-11033">Jira ALF-11033</a> so I'll post the fix steps there so it is in one place.

Jeff