question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building WebApp creates image with missing server.xml

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dev-gaurcommented, Aug 28, 2019

@rohanKanojia I was able to reproduce this issue. Will look into this.

0reactions
manusacommented, Nov 18, 2019

Referenced pull request fixes the issue:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to config Tomcat to serve images from an external folder ...
Simply edit the server.xml under $CATALINA_HOME/config/server.xml as below and restart the tomcat. <Host name="localhost" appBase="webapps ...
Read more >
Create a Java web application - IntelliJ IDEA - JetBrains
This tutorial describes how to create a simple Java web application, build a deployable web application resource (WAR) file, and then deploy it...
Read more >
Creating and Configuring Web Applications
xml file are mapped to resources residing elsewhere in WebLogic Server. This file is also used to define JSP and HTTP session attributes....
Read more >
Apache Tomcat 8 (8.5.84) - Manager App How-To
xml file, or missing classes encountered when initializing application event listeners and filters. Deploy A New Application from a Local Path.
Read more >
Defining Tomcat context paths - Octopus Deploy
Tomcat also allows us to include a file in our web app called META-INF/context.xml , or to create the file conf/Catalina/localhost/<context>.xml ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found