fabric8-maven-plugin: Building WebApp creates image with missing server.xml
Description
Info
- f-m-p version : 4.0.0, 3.x.x
- Maven version (
mvn -v
) : Apache Maven 3.5.0 (Red Hat 3.5.0-4.3)
- Kubernetes / OpenShift setup and version : 3.11 using Code Ready Workspaces
We’re trying to deploy a simple WebApp via fabric8 on the following project: https://github.com/egetchel/summit-lab1
Maven Command: mvn clean fabric8:deploy -Dfabric8.mode=openshift -Dfabric8.build.strategy=docker -Dfabric8.generator.from=fabric8/tomcat-8 -f ${current.project.path}/pom.xml -P openshift -DskipTests
We get the following error using both Tomcat8 and Tomcat9 images when the Pod is started:
Checking *.war in /deployments Linking /deployments/ROOT.war --> /opt/tomcat/webapps I> No access restrictor found, access to any MBean is allowed Jolokia: Agent started with URL http://10.1.2.25:8778/jolokia/ Apr 12, 2019 3:05:51 PM org.apache.catalina.startup.Catalina load WARNING: Unable to load server configuration from [/opt/apache-tomcat-8.5.32/conf/server.xml] Apr 12, 2019 3:05:51 PM org.apache.catalina.startup.Catalina start SEVERE: Cannot start server. Server instance is not configured.
It’s not clear if there is another Maven command that needs to be issued in order for the server.xml to be configured correctly, so we’re not sure if this is a bug or a documentation enhancement that is needed.
Thanks!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (11 by maintainers)
Commits related to this issue
- fabric8io/fabric8-maven-plugin#1621 Fix permissions for server.xml — committed to marcnuri-forks/tomcat by manusa 5 years ago
- fabric8io/fabric8-maven-plugin#1621 Fix permissions for server.xml — committed to marcnuri-forks/tomcat by manusa 5 years ago
- Merge pull request #3 from manusa/fix/tomcat-permissions fabric8io/fabric8-maven-plugin#1621 Fix permissions for server.xml — committed to fabric8io-images/tomcat by rhuss 5 years ago
- #1621: Use Docker image that doesn't require to run as specific user — committed to marcnuri-forks/fabric8-maven-plugin by manusa 5 years ago
- #1621: Use Docker image that doesn't require to run as specific user — committed to fabric8io/fabric8-maven-plugin by manusa 5 years ago
- fabric8io/fabric8-maven-plugin#1621 Use Docker image that doesn't require to run as specific user Port of https://github.com/fabric8io/fabric8-maven-plugin/pull/1762 — committed to manusa/jkube by manusa 5 years ago
- fabric8io/fabric8-maven-plugin#1621 Use Docker image that doesn't require to run as specific user Port of https://github.com/fabric8io/fabric8-maven-plugin/pull/1762 — committed to eclipse/jkube by manusa 5 years ago
@rohanKanojia I was able to reproduce this issue. Will look into this.