Hot answers tagged

3

I've done this before, normally in the form of having a /.well-known/info endpoint available on every microservice that then returns a JSON payload with what's in it: { "service_name": "token_exchange", "server_id": "RD1717628373", "commit_hash": "f72a28", "branch": "...


3

It seems to be an issue with Tomcat URL you are using. Either you are using "HTTP" in deployment when server is expecting HTTPS or vice versa. hudson.model.Executor.run(Executor.java:428) Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Have a look at this answer unrecognized-ssl-message-plaintext-connection-...


2

Generally - no, I don't think you need TLS between your reverse proxy and service containers within same Docker network (or possibly 2 Docker networks: 1 internal for workers, 1 with internet access where reverse proxy sits and bridges the gap into internal network). A wider answer would primarily depend on whether you trust your Docker host and services on ...


2

Get the latest version of Tomcat: $ curl -s 'https://api.github.com/repos/apache/tomcat/tags?per_page=1' | jq -r .[].name 9.0.20 Get the latest version of Tomcat 9: $ curl -s 'https://api.github.com/repos/apache/tomcat/tags?per_page=100' | jq -r '.[] | .name' | sort -V | grep ^9 | tail -n 1 9.0.20 Get the latest version of Tomcat 8.5: $ curl -s 'https://...


2

If you install the manager webapp with a default set up of tomcat then it is possible to use this to install and restart applications, see https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Reload_An_Existing_Application I feel that you are asking the wrong question however. The problem is not how to restart Tomcat but how to be sure that it has ...


2

There is Tomcat configuration file for the logging: TOMCAT_HOME/conf/logging.properties. Edit the file and remove all the handlers except the console handler: .handlers = java.util.logging.ConsoleHandler This will direct all logging to the console, except for access logs (localhost_access_log.XXXX.txt). It is always written to file by the AccessLogValve, ...


1

That's because you forgot to link the <configuration> for the plugin with the <server> definition in settings.xml., and the tomcat7 plugin is trying to deploy as un-authenticated because it has not credentials to try. Add <server>maven-tomcat-war-deployment-server</server> in the configuration section of the plugin: <...


1

I realize it's because the link for tomcat I was deploying to was: https://localhost:portNo, instead of simply, http://localhost:portNo


1

Quickly going through this it looks like you have added wrong credentials to Jenkins. Can you please check the added credentials first. aused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username and password you provided are not correct (error 401)


1

That doc say next: When running Tomcat on unixes, the console output is usually redirected to the file named catalina.out. The name is configurable using an environment variable. (See the startup scripts). Whatever is written to System.err/out will be caught into that file. That may include: Uncaught exceptions printed by java.lang.ThreadGroup....


1

It could be disk space, or hot deploy. For hot deploy, you can put the following parameters: ... <target name="tomcat-stop"> <exec executable="${server.home}/bin/catalina.bat"> <arg value="stop"/> </exec> </target> <target name="tomcat-start"> <exec executable="${server.home}/bin/startup.bat"> ...


1

Using Powershell's Invoke-WebRequest cmdlet: $Links=$(Invoke-WebRequest -Uri 'https://tomcat.apache.org/download-80.cgi' | Select-Object -ExpandProperty Links) $($Links | Where-Object -Property href -Match '#8.5.[0-9]+').href.substring(1) Returns: 8.5.54 This command works on Windows/Linux/MACOS


Only top voted, non community-wiki answers of a minimum length are eligible