<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
problem in JBPM 5.2 integration with Spring
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/dotanguy">dotan guy</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/647340#647340">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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).</p><p>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span> org.xml.sax.SAXParseException : Attribute "schemaLocation" bound to namespace "</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" was already specified for element "definitions".</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p>this is the beginning of my mvc-config.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span><beans xmlns="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span>"</span></p><p><span>          xmlns:tx="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx" target="_blank">http://www.springframework.org/schema/tx</a><span>" xmlns:p="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/p" target="_blank">http://www.springframework.org/schema/p</a><span>"</span></p><p><span>          xmlns:util="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/util" target="_blank">http://www.springframework.org/schema/util</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>          xmlns:mvc="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/mvc" target="_blank">http://www.springframework.org/schema/mvc</a><span>" xmlns:aop="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/aop" target="_blank">http://www.springframework.org/schema/aop</a><span>"</span></p><p><span>          xmlns:jbpm="</span><a class="jive-link-external-small" href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a><span>" xmlns:context="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a><span>"</span></p><p><span>          xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span>          </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</a></p><p><span>                                                            </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/util" target="_blank">http://www.springframework.org/schema/util</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/util/spring-util-3.0.xsd" target="_blank">http://www.springframework.org/schema/util/spring-util-3.0.xsd</a></p><p><span>                                          </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context/spring-context-3.0.xsd" target="_blank">http://www.springframework.org/schema/context/spring-context-3.0.xsd</a><span> </span></p><p><span>                                                   </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/util" target="_blank">http://www.springframework.org/schema/util</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/util/spring-util-3.0.xsd" target="_blank">http://www.springframework.org/schema/util/spring-util-3.0.xsd</a></p><p><span>                        </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/aop" target="_blank">http://www.springframework.org/schema/aop</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/aop/spring-aop-3.0.xsd" target="_blank">http://www.springframework.org/schema/aop/spring-aop-3.0.xsd</a></p><p><span>                        </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx" target="_blank">http://www.springframework.org/schema/tx</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/tx/spring-tx-3.0.xsd" target="_blank">http://www.springframework.org/schema/tx/spring-tx-3.0.xsd</a></p><p><span>                        </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/mvc" target="_blank">http://www.springframework.org/schema/mvc</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd" target="_blank">http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd</a></p><p><span>                        </span><a class="jive-link-external-small" href="http://drools.org/schema/drools-spring" target="_blank">http://drools.org/schema/drools-spring</a><span> </span><a class="jive-link-external-small" href="http://goodtraffic.info/drools/drools-spring-1.2.0.xsd" target="_blank">http://goodtraffic.info/drools/drools-spring-1.2.0.xsd</a><span>"></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <jbpm:kbase id="kbase"></p><p>                    <jbpm:resources></p><p>                              <jbpm:resource type="BPMN2" source="classpath:process-definitions/Sample.bpmn" /></p><p>                    </jbpm:resources></p><p>          </jbpm:kbase></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          <jbpm:ksession id="ksession" type="stateful" kbase="kbase" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>any help would be greatly appreciated...</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/647340#647340">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>