tomcat8

Turn off Tomcat logging via Spring Boot Application

二次信任 提交于 2019-12-12 05:07:16
问题 I have a Spring boot application deployed on Tomcat8 When the app starts I see the following 18-Feb-2016 15:28:12.164 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs= --- Many more JVM arguments . ___ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.3.1

Container level Custom JXM MBean in Tomcat 7+

一个人想着一个人 提交于 2019-12-12 04:55:51
问题 I need to create a container level JMX MBean for tomcat servers to allow enterprise level monitoring of a few custom features. The examples I am finding online are focused on webapp level MBeans. I found a few examples for Tomcat 5, but it looks like a lot has changed since then. How can I register an MBean for an entire Tomcat instance? 回答1: Tomcat already have MBeans for monitoring stuff. You need to enable it via CATALINA_OPTS, just add: -Dcom.sun.management.jmxremote -Dcom.sun.management

InelliJ and apache tomcat8 found no server.xml in the .IntelliJIdea15/system/tomcat/Unnamed_Form/conf directory

无人久伴 提交于 2019-12-12 04:19:10
问题 I stumbled over an error with my tomcat8-installation. I installed apache tomcat8 on Ubuntu 15.10 from the package list. For some reason it didn't install the configuration-files "server.xml" and "web.xml" in the /usr/share/tomcat8/conf directory 回答1: Here is how to fix it: Download the full tomcat8-Core-tar.gz from here: Download Then open the /apache-tomcat-8.0.x/conf/ directory and copy server.xml- and web.xml-files to /usr/share/tomcat8/conf enjoy. 来源: https://stackoverflow.com/questions

How can i limit Tomcats Simultaneous Connection?

强颜欢笑 提交于 2019-12-12 03:46:58
问题 I have been testing Apache Tomcat recently. I am using Ubuntu-16.04 and Apache Tomcat/8.0.36 . I was messing around with server.xml with connection limit. I was trying to limit it to 2 simultaneous connection. But setting maxThreads="2" is not working to my expectation. I was testing by: ab -n 150 -c 150 http://127.0.0.1:8080/ But it just acts well without closing any connection. 回答1: First of all you need to understand difference between maxThreads and maxConnections . You can find both this

RequestBody not accepted for RequestMethod.DELETE

試著忘記壹切 提交于 2019-12-12 03:29:36
问题 I'm using tomcat v8 and trying to post a object thru RequestBody to my REST API. This REST API is basically RequestMethod.DELETE as the logic inside this API is to delete the object that was passed in the RequestBody. This didn't work for me. I had to later convert my method to POST but I am still wondering does DELETE doesn't accept RequestBody ? Is this the restriction from the Spring framework or REST principles or something to do with my Tomcat configuration (server.xml) file. 回答1: but I

Compile Servlets and others classes in a Java Web project

牧云@^-^@ 提交于 2019-12-12 02:16:33
问题 I'm new in Java and I'm trying to compile my Servlet on linux using only the command-line. I decided do that after see this error on my browser: The command javac -classpath /opt/tomcat/lib/servlet-api.jar ComputerSV.java gives the following error: ComputerSV.java:13: error: cannot find symbol ArrayList<Computer> computers = new ArrayList<>(); ^ symbol: class Computer location: class ComputerSV ComputerSV.java:15: error: cannot find symbol new Computer( ^ symbol: class Computer location:

Session Expired on tomcat8 behind apache2 ProxyPass

为君一笑 提交于 2019-12-11 20:24:25
问题 For a web application named whys written with VAADIN 7.3.8, i deployed a tomcat8 server behind an apache one (and redirected app.whys.fr to whys.fr:8080/Whys wich is my app location). When i go on http://whys.fr:8080/Whys, everything looks good, but when i go on http://app.whys.fr, i get a session expired message immediatly, and no logs to tell me why (nothing in catalina.out). You can test it by your own to see the difference ;). Here is my proxy configuration : <VirtualHost *:80> ServerName

How to run grails commands after deploying war to tomcat in production?

流过昼夜 提交于 2019-12-11 19:38:09
问题 I have a grail-2.4.5 based application. The artifact, a WAR file, is deployed to production; the application runs great. Now I would like to run some grails commands related to the database-migration plugins: specifically grails dbm-tag and grails dbm-rollback . I'm at a loss at how to do this. Any suggestions would be very welcome; is there a better way to do this? Versions: Grails 2.4.5 Tomcat 8.0.24 Constraints: This is a 12 Factor style application so no configs are stored in the

Tomcat8 is being reinstalled while creating instance from custom AMI

别说谁变了你拦得住时间么 提交于 2019-12-11 15:07:13
问题 I tried this question on ServerFault, no response yet, trying here: I have Tomcat8 installed on my instance with startup on reboot configured. Created an AMI from this instance. Now I see: 1) Tomcat was installed again (I can confirm this because, I have removed unnecessary webapps from webapps folder. These unnecessary wars are not there on my original instance). 2) Tomcat is not started by default (I think this could be due to that my start on reboot configuration is messed up).

JSF 2.3 CDI not working on tomcat

倖福魔咒の 提交于 2019-12-11 14:48:54
问题 I am trying to set up jsf 2.3 on tomcat 8 whenever I used @inject I keep having an error with it I have googled and searched on stackoverflow.com yet I can't find a solution to it. I have already installed CDI (Weld) on it following @BalusC example from here How to install and use CDI on Tomcat? yet I keep having unsatisfied dependency: no bean matches the injection point. I can't figure it out is there anything i am missing? ConfigurationBean.java import static javax.faces.annotation