Update::: On the exception(mentioned below) related to jar "drools-bpmn2-5.1.0.M2.jar", I recreated this jar file from the Drools source (5.1.0.M2) against JDK6 and the exception went away. :) So far so good.
Plugin related exception is still there. I replaced the jar "drools-bpmn2.jar" which is present in the lib of plugin jar "org.drools.eclipse_5.1.0.M2.jar" with the recompiled jar, but not much luck - plugin is still not able to open the "*.bpmn" process. The error I get is "The method getTextContent() is undefined for the type Node" . Right now I am at a dead end. Thanks in advance for help. Thanks Vijay From: Vijay K Pandey Sent: Monday, June 07, 2010 5:45 PM To: 'Rules Users List' Subject: RE: Drools 5.1.0.M2 - BPMN2 process issue - Eclipse plugin. -- The method getTextContent() is undefined for the type Node I created a sample project to run a very simple rule flow (BPMN process), I got the similar error which the plugin is reporting. My env is SUN JDK 6. Here is the exception I get? Any clue guys. Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method getTextContent() is undefined for the type Node The method getTextContent() is undefined for the type Node at org.drools.bpmn2.xml.StartEventHandler.handleNode(StartEventHandler.java:46) at org.drools.bpmn2.xml.AbstractNodeHandler.end(AbstractNodeHandler.java:77) at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:420) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:739) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755) 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(XMLDocumentFragmentScannerImpl.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.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:295) at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:174) at org.drools.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:44) at org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.java:222) at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:415) at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:475) at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:517) at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28) Thanks Vijay From: Vijay K Pandey Sent: Sunday, June 06, 2010 11:43 PM To: Rules Users List Subject: Drools 5.1.0.M2 - BPMN2 process issue - Eclipse plugin. -- The method getTextContent() is undefined for the type Node Hi, I just downloaded the Drools 5.1.0.M2 (have been using the snapshot version of around 16th April 2010) - created a sample "rule flow file(start-->user task-->end) - bpmn2 version". But when I clicked the file to open it gave the following error (image attached) "The method getTextContent() is undefined for the type Node" . I understand this error is related to org.w3c.dom.Node where this method was added as part of DOM Level 3 and available in JDK 5+ . My project and eclipse is configured against JDK 6+ . Not sure why this error with M2. May be it is because of the drools-bpmn2.jar included in the drools eclipse plugin? Can someone shed some light that where it might be going wrong. [cid:image001.png@01CB06E7.1655B9C0] Thanks Vijay
<<inline: image001.png>>
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users