Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-1787

Engine - deployer matches package names containing "bpmn" as deployment resource

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0, 7.1.0-alpha2
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            danny.graef Danny
            Reporter:
            clint.manning clint.manning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: