更改osworkflow支持hibernate3(8)

2008-02-23 09:25:28来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

Bobby

so,in conclusion,in order to make it works as fine as you expected,you can do as the following ways to get an XMLReader:
(1)
XMLReader parser=XMLReaderFactory.createXMLReader(String className);
(2)
System.setProperty("org.xml.sax.driver","org.apache.xerces.parsers.SAXParser");
XMLReader parser=XMLReaderFactory.createXMLReader();
(3)
System.setProperty("org.xml.sax.parser","org.apache.xerces.parsers.SAXParser");
XMLReader parser=XMLReaderFactory.createXMLReader();
(4) more directly
XMLReader parser=new org.apache.xerces.parsers.SAXParser();

note that:
1) in case (3),the parser is an instance of ParserAdaptor,it doesn't support the feture "http://xml.org/sax/features/validation",differented from the other cases.
2) in case (2),the class you specified should implement the interface XMLReader, in case (3),the class you specified should implement the interface SAXParser.org.apache.xerces.parsers.SAXParser is applicable in both case.

我是采用第二种办法解决的。

WARN [(ehcache.config.Configurator)] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/tools/eclipse3.1/workspace/osworkflowfromcvs/lib/optional/ehcache.jar!/ehcache-failsafe.xml

ERROR [(spi.hibernate.SpringHibernateFunctionalWorkflowTestCase)] org.springFramework.beans.factory.BeanCreationException: Error creating bean with name 'osworkflowConfiguration' defined in class path resource [osworkflow-spring.xml]: Can't resolve reference to bean 'workflowStore' while setting property 'store'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'workflowStore' defined in class path resource [osworkflow-spring.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; nested exception is

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:[sync4j]Nokia手机和sync4j服务器同步的第三次尝试

下一篇:JAVA 23设计模式一点就通