Error starting Database with SDK: "Could not parse element: <parent><Resource name='jdbc/JiraDS'" and cannot start Tomcat container while atlas-run

I’m working on an old project that used to work like 6 months ago.
Nowadays i get error messages while trying to run it with Atlassian SDK “atlas-run” command, even after doing “atlas-mvn clean”. I just updated everything to the newest version (SDK and Java (Java to 1.8.newest), but the error still exist.

This is a part of the error message:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.0.0:run (default-cli) on project jira-worklog-action: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@5aa334c]: Could not parse element: <parent><Resource name='jdbc/JiraDS'
[ERROR]           type='javax.sql.DataSource'
[ERROR]           auth='Container'
[ERROR]           driverClassName='org.h2.Driver'
[ERROR]           factory='org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory'
[ERROR]           password=''
[ERROR]           url='jdbc:h2:file:C:/Users/PRIVATE/target/jira/home/database/h2db'
[ERROR]           username='sa'
[ERROR] />
[ERROR] </parent>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.0.0:run (default-cli) on project jira-worklog-action: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@5aa334c]

It seems that the database couldn’t be parsed or something, because of that, the Tomcat container can’t start.

I don’t get it why this is happening…?
Thanks

In this error stack trace i found an interesting line:

[DEBUG] Setting container timeout to [600000]
[DEBUG] No container log will be generated. Configure the plugin using the <output> element under <container> to generate container logs
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\hsqldb\hsqldb\1.8.0.5\hsqldb-1.8.0.5.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\ots-jts\ots-jts\1.0\ots-jts-1.0.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\jotm\jotm\1.4.3\jotm-1.4.3.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\jotm\jotm-jrmp_stubs\1.4.3\jotm-jrmp_stubs-1.4.3.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\jotm\jotm-iiop_stubs\1.4.3\jotm-iiop_stubs-1.4.3.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\jotm\jonas_timer\1.4.3\jonas_timer-1.4.3.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\jotm\objectweb-datasource\1.4.3\objectweb-datasource-1.4.3.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\carol\carol\1.5.2\carol-1.5.2.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\carol\carol-properties\1.0\carol-properties-1.0.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\xapool\xapool\1.3.1\xapool-1.3.1.jar]
[DEBUG] Classpath location = [C:\Users\PRIVATE\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar]
[DEBUG] [talledLocalContainer] Failed to find Tomcat version, base error [C:\Users\PRIVATE\jiraWorklog-Final-5\jira-worklog-action\target\container\tomcat8x\apache-tomcat-8.5.35\server\lib\catalina.jar (Das System kann den angegebenen Pfad nicht finden)]
[DEBUG] [talledLocalContainer] Parsed Tomcat version = [8.x]
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[DEBUG] [neLocalConfiguration] Setting property [cargo.java.home] = [C:\Program Files\Java\jdk1.8.0_212\jre]
[DEBUG] [neLocalConfiguration] Searching properties for Resource definitions
[DEBUG] [neLocalConfiguration] Searching properties for DataSource definitions
[DEBUG] [neLocalConfiguration] Found DataSource definition: value [cargo.datasource.url=jdbc:h2:file:C:/Users/PRIVATE/jiraWorklog-Final-5/jira-worklog-action/target/jira/home/database/h2db|cargo.datasource.driver=org.h2.Driver|cargo.datasource.username=sa|cargo.datasource.password=|cargo.datasource.jndi=jdbc/JiraDS]
[DEBUG] [neLocalConfiguration] Searching properties for User definition
[DEBUG] [neLocalConfiguration] Found User definition: value [admin::manager-script]
[INFO] [stalledLocalDeployer] Deploying [C:\Users\PRIVATE\jiraWorklog-Final-5\jira-worklog-action\target\jira\jira.war] to [C:\Users\PRIVATE\jiraWorklog-Final-5\jira-worklog-action\target\container\tomcat8x\cargo-jira-home\webapps]...
[DEBUG] [neLocalConfiguration] Setting property [cargo.tomcat.httpSecure] = [false]
[WARNING] [talledLocalContainer] org.codehaus.cargo.util.CargoException: Could not parse element: <parent><Resource name='jdbc/JiraDS'
          type='javax.sql.DataSource'
          auth='Container'
          driverClassName='org.h2.Driver'
          factory='org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory'
          password=''
          url='jdbc:h2:file:C:/Users/PRIVATE/jiraWorklog-Final-5/jira-worklog-action/target/jira/home/database/h2db'
          username='sa'
/>
</parent>

It says it can’t find the given path:

[DEBUG] [talledLocalContainer] Failed to find Tomcat version, base error [C:\Users\PRIVATE\jiraWorklog-Final-5\jira-worklog-action\target\container\tomcat8x\apache-tomcat-8.5.35\server\lib\catalina.jar (Das System kann den angegebenen Pfad nicht finden)]

It is because the folder server doesn’t exist! There is a folder called lib, but its not in the server folder.

For me this error occurs, when i have an umlaut-character in the path to the plugin directory. I fixed this by renaming any parent folder, which contained characters like ä, ö or ü.
I can imagine that there are other special characters, which could cause this problem aswell.