tomcat8

How to convert a subdomain to a path with Embedded Tomcat 8 and Spring boot

随声附和 提交于 2019-12-03 12:55:32
问题 How to rewrite subdomains to paths? Example: foo.bar .example.com --> example.com /foo/bar Or better would be (reverse folders): foo.bar .example.com --> example.com /bar/foo Requesting foo.bar .example.com should ship a file in /src/main/resources/static/ bar/foo /index.html. With Apache2 it is done by mod_rewrite . I found documentation about rewriting with Tomcat 8 but the question is where to put this files using spring boot? Update I tried using the UrlRewriteFilter, but it seems not

Apache Tomcat/8.5.3 Manager App 403 error

一个人想着一个人 提交于 2019-12-03 09:55:56
I have tomcat running on an ubuntu instance on aws and I can successfully get to the If you're seeing this, you've successfully installed Tomcat. Congratulations! page but when I click on Manager App I immediately get navigated to the 403 Access Denied page. I've edited the tomcat-users.xml file to have a manager-gui role and even made the user have manager-status, manager-script, as well. Then I shut down the server using bin/shutdown.sh , navigated to the page to check that it was actually shut down then did bin/startup.sh to restart it. But whenever I click on that Manager App button it

Tomcat support for HTTP/2.0?

▼魔方 西西 提交于 2019-12-03 05:32:12
问题 Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this. 回答1: I'm the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2. Tomcat's Mark Thomas has outlined support for HTTP/2 for Tomcat 9. Update Jan 2017 : Tomcat 8.5 supports HTTP/2 see @joe-aldrich answer https://stackoverflow.com/a/37889873/2027465 Considering that Servlet 4.0 is going to have as a

What is best approach for implementing Jersey 2.x on Tomcat 8?

拈花ヽ惹草 提交于 2019-12-03 03:55:02
问题 I have Knowledge of the Web container and Tomcat and can deploy static and dynamic web sites. But I am new to REST and Jersey. I have read the 2.6 user's guide, reviewed many sites and youtube videos. There seems to be a lot of info on 1.x Jersey but not much on 2.x I can get 1.18 working in my environment but can't seem to get any deployment models working for 2.x. I noticed in 2.x there is an Application deployment model. So I thought i would ask some very generic questions to get this

How to convert a subdomain to a path with Embedded Tomcat 8 and Spring boot

与世无争的帅哥 提交于 2019-12-03 03:12:00
How to rewrite subdomains to paths? Example: foo.bar .example.com --> example.com /foo/bar Or better would be (reverse folders): foo.bar .example.com --> example.com /bar/foo Requesting foo.bar .example.com should ship a file in /src/main/resources/static/ bar/foo /index.html. With Apache2 it is done by mod_rewrite . I found documentation about rewriting with Tomcat 8 but the question is where to put this files using spring boot? Update I tried using the UrlRewriteFilter , but it seems not possible to define rules in the domain path using regexes substitution. This is my configuration: Maven

Tomcat support for HTTP/2.0?

狂风中的少年 提交于 2019-12-02 17:53:43
Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this. sbordet I'm the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2. Tomcat's Mark Thomas has outlined support for HTTP/2 for Tomcat 9 . Update Jan 2017 : Tomcat 8.5 supports HTTP/2 see @joe-aldrich answer https://stackoverflow.com/a/37889873/2027465 Considering that Servlet 4.0 is going to have as a target HTTP/2 support, and that HTTP/2 support requires ALPN support in the JDK (which also I am

你知道升级 tomcat 8.5.x后cookie有什么变化吗?

你说的曾经没有我的故事 提交于 2019-12-02 14:48:00
1、问题 如果用 tomcat 8.5.x 写的带有特殊符号(=)的cookie,然后跳转到其他部署在tomcat8.0.x 应用,然后获取cookie会发现 tomcat8.0.x 会过滤掉= 2、怎么解决 方案一:把 = 符号去掉 方案二: 可以把低版本tomcat( tomcat8.0.x或者tomcat7.0.x)的catalina.properties加上如下配置。 这样就可以解决等号问题了 org.apache.tomcat.util.http.ServerCookie.ALLOW_EQUALS_IN_VALUE=true 参考: http://blog.csdn.net/gotobar/article/details/51902348 官方文档地址: http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html 经过观察发现 tomcat8.0.x 带双引号, 8.5.x的cookie 不带双引号 //tomcat 8.0.x Cookie: SESSION="Ecwo4mTii4q/ihlyZxXW=="; //tomcat 8.5.x Cookie: SESSION=L0vmBBFvlGIPm6RdKrJP==; 3、总结 只要是用tomcat 8.5.x写的cookie ,在tomcat7.0.x

Jar getting inflated when any class is referred for first time & hence large delay

。_饼干妹妹 提交于 2019-12-02 04:20:50
I am using Grails 3.3.0 (which by default is using Tomcat 8.5.15). Whenever any controller (or say any other class ) tries to refer or instantiate a class ( e.g. non Spring Bean class), there is large delay for the first time access only. From thread dump it seems that jar is getting inflated while loading the class definition. Hence there is a large delay. I am aware of a issue related to unpackWARs as false in tomcat 8.0.xxx. But I am not sure whether this applies to GRAILS 3.3.0 also? We were not facing this issue when we were using Grails 3.0.11 Any help is much appreciated. Here is the

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

大城市里の小女人 提交于 2019-12-02 03:08:13
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 matching property. Dec 08, 2015 12:04:01 PM org.apache.tomcat.util.digester.Digester endElement WARNING:

Error “Unable to process parts as no multi-part configuration has been provided” when uploading file [duplicate]

北慕城南 提交于 2019-12-01 16:39:24
This question already has an answer here: How to upload files to server using JSP/Servlet? 12 answers I am trying to upload an file via a form in a JSP file, but I'm getting this error. The servlet already has the @MultipartConfig notation. I'm using servlet 3.0 and apache tomcat 8. Error message: java.lang.IllegalStateException: Unable to process parts as no multi-part configuration has been provided on line Collection<Part> parts = request.getParts();` I had to add allowCasualMultipartParsing="true" on context tag inside context.xml 来源: https://stackoverflow.com/questions/24578680/error