Open f1-outsourcing opened 1 year ago
Is related to getting mysql running. Had to add the packages libaio hostname libxcrypt-compat to the container to fix creating the databases and file structure. However next error is this, one looks like the binaries are not available
/tmp/MariaDB4j/base/bin/mysqld, --no-defaults --console --skip-grant-tables --max_allowed_packet=64M --basedir=/tmp/MariaDB4j/base --datadir=/tmp/MariaDB4j/data/33060 --port=33060 --socket=/tmp/MariaDB4j.33060.sock
mvn clean compile war:inplace mvn package
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project cosmo-webapp: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
mvn clean compile war:inplace mvn package
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project cosmo-webapp: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
I tried to fix this by adding a web.xml with
But I get this 6-Oct-2022 14:07:09.734 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initi alized event to listener instance of class [org.unitedinternet.cosmo.db.DbListener] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dbInitializer' available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:808) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1279) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:297) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1114) at org.unitedinternet.cosmo.db.DbListener.beanForName(DbListener.java:67) at org.unitedinternet.cosmo.db.DbListener.contextInitialized(DbListener.java:55) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)
@f1-outsourcing
cosmo-webapp
is a spring boot application. It does not need any web.xml
files.
You run it by executing mvn clean spring-boot:run
Cheers,
Yes that is what I tried at first, but when that failed on the mysql stuff, I tried building the war.
[WARNING] [WARNING] Some problems were encountered while building the effective model for net.oneandone.cosmo:cosmo-webapp:war:3.7.4 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 59, column 12 [WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 55, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING]
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.4:run (default-cli) on project cosmo-webapp: Application finished with exit code: 1 -> [Help 1]