AnsweredAssumed Answered

Service-context.xml file causing login issue

Question asked by erichkey on Jan 29, 2019
Latest reply on Mar 15, 2019 by roberto.gamiz

I'm able to deploy a new custom workflow but upon testing a receive an error regarding the destination folder for the document in the workflow, the service-context.xml is not added into alfresco yet.

When Adding the file to {PATH}/alfresco/extension (this is were I copied the workflow bpmn file) and restart alfresco and go to the login page to test again, I'm unable to use admin login details. Once I remove the service-context.xml file, I can login again but the same error occurs on the workflow.


The following is the entire service-context.xml file:



<?xml version='1.0' encoding='UTF-8'?>
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


    <!-- A simple module component that will be executed once.
        Note. this module component will only be executed once, and then there will be an entry for it in the Repo.
        So doing for example $ mvn clean install -Pamp-to-war twice will only execute this component the first time.
        You need to remove /alf_data_dev for it to be executed again. -->
    <bean id="extension.workflowBootstrap" parent="workflowDeployer">
        <property name="workflowDefinitions">         
                    <prop key="engineId">activiti</prop>
                    <prop key="location">alfresco/extension/MyProcess2.bpmn</prop>
                    <prop key="mimetype">text/xml</prop>
                    <prop key="redeploy">true</prop>
                    <prop key="engineId">activiti</prop>
                    <prop key="location">alfresco/extension/workflows/KeystoneDocumentReview.bpmn</prop>
                    <prop key="mimetype">text/xml</prop>
                    <prop key="redeploy">true</prop>