Building WebApp creates image with missing server.xml
See original GitHub issueDescription
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!
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (8 by maintainers)
Top GitHub Comments
@rohanKanojia I was able to reproduce this issue. Will look into this.
Referenced pull request fixes the issue: