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

2021-05-17 Thread Mark Thomas
On May 17, 2021 9:32:42 PM UTC, Jim Anderson wrote: > >I suspect there is an bug in tomcat. There is no evidence to support that assertion. > Should this be forwarded to the >tomcat developers for consideration? If so, I will enter a report. No. Any such report will be rejected as invalid.

Re: ExpiresFilter throws NPE repeatedly

2021-05-17 Thread Christopher Schultz
Todd, On 5/17/21 15:37, Todd Patch wrote: Hello, I am working on troubleshooting an issue where I am seeing the following Stack trace in a set of logs. Once this first message occurs, thousands of the same message are logged for several hours. I am trying to track down the origin of the

Re: apache-tomcat-8.5.59 too many open files on Linux 8

2021-05-17 Thread Christopher Schultz
Yeggy, On 5/17/21 15:17, Yeggy Javadi wrote: Hi, I am seeing too many TCP sockets open by tomcat on Oracle Linux 8: java51798 root 6601u sock0,9 0t0 3959342 protocol: TCPv6 I was running the same application on Linux 7.6 with the same apache-tomcat version

Regarding : Bug 62273

2021-05-17 Thread Venkata Rajesh Kotha
Tomcat version - 9.0.24 OS - RHEL 8.3 , 64 bit This is regarding Bug 62273 RFC 7230 and RFC 3986 Your suggestion is to add relaxedPathChars and relaxedQueryChars to overcome invalid special characters (i.e, [ , ] , { etc) issue in URL. Do we have any security breaches.. Will we see any

ExpiresFilter throws NPE repeatedly

2021-05-17 Thread Todd Patch
Hello, I am working on troubleshooting an issue where I am seeing the following Stack trace in a set of logs. Once this first message occurs, thousands of the same message are logged for several hours. I am trying to track down the origin of the issue. The issue is in the ExpiresFilter

apache-tomcat-8.5.59 too many open files on Linux 8

2021-05-17 Thread Yeggy Javadi
Hi, I am seeing too many TCP sockets open by tomcat on Oracle Linux 8: java51798 root 6601u sock0,9 0t0 3959342 protocol: TCPv6 I was running the same application on Linux 7.6 with the same apache-tomcat version without seeing this issue. I saw that RedHat has

Re: [Community] try to add an community growth graph to the website

2021-05-17 Thread Mark Thomas
On 17/05/2021 03:55, Shuyang Wu wrote: Hi Mark, I've updated the "anonymous" contributors, and currently there are around 20 contributors in early 2012, and 90 for now (compared to 10/~60 separately before). Would those data be more reasonable? I am afraid these figures are still very

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

2021-05-17 Thread Mark Thomas
Bringing this back on-list after it accidentality went off-list. On 17/05/2021 16:43, Jim Anderson wrote: It took several hours to reduce the JSP file to a minimum, where the error still occurs, but here is the reduced file: <%@ page language="java" contentType="text/html" %>  

Re: [EXT] Re: JSP file not found in parent directory

2021-05-17 Thread Christopher Schultz
Hans, On 5/17/21 09:46, Hans Schou wrote: Problem solved in server.xml. It was a misconfiguration. A developer found an old server.xml in the mailbox, which revealed the problem. AppBase and DocBase should not be equal. They should look like this: appBase="/mnt/fooapps/sptomcat"

Re: [EXT] Re: JSP file not found in parent directory

2021-05-17 Thread Hans Schou
Problem solved in server.xml. It was a misconfiguration. A developer found an old server.xml in the mailbox, which revealed the problem. AppBase and DocBase should not be equal. They should look like this: appBase="/mnt/fooapps/sptomcat" docBase="/mnt/fooapps/sptomcat/foopro" Lesson learned:

Re: How to access Tomcat session objects directly via JavaScript?

2021-05-17 Thread Christopher Schultz
Leo, On 5/15/21 21:16, leo wrote: 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     <%    

Re: [EXT] Re: JSP file not found in parent directory

2021-05-17 Thread Mark Thomas
On 17/05/2021 11:33, Hans Schou wrote: The normalises to: "https://example.org/am_databaseopen.jsp; Yes, and that URL is working (I don't get a 404 page not found) Assuming that "https://example.org/interfaceparts/mainframenotlogged.jsp; is located at

Re: [EXT] Re: JSP file not found in parent directory

2021-05-17 Thread Hans Schou
The normalises to: "https://example.org/am_databaseopen.jsp; Yes, and that URL is working (I don't get a 404 page not found) Assuming that "https://example.org/interfaceparts/mainframenotlogged.jsp; is located at "$CATALINA_HOME/webapps/interfaceparts/mainframenotlogged.jsp" Well the setup

Re: JSP file not found in parent directory

2021-05-17 Thread Mark Thomas
On 17/05/2021 06:24, Hans Schou wrote: Hi I got this error when accessing my site: org.apache.jasper.JasperException: /mainframenotlogged.jsp (line: [1], column: [2]) JSP file [../am_databaseopen.jsp] not found The URL I'm accssing is like

Re: How to access Tomcat session objects directly via JavaScript?

2021-05-17 Thread Luis Rodríguez Fernández
Hello Leo, You can add your custom header in the response via the HttpServletResponse.addHeader() [1] method. Hope it helps, Luis [1] https://tomcat.apache.org/tomcat-8.5-doc/servletapi/javax/servlet/http/HttpServletResponse.html#addHeader(java.lang.String,%20java.lang.String) El lun, 17