Deploing problem

216 views
Skip to first unread message

micha...@googlemail.com

unread,
Jul 17, 2013, 6:19:01 AM7/17/13
to camunda-...@googlegroups.com
Hi,
After creating a project as described on „get started“ I tried to deploy it on tomcat and got various errors.

1. I created the .war file as described and used the given entries in the processes.xml. This error occurs:

17.07.2013 10:58:38 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive D:\Users\...\webapps\loan-approval-0.0.1-SNAPSHOT.war
17.07.2013 10:58:38 org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup
INFO: Detected @ProcessApplication class org.camunda.bpm.example.loanapproval.LoanApprovalApplication
17.07.2013 10:58:38 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.camunda.bpm.example.loanapp
roval.LoanApprovalApplication
org.camunda.bpm.engine.ProcessEngineException: Exception while performing 'Deployment of Process Application Loan Approv
al App => Parse processes.xml deployment descriptor files.': couldn't parse 'file:/D:/Users/.../
webapps/loan-approval-0.0.1-SNAPSHOT/WEB-INF/classes/META-INF/processes.
xml': The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.camunda.bpm.container.impl.jmx.kernel.MBeanDeploymentOperation.execute(MBeanDeploymentOperation.java:131)

at org.camunda.bpm.container.impl.jmx.kernel.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContai
ner.java:128)
at org.camunda.bpm.container.impl.jmx.kernel.MBeanDeploymentOperation$MBeanDeploymentOperationBuilder.execute(MB
eanDeploymentOperation.java:206)
at org.camunda.bpm.container.impl.jmx.JmxRuntimeContainerDelegate.deployProcessApplication(JmxRuntimeContainerDe
legate.java:137)
at org.camunda.bpm.application.AbstractProcessApplication.deploy(AbstractProcessApplication.java:62)
at org.camunda.bpm.application.impl.ServletProcessApplication.contextInitialized(ServletProcessApplication.java:
64)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.camunda.bpm.engine.ProcessEngineException: couldn't parse 'file:/D:/Users/.../webapps/loan-approval-0.0.1-SNAPSHOT/WEB-INF/classes/META-INF/processes.xml
': The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:133)
at org.camunda.bpm.container.impl.metadata.DeploymentMetadataParse.execute(DeploymentMetadataParse.java:52)
at org.camunda.bpm.application.impl.metadata.ProcessesXmlParse.execute(ProcessesXmlParse.java:53)
at org.camunda.bpm.container.impl.jmx.deployment.ParseProcessesXmlStep.parseProcessesXml(ParseProcessesXmlStep.j
ava:146)
at org.camunda.bpm.container.impl.jmx.deployment.ParseProcessesXmlStep.parseProcessesXmlFiles(ParseProcessesXmlS
tep.java:81)
at org.camunda.bpm.container.impl.jmx.deployment.ParseProcessesXmlStep.performOperationStep(ParseProcessesXmlSte
p.java:59)
at org.camunda.bpm.container.impl.jmx.kernel.MBeanDeploymentOperation.execute(MBeanDeploymentOperation.java:116)

... 19 more
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.camunda.bpm.engine.impl.util.xml.Parse.execute(Parse.java:130)
... 25 more
17.07.2013 10:58:38 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Error listenerStart
17.07.2013 10:58:38 org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Context [/loan-approval-0.0.1-SNAPSHOT] startup failed due to previous errors



2. I left the processes.xml empty and this error occurs:

17.07.2013 11:02:20 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive D:\Users\...\webapps\loan-approval-0.0.1-SNAPSHOT.war
17.07.2013 11:02:20 org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup
INFO: Detected @ProcessApplication class org.camunda.bpm.example.loanapproval.LoanApprovalApplication
17.07.2013 11:02:20 org.camunda.bpm.container.impl.jmx.JmxRuntimeContainerDelegate deployProcessApplication
INFO: Process Application Loan Approval App sucessfully deployed.



In both cases the .war was not executable in the browser.

I tried to google for a solution but couldn’t find one.
Any ideas?

Thanks a lot.
Bye!
Arkadius

rocky...@gmail.com

unread,
Jul 17, 2013, 6:40:20 AM7/17/13
to camunda-...@googlegroups.com, micha...@googlemail.com
Hey Arkadius,

I had a similar problem with the error: "The processing instruction target matching "[xX][mM][lL]" is not allowed." this means at my case that i had a space at the beginning from my XML file. Make sure that you have no space befor the beginning of the <?xml version="1.0" Tag

I Hope it helps you

micha...@googlemail.com

unread,
Jul 17, 2013, 6:48:03 AM7/17/13
to camunda-...@googlegroups.com, micha...@googlemail.com, rocky...@gmail.com
Hey rocky,

Many thanx for this input! I actually had a space character in front of <?xml…
Now it works! Unbelievable!

Bye!
Arkadius
Reply all
Reply to author
Forward
0 new messages