I built the sample app, it seems to start Tomcat, but 404s for any URL. I’m hoping to try the API too. I know there is a special artifact for the API in springboot.
What call are you using when getting the a 404
Are there any errors on the tomcat logs?
here are the last lines of my log:
(no errors)
2019-10-28 08:26:32.325 INFO 45984 — [ main] org.camunda.bpm.container : ENGINE-08023 Deployment summary for process archive ‘webappExampleProcessApplication’:
loanApproval.bpmn
2019-10-28 08:26:32.567 INFO 45984 — [ main] org.camunda.bpm.application : ENGINE-07021 ProcessApplication ‘webappExampleProcessApplication’ registered for DB deployments [2cbfe63d-f97e-11e9-8da4-00ff0a6a52fe]. Will execute process definitions
loanApproval[version: 1, id: loanApproval:1:2ce08d9f-f97e-11e9-8da4-00ff0a6a52fe]
Deployment does not provide any case definitions.
2019-10-28 08:26:32.619 INFO 45984 — [ main] org.camunda.bpm.container : ENGINE-08050 Process application webappExampleProcessApplication successfully deployed
2019-10-28 08:26:32.670 INFO 45984 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ‘’
2019-10-28 08:26:32.678 INFO 45984 — [ main] .c.b.g.l.WebappExampleProcessApplication : Started WebappExampleProcessApplication in 11.733 seconds (JVM running for 12.43)
2019-10-28 08:26:32.681 INFO 45984 — [ main] org.camunda.bpm.engine.jobexecutor : ENGINE-14014 Starting up the JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor].
2019-10-28 08:26:32.684 INFO 45984 — [ingJobExecutor]] org.camunda.bpm.engine.jobexecutor : ENGINE-14018 JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor] starting to acquire jobs
Have you made any changes to the application.yaml?
Can you also upload your application.yaml file?
Have you added the webapps to the POM file?
Thanks for the reply!
It works now (I only had the Rest entry in the POM) but-
I’m trying to also get the API working, I included
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>${camunda.spring-boot.version}</version>
</dependency>
Getting a 404 Using /engine-rest
And I get this error when trying to create a user:
java.lang.IllegalStateException: Cannot create a session after the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:2983) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.apache.catalina.connector.Request.getSession(Request.java:2416) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:908) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:920) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:68) ~[camunda-webapp-7.11.0-classes.jar:7.11.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.19.jar:9.0.19]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.19.jar:9.0.19