0 Replies Latest reply: Aug 6, 2012 5:39 AM by Houssem Salah RSS

XML Schéma probléme with drools-spring integration in jbpm

Houssem Salah Newbie

I had a web application running in Tomcat server and I want to add jbpm engine and human task to this application (spring +hibernate+jsf)

I had to make a spring configuration like the one mentioned in the JBPM documentation but I'm facing a probléme with xml schéma

"http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring-1.3.0.xsd"

 

 

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 12 in XML document from class path resource [applicationContext-jbpm.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://drools.org/schema/drools-spring-1.3.0.xsd; lineNumber: 12; columnNumber: 22; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

javax.faces.event.AbortProcessingException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 12 in XML document from class path resource [applicationContext-jbpm.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://drools.org/schema/drools-spring-1.3.0.xsd; lineNumber: 12; columnNumber: 22; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

    at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:178)

    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:84)

    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:773)

    at javax.faces.component.UICommand.broadcast(UICommand.java:296)

    at javax.faces.component.UIData.broadcast(UIData.java:911)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1255)

    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:334)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)

    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:293)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

    at java.lang.Thread.run(Thread.java:722)

Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 12 in XML document from class path resource [applicationContext-jbpm.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://drools.org/schema/drools-spring-1.3.0.xsd; lineNumber: 12; columnNumber: 22; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)

    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)

    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)

    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)

    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)

    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)

    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)

    at com.whitecape.web.java.AbsenceBean.startSession(AbsenceBean.java:287)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.apache.el.parser.AstValue.invoke(AstValue.java:191)

    at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)

    at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:149)

    ... 25 more

Caused by: org.xml.sax.SAXParseException; systemId: http://drools.org/schema/drools-spring-1.3.0.xsd; lineNumber: 12; columnNumber: 22; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)

    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)

    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)

 

 

Any help will be great.!

Thanx