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
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. Here is the stack trace java.lang.Ille

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.IllegalStateException: Not supported.

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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ole, On 9/3/2011 8:05 PM, Ole Ersoy wrote: > 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.

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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ole, On 9/6/2011 11:03 AM, Ole Ersoy wrote: > Described in this article: > http://www.ibm.com/developerworks/web/library/wa-aj-dwr/?ca=dgr-lnxw06AjaxDWR > > I could just go back to commons file upload, but thought I'd look > around to see if anythin

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
Hi Andre, I'm looking for something like this: pfu.setProgressListener(new FileUploadProgressListener()); Described in this article: http://www.ibm.com/developerworks/web/library/wa-aj-dwr/?ca=dgr-lnxw06AjaxDWR I could just go back to commons file upload, but thought I'd look around to see if

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
Thank you for the advice. I'll stick to hard coded file locations and names :). Thanks again, - Ole On 09/05/2011 03:22 AM, André Warnier wrote: This must be about the worst advice I have ever seen. What about someone typing e.g. "/etc/passwd" in that text box? If you allow people to upload f

Re: Servlet 3.0 File Upload

2011-09-05 Thread Ole Ersoy
Thank you for the advice. I'll stick to hard coded file locations and names :). Thanks again, - Ole On 09/05/2011 03:22 AM, André Warnier wrote: This must be about the worst advice I have ever seen. What about someone typing e.g. "/etc/passwd" in that text box? If you allow people to upload f

Re: Servlet 3.0 File Upload

2011-09-05 Thread André Warnier
This must be about the worst advice I have ever seen. What about someone typing e.g. "/etc/passwd" in that text box? If you allow people to upload files to your server, you should create your own location and naming scheme for the uploaded files. You should not even use the original filename,

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
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); Jonathan Soons ___

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

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
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). All these jars are giving the same

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 > fine logging in the util class): > FI

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 passed the TCK. Mark

Re: Servlet 3.0, @WebFilter and ordering

2011-02-09 Thread Stevo Slavić
Thanks everyone, Just wish there was an "Ordered" interface, or annotation, or attribute of @WebXXX annotations to which ordering can be applied, so that web.xml is not needed for such IMO basic feature. Regards, Stevo. On Wed, Feb 9, 2011 at 8:58 AM, Remy Maucherat wrote: > On Wed, Feb 9, 2011

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Remy Maucherat
On Wed, Feb 9, 2011 at 7:46 AM, Konstantin Kolinko wrote: > 2011/2/8 Christopher Schultz : >> 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.

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Konstantin Kolinko
2011/2/8 Christopher Schultz : > 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. > Ordering is discussed in chapters 8.2.2 and 8.2.3 of the servl

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 > determine order filters w

Re: Servlet 3.0...

2009-10-29 Thread Mark Thomas
Rex Wang wrote: > hi, Dear Tomcat Developers, > We adopt tomcat as an embeded servlet container in our system. Could you > guys share with us any plan to implement the servlet 3.0 specification, Look in the dev archives. > or can I have a preview in current trunk(7.0) snapshot? You'll need to b