0 Replies Latest reply on Jun 1, 2012 6:44 AM by gigazhang

    spring jbpm5

    gigazhang Newbie

      when i user jbpm5.3 in spring, which version of drools-spring should I use?

       

       

       

       

      Offending resource: class path resource [spring.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanD

      efinitionStoreException: Line 14 in XML document from class path resource [spring/spring-context-drools.xml] is invalid;

      nested exception is org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in sche

      ma elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Drools - JBoss Community'.

              at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)

              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(Defaul

      tBeanDefinitionDocumentReader.java:271)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefi

      nitionDocumentReader.java:196)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDef

      initionDocumentReader.java:181)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBe

      anDefinitionDocumentReader.java:140)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBean

      DefinitionDocumentReader.java:111)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader

      .java:493)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j

      ava:390)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav

      a:334)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav

      a:302)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini

      tionReader.java:174)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini

      tionReader.java:209)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini

      tionReader.java:180)

              at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext

      .java:125)

              at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext

      .java:94)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha

      bleApplicationContext.java:131)

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationCont

      ext.java:522)

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

              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384

      )

              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)

              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)

              at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)

              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)

              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

              at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

              at org.apache.catalina.core.StandardService.start(StandardService.java:525)

              at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

              at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

              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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

      Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from class pat

      h resource [spring/spring-context-drools.xml] is invalid; nested exception is org.xml.sax.SAXParseException: s4s-elt-cha

      racter: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw

      'Drools - JBoss Community'.

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j

      ava:396)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav

      a:334)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav

      a:302)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(Defaul

      tBeanDefinitionDocumentReader.java:255)

              ... 43 more

      Caused by: org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema element

      s other than 'xs:appinfo' and 'xs:documentation'. Saw 'Drools - JBoss Community'.

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:

      195)

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)

              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)

              at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)

              at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.characters(SchemaDOMParser.java:188)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne

      rImpl.java:464)

              at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:435)

              at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:491)

              at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:510)

              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1802)

              at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2437)

       

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1782

      )

              at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:725)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.ja

      va:377)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocument

      FragmentScannerImpl.java:2756)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

              at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

              at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne

      rImpl.java:511)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

              at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

              at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

              at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)

              at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)

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

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j

      ava:388)

              ... 46 more

      2012-6-1 18:42:18 org.apache.catalina.core.StandardContext start