hi guys,<br><br>I am trying to upload my rules from jboss-brms to my eclipse in order to run it against the working memory.<br>The following is my code and change-set.xml file and I am getting the following error stack.<br>
I have started the jboss-server and it is connected correctly. <br>But I am not able to figure out the error I am getting and is my change-set and code proper?<br>The error says that it is unable to parse change-set.xml and unable to connect to the server. I have just specified the url path in my change-set file and the types of files it should be looking out for.<br>
What else do I need to incorporate for it to connect to the server??? I could not find much help in the documentation.<br><br>Please help me. I am relatively new to Drools.<br><br>Code in my Runner class:<br><br>KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();<br>
        ResourceFactory.getResourceChangeScannerService().start();<br>        ResourceFactory.getResourceChangeNotifierService().start();<br>        <br>        // creating a knowledge agent<br>        KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();<br>
<br>        KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( &quot;MyAgent&quot;, kbase,aconf );<br>        kagent.applyChangeSet( ResourceFactory.newUrlResource(&quot;<a href="http://localhost:8280/jboss-brms/org.drools.guvnor.Guvnor/Guvnor.html">http://localhost:8280/jboss-brms/org.drools.guvnor.Guvnor/Guvnor.html</a>&quot;));<br>
        StatefulKnowledgeSession ksession = kagent.getKnowledgeBase().newStatefulKnowledgeSession();<br><br>  //      StatelessSession workingMemory = ruleBase.newStatelessSession();<br>        ArrayList&lt;Ip&gt; ipList = new ArrayList&lt;Ip&gt;();<br>
<br>        ksession.setGlobal(&quot;ipList&quot;, ipList);<br>        ksession.insert(al);<br>        ksession.fireAllRules();<br>        ksession.dispose();<br><br><br><br>my change-set.xml file:<br><br> &lt;change-set xmlns=&#39;<a href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a>&#39;<br>
             xmlns:xs=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&#39;<br>             xs:schemaLocation=&#39;<a href="http://drools.org/drools-5.0/change-set.xsd">http://drools.org/drools-5.0/change-set.xsd</a>&#39; &gt;<br>
   &lt;add&gt;<br>   &lt;!-- Add for specifying URLs--&gt;<br>       &lt;resource source=&#39;<a href="http://localhost:8280/jboss-brms">http://localhost:8280/jboss-brms</a>&#39; type=&#39;DRL&#39; /&gt;<br>       &lt;resource source=&#39;<a href="http://localhost:8280/jboss-brms">http://localhost:8280/jboss-brms</a>&#39; type=&#39;DSLR&#39; /&gt;<br>
       &lt;resource source=&#39;<a href="http://localhost:8280/jboss-brmss/sample-dsl.dsl">http://localhost:8280/jboss-brmss/sample-dsl.dsl</a>&#39; type=&#39;DSL&#39; /&gt;&quot;;<br>       &lt;resource source=&#39;<a href="http://localhost:8280/jboss-brms">http://localhost:8280/jboss-brms</a>&#39; type=&#39;BRL&#39; /&gt;<br>
   &lt;/add&gt;<br> &lt;/change-set&gt;<br><br><br><br><br>error stack:<br><br>java.lang.RuntimeException: Unable to parse ChangeSet<br>    at org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:223)<br>
    at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:109)<br>    at com.org.RuleRunner.runStatelessRules(RuleRunner.java:156)<br>    at com.org.RulesTest.main(RulesTest.java:38)<br>Caused by: java.net.SocketException: Network is unreachable: connect<br>
    at java.net.PlainSocketImpl.socketConnect(Native Method)<br>    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br>    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<br>    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<br>
    at java.net.Socket.connect(Socket.java:524)<br>    at java.net.Socket.connect(Socket.java:474)<br>    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)<br>    at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)<br>
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)<br>    at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:231)<br>    at sun.net.www.http.HttpClient.New(HttpClient.java:304)<br>    at sun.net.www.http.HttpClient.New(HttpClient.java:321)<br>
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:839)<br>    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:791)<br>    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:716)<br>
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:960)<br>    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)<br>    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:905)<br>
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:872)<br>    at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:282)<br>    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1021)<br>
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)<br>    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)<br>
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)<br>    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)<br>    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)<br>
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)<br>    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:255)<br>    at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:170)<br>
    at org.drools.xml.XmlChangeSetReader.read(XmlChangeSetReader.java:48)<br>    at org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentImpl.java:221)<br>    ... 3 more<br><br>Please help me.<br><br>Thank you<br>
Jill<br>