Hi,
I'm using drools-2.1 with plain annotation support (Not with Spring)
In the ".drl" file I'm able to use only one rule set. When tried to use
other rule set, I get the following error :
(null: 13, 2): The markup in the document following the root element must be
well-formed.
org.xml.sax.SAXParseException: The markup in the document following the root
element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java
:1150)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(
XMLDocumentScanner.java:626)
at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(
XMLDocumentScanner.java:680)
at
org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch
(XMLDocumentScanner.java:1506)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(
XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.drools.io.RuleSetReader.read(RuleSetReader.java:443)
at org.drools.io.RuleSetReader.read(RuleSetReader.java:337)
at org.drools.io.RuleBaseLoader.loadFromInputStream(RuleBaseLoader.java
:234)
at org.drools.io.RuleBaseLoader.loadFromInputStream(RuleBaseLoader.java
:193)
at org.drools.io.RuleBaseLoader.loadFromInputStream(RuleBaseLoader.java
:177)
at com.kenati.nms.server.service.rule.DefaultRuleService.loadRules(
DefaultRuleService.java:76)
at com.kenati.nms.server.service.rule.test.LoadRulesTest.testLoadRules(
LoadRulesTest.java:41)
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)
Do I need to create other rule set in another ".drl" ?
What is workaroung for this?
Thanks for Help,
Anagha