tomcat8

HTTP/2 support in Tomcat 8

别说谁变了你拦得住时间么 提交于 2019-12-22 01:35:01
问题 After some research, I was surprised that I did not not find any resource on HTTP/2 support in Tomcat. Changelogs of 8.0 indicate an experimental support of SPDY and wiki refers to HTTP/2 as a supported spec (http://wiki.apache.org/tomcat/Specifications) but I don't find any tutorial on it. Do you know if it is already possible to enable HTTP/2 on Tomcat? If the answer is yes how I can do that? 回答1: Tomcat does not yet support HTTP/2. HTTP/2 support is planned for Tomcat 9 onwards. It may get

Service tomcat8 failed to start by using service tomcat8 start

雨燕双飞 提交于 2019-12-21 04:33:14
问题 I'm using Vagrant to deploy to Ubuntu Linux and try to start a tomcat8 service. Tomcat 8 was installed by apt-get install tomcat8 . When using the service tomcat8 start command, I got the following error: Job for tomcat8.service failed. See "systemctl status tomcat8.service" and "journalctl -xe" for details. Then I tracked the systemctl status tomcat8.service , found that: ? tomcat8.service - LSB: Start Tomcat. Loaded: loaded (/etc/init.d/tomcat8) Active: failed (Result: exit-code) since Mon

Moqui deployment to AWS on Elastic Beanstalk Tomcat instance

血红的双手。 提交于 2019-12-20 06:47:11
问题 Background We have been running Moqui 2.0 with the embedded Jetty server on Elastic Beanstalk using a Java environment for about a year now. For security reasons, we had the application running in a private subnet along with the Postgres database and accessing it over VPN. Because of this, we never bothered to enable HTTPS access. We now want to deploy Moqui in the public subnet so that it can be accessed without the VPN and therefore we need HTTPS access. Sidenote: Bear in mind, I have

Running A Spring Boot App (Embedded Tomcat) with SSL and Unencrypted Simultaneously

≡放荡痞女 提交于 2019-12-20 04:55:16
问题 Is there a way to run a Spring Boot application (runnable war) so that it listens on two ports - one with SSL and one without SSL. I am using an embedded Tomcat 8. SSL is currently being configured using @Bean @Profile('tls') EmbeddedServletContainerCustomizer servletContainerCustomizer () throws Exception { new EmbeddedServletContainerCustomizer () { @Override public void customize (ConfigurableEmbeddedServletContainer container) { TomcatEmbeddedServletContainerFactory tomcat =

java.lang.ClassNotFoundException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl

纵然是瞬间 提交于 2019-12-20 04:24:05
问题 I am starting a java and tomcat based application. I am getting the following error. Dec 08, 2015 12:04:00 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '50' did not find a matching property. Dec 08, 2015 12:04:00 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '50' did not find a

Tomcat 8 classloading - difference between JAR in [WEB-INF/lib] and [tomcat/lib]

社会主义新天地 提交于 2019-12-19 22:00:16
问题 It says here that the common classloader is visible to all web application. So what is the difference between having a JAR file within the WEB-INF/lib folder of my war application and having the same JAR file within Tomcat's lib folder? This JAR is a provider for a Java SPI that I created. When I have it under WEB-INF/lib , everything works perfectly. But if I try to put this JAR under Tomcat's lib folder (or under shared/lib after configuring it in catalina.properties ) I get errors. The

Tomcat 8, axis2 webservices aar, spring jndi not bound in context

会有一股神秘感。 提交于 2019-12-19 04:21:59
问题 I have been working on an issue where JNDI name is not found in the context an axis2 webservice is running. This issue is only in Tomcat 8 when I use spring. Some details: (I will provide the elements that are relevant) 1. services.xml <service name="ScoreService" class="com.bpl.ws.service.ScoreServiceInitializer"> <description>Simple test service</description> <parameter name="ServiceObjectSupplier" locked="false">org.apache.axis2.extensions.spring.receivers

Tomcat8 Gzip Compression for CSS, JS

流过昼夜 提交于 2019-12-19 03:15:50
问题 I am using tomcat8 and trying to simulate GZIP compression of CSS and JS. I have added the entry in server.xml and follows <Connector port="8088" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,text/json,application/x-javascript,application/javascript,application/json" /> And in my html page i have included the

Spring Boot Embedded Tomcat Performance

若如初见. 提交于 2019-12-18 12:27:18
问题 I am developing Microservices API for my application. I started with Spring Boot application. I created two artifacts - "business code with embedded tomcat" and "business code without embedded tomcat" . When I compare the performance results, I can see that the "non-embedded tomcat" (i.e. executing on standalone tomcat) gives good output because of native execution. So basically what is the difference between the embedded tomcat and the standalone tomcat regarding implementation? How the

IntelliJ hot swapping classes, but not JSF pages

偶尔善良 提交于 2019-12-18 09:38:13
问题 First of all, I would like to say that there is plenty of pages on StackOverflow and I tried all I found related, but I am doing something wrong. I have IntelliJ server set up to: server Tomcat 8 JDK 8u65 Maven IntelliJ 14 In Run/Debug configuration I have set VM Options: On Update action: Update resources On frame deactivation: Update classes and resources Before launch: Build xxx.war exploded Deployment tab set to deploy xxx.war exploded If I change the body of any class (e.g.returned value