Hi,
I am new to camunda and wanna use it for my spring boot application.
I created spring boot startup project from start.camunda.com.
It looks camunda engine works
(by visit localhost:8080/engine-rest/engine and return [{“name”:“default”}]
but I can’t login to welcome page to use web app
(by visit localhost:8080/camunda/app/welcome/default/)
it always shows loading picture icon then have no any responding.
looks welcome page loaded (can view source code following) but some resources(js,ico) can not be found(404)
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible"
content="IE=edge" />
<title>Camunda Welcome</title>
<meta charset="utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="Camunda Welcome" />
<meta name="author"
content="camunda services GmbH" />
<!-- settings the base path for relative links -->
<base href="/camunda/app/welcome/default/"
admin-api="/camunda/api/admin/"
cockpit-api="/camunda/api/cockpit/"
tasklist-api="/camunda/api/tasklist/"
welcome-api="/camunda/api/welcome/"
engine-api="/camunda/api/engine/"
app-root="/camunda" />
<!-- an example of plugin/feature exclusion -->
<!--
<base href="/camunda/app/welcome/default/"
admin-api="/camunda/api/admin/"
cockpit-api="/camunda/api/cockpit/"
tasklist-api="/camunda/api/tasklist/"
welcome-api="/camunda/api/welcome/"
engine-api="/camunda/api/engine/"
app-root="/camunda"
cam-exclude-plugins="welcome.dashboard:process-definition-tiles" />
-->
<!-- styles -->
<link href="/camunda/app/welcome/styles/styles.css?bust=7.18.0"
rel="stylesheet" />
<link rel="stylesheet"
type="text/css"
href="/camunda/app/welcome/styles/user-styles.css?bust=7.18.0">
<!-- favicon -->
<link rel="shortcut icon"
href="/camunda/app/welcome/assets/images/favicon.ico"
type="image/x-icon" />
</head>
<body ng-controller="WelcomePage as welcomePage">
<!-- navigation -->
<div cam-widget-header
authentication="authentication"
user-name="userFullName"
current-app="welcome"
no-app-switch="true"
no-account-menu="true"
toggle-navigation="{{ 'TOGGLE_NAVIGATION' | translate }}"
sign-out="{{ 'SIGN_OUT_ACTION' | translate }}"
my-profile="{{ 'MY_PROFILE' | translate }}"
ng-cloak>
</div>
<div notifications-panel
class="page-notifications"></div>
<!-- content -->
<div class="container-fluid"
ng-view>
<div class="app-splash"><div>
<div class="spinner spinner-big"></div>
</div></div><!-- / .app-splash -->
</div>
<!-- footer -->
<footer cam-widget-footer
version="v7.18.0"></footer>
<script type="application/javascript" nonce="rlVRg1Fr_wfwNyWV_w5wi0P1Eyg">
window.PLUGIN_DEPENDENCIES = [] || [];
window.PLUGIN_PACKAGES = [] || [];
window.require = {
waitSeconds: 0
};
</script>
<script type="application/javascript"
src="/camunda/lib/require.js" nonce="rlVRg1Fr_wfwNyWV_w5wi0P1Eyg"></script>
<script type="text/javascript" nonce="rlVRg1Fr_wfwNyWV_w5wi0P1Eyg">
window.__define = window.define;
window.__require = window.require;
window.define = undefined;
window.require = undefined;
window.bust = '7.18.0';
requirejs.config({
baseUrl: '/camunda/app/welcome',
urlArgs: 'bust=7.18.0'
});
requirejs(['/camunda/lib/deps.js'], function () {
requirejs(['/camunda/app/welcome/camunda-welcome-bootstrap.js'], function(){});
});
</script>
</body>
</html>
IDE show no mapping error
2023-03-10 09:54:18.339 WARN 33472 --- [nio-8080-exec-8] o.s.web.servlet.PageNotFound : No mapping for GET /camunda/lib/require.js
2023-03-10 10:03:52.621 WARN 33472 --- [nio-8080-exec-1] o.s.web.servlet.PageNotFound : No mapping for GET /camunda/app/welcome/scripts/config.js
appllication.properties
server.port=8080
spring.datasource.url=jdbc:postgresql://localhost:5432/camunda718
spring.datasource.username=postgres
spring.datasource.password=111111
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.hbm2ddl.auto=create
camunda.bpm.admin-user.id=demo
camunda.bpm.admin-user.password=demo
camunda.bpm.admin-user.firstName=Demo
camunda.bpm.filter.create=All tasks
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.4</version>
<relativePath/>
</parent>
<groupId>com.example.b2b</groupId>
<artifactId>bpmn</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>bpmn</name>
<description>Montage BPMN center base Camunda</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.7.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.18.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.3</version>
</plugin>
</plugins>
</build>
</project>
thanks,any response will be appreciated
Michael