Re: Servlet 3.0 Securty Annotations

2011-03-01 Thread
Michael McCutcheon michael.mccutch...@att.net 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: Getting the Tomcat shutdown port

2011-03-01 Thread Olivier Lefevre
On 2/28/2011 8:18 PM, Mark Thomas wrote: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/security/SecurityListener.java?view=annotate This is brand new, isn't it? I can't find it in the 7.0.8 sources. So it may throw a java.lang.Error at Lifecycle.BEFORE_INIT_EVENT time but

Re: Getting the Tomcat shutdown port

2011-03-01 Thread Mark Thomas
On 01/03/2011 13:52, Olivier Lefevre wrote: On 2/28/2011 8:18 PM, Mark Thomas wrote: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/security/SecurityListener.java?view=annotate This is brand new, isn't it? I can't find it in the 7.0.8 sources. Yes. So it may throw a

Vetoing the start of a webapp

2011-03-01 Thread Olivier Lefevre
This is a follow-up on an earlier thread on killing a servlet at startup. To recap., this is best done by throwing a suitable exception in its init method, as per §2.3.2.1 of the servlet spec. But what if the webapp has several servlets and you want to abort (or undo) the loading of the whole

RE: Vetoing the start of a webapp

2011-03-01 Thread Caldarale, Charles R
From: Olivier Lefevre [mailto:lefev...@yahoo.com] Subject: Vetoing the start of a webapp But what if the webapp has several servlets and you want to abort (or undo) the loading of the whole collection if any of the members fail to load: is there already an accepted best practice for that?

weird memory

2011-03-01 Thread Rodrigo Asensio
Hello. my platform Debian 5 Tomcat 6 with authbind as described here http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/ http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/now.. I'm starting the tomcat with Xmx700m and the /mananger/html shows only 12x as max Free

Re: Getting the Tomcat shutdown port

2011-03-01 Thread Olivier Lefevre
On 3/1/2011 2:57 PM, Mark Thomas wrote: Providing you throw an Error, Tomcat is guaranteed not to start. OK! Just to be 100% clear, this is a Tomcat thing, not a servlet spec thing, right? Just wondering whether it's portable. -- O.L.

Re: Getting the Tomcat shutdown port

2011-03-01 Thread Mark Thomas
On 01/03/2011 14:46, Olivier Lefevre wrote: On 3/1/2011 2:57 PM, Mark Thomas wrote: Providing you throw an Error, Tomcat is guaranteed not to start. OK! Just to be 100% clear, this is a Tomcat thing, not a servlet spec thing, right? Just wondering whether it's portable. Yes, this is Tomcat

Re: Vetoing the start of a webapp

2011-03-01 Thread Olivier Lefevre
On 3/1/2011 3:14 PM, Caldarale, Charles R wrote: Normally, you would put such conditional activation code in a ServletContextListener, and have it throw an exception if things are not to your liking. Doing so would prevent any further use of the webapp. OK but I have the same question as to

RE: Getting the Tomcat shutdown port

2011-03-01 Thread Caldarale, Charles R
From: Olivier Lefevre [mailto:lefev...@yahoo.com] Subject: Re: Getting the Tomcat shutdown port Just to be 100% clear, this is a Tomcat thing, not a servlet spec thing, right? Just wondering whether it's portable. Anything using an org.apache class is Tomcat-specific, and therefore not

RE: Vetoing the start of a webapp

2011-03-01 Thread Caldarale, Charles R
From: Olivier Lefevre [mailto:lefev...@yahoo.com] Subject: Re: Vetoing the start of a webapp is this Tomcat-specific or is it spelled out in the servlet spec somewhere? It's in the servlet spec. Yes but that does not make ServletContext a stand-in for webapps: Actually, it does; that's

Re: weird memory

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rodrigo, On 3/1/2011 9:17 AM, Rodrigo Asensio wrote: Debian 5 Tomcat 6 with authbind as described here http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/ http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/now.. I'm

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 2/28/2011 2:57 PM, Tony Anecito wrote: Since the memory pointers are larger you may need to increase your heap size but you can compress the address pointers. +1 Also, if you use JNI and it is 32-bit then you will have unexpected

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 2/28/2011 4:21 PM, Tony Anecito wrote: I also use Native APR with Tomcat 7 which eliminates AJP and supposedly is faster than Apache Web Server It's probably the same as AWS, as the code is the same :)

Re: Getting the Tomcat shutdown port

2011-03-01 Thread Olivier Lefevre
On 3/1/2011 3:54 PM, Caldarale, Charles R wrote: Anything using an org.apache class is Tomcat-specific, and therefore not portable. Oh, right. I had not picked up that LifecycleListener itself is a Catalina class. Still, the basic issue is not about the listener per se but how the app server

Re: Vetoing the start of a webapp

2011-03-01 Thread Olivier Lefevre
It's in the servlet spec. Sorry, can you give me the actual section: are you referring to §11.6? -- O.L. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Bug 49914 or I can't map to / anymore?

2011-03-01 Thread Leon Rosenberg
hi, concerning https://issues.apache.org/bugzilla/show_bug.cgi?id=49914. I have a filter which listens on /. This filter is used to manage different welcome pages for different urls on a multiurl site. It works like in (pseudocode) if (req.getServerName().equals(bla)) forward to blurp; if

Put URL in context.xml

2011-03-01 Thread Gehrny
My webapp performs HTTP POST requests to another site. I would like to store the URL and the port of the remote site in the context.xml. How could I do this? So far I have added the following to the context.xml: Resource name=http/mprm auth=Container type=java.net.HttpURLConnection;

Re: How to disable JSR 250 annotations processor ?

2011-03-01 Thread Stevo Slavić
Just tried, for plain spring managed object which is neither servlet, nor filter nor listener, @PostConstruct method gets called only once on Tomcat 7. Regards, Stevo. On Sun, Feb 27, 2011 at 9:41 PM, Stevo Slavić ssla...@gmail.com wrote: If I understood spec (servlet-3_0-final-spec.pdf) well,

RE: Put URL in context.xml

2011-03-01 Thread Caldarale, Charles R
From: Gehrny [mailto:a1095...@jnxjn.com] Subject: Put URL in context.xml I would like to store the URL and the port of the remote site in the context.xml. So far I have added the following to the context.xml: Resource name=http/mprm auth=Container type=java.net.HttpURLConnection;

RE: Vetoing the start of a webapp

2011-03-01 Thread Caldarale, Charles R
From: Olivier Lefevre [mailto:lefev...@yahoo.com] Subject: Re: Vetoing the start of a webapp Sorry, can you give me the actual section: are you referring to §11.6? In the 3.0 spec, it's in section 11.6 (was 10.6 in the 2.5 version). The key statements are: The container may respond to

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Hi Chris, The performance degregation for 64 bit versus 32 bit has been the subject of much concern in the java community. Here is the number I mentioned straight from Oracle itself: http://www.oracle.com/technetwork/java/hotspotfaq-138619.html What are the performance characteristics of

Re: Bug 49914 or I can't map to / anymore?

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 3/1/2011 11:49 AM, Leon Rosenberg wrote: concerning https://issues.apache.org/bugzilla/show_bug.cgi?id=49914. I have a filter which listens on /. This filter is used to manage different welcome pages for different urls on a multiurl

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Hi Chris, I understand it is from the core AWS but the important thing for me was to eliminate AJP because in a AWS standalone I had used to communicate AJP. When I enabled ARP I did not have to do anything with AJP. So does ARP communicate with the servlet conatiner in a more efficiant manner?

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Also, I have not programmed in assembly language or in hexadecimal  for some time but I would hope that for a 32-bit java process running on a 64-bit processor I would fetch a 32-bit pointer and maybe a 32-bit long on a 64-bit data bus. Remember we are talking about pointers in code coming into

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Mladen Turk
On 02/28/2011 07:15 PM, Caldarale, Charles R wrote: From: Bruce Pease [mailto:bpe...@wth.com] Subject: IIS7/isapi/tomcat performance In performance tests I have found the configuration runs dramatically slower than it's corresponding server in 32 bit Windows on 2000 Server and Tomcat 6.

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 3/1/2011 2:49 PM, Tony Anecito wrote: I understand it is from the core AWS but the important thing for me was to eliminate AJP because in a AWS standalone I had used to communicate AJP. When I enabled ARP I did not have to do anything

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 3/1/2011 3:24 PM, Tony Anecito wrote: Also, I have not programmed in assembly language or in hexadecimal for some time but I would hope that for a 32-bit java process running on a 64-bit processor I would fetch a 32-bit pointer and

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Thanks Chris I will take a look at it. I am just trying to figure out what is the fastest was to handle my app. I was shooting for less than 1msec at Tomcat which I not have done. Now I want to get to 100 microseconds. Years ago from an logical architecture standpoint It was: 1. Apache web

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, Good thing these are marked as [OT]... we have totally hijacked Bruce's thread. Maybe we should start another. On 3/1/2011 4:07 PM, Tony Anecito wrote: I am just trying to figure out what is the fastest was to handle my app. I was

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Hi Chris, I guess you have not read my last email yet. I think of it as putting two 32-bit pieces of info on a 64-bit data bus whereas for two 64-bit pieces of information it takes two fetches or twice as long on the same hardware. Depending upon the number of bytes for each data type for

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread David kerber
On 3/1/2011 4:07 PM, Tony Anecito wrote: Thanks Chris I will take a look at it. I am just trying to figure out what is the fastest was to handle my app. I was shooting for less than 1msec at Tomcat which I not have done. Now I want to get to 100 microseconds. Years ago from an logical

Re: [OT] When will SingleThreadModel be removed?

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/24/2011 3:34 PM, Caldarale, Charles R wrote: From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: When will SingleThreadModel be removed? When do you think SingleThreadModel will go from deprecated to being gone? Not soon

Re: When will SingleThreadModel be removed?

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/24/2011 4:16 PM, Caldarale, Charles R wrote: From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Re: When will SingleThreadModel be removed? Either way when Oracle removes it it will be like Y2K all over again. My guess is

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Hi Chris, I used Tomcat separately because JBoss was always somewhat behind the current production version of Tomcat. Eventually I will remove JBoss and use JDBC from Tomcat to my database to reduce memory footprint and improve performance. I am only using EJB's in JBoss right now. Best

RE: IIS7/isapi/tomcat performance

2011-03-01 Thread Bruce Pease
I'm just curious if anyone is using a 64 bit version of Linux, and has seen performance degradation. We are looking to move off the Windows platform eventually anyway. -Original Message- From: Tony Anecito [mailto:adanec...@yahoo.com] Sent: Tuesday, March 01, 2011 4:34 PM To: Tomcat

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 3/1/2011 4:33 PM, Tony Anecito wrote: I used Tomcat separately because JBoss was always somewhat behind the current production version of Tomcat. Eventually I will remove JBoss and use JDBC from Tomcat to my database to reduce memory

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce, On 3/1/2011 4:42 PM, Bruce Pease wrote: I'm just curious if anyone is using a 64 bit version of Linux, and has seen performance degradation. We are looking to move off the Windows platform eventually anyway. I'm not using 64-bit, but I am

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 3/1/2011 4:19 PM, Tony Anecito wrote: I guess you have not read my last email yet. I think of it as putting two 32-bit pieces of info on a 64-bit data bus whereas for two 64-bit pieces of information it takes two fetches or twice as

RE: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] IIS7/isapi/tomcat performance Are you saying that a 32-bit JVM running on a 64-bit machine somehow utilizes the 64-bit bus? Malarkey. I wouldn't bet on that. Intel goes to great pains to insure all of the

RE: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] IIS7/isapi/tomcat performance I don't understand why communicating a 64-bit value over a 64-bit bus would take longer than communicating a 32-bit value over a 64-bit bus: Because you get *two* 32-bit values

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/1/2011 5:42 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] IIS7/isapi/tomcat performance Are you saying that a 32-bit JVM running on a 64-bit machine somehow

Re: IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
There is no code. All I did was create a servlet with a doGet method that had nothing in it. I did notice alot of Tomcat code being called. I have not supplied profiling until I get the separate client machine setup. That will be sometime over the next few evenings. -Tony - Original

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
I believe the effect of compression is relative. In other words for a big program with lots of 64-bit pointers and 64-bit longs it is helps but for small programs it does not. I would hope the full 64-bit data bus would be used. So you thing 32-pins on the processor are not used when running

Re: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Tony Anecito
Thanks Chuck I agree. I used to design hardware back in the 80-mid 90's so understand what you are saying but have not kept up with actual designs since then. I jumped over to software after that. I know I simplify some things but hope I still am correct. Feel free to correct me I will try to

RE: [OT] IIS7/isapi/tomcat performance

2011-03-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] IIS7/isapi/tomcat performance The question I have is how does the bus controller know that there are multiple 32-bit values coming down the line, and that it can send them simultaneously down the bus? A

System.out anf tomcat 6

2011-03-01 Thread jason johnson
I am using tomcat 6.0.16 and windows xp. So I have been looking on the web for hours trying to find how to enabled System.out in tomcat 6. I used to have tomcat 5.0.x When I used System.out.println(text); the text would be written to a stdout.log file. Now that I am using tomcat 6, I can't

Re: [OT] Memory Leak in Tomcat

2011-03-01 Thread Jorge Medina
I got a good laugh with your message. Security seems to be always in the hands of the wrong people. Once I asked for the algorithm used to hash the passwords (that happened to be HMAC SHA-1) into a database, if I was going to authenticate the users, I needed to use the same algorithm. I did not

Re: weird memory

2011-03-01 Thread Rodrigo Asensio
yes, you were right, its overriding what I put with this tomcat6 7788 4.1 21.7 759436 182340 ? Sl Mar01 0:30 /usr/lib/jvm/java-6-openjdk/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC

RE: System.out anf tomcat 6

2011-03-01 Thread Caldarale, Charles R
From: jason johnson [mailto:jasonjohnson1...@yahoo.com] Subject: System.out anf tomcat 6 I am using tomcat 6.0.16 and windows xp. Time to upgrade - that's over three years old (and we won't say anything about your OS...). Now that I am using tomcat 6, I can't find the stdout.log file

RE: weird memory

2011-03-01 Thread Caldarale, Charles R
From: Rodrigo Asensio [mailto:rasen...@gmail.com] Subject: Re: weird memory I replaced for my desired amount, restarted everything.. but nothing changed. Any clue about other file being involved on this ? One of the problems with these 3rd-party repackaged versions of Tomcat is that nobody

@DenyAll does nothing

2011-03-01 Thread Michael McCutcheon
I'm using Tomcat 7.0.8. I have a servlet with a doGet method that has a @DenyAll annotation applied to it. However, when I run the servlet, it seems to make no difference, and doGet is still called. It was my understanding that @DenyAll was supposed to prevent access to the method on

how to contribute to tomcat documentation?

2011-03-01 Thread Daniel Baktiar
hi all, if i want to contribute to the documentation of tomcat, where should i start? i saw a lot of contributions are welcomed, patches are welcomed, but cannot find the end of thread: the where to start daniel