Re: jsessionid path parameter: Is this compliant with the Servlet 3.0 spec?

2018-02-05 Thread Mark Thomas
On 05/02/2018 03:18, Dave Glasser wrote: > Thanks, that is pretty clear and unambiguous, as is "The name of > the parameter must be jsessionid." When the spec is in conflict with itself, > I'm happy to consider Tomcat the reference implementation. Technically, the RI is glassfish. This sort

Re: jsessionid path parameter: Is this compliant with the Servlet 3.0 spec?

2018-02-04 Thread Dave Glasser
Thanks, that is pretty clear and unambiguous, as is "The name of the parameter must be jsessionid." When the spec is in conflict with itself, I'm happy to consider Tomcat the reference implementation. The reason a session cookie name had to be specified in the first place was because we initiall

Re: jsessionid path parameter: Is this compliant with the Servlet 3.0 spec?

2018-02-04 Thread Mark Thomas
On 03/02/18 21:55, Dave Glasser wrote: > This text is based on a stackoverflow question I posted earlier today: > https://stackoverflow.com/questions/48600576/jsessionid-as-path-parameter-not-working-in-tomcat/48602272 > > > I'm using Tomcat 7.0.84, and my web app uses the Se

jsessionid path parameter: Is this compliant with the Servlet 3.0 spec?

2018-02-03 Thread Dave Glasser
This text is based on a stackoverflow question I posted earlier today: https://stackoverflow.com/questions/48600576/jsessionid-as-path-parameter-not-working-in-tomcat/48602272 I'm using Tomcat 7.0.84, and my web app uses the Servlet 3.0 deployment descriptor. The web.xml file contains

Re: Setting up Embedded Tomcat to honor Servlet 3.0 Annotations

2017-10-02 Thread Mark Thomas
On 02/10/17 07:23, Brian Toal wrote: > I want to decouple my solution from web.xml completely, so the goal is to > have the container to scan all jars on the classpath and look for Servlet > 3.0 annotations and do the necessary (register servlet context listeners, > filters, servlet

Setting up Embedded Tomcat to honor Servlet 3.0 Annotations

2017-10-01 Thread Brian Toal
I want to decouple my solution from web.xml completely, so the goal is to have the container to scan all jars on the classpath and look for Servlet 3.0 annotations and do the necessary (register servlet context listeners, filters, servlets, etc). In the code below, the container starts, but none

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-19 Thread Yasser Zamani
gt; request are sitting idle, so *the container can use them to >>>>>> process new requests*. Asynchronous processing refers to >>>>>> *assigning these blocking operations to a new thread and >>>>>> returning >>>>>

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-13 Thread Yasser Zamani
ty in tomcat via calling >>>> `javax.servlet.AsyncContext.start(Runnable)`! I investigated the cause >>>> and found it at [2]: >>>> >>>> public synchronized void asyncRun(Runnable runnable) { >>>> ... >>>>

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-13 Thread Mark Thomas
)`! I investigated the cause >>> and found it at [2]: >>> >>> public synchronized void asyncRun(Runnable runnable) { >>> ... >>> processor.execute(runnable); >>> >>> I mean `processor.execute(r

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-13 Thread Yasser Zamani
;>>     ... >>> processor.execute(runnable); >>> >>> I mean `processor.execute(runnable)` uses same thread pool which it's >>> also it's duty to process new requests! Such usage made things worse! >>> i.e. not only does n

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-05 Thread Yasser Zamani
y to process new requests! Such usage made things worse! >> i.e. not only does not make thread pool more free to process new >> requests, but also has an overhead via thread switching! >> >> I think Tomcat must use another thread pool for such blocking operations >> and ke

Re: Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-05 Thread Mark Thomas
k Tomcat must use another thread pool for such blocking operations > and keep current thread pool free for new requests; It's the philosophy > of Servlet 3.0's asynchronous support according to Oracle's > documentation. wdyt? I think this is a good question that highlights a lot

Tomcat misuse of Servlet 3.0's asynchronous support

2017-09-03 Thread Yasser Zamani
only does not make thread pool more free to process new requests, but also has an overhead via thread switching! I think Tomcat must use another thread pool for such blocking operations and keep current thread pool free for new requests; It's the philosophy of Servlet 3.0's asynchrono

Re: WebappClassLoaderBase.addTransformer and servlet 3.0

2015-09-04 Thread Mark Thomas
On 04/09/2015 08:22, Bryn Cooke wrote: > Hi, > I've recently been looking at using the class transformer functionality > in Tomcat 8.0.26 and came across a subtle interaction with servlet 3.0. > I am registering my transformer in a ServletContain

WebappClassLoaderBase.addTransformer and servlet 3.0

2015-09-04 Thread Bryn Cooke
Hi, I've recently been looking at using the class transformer functionality in Tomcat 8.0.26 and came across a subtle interaction with servlet 3.0. I am registering my transformer in a ServletContainerInitializer via InstrumentableClassLoader.addTransformer, but couldn't understand

Re: Exclude scanning of class folders for Servlet 3.0 annotations.

2014-06-18 Thread Konstantin Kolinko
\Projects\Libraries\jarfile2.jar" > > C:\Projects\ProjectA\classes has classes with Servlet 3.0 annotations and I > want tomcat to look for annotated classes in this class folder. To do this I > have set the attribute scanAllDirectories=true under the JarScanner tag as > follows

Exclude scanning of class folders for Servlet 3.0 annotations.

2014-06-14 Thread Vimil Saju
references. i.e virtualClasspath is set to something as follows virtualClasspath="C:\Projects\ProjectA\classes;C:\Projects\ProjectB\classes;C:\Projects\ProjectC\classes;C:\Projects\Libraries\jarfile1.jar;C:\Projects\Libraries\jarfile2.jar"   C:\Projects\ProjectA\classes has classes wi

Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
Hi I undid the changes i had done in server.xml and that seems to fix the issue. could you help me understand what could be happening ? On Mon, May 14, 2012 at 5:19 PM, Konstantin Kolinko wrote: > 2012/5/14 rohit patil : > > Thanks for replying, > > > > 1. I do not have any filters confi

Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread Konstantin Kolinko
2012/5/14 rohit patil : > Thanks for replying, > > 1. I do not have any filters configured. > 2. Yes my web.xml does mark themselves as adhering to the Sevlet 3.0 > specification > 3. Yes apps under http://localhost:8080/examples/jsp/ also does NOT work, > they also throw up the same exception. > >

Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
30 On Mon, May 14, 2012 at 4:55 PM, Konstantin Kolinko wrote: > 2012/5/14 rohit patil : > > Hi All, > > I have written the below piece of code (NewServlet.java) to try the > Servlet > > 3.0 async feature. > > But it is failing by throwing

Re: Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread Konstantin Kolinko
2012/5/14 rohit patil : > Hi All, > I have written the below piece of code (NewServlet.java) to try the Servlet > 3.0 async feature. > But it is failing by throwing up the below mentioned error. > > Tomcat Version: 7.0.27 (32 bit) > OS: Windows 7 > > java.lang.IllegalSt

Servlet 3.0 async NOT working on Tomcat 7.0.27 on Windows

2012-05-14 Thread rohit patil
Hi All, I have written the below piece of code (NewServlet.java) to try the Servlet 3.0 async feature. But it is failing by throwing up the below mentioned error. Tomcat Version: 7.0.27 (32 bit) OS: Windows 7 java.lang.IllegalStateException: Not supported. at

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/27/12 9:45 AM, Mark Thomas wrote: > It could be done easily on the merge but I'd be strongly against > it. There are lots of rules for merging web fragments and I don't > think we should be logging very decision that gets made. If there's

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Pid
>>>> >>> >>>> With metadata-complete="true", It works correctly. >>> >>> Interesting. > >> +1 That seems surprising. I don't see why the fragment would >> impact this. > > Not at all surprising. Servlet 3.0

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Mark Thomas
t;> >>> With metadata-complete="true", It works correctly. >> >> Interesting. > > +1 That seems surprising. I don't see why the fragment would > impact this. Not at all surprising. Servlet 3.0, section 8.2.3, 5.g.ix The web.xml resulting from the

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Pid
On 27/02/2012 13:16, Christopher Schultz wrote: > Lucas, > > On 2/27/12 5:36 AM, Lucas Pouzac wrote: >> a library (prettyfaces) uses a web-tag fragment without >> > >> With metadata-complete="true", It works correctly. > > Interesting. +1 That seems surprising. I don't see why the fragment w

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lucas, On 2/27/12 5:36 AM, Lucas Pouzac wrote: > a library (prettyfaces) uses a web-tag fragment without > > > With metadata-complete="true", It works correctly. Interesting. We should probably issue a warning if a web fragment disagrees with a def

Re: distributable mode does not work with Servlet 3.0

2012-02-27 Thread Lucas Pouzac
> className="org.apache.catalina.ha.session.JvmRouteBinderValve" /> > > > >> > >> > > 1. What exactly do you observe? Where? Why do you think that there is a > problem? > 2. What is in the logs? > > Regarding servlet 3.0:

Re: Tomcat 6 with servlet 3.0 and EL 2.2

2012-02-23 Thread Pid
On 23/02/2012 10:51, André Moraes wrote: > Hello everyone, i'm new to the mailing list and I have a doubt that > probably someone already had. I need to adapt my tomcat 6 to run servlet > 3.0 and el 2.2. I work in a company that's very resilient about changing > anything in

Tomcat 6 with servlet 3.0 and EL 2.2

2012-02-23 Thread André Moraes
Hello everyone, i'm new to the mailing list and I have a doubt that probably someone already had. I need to adapt my tomcat 6 to run servlet 3.0 and el 2.2. I work in a company that's very resilient about changing anything in the main server, even if it is to make an upgrade from tom

Re: distributable mode does not work with Servlet 3.0

2012-02-22 Thread Konstantin Kolinko
t is a single regexp. >                                 className="org.apache.catalina.ha.session.JvmRouteBinderValve" /> > >> >> 1. What exactly do you observe? Where? Why do you think that there is a problem? 2. What is in the logs? Regarding servlet 3.0: enabling 3.0 turns

Re: distributable mode does not work with Servlet 3.0

2012-02-22 Thread Lucas Pouzac
; > Hi, > > > > I have a concern about replication sessions when using the standard > Servlet > > 3.0. > > > > Do you have an idea for this to work? > > > > > > https://issues.apache.org/bugzilla/show_bug.cgi?id=52685 > > > > *If

Re: distributable mode does not work with Servlet 3.0

2012-02-21 Thread Pid
On 20/02/2012 09:16, Lucas Pouzac wrote: > Hi, > > I have a concern about replication sessions when using the standard Servlet > 3.0. > > Do you have an idea for this to work? > > > https://issues.apache.org/bugzilla/show_bug.cgi?id=52685 > > *If in web.xml,

distributable mode does not work with Servlet 3.0

2012-02-20 Thread Lucas Pouzac
Hi, I have a concern about replication sessions when using the standard Servlet 3.0. Do you have an idea for this to work? https://issues.apache.org/bugzilla/show_bug.cgi?id=52685 *If in web.xml, I declare: http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-09 Thread Matthew Tyson
t; Matthew Tyson wrote: > > >I guess what I'm asking is if I just start using the Servlet 3.0 > >support > >for suspending requests out of the box, will it be a thread blocking > >implementation I'm using? > > That depends what you mean by "thread blocking

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-09 Thread markt
Matthew Tyson wrote: >I guess what I'm asking is if I just start using the Servlet 3.0 >support >for suspending requests out of the box, will it be a thread blocking >implementation I'm using? That depends what you mean by "thread blocking". Once startAsync has

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew, On 11/8/11 4:43 PM, Matthew Tyson wrote: > So if I want to use Servlet 3.0 async (eg, a call to > request.startAsync), and have it be handled without blocking IO, I > need to use the NIO connector? To repeat Mark's reply: &

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-08 Thread Matthew Tyson
I guess what I'm asking is if I just start using the Servlet 3.0 support for suspending requests out of the box, will it be a thread blocking implementation I'm using? HTTP APR/native is blocking as well, correct? So if I want to use Servlet 3.0 async (eg, a call to request.startAsync)

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-08 Thread Mark Thomas
On 08/11/2011 20:15, Matthew Tyson wrote: > Hey Guys, > > It has been my assumption that Tomcat 7's comet implementation (ie, > asyncSupported=true), will automatically use NIO processing. Comet != Servlet 3.0 async > Is that not true? Yes, that is not true. > Do I ne

Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-08 Thread Matthew Tyson
Hey Guys, It has been my assumption that Tomcat 7's comet implementation (ie, asyncSupported=true), will automatically use NIO processing. Is that not true? Do I need to set the connector to be org.apache.coyote.http11.Http11NioProtocol explicitly? Thanks, Matt

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > I found the problem using new Exception().printStackTrace() > > The problem was PsiProbe application that I am using to monitor Tomcat. The > valve it is using to instrument tomcat is probably not async aware. After > undeploying it, async support works as expected. I will

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
I found the problem using new Exception().printStackTrace() The problem was PsiProbe application that I am using to monitor Tomcat. The valve it is using to instrument tomcat is probably not async aware. After undeploying it, async support works as expected. I will notify PsiProbe team about the i

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > web.xml root is: > http://java.sun.com/xml/ns/javaee"; >      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; >      version="3.0"> > > I tried mapping

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
I want to clarify the situation with a simpler example. I have created a war with 2 servlets, without a web.xml. So war contains only 2 classes (for each servlet). One servlet is annotated as: @WebServlet(value = "/async", asyncSupported = true) Other is annotated as: @WebServlet(value = "/sync"

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
web.xml root is: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; version="3.0"> I tried mapping both with annotation and web.xml. A

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > Hello, > > I am trying to use Servlet 3 async support in Tomcat 7.0.21. I tried setting > annotation asyncSupported=true and writing this to web.xml, tried using apr > and nio, still getting false from isAsyncSupported, what am I missing ? > > Mete > > PS: There is no filt

async per servlet 3.0

2011-10-14 Thread Mete BALCI
Hello, I am trying to use Servlet 3 async support in Tomcat 7.0.21. I tried setting annotation asyncSupported=true and writing this to web.xml, tried using apr and nio, still getting false from isAsyncSupported, what am I missing ? Mete PS: There is no filter, just a single servlet overriding do

Re: Servlet 3.0 File Upload

2011-09-06 Thread verlag.preis...@t-online.de
Hi Chris, > > It seems dangerous to allow the client to specify the file name. All > kinds of bad things can happen such as specifying special file names > (does "PRN" still work in win32? through Java?) or overwriting files > from other clients. > > I would highly recommend that some portion of

Re: Servlet 3.0 Part Header Keys

2011-09-06 Thread Christopher Schultz
ENAME);...instead of > part.getHeader("filename"); You could read the Servlet 3.0 spec. Or the javadocs. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5mdV4ACgkQ9CaO5/L

Re: Servlet 3.0 File Upload

2011-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 9/3/2011 11:51 AM, Konstantin Preißer wrote: > What I usually do to get the filename is: > > Part uploadPart = request.getPart("uploadfield"); // get the Part > String contDispoHeader = > uploadPart.getHeader("Content-Disposition"); /

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-06 Thread Christopher Schultz
gt; around to see if anything something similar could be done with > servlet 3.0. The servlet API does not have any such provisions: your code executes after the file upload has completed. If you want to interact with the stream, you'll have to either handle the stream yourself or use a libr

Re: Servlet 3.0 File Upload

2011-09-06 Thread Ole Ersoy
Thanks guys! Ole On 09/03/2011 10:51 AM, Konstantin Preißer wrote: Hi, -Original Message- From: Jonathan Soons [mailto:jso...@juilliard.edu] Sent: Saturday, September 03, 2011 2:24 PM To: Ole Ersoy; Tomcat Users List Subject: RE: Servlet 3.0 File Upload You need to add a line in in

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-06 Thread Ole Ersoy
und to see if anything something similar could be done with servlet 3.0. Thanks, - Ole On 09/05/2011 03:12 PM, André Warnier wrote: Ole Ersoy wrote: Hi, Anyone know whether it's possible to monitor progress of a file upload? What do you mean by "monitoring" ? Is it a question o

Re: [Servlet 3.0] Monitoring File Upload Progress

2011-09-05 Thread André Warnier
Ole Ersoy wrote: Hi, Anyone know whether it's possible to monitor progress of a file upload? What do you mean by "monitoring" ? Is it a question of providing the user with some feedback, like a progress bar ? If so, then one of the easier ways would be to write your own java applet, download

Re: Servlet 3.0 File Upload

2011-09-05 Thread Ole Ersoy
ame"); Then instead of part.write("samplefile"); do: part.write(filename); Jonathan Soons From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a wo

Re: Servlet 3.0 File Upload

2011-09-05 Thread Ole Ersoy
ame"); Then instead of part.write("samplefile"); do: part.write(filename); Jonathan Soons From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a wo

Re: Servlet 3.0 File Upload

2011-09-05 Thread André Warnier
__ From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file upload servlet, with the exception that it calls the uploaded file "samplefile" instead of using the name of the file. S

[Servlet 3.0] Monitoring File Upload Progress

2011-09-03 Thread Ole Ersoy
Hi, Anyone know whether it's possible to monitor progress of a file upload? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Servlet 3.0 Part Header Keys

2011-09-03 Thread Ole Ersoy
Hi, Anyone know if the the keys for the various javax.servlet.http.Part headers are available as constants anywhere? I'd like to do something like: part.getHeader(Part.FILENAME);...instead of part.getHeader("filename"); TIA, - Ole -

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, > -Original Message- > From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris > derham > Sent: Saturday, September 03, 2011 6:51 PM > To: Tomcat Users List > Subject: Re: Servlet 3.0 File Upload > > > Letting the remote user control t

Re: Servlet 3.0 File Upload

2011-09-03 Thread chris derham
> > You need to add a line in in your form: > > > > > > Then in your servlet GetPost() method you put this filename in a > > variable: > > String filename; > > filename = req.getParameter("filename"); > > > > Then instead of part.write("samplefile"); > > do: > > part.write(filename); > Letting th

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, > -Original Message- > From: Jonathan Soons [mailto:jso...@juilliard.edu] > Sent: Saturday, September 03, 2011 2:24 PM > To: Ole Ersoy; Tomcat Users List > Subject: RE: Servlet 3.0 File Upload > > You need to add a line in in your form: > > > Then in

RE: Servlet 3.0 File Upload

2011-09-03 Thread Jonathan Soons
me); Jonathan Soons From: Ole Ersoy [ole.er...@gmail.com] Sent: Friday, September 02, 2011 6:50 PM To: Tomcat Users List Subject: Servlet 3.0 File Upload Hi, I have a working file upload servlet, with the exception that it calls the uploaded file "samplefile" instead of using

Re: Servlet 3.0 File Upload

2011-09-02 Thread Ole Ersoy
Never mind...I see the example hard codes the name of the file. Sorry for the noise. On 09/02/2011 05:50 PM, Ole Ersoy wrote: Hi, I have a working file upload servlet, with the exception that it calls the uploaded file "samplefile" instead of using the name of the file. So if I upload differe

Servlet 3.0 File Upload

2011-09-02 Thread Ole Ersoy
Hi, I have a working file upload servlet, with the exception that it calls the uploaded file "samplefile" instead of using the name of the file. So if I upload different files, they all overwrite each other. Any ideas on how to fix this? I used this tutorial to get it working: http://www.s

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Matthew Tyson
Konstantin, I may have to give the debugger a try - thanks for the info. Matt On Wed, Jul 20, 2011 at 1:02 PM, Konstantin Kolinko wrote: > > org.apache.tomcat.util.bcel.classfile.ClassFormatException: > > Invalid byte tag in constant pool: 60 > > The above message is created by > o.a.tomcat.uti

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Konstantin Kolinko
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: > Invalid byte tag in constant pool: 60 The above message is created by o.a.tomcat.util.bcel.classfile.Constant#readConstant(...). There is a switch() and default: label results in this exception being thrown. Expected values there are

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Mark Thomas
On 20/07/2011 21:37, Matthew Tyson wrote: > java -version: > > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) > > We just upgraded it from 1.6.0_22 to see if it would address this problem > (it didn't). Are

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Matthew Tyson
java -version: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) We just upgraded it from 1.6.0_22 to see if it would address this problem (it didn't). > 1. Are you using Tomcat downloaded from tomcat.apache.org?

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Konstantin Kolinko
2011/7/20 Matthew Tyson : > Adding that to the skip list definitely prevented that error, but I'm > getting many jars with the same problem.  I thought I could maybe get away > with just skipping them all, but I'm starting to see some jars that have > taglibs in them (and so need to be scanned). >

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Matthew Tyson
,dnsns.jar,jcharset.jar,pager-taglib.jar Any ideas? Thanks, Matt On Wed, Jul 20, 2011 at 12:21 AM, Mark Thomas wrote: > On 20/07/2011 03:55, Matthew Tyson wrote: > > Hey guys, > > > > tomcat 7.0.19 > > Java 1.6.0_22 > > CentOS 5.6 > > > > I just

Re: Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-20 Thread Mark Thomas
On 20/07/2011 03:55, Matthew Tyson wrote: > Hey guys, > > tomcat 7.0.19 > Java 1.6.0_22 > CentOS 5.6 > > I just switched the web.xml to servlet 3.0 (from a app running servlet 2.4 > previously without issue) and now I'm seeing the following error (turned on >

Servlet 3.0 Specific Error: Invalid byte tag in constant pool

2011-07-19 Thread Matthew Tyson
Hey guys, tomcat 7.0.19 Java 1.6.0_22 CentOS 5.6 I just switched the web.xml to servlet 3.0 (from a app running servlet 2.4 previously without issue) and now I'm seeing the following error (turned on fine logging in the util class): FINE: Scanning JAR [file:/usr/java/jdk1.6.0_22/jre/li

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-06-21 Thread kerotan
Dear Sirs, On Thursday, May 26, 2011 1:14 AM - From what you have above, "/guess" does not appear to be a valid URL. You appear to have lost the context path somewhere.  This problem has been resolved. In this case, when JSP("guess.jsp") calls Servlet("GuessServlet.java"), the absolute path is

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-26 Thread kerotan
Dear Sirs, Chris and Mark, Thank you for your advice on my questions. I can make me understood how to use "@WebServlet" annotation on Tomcat 7.0.14.. Regaeds, -- Noriko Etani Kobe Institute of Computing, Japan Email: et...@kic.ac.jp/kero...@kcn.ne.jp ---

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread Mark Thomas
branched into two paths. >> Third, two path are brabched depending on a answer. One is >> "/reqattr/guess.jsp". Another is "/reqattr/guess_hit.jsp". The branch >> control is done by "RequestDispatcher dispatcher = >> request.getRequestDispatcher(path)

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread Christopher Schultz
"GuessServlet.java" can return to "guess.jsp" or "guess_hit.jsp". > Fifth, "guess.jsp" can call "/reqattr/GuessServlet.java" by inputing a > charactor, again. > Sixth, Here, a browser showed the error message of HTTP status 404, > which

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-25 Thread kerotan
Dear Sirs, Thank you for your replying. I would like to explain my questions in detail. --- Eclipse 3.6(Helios) Tomcat 7.0.14 Servlet 3.0 Windows XP SP3 x86 version What is the result? Is this webapp deployed into the /test context path? A browser

Re: restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kerotan, On 5/24/2011 1:28 PM, kerotan wrote: > Tomcat 7.0.14 > My servlet programs with "@WebServlet" annotation have three problems as > follows: > 1. A servlet program with "@WebServlet" > annotation(@WebServlet(name="HelloServlet", urlPatterns=

restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-24 Thread kerotan
Dear Sirs, Tomcat 7.0.14 Servlet 3.0 Windows XP SP3 x86 My servlet programs with "@WebServlet" annotation have three problems as follows: 1. A servlet program with "@WebServlet" annotation(@WebServlet(name="HelloServl

restricted utilization on "@WebServlet" annotation of Servlet 3.0

2011-05-24 Thread kerotan
Dear Sirs, Tomcat 7.0.14 Servlet 3.0 Windows XP SP3 x86版 My servlet programs with "@WebServlet" annotation have three problems as follows: 1. A servlet program with "@WebServlet" annotation(@WebServlet(name="HelloServl

Re: Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-13 Thread Dan Checkoway
; > > >Thanks, > >Dan > > > >On Thu, May 12, 2011 at 1:00 PM, Dan Checkoway > >wrote: > > > >> Ah, excellent. Glad to know I wasn't on crack. :-) Thanks for the > >quick > >> reply! > >> > >> Dan > >>

Re: Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-13 Thread markt
> >https://github.com/dcheckoway/async-test > >Thanks, >Dan > >On Thu, May 12, 2011 at 1:00 PM, Dan Checkoway >wrote: > >> Ah, excellent. Glad to know I wasn't on crack. :-) Thanks for the >quick >> reply! >> >> Dan >> >> &

Re: Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-13 Thread Dan Checkoway
t; Ah, excellent. Glad to know I wasn't on crack. :-) Thanks for the quick > reply! > > Dan > > > On Thu, May 12, 2011 at 12:51 PM, Mark Thomas wrote: > >> On 12/05/2011 17:33, Dan Checkoway wrote: >> > Hello, >> > >> > I recently st

Re: Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-12 Thread Dan Checkoway
Ah, excellent. Glad to know I wasn't on crack. :-) Thanks for the quick reply! Dan On Thu, May 12, 2011 at 12:51 PM, Mark Thomas wrote: > On 12/05/2011 17:33, Dan Checkoway wrote: > > Hello, > > > > I recently started working with Servlet 3.0 async stuff with

Re: Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-12 Thread Mark Thomas
On 12/05/2011 17:33, Dan Checkoway wrote: > Hello, > > I recently started working with Servlet 3.0 async stuff with Tomcat 7.0.12, > and I bumped into what may be a serious bug. Or it may be that I'm just > doing something dumb. :-) > > For some reason,

Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-12 Thread dcheckoway
Hello, I apologize if this is a duplicate post. I recently started working with Servlet 3.0 async stuff with Tomcat 7.0.12, and I bumped into what may be a serious bug. Or it may be that I'm just doing something dumb. :-) For some reason, response.sendRedirect and response.sendError ar

Possible Servlet 3.0 AsyncContext bug in Tomcat 7.0.x

2011-05-12 Thread Dan Checkoway
Hello, I recently started working with Servlet 3.0 async stuff with Tomcat 7.0.12, and I bumped into what may be a serious bug. Or it may be that I'm just doing something dumb. :-) For some reason, response.sendRedirect and response.sendError are not producing expected behavior when usi

Re: Servlet 3.0 Securty Annotations

2011-03-01 Thread
Michael McCutcheon wrote: >Does Tomcat 7.0.8 support the Servlet 3.0 security annotations? > >@RolesAllowed >@DeclareRoles >@ServletSecurity > >, etc.? Yes. Tomcat 7.0.x fully supports the Servlet 3.0 spec. Every release has p

Servlet 3.0 Securty Annotations

2011-02-28 Thread Michael McCutcheon
Does Tomcat 7.0.8 support the Servlet 3.0 security annotations? @RolesAllowed @DeclareRoles @ServletSecurity , etc.? thanks, Mike - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail

Re: Servlet 3.0, @WebFilter and ordering

2011-02-09 Thread Stevo Slavić
>>> I don't see anything that would allow an ordering to be specified. >>> >> >> Ordering is discussed in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec. >> >> In 8.2.3 it is explicitly written: >> "As described above, when using annotations to

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Remy Maucherat
hing that would allow an ordering to be specified. >> > > Ordering is discussed in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec. > > In 8.2.3 it is explicitly written: > "As described above, when using annotations to define the listeners, > servlets and filters

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Konstantin Kolinko
in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec. In 8.2.3 it is explicitly written: "As described above, when using annotations to define the listeners, servlets and filters, the order in which they are invoked is unspecified" Best regards, Konstantin Kolinko

Re: How to hookup Servlet 3.0 Authentication to realm? (request.login)?

2011-02-08 Thread Michael McCutcheon
On 2/8/2011 11:46 AM, Mark Thomas wrote: On 08/02/2011 07:41, Michael McCutcheon wrote: Do I need something in web.xml? Yes. Or do I need to declare something special on the servlet that calls the login method? No. Do I need a section? If so, What should it be populated with? Yes. I'd j

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stevo, On 2/8/2011 4:31 AM, Stevo Slavić wrote: > I don't see support for > ordering in @WebFilter annotation. Am I missing something? I don't see anything that would allow an ordering to be specified. > But if [programmatically adding] is the only

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Mark Thomas
On 08/02/2011 09:31, Stevo Slavić wrote: > Hello Tomcat users, > > Now that Tomcat 7 is out with Servlet 3.0 support, I've been trying > out new features it brings. In pre 3.0 servlet era, one would specify > filter in web.xml and order they are defined in the xml would >

Re: How to hookup Servlet 3.0 Authentication to realm? (request.login)?

2011-02-08 Thread Mark Thomas
On 08/02/2011 07:41, Michael McCutcheon wrote: > Do I need something in web.xml? Yes. > Or do I need to declare something special on the servlet that calls the > login method? No. > Do I need a section? If so, What should it be populated > with? Yes. I'd just configure it as BASIC. Mark

Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Stevo Slavić
Hello Tomcat users, Now that Tomcat 7 is out with Servlet 3.0 support, I've been trying out new features it brings. In pre 3.0 servlet era, one would specify filter in web.xml and order they are defined in the xml would determine order filters would get applied. I don't see support fo

How to hookup Servlet 3.0 Authentication to realm? (request.login)?

2011-02-07 Thread Michael McCutcheon
Hello, I'm attempting to setup my web app to authenticate via the new Servlet 3.0 HttpServletRequest.login method. I have a JDBC realm set up in the context.xml in Netbeans 7. Now I'd like to use the request.login method to authenticate against that realm. The problem I'm h

Re: JSP Precompilation and Servlet 3.0

2010-11-08 Thread Tim Funk
An enhancement bug has been entered for those with the itch. It appears the existing JspC task still writes out 2.3 when it writes a new web.xml. https://issues.apache.org/bugzilla/show_bug.cgi?id=50234 -Tim On 11/8/2010 5:45 AM, Ronald Klop wrote: +1 Precompiled jsp's with annotations in a

  1   2   >