ArrayIndexOutOfBoundsException in ServletInputStream.readLine

2017-02-15 Thread 水野謙
Dear Sirs, I'm using Apache Tomcat/6.0.48 on Linux and I sometimes see the following exception. java.lang.ArrayIndexOutOfBoundsException: 8192 at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:391) at org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:318) at org.

Re: Using Embedded Tomcat with Servlet 3 Annotations

2017-02-15 Thread Boris Petrov
Hi, Thanks for the quick answer! Actually, we've been doing what you said all along (however we were doing it before with Servlets and Listeners described in web.xml and just now tried to run our code with annotations) but it still doesn't work. We're using JRuby, here's some code: tomcat = T

Re: Using Embedded Tomcat with Servlet 3 Annotations

2017-02-15 Thread Mark Thomas
On 15/02/17 15:40, Boris Petrov wrote: Hello, We are trying to run an Embedded Tomcat server (version 8.5.11) and have it process some @WebServlet and @WebListener annotations. We are using the "addContext" method of the Tomcat instance instead of the "addWebapp" because we do not want the JSP s

Using Embedded Tomcat with Servlet 3 Annotations

2017-02-15 Thread Boris Petrov
Hello, We are trying to run an Embedded Tomcat server (version 8.5.11) and have it process some @WebServlet and @WebListener annotations. We are using the "addContext" method of the Tomcat instance instead of the "addWebapp" because we do not want the JSP servlet, the default web.xml and none of t