-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
If ProcessApplication implementation classes use package names containing "bpmn" or "bpmn20.xml", the resulting folder is matched as deployment resource, e.g. process XML.
Sample:
process-app-v1.0
+-- META-INF
+-- WEB-INF
+-- classes
¦ +-- sample-process_1_0.bpmn20.xml
¦ +-- com
¦ ¦ +-- oneandone
¦ ¦ +-- myteam
¦ ¦ +-- bpmn
¦ ¦ +-- sample
¦ ¦ +-- process
¦ ¦ +-- war
¦ ¦ +-- impl
¦ ¦ +-- ProcessServiceApplication.class
¦ +-- META-INF
¦ +-- processes.xml
+-- jboss-deployment-structure.xml
+-- lib
results in:
2014-01-27 12:21:01,133 INFO [vm-msuerue-5207] [org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService] (ServerService Thread Pool
– 117) Deployment summary for process archive 'process-app-v1.0.war' of process application 'process-app-v1.0':
sample-process_1_0.bpmn20.xml
com/oneandone/myteam/bpmn
2014-01-27 12:21:41,706 INFO [vm-msuerue-5207] [org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer] (ServerService Thread Pool – 117) Processing resour
ce sample-process_1_0.bpmn20.xml
2014-01-27 12:21:41,810 INFO [vm-msuerue-5207] [org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer] (ServerService Thread Pool – 117) Processing resour
ce com/oneandone/myteam/bpmn
2014-01-27 12:21:41,813 SEVERE [vm-msuerue-5207] [org.camunda.bpm.engine.impl.interceptor.CommandContext] (ServerService Thread Pool – 117) Error while clos
ing command context: org.camunda.bpm.engine.ProcessEngineException: couldn't parse 'com/oneandone/myteam/bpmn': Premature end of file.
at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:133)
at org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:233)
at org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:97)
at org.camunda.bpm.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:44)
at org.camunda.bpm.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:43)
at org.camunda.bpm.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:81)
at org.camunda.bpm.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:50)
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32)
at org.camunda.bpm.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:64)
at org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:114)
at org.camunda.bpm.engine.impl.repository.ProcessApplicationDeploymentBuilderImpl.deploy(ProcessApplicationDeploymentBuilderImpl.java:49)
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService.performDeployment(ProcessApplicationDeploymentService.java:156)
at org.camunda.bpm.container.impl.jboss.service.ProcessApplicationDeploymentService$1.run(ProcessApplicationDeploymentService.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.xml.sax.SAXParseException; Premature end of file.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:130)
... 22 more
This is the controller panel for Smart Panels app
[CAM-1787] Engine - deployer matches package names containing "bpmn" as deployment resource
Fix Version/s | New: 7.1.0 [ 12891 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Remaining Estimate | New: 0 minutes [ 0 ] | |
Original Estimate | New: 0 minutes [ 0 ] |
Assignee | New: Danny [ danny.graef ] |
Status | Original: Resolved [ 5 ] | New: In Test [ 10004 ] |
Status | Original: In Test [ 10004 ] | New: Closed [ 6 ] |
Fix Version/s | New: 7.1.0-alpha2 [ 13190 ] |
Workflow | Original: camunda BPM [ 25820 ] | New: Backup_camunda BPM [ 58289 ] |
Please review pull request:
https://github.com/camunda/camunda-bpm-platform/pull/65