Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building on centos9 stream fails #57

Open
f1-outsourcing opened this issue Oct 16, 2022 · 5 comments
Open

building on centos9 stream fails #57

f1-outsourcing opened this issue Oct 16, 2022 · 5 comments

Comments

@f1-outsourcing
Copy link

f1-outsourcing commented Oct 16, 2022

[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]

@f1-outsourcing f1-outsourcing changed the title building on centos9 stream building on centos9 stream fails Oct 16, 2022
@f1-outsourcing
Copy link
Author

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

@f1-outsourcing
Copy link
Author

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]

@f1-outsourcing
Copy link
Author

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
org.unitedinternet.cosmo.db.DbListener

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)

@danielgrigore
Copy link
Collaborator

@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,

@f1-outsourcing
Copy link
Author

Yes that is what I tried at first, but when that failed on the mysql stuff, I tried building the war.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants