-
Bug
-
Resolution: Done
-
Major
-
6.x.x
If the artifactId in the kjar ends with '.bpmn', then the following REST command for deployment fails:
curl -X POST -H "Accept: application/json" -u bpmsAdmin:password1! "http://localhost:8080/business-central/rest/deployment/com.test.process:test.process.bpmn:1.0.0-SNAPSHOT/deploy"
When the artifactId does not contain the '.bpmn' suffix, the same command works:
curl -X POST -H "Accept: application/json" -u bpmsAdmin:password1! "http://localhost:8080/business-central/rest/deployment/com.test.process:test.process:1.0.0-SNAPSHOT/deploy"
It seems as if the META-INF/maven/com.test.process/test.process.bpmn folder inside the jar is treated as a regular file, resulting in the following exception:
11:18:55,902 ERROR [org.drools.core.xml.ExtensibleXmlParser] (null: 1, 1): Content is not allowed in prolog. 11:18:55,903 ERROR [stderr] org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. 11:18:55,904 ERROR [stderr] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196) 11:18:55,904 ERROR [stderr] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175) 11:18:55,904 ERROR [stderr] at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394) 11:18:55,908 ERROR [stderr] at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322) 11:18:55,908 ERROR [stderr] at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281) 11:18:55,908 ERROR [stderr] at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1496) 11:18:55,908 ERROR [stderr] at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:870) 11:18:55,909 ERROR [stderr] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) 11:18:55,909 ERROR [stderr] at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) 11:18:55,909 ERROR [stderr] at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) 11:18:55,909 ERROR [stderr] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) 11:18:55,910 ERROR [stderr] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196) 11:18:55,910 ERROR [stderr] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555) 11:18:55,910 ERROR [stderr] at org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289) 11:18:55,910 ERROR [stderr] at org.drools.core.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:318) 11:18:55,910 ERROR [stderr] at org.drools.core.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:180) 11:18:55,911 ERROR [stderr] at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:61) 11:18:55,911 ERROR [stderr] at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:284) 11:18:55,911 ERROR [stderr] at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addProcessFromXml(KnowledgeBuilderImpl.java:711) 11:18:55,911 ERROR [stderr] at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl$6.build(CompositeKnowledgeBuilderImpl.java:224) 11:18:55,912 ERROR [stderr] at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildResourceType(CompositeKnowledgeBuilderImpl.java:162) 11:18:55,912 ERROR [stderr] at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildProcesses(CompositeKnowledgeBuilderImpl.java:126) 11:18:55,912 ERROR [stderr] at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:106) 11:18:55,912 ERROR [stderr] at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:244) 11:18:55,913 ERROR [stderr] at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:64) 11:18:55,913 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:230) 11:18:55,913 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:222) 11:18:55,913 ERROR [stderr] at org.kie.scanner.KieRepositoryScannerImpl.build(KieRepositoryScannerImpl.java:221) 11:18:55,913 ERROR [stderr] at org.kie.scanner.KieRepositoryScannerImpl.buildArtifact(KieRepositoryScannerImpl.java:171) 11:18:55,913 ERROR [stderr] at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:127) 11:18:55,913 ERROR [stderr] at org.kie.scanner.KieRepositoryScannerImpl.loadArtifact(KieRepositoryScannerImpl.java:122) 11:18:55,913 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.loadKieModuleFromMavenRepo(KieRepositoryImpl.java:154) 11:18:55,914 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:140) 11:18:55,914 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:117) 11:18:55,914 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:184) 11:18:55,914 ERROR [stderr] at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:172) 11:18:55,914 ERROR [stderr] at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:136) 11:18:55,914 ERROR [stderr] at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.java) 11:18:55,914 ERROR [stderr] at org.kie.remote.services.rest.async.cmd.DeploymentCmd.execute(DeploymentCmd.java:67) 11:18:55,914 ERROR [stderr] at org.jbpm.executor.impl.AbstractAvailableJobsExecutor.executeGivenJob(AbstractAvailableJobsExecutor.java:122) 11:18:55,914 ERROR [stderr] at org.jbpm.executor.impl.jms.JmsAvailableJobsExecutor.onMessage(JmsAvailableJobsExecutor.java:47)
This problem did not show up on earlier versions (BPMS 6.1).
- is cloned by
-
RHBPMS-4527 [GSS] (6.4.x) kjar deployment fails if artifactId ends with bpmn
- Verified