How to access Tomcat session objects directly via JavaScript?

2021-05-15 Thread leo
Hi Folks In a small scale personal project served by Tomcat I record things per logged-in user. The user is available as an attribute to Tomcat’s session objects. In the JSP pages I retrieve the session object *through Java* like this <% HttpSession session = request.getSession()

Tomcat JSP error message: Syntax error on token ";"

2021-05-15 Thread Jim Anderson
I'm using Tomcat 8.5.63 and in the last few days I started getting an error message in a few of my JSP files. The error message is: START ERROR Type Exception Report Message Unable to compile class for JSP: Description The server encountered

Re: Tomcat fails to start in Docker on Amazon ECS

2021-05-15 Thread Martynas Jusevičius
My bad :) CATALINA_OPTS was malformed. On Sat, May 15, 2021 at 10:19 AM Martynas Jusevičius wrote: > > Hi, > > I have a Docker image that extends tomcat:9.0.39-jdk11 and at the very > end of the entrypoint script calls 'catalina.sh run'. > > This has worked fine both on my local Windows and on a

Re: Tomcat 10 and import org.apache.commons.fileupload.FileItem problem

2021-05-15 Thread Mark Thomas
On 14/05/2021 23:17, Orendt, John wrote: Hi I found sample code for an UploadServlet with these imports import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.ServletFileUpload; This worked well

Tomcat fails to start in Docker on Amazon ECS

2021-05-15 Thread Martynas Jusevičius
Hi, I have a Docker image that extends tomcat:9.0.39-jdk11 and at the very end of the entrypoint script calls 'catalina.sh run'. This has worked fine both on my local Windows and on a CentOS server. However when I start a container on Amazon ECS with AMI Linux, I get the error below when catalina