tomcat8.5

Tomcat 8.5 - Is Certificate/SSL required for HTTP2

穿精又带淫゛_ 提交于 2020-07-10 10:49:07
问题 I found Http2Protocol doc, that it doesn't supports HTTPS? Some protocols (e.g. HTTP/2) only support HTTP upgrade over non-secure connections. Is it a typo, or I must use HTTP and not HTTPS when using Tomcat HTTP2 or am I missing something? Because I added UpgradeProtocol to <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> For HTTP connector: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"/> And added relevant alpn jar to JAVA_OPT using

How to configure a maximum duration of an application session in Tomcat?

不羁的心 提交于 2020-05-13 07:39:43
问题 I need to configure a maximum duration of an application session in Tomcat to 24 hours. I was not able to find the appropriate configuration in the documentation: https://tomcat.apache.org/tomcat-8.5-doc/config/http.html (There is sessionTimeout for SSLHostConfig but I need the Connector configuration; We terminate the SSL connection in the WebServer before Tomcat but the session management handled by Tomcat.) Added We already handled the session expiration timeout (Tomcat Session Timeout web

AFTER upgrade from Spring boot 1.2 to 1.5.2, FileNotFoundException during Tomcat 8.5 Startup

谁说我不能喝 提交于 2019-12-28 04:01:07
问题 I upgraded Spring Boot from 1.2.0 to 1.5.2 . After that upgrade, Tomcat 8.5 is throwing FileNotFoundException during startup . Below is one of those exceptions, It is throwing more than ~10 similar exceptions. I have no idea about the purpose of these jars, In other words, I didn't add <dependency> for these jars in pom.xml. INFO: Starting Servlet Engine: Apache Tomcat/8.5.11 Apr 06, 2017 3:53:57 PM org.apache.tomcat.util.scan.StandardJarScanner scan WARNING: Failed to scan [file:/C:/Users

Unable to connect to pgsql database with Java REST-API on local Tomcat server. Stack contains ExceptionInInitializerError and IllegalStateException

与世无争的帅哥 提交于 2019-12-24 19:09:24
问题 I am developing a REST-API and currently trying to fix an issue. The issue is that the REST-API is Unable to connect to pgsql database, when I go to my web page in chrome. To show this issue, I'll post a stripped down version of my stack with some explanation, describing the origin and functionality of the involved Java classes and XML. Afterwards, I'll show some code of the involved XML files and java classes. I'll look forward to your answers and feedback on my first post. UPDATE: at the

Tomcat deploy using tomcat7-maven-plugin fails with error “Cannot invoke Tomcat manager: Connection reset by peer: socket write error”

谁说胖子不能爱 提交于 2019-12-24 06:29:06
问题 I am trying to set auto-deploy for my war to Tomcat using the Tomcat7-Maven-Plugin. However, its failing to deploy the file. From the console messages, it looks like it starts deploying but gets interrupted in between after ard 2 MB of transfer. Same happens for all retries and finally it fails. $ mvn tomcat7:redeploy . . . [INFO] Deploying war to http://localhost:8080/policy-service Uploading: http://localhost:8080/manager/text/deploy?path=%2Fpolicy-service&update=true 2244/52241 KB [INFO] I

Keep the space after semicolon in Content-type header response using tomcat

左心房为你撑大大i 提交于 2019-12-12 12:19:16
问题 We have a legacy client consuming a servlet deployed on tomcat 8.5. This legacy client is waiting for the content-type header response in this format (note the whitespace between the semicolon and 'charset'): Content-type: text/xml; charset=utf-8 However, in the server side, Tomcat is always trimming this whitespace, althought we force it in the servlet: response.setContentType("text/xml; charset=utf-8"); Or even in a filter with a custom extension of HttpServletResponseWrapper , as suggested

Tomcat 8.5: Header missing in the HTTP response

时光毁灭记忆、已成空白 提交于 2019-12-12 02:08:06
问题 Using tomcat8.5 ...I'm not getting the complete response as using tomcat8.0. There is a difference between this 2 versions about the HTTP request or response? PUT tomcat8.0 response: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Tue, 23 Aug 2016 08:59:48 GMT PUT tomcat8.5 response: HTTP/1.1 200 Transfer-Encoding: chunked Date: Tue, 23 Aug 2016 09:05:20 GMT I'm using C++ soket methods to send the request. 回答1: Well, obviously there's a difference in the content of

Tomcat mariadb connection configuration

[亡魂溺海] 提交于 2019-12-11 15:12:40
问题 I am using CentOS as Operating System, Mariadb as Database Server, and apache tomcat 8.5.xx as a web Server. the Code of the Resource in Server.xml is as the following: <Resource name="jdbc/HasanDB" auth="Container" type="javax.sql.DataSource" maxTotal="50" maxIdle="15" minIdle="5" initialSize="2" maxWaitMillis="10000" removeAbondend="true" removeAbondendTimeout="300" validationQuery="select 1" testWhileIdle="true" timeBetweenEvictionRunsMillis="60000" username="hasan" password="hasanpass"

Tomcat 8.5 org.apache.juli maxDays property not working

匆匆过客 提交于 2019-12-10 17:23:33
问题 I have wrote below configuration in my logging.properties: 2localhost.org.apache.juli.AsyncFileHandler.level = FINE 2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.AsyncFileHandler.maxDays=5 2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost. Logs write in log file perfectly but maxDays properties is not working. Means I have manually run my application after changing date up-to 6 days but log file not deleted after maxDays

Jersey response's reason phrase is inconsistent in tomcat 7 and 8.5

允我心安 提交于 2019-12-06 13:50:24
问题 I'm using Tomcat 8.5 in one server and Tomcat 7 in different server and I have the following jersey resource: @Path("main") public class MyResource { @POST @Path("path") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public PojoResponse sendMailTemplate(PojoRequest paramsMap) throws Exception { return service.execute(paramsMap); } Which is register to MyApplication ( extends ResourceConfig ) with @ApplicationPath("root") When submitting request using JMeter