tomcat8

Fix Error code: ssl_error_no_cypher_overlap on Tomcat 8

南笙酒味 提交于 2019-12-05 21:53:57
I have a cheap SSL certificate which I want to configure with Tomcat 8.0.26 I run this command on Linux to create keystore: [root@ cert]# keytool -import -alias root -keystore tomcat.jks -trustcacerts -file AddTrustExternalCARoot.crt Enter keystore password: Re-enter new password: Certificate already exists in system-wide CA keystore under alias <addtrustexternalroot> Do you still want to add it to your own keystore? [no]: yes Certificate was added to keystore [root@ cert]# keytool -import -alias intermediate1 -keystore tomcat.jks -trustcacerts -file COMODORSAAddTrustCA.crt Enter keystore

Tomcat memory leak warning on HttpURLConnection

守給你的承諾、 提交于 2019-12-05 21:40:56
I have the following warning in Tomcat 8.5 I'm not sure I can ignore WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [AppName] appears to have started a thread named [pool-20-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(SocketInputStream.java:116) java.net.SocketInputStream.read(SocketInputStream.java:171) java.net.SocketInputStream.read(SocketInputStream.java:141) sun

java.io.IOException An established connection was aborted by the software in your host machine [duplicate]

社会主义新天地 提交于 2019-12-05 14:55:01
This question already has an answer here: android An established connection was aborted by the software in your host machine 2 answers I am getting this error frequently when I do one servlet call to remote server. Running java application1, Invoke servlet call to application2 with few data. application 2 has to return some data. but frequently I am getting below error in application2 while return response as ObjectOutputStream, sometimes it works fine. I am using tomcat 8. org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the

How deploy geoserver web archive with apache tomcat 8?

拈花ヽ惹草 提交于 2019-12-05 10:16:10
I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8. I download GeoServer 2.7.1.1 web archive from geoserver . When I want to deploy the war file, Error occurs as follow: But when I deploy another war application, it deployed correctly. Where is problem? The reason for this is because, Tomcat WebServer has a size limit of 50 mb max which is smaller than Geoserver war file. All you need to do is to modify DIR\webapps\manager\WEB-INF\web.xml and modify the following lines: <multipart-config> <!-- 52MB max --> <max-file-size>52428800</max-file-size> <max-request-size

Configured SSL on Tomcat 8 and Connection Times Out

霸气de小男生 提交于 2019-12-05 09:51:47
I setup a keystore and got a SSL cert from openssl.com. The exact steps I followed are here: https://drive.google.com/file/d/0B6PUGo7cBLcDTzdkc0pzT2pTMk0/view?usp=sharing Unfortunately even after following their instructions for tomcat exactly and working with customer support my https connection times out. It seems like tomcat is up and running, listening on port 443, but I don't know how to debug deeper. Http requests are served just fine, so I know tomcat itself is working just fine. [ec2-user@ip- logs]$ sudo netstat -tunlp | grep 443 tcp6 0 0 :::443 :::* LISTEN 19407/java [ec2-user@ip-

Parallel stream doesn't set Thread.contextClassLoader after tomcat upgrade

假装没事ソ 提交于 2019-12-05 07:16:01
After tomcat upgrade from 8.5.6 to 8.5.28 parallel stream stopped supplying Threads with contextClassLoader: Because of it Warmer::run can't load classes in it. warmers.parallelStream().forEach(Warmer::run); Do you have any ideas what Tomcat was supplying for contextClassLoaders for new Threads? ParallelStream uses ForkJoinPool in newest Tomcat. Common ForkJoin pool is problematic and could be responsible for memory leaks and for applications being able to load classes and resources from other contexts/applications (potential security leak if your tomcat is multi tenant). See this Tomcat

Install Godaddy ssl certificate on tomcat 8.5 Server

点点圈 提交于 2019-12-05 03:54:50
问题 I am trying to install SSL certificate on my website.I am using Godaddy ssl certificate for this. I have generated the csr, requested the Certificate and also uploaded the certificate on my server. I am using KEYTOOL to use all of these I got three file in the .zip file which i downloaded from godaddy. While installing the certificate. there are three command which i have to use to add the certificate to keystore. They commands are for Root , intermediate and Primary certificate . How can i

incompatible version [1.1.34] of the APR based Apache Tomcat Native library

 ̄綄美尐妖づ 提交于 2019-12-05 03:38:10
On my openSUSE Leap 42.3 server during Spring Boot 2.0.0.M6 application startup on Embedded Tomcat server I'm seeing the following error in the logs: ERROR 30471 --- [main] o.a.catalina.core.AprLifecycleListener: An incompatible version [1.1.34] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] Could you please explain what should be fixed there(and where) in order to avoid this error? Since the answer was incomplete for me and it is the first thread that google finds for the research i'll say what solves the problem for me. I had to download

HikariCP starts when “mvn spring-boot:run” but not with a deployable war file

情到浓时终转凉″ 提交于 2019-12-05 03:36:44
问题 We have a spring boot application. When we do "mvn spring-boot:run", the application uses HikariCP. When we deploy a war file on tomcat, the CP is different and it crashes with connection closed after a few hours. How can I force Hikari when deploying a war file? This is our application.properties: spring.datasource.url=jdbc:mysql://localhost:3306/xxx? autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&connectionCollation=utf8_general_ci&characterSetResults=utf8&autoDeserialize=true

HTTP/2 support in Tomcat 8

你说的曾经没有我的故事 提交于 2019-12-04 22:36:28
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? Mark Thomas Tomcat does not yet support HTTP/2. HTTP/2 support is planned for Tomcat 9 onwards. It may get back-ported to earlier versions. The experimental SPDY support was just that: experimental.