host-manager | 一个web版的host切换工具,由react和redux构建而成
kandi X-RAY | host-manager Summary
kandi X-RAY | host-manager Summary
一个web版的host切换工具,由react和redux构建而成
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of host-manager
host-manager Key Features
host-manager Examples and Code Snippets
Community Discussions
Trending Discussions on host-manager
QUESTION
I want to limit stdout file size inside Tomcat logs folder.
my questions are :
- I need to config extra logging configuration except
-Djava.util.logging.FileHandler.limit=25000000
? - is it required apache service restart to take a effect changes ?
I want to add under the Java tab, in the Java Options section add the following:
-Djava.util.logging.FileHandler.limit=25000000
Already , defined below parameters in the Java Options section:
...ANSWER
Answered 2021-Mar-18 at 12:33Tomcat logs to the error file descriptor using java.util.logging.ConsoleHandler
(not java.util.logging.FileHandler
) which sends everything to System.err
. Therefore there is no way to limit the size of the logs.
However you can in prunsrv (usually renamed as tomcat8.exe):
Disable the redirection of
stdout/stderr
to any file by setting--StdOutput
and--StdError
to the empty string. The defaultlogging.properties
file distributed with Tomcat logs everything also tocatalina..log
, which is rotated daily, so Tomcat's logs will not be lost.Set the
--StdOutput
and--StdError
options toauto
, which should rotate them daily, although I didn't test and it doesn't seem to be implemented yet[1].
You can change this setting also in the graphical interface prunmgr (usually renamed as tomcat8w.exe).
Remark: If you disable the redirection of stdout/stderr
to a file, you should also disable the ConsoleHandler
by modifying logging.properties
from:
QUESTION
I had install tomcat10 on my Pi 3B+ Debian full desktop Linux 32bit OS
To make the tomcat10 server successfully instal on my freshly build machine I follow the following recommended settings.
pi@Home:~ $ java -version openjdk version "11.0.9.1" 2020-11-04 OpenJDK Runtime Environment (build 11.0.9.1+1-post-Raspbian-1deb10u2) OpenJDK Server VM (build 11.0.9.1+1-post-Raspbian-1deb10u2, mixed mode)
Then download and install tomcat10 from:
wget https://downloads.apache.org/tomcat/tomcat-10/v10.0.2/bin/apache-tomcat-10.0.2.tar.gz
Change the IP address to my local IP address in both following XML files:
...Manager File: ./webapps/manager/META-INF/context.xml Host Manager File: ./webapps/host-manager/META-INF/context.xml
ANSWER
Answered 2021-Mar-09 at 23:43As I have posted this question couple of days ago but I was unable to get an answer so I decided to try a few methods of my own to see if I can resolve the problem. In my case solution, I am posting solved the above issue and I am able to connect to localhost:8080 from my browser window. I have to confess I found this solution by flook I still don't know the logic behind what made it work but it is working.
root@Home:/usr/local/tomcat10# ./bin/startup.sh
Output:
Using CATALINA_BASE: /usr/local/tomcat10 Using CATALINA_HOME: /usr/local/tomcat10 Using CATALINA_TMPDIR: /usr/local/tomcat10/temp> Using JRE_HOME: /usr/lib/jvm/java-11-oracle Using CLASSPATH: /usr/local/tomcat10/bin/bootstrap.jar:/usr/local/tomcat10/bin/tomcat->juli.jar Using CATALINA_OPTS: Tomcat started.
at this stage, I know tomcat is installed successfully and services are all up and running therefore there maybe is something wrong with the browser which may be causing a connectivity issue.
So I took the following steps:
Step No:1
I have click on three dots on the top right-hand side of the Chrome browser window (setting) then I click on more tools then click on clear browsing data.
From the Clear browsing, data window clicked the advance tab and select all times from the drop-down list
Tick all options except Password and other sign-in data and Autofill option
After your selection click the Clear data button
Open new browser window and type localhost:8080
Got unable to connect to the server message
Step NO:2
Now open the My account setting page and from here browse to My activity and clear all previously recorded activities log and turn off all active activity recording sliding switches
Web & App Activity Location History YouTube History Ad personalisation
Open the web browser and typed localhost:8080 (Enter) still got the same error message
Step NO:3 Go to add the Ad settings, I turned the Ad personalisation setting OFF in past because I didn't want Google to collect my browsing data In your case it might still be ON so I turned it back on for my browser.
now type localhost:8080 surprisingly tomcat10 index page open in my browser window To test if it was Ad setting which was stoping tomcat10 index page to load in browser window I turned Ad personalisation tab OFF again and type localhost:8080 and press Enter Even the Ad personalisation tab is OFF but this time tomcat10 index page is loaded to the browser window again.
Therefore I am not 100% sure if it was Ad personalisation state which was not allowing the tomcat10 index page to load in the browser window or one of the other previous options which I turned off
To test further I have close all my browsers and then type localhost:8080 in a new browser window and the index page still loading successfully.
This solution is working for me hope it will help other readers too
QUESTION
I am running into an apparent ClassLoader leak with the following configuration:
- Windows 10 Professional (64 bit, latest updates)
- OpenJDK 11.0.10
- Apache Tomcat 7.0.107
- Jersey Rest 2.33
I have a simple application:
ApplicationConfig:
...ANSWER
Answered 2021-Feb-01 at 20:37After some comments from Mark Thomas on the Tomcat mailing list, I managed to track down the problems (there are two). The trick was to exclude soft references in the GC ROOT analysis to reveal the actual culprits.
The fix for that is given in the bug report. Basically, you have to set a system property, and add a servlet context listener to clear the buffer before shutting down the web application.
This is marked as closed / fixed, but it appears not to be. Turning off JMX for log4j (for now) by using another system property fixes this issue.
QUESTION
This question is regarding pentaho suite's server
component, not PDI.
I succesfully "installed" and run the server on my windows box, but I'm having the hardest time deploying it on a centos box.
Server info, and what I've tried so far:
...ANSWER
Answered 2020-Oct-31 at 20:36For anyone coming here after a similar error:
Check your dmesg
: I was trying to run tomcat service with too much RAM memory.
QUESTION
I think I have similar problem, but don't know how to fix it Tomcat 404 error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
I'm trying to build simple hello world spring boot app using docker and Tomcat. I made war file with maven, then put it to $CATALINA_HOME/webapps/ and started the server by performing ["catalina.sh", "run"]. But I still can't access to my app.
Error:
...ANSWER
Answered 2020-Oct-27 at 12:21The tomcat image you are using uses jdk8
as java version, but the war you are building uses java11
. So tomcat is not deploying your app.
Just use an tomcat jdk11 image and your app should start working.
You can use this image.
QUESTION
I deployed a springboot application package in WAR format. But I am not seeing the spring related logs in my console. Also, I cannot see the application running. What could be the possible reason? I am attaching the tomcat logs herewith. Thanks in advance
...ANSWER
Answered 2020-Jul-02 at 12:11These are are all spring's logs:
QUESTION
Let me start by saying I am not a Tomee/TomCat expert.
I have an application (.war) running in a Tomee based Docker container on ECS/Fargate on AWS. I am trying to get Tomee to send all logs to STDOUT
so that logs from the application will be sent to CloudWatch in AWS. I have tried the suggestions/answers in this question but I am still not seeing application logs even when testing locally:
ANSWER
Answered 2020-Jun-26 at 16:23After much research, I have found that using the following statements in server.xml will send the logs to STDOUT using AccessLogValve
:
QUESTION
I am facing an issue where my tomcat 8.5 does not log to tomcat8-stdout. Where as other log files are created (host-manager, localhost, manager, catalina, localhost_access_log) except for tomcat8-stdout and tomcat8-stderr.
I am trying to debug my web application by using system.out.println(), so i want to output the error at the log. But the log was not created. So it is hard for me to debug.
Below i attached my tomcat logging.properties Any help will be appreciated. Thank you.
...ANSWER
Answered 2020-Jun-25 at 12:09catalina.out
(or tomcat8-stdout
and tomcat8-stderr
that you are mentioning) are NOT proper log files. They are not controlled by the logging configuration.
They are catch of stdout (1) and stderr (2) streams of a program. Catching of those streams (and redirection to files) is done by the shell that launches java executable.
You should look how your java executable is launched for Tomcat and change the command line there. Maybe the streams are not redirected at all, or redirected to a place where there are no write permissions.
Otherwise, if you want a quick solution, just use java.util.logging
. It is already available with Java - no additional libraries are needed. E.g.:
QUESTION
Am using IntellIJ IDEA Ultimate Edition 2020.1.2 and Tomcat 8.5.55 on macOS Catalina 10.15.5
Have setup a run configuration inside IntelliJ for Tomcat.
Am able to run Tomcat via IntelliJ IDEA and everything works (am able to run tomcat and see my webapp inside Google Chrome & see catalina.out via IntelliJ) but when I go to the webapps dir, I don't see the unpacked war file anywhere?
...ANSWER
Answered 2020-Jun-04 at 22:26Configure the artifact output path to be under
webapps
directory.In the artifact output directory.
Normally there is no need to change it, IntelliJ IDEA instructs Tomcat to deploy from the configured artifact output location.
QUESTION
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /docker-java-home/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
13-Mar-2019 12:00:33.111 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.38
13-Mar-2019 12:00:33.115 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 5 2019 11:42:42 UTC
13-Mar-2019 12:00:33.117 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.38.0
13-Mar-2019 12:00:33.119 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
13-Mar-2019 12:00:33.120 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.9.125-linuxkit
13-Mar-2019 12:00:33.121 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
13-Mar-2019 12:00:33.123 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
13-Mar-2019 12:00:33.124 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-8u181-b13-2~deb9u1-b13
13-Mar-2019 12:00:33.125 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
13-Mar-2019 12:00:33.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
13-Mar-2019 12:00:33.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
13-Mar-2019 12:00:33.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
13-Mar-2019 12:00:33.129 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-Mar-2019 12:00:33.130 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
13-Mar-2019 12:00:33.130 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
13-Mar-2019 12:00:33.132 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
13-Mar-2019 12:00:33.134 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
13-Mar-2019 12:00:33.135 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
13-Mar-2019 12:00:33.136 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
13-Mar-2019 12:00:33.137 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
13-Mar-2019 12:00:33.139 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.5.2].
13-Mar-2019 12:00:33.140 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13-Mar-2019 12:00:33.141 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
13-Mar-2019 12:00:33.151 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.0j 20 Nov 2018]
13-Mar-2019 12:00:33.274 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
13-Mar-2019 12:00:33.296 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
13-Mar-2019 12:00:33.327 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
13-Mar-2019 12:00:33.334 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
13-Mar-2019 12:00:33.336 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 873 ms
13-Mar-2019 12:00:33.374 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
13-Mar-2019 12:00:33.375 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.38
13-Mar-2019 12:00:33.503 WARNING [localhost-startStop-1] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
13-Mar-2019 12:00:33.510 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/com.gdn.x.ui-mobile-api.war]
13-Mar-2019 12:00:33.550 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
13-Mar-2019 12:00:38.942 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/com.gdn.x.ui-mobile-api]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.
at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2200)
at org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebXml.java:2159)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1124)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
13-Mar-2019 12:00:38.953 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/usr/local/tomcat/webapps/com.gdn.x.ui-mobile-api.war]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/com.gdn.x.ui-mobile-api]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
13-Mar-2019 12:00:38.960 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/com.gdn.x.ui-mobile-api.war] has finished in [5,449] ms
13-Mar-2019 12:00:38.963 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
13-Mar-2019 12:00:39.109 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [146] ms
13-Mar-2019 12:00:39.110 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
13-Mar-2019 12:00:39.441 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [331] ms
13-Mar-2019 12:00:39.451 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
13-Mar-2019 12:00:39.503 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [52] ms
13-Mar-2019 12:00:39.505 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
13-Mar-2019 12:00:39.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [47] ms
13-Mar-2019 12:00:39.557 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
13-Mar-2019 12:00:39.608 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [52] ms
13-Mar-2019 12:00:39.626 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
13-Mar-2019 12:00:39.649 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
13-Mar-2019 12:00:39.654 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 6315 ms
...ANSWER
Answered 2020-May-01 at 21:14Added
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install host-manager
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page