tomcat8

AWS EC2 tomcat permission denied creating/writing to file

可紊 提交于 2019-12-10 11:37:58
问题 I have a tomcat running on an elastic beanstalk EC2: 64bit Amazon Linux 2015.09 v2.0.4 running Tomcat 8 Java 8 I'm having trouble when the web app wants to create a new directory/file. I'm getting the following error in catalina.out java.io.IOException: java.io.FileNotFoundException: /home/ec2-user/images/companydata/images/2/10/ac3feab8-a2db-4052-9614-eea41c0a509e.png (Permission denied) at org.apache.catalina.core.ApplicationPart.write(ApplicationPart.java:121) at org.springframework.web

Have Tomcat handle websocket calls in parallel, using different threads

那年仲夏 提交于 2019-12-10 11:32:18
问题 I have a Tomcat 8 websocket application and noticed a certain behavior when handling websocket client calls. Some details: http-nio-8080-exec-3 - 18:50:56 <-- this takes 30 seconds http-nio-8080-exec-3 - 18:50:56 <--+ http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http

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

狂风中的少年 提交于 2019-12-10 07:04:18
问题 This question already has answers here : android An established connection was aborted by the software in your host machine (2 answers) Closed 5 months ago . 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

Can't access Manager-app in Tomcat 8

无人久伴 提交于 2019-12-09 23:59:35
问题 I read many similar problems here, but whatever I do, I can't login to manager app. What I have done. 1. I edited the tomcat-users.xml by adding <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/> I started Tomcat (V.8) with

Tomcat 8.5.29 HTTP/2 is not supporting GZIP compression

爷,独闯天下 提交于 2019-12-08 19:58:26
I am using Tomcat 8.5.29 and using the respective configuration,I have enabled the HTTP2 support for the site. Below is the configuration in server.xml file. <Connector port="443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json" compression="on" compressionMinSize="1024" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeyFile="conf/localhost-key.pem" certificateFile="conf

HTTP Status 404 when running simple RESTful web service in Java using Jersey

爷,独闯天下 提交于 2019-12-08 09:46:15
问题 I am getting HTTP Status 404 when running simple RESTful web service in Java using Jersey. I am following the tutorial REST with Java (JAX-RS) using Jersey. I have copied all the jars that I downloaded from Jersey download site to WEB-INF/lib folder of my project(please see the screenshot for jars). When I run the application from eclipse development environment Eclipse Console shows that Tomcat was started successfully. My web-app is deployed and I can see index.html coming up. But hitting

404 when deploying Grails 3.1.10 war to tomcat7 or tomcat8

一曲冷凌霜 提交于 2019-12-08 05:59:44
问题 The closest stackoverflow question that explains my symptoms is here - How can I deploy a Grails 3.0.1 war file in Tomcat7? I am in the process of upgrading a Grails 2.3.4 application to Grails 3.1.10 and everything is working with 'grails run-app'. When i deploy to a war i get nothing but 404's for any url. The war deploys without any error messages in catalina.out. The tomcat access logs show my access attempts. (not linux problem?) I can get to the tomcat manager, and the tomcat manager

Webapp won't run uder Tomcat 8.0.23

£可爱£侵袭症+ 提交于 2019-12-08 04:43:02
问题 I have a web App running in tomcat 7 and tomcat 6. But when I try to migrate to tomcat 8 it won't let me, there are some exceptions like this one: javax.servlet.ServletException: La ejecución del Servlet lanzó una excepción at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:314) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at

How to deploy apps in tomcat server

痞子三分冷 提交于 2019-12-07 10:58:38
问题 I want to deploy myapp in tomcat server. I know one way is to delete the Root folder from webapps and rename my app.war as ROOT.WAR. But i do not want to do this. I want to deploy like when user access my app as www.xxx.com , it should go to my app like www.xxx.com/login.html. Please help 回答1: You can deploy any WAR file (or exploded WAR directory) from (almost) anywhere with any context name you want, as long as it doesn't conflict with any auto-deployed application. Here's how: Remove any

Configured SSL on Tomcat 8 and Connection Times Out

南笙酒味 提交于 2019-12-07 06:33:17
问题 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