JBoss Community

problem in JBPM 5.2 integration with Spring

created by dotan guy in jBPM - View the full discussion

Hi

 

I have a project that uses Spring 3.0.7 and i'm trying to implelment JBPM 5.2 in it (currently using JBPM 4).

I added code to my mvc-config.xml as specified in the official user guide of JBPM 5.2 but when i run the project it throws this error:

 

org.xml.sax.SAXParseException : Attribute "schemaLocation" bound to namespace "http://www.w3.org/2001/XMLSchema-instance" was already specified for element "definitions".

 

 

I see it has something to do with xml's namespaces but i have no idea why it is hapenning and how to fix it.

this is the beginning of my mvc-config.xml:

 

<?xml version="1.0" encoding="UTF-8"?>

 

 

 

 

<beans xmlns="http://www.springframework.org/schema/beans"

          xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"

          xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"

          xmlns:jbpm="http://drools.org/schema/drools-spring" xmlns:context="http://www.springframework.org/schema/context"

          xsi:schemaLocation="http://www.springframework.org/schema/beans          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

                                                            http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd

                                          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd

                                                   http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd

                        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd

                        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

                        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd

                        http://drools.org/schema/drools-spring http://goodtraffic.info/drools/drools-spring-1.2.0.xsd">

 

 

          <jbpm:kbase id="kbase">

                    <jbpm:resources>

                              <jbpm:resource type="BPMN2" source="classpath:process-definitions/Sample.bpmn" />

                    </jbpm:resources>

          </jbpm:kbase>

 

 

          <jbpm:ksession id="ksession" type="stateful" kbase="kbase" />

 

 

any help would be greatly appreciated...

Reply to this message by going to Community

Start a new discussion in jBPM at Community