Deploying activiti-app and activit-admin war on Tomcat 9.0.35 fails (Activiti 6)

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Deploying activiti-app and activit-admin war on Tomcat 9.0.35 fails (Activiti 6)

I am trying to deploy the Activiti 6.0 WAR on Tomcat 9 using the command line on a Ubuntu VPS. I have copied the WAR file in the webapps directory when I restart Tomcat 9 it extracts the archive but the app is not accessible from the browser. I tried deploying the application from the Tomcat Web Application Manager GUI and I get an error message

 

Tomcat  9.0.35 Error on activiti-app deploymentTomcat 9.0.35 Error on activiti-app deployment

These are my environment variables

sridhar@ub-s-2vcpu-4gb-blr1-01-02:~$ echo $JAVA_HOME
/usr/lib/jvm/jdk-14.0.1
sridhar@ub-s-2vcpu-4gb-blr1-01-02:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sridhar/bin:/usr/lib/jvm/jdk-14.0.1/bin:/home/sridhar/bin:/usr/lib/jvm/jdk-14.0.1/bin
sridhar@ub-s-2vcpu-4gb-blr1-01-02:~$ which java /usr/lib/jvm/jdk-14.0.1/bin/java
sridhar@ub-s-2vcpu-4gb-blr1-01-02:~$ java --version java 14.0.1 2020-04-14 Java(TM) SE Runtime Environment (build 14.0.1+7) Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

The catalina.out file contains the following log entries

04-Jun-2020 15:22:24.224 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/activiti-app.war] has finished in [5,347] ms
04-Jun-2020 15:22:33.611 INFO [Thread-3] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
04-Jun-2020 15:22:33.620 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
04-Jun-2020 15:22:33.680 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
04-Jun-2020 15:22:33.684 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
04-Jun-2020 15:22:38.408 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.35
04-Jun-2020 15:22:38.435 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 5 2020 20:36:20 UTC
04-Jun-2020 15:22:38.435 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.35.0
04-Jun-2020 15:22:38.435 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
04-Jun-2020 15:22:38.435 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            4.15.0-66-generic
04-Jun-2020 15:22:38.435 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
04-Jun-2020 15:22:38.436 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/jdk-14.0.1
04-Jun-2020 15:22:38.436 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           14.0.1+7
04-Jun-2020 15:22:38.436 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
04-Jun-2020 15:22:38.436 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /opt/tomcat
04-Jun-2020 15:22:38.436 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /opt/tomcat
04-Jun-2020 15:22:38.458 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
04-Jun-2020 15:22:38.458 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
04-Jun-2020 15:22:38.458 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
04-Jun-2020 15:22:38.459 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
04-Jun-2020 15:22:38.460 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat
04-Jun-2020 15:22:38.460 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat
04-Jun-2020 15:22:38.460 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat/temp
04-Jun-2020 15:22:38.460 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/us$
04-Jun-2020 15:22:38.983 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
04-Jun-2020 15:22:39.047 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [937] milliseconds
04-Jun-2020 15:22:39.105 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
04-Jun-2020 15:22:39.106 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.35]
04-Jun-2020 15:22:39.151 WARNING [main] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does no$
04-Jun-2020 15:22:39.157 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/activiti-app.war]
04-Jun-2020 15:22:39.183 WARNING [main] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '100' did not find a matching property.
04-Jun-2020 15:22:40.350 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list o$
03:22:42,116 [main] INFO  org.activiti.app.conf.AsyncConfiguration  - Creating Async Task Executor
03:22:42,883 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - Configuring Datasource
03:22:42,909 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - Configuring Datasource with following properties (omitted password for security)
03:22:42,910 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - datasource driver: org.h2.Driver
03:22:42,910 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - datasource url : jdbc:h2:mem:activiti;DB_CLOSE_DELAY=-1
03:22:42,910 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - datasource user name : sa
03:22:42,910 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - Min pool size | Max pool size | acquire increment : 10 | 100 | 5
03:22:42,934 [main] INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
03:22:43,023 [main] INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
03:22:43,286 [main] INFO  org.activiti.app.conf.DatabaseConfiguration  - Configuring EntityManager
03:22:43,971 [main] INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30$
03:22:44,663 [main] ERROR org.activiti.app.conf.SecurityConfiguration  - Could not configure authentication mechanism:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbAuthenticationProvider' defined in class path resource [org/activiti/app/conf/SecurityConfiguration.class]: Bean$
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:322)
        at org.activiti.app.conf.SecurityConfiguration$$EnhancerBySpringCGLIB$$cbe6d2a4.dbAuthenticationProvider(<generated>)
        at org.activiti.app.conf.SecurityConfiguration.configureGlobal(SecurityConfiguration.java:74)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:642)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)

My suspicion is that it is unable to complete the security configuration, Look at the line that I have highlighted. Reproducing it here

03:22:44,663 [main] ERROR org.activiti.app.conf.SecurityConfiguration  - Could not configure authentication mechanism:

Wondering if there a way to have this resolved?