更改osworkflow支持hibernate3(8)
2008-02-23 09:25:28来源:互联网 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash

