Re: One question about EL 2.2 :"java.lang.NoSuchMethodException" error when call a managedbean int method

2010-09-13 Thread Mark Thomas
On 14/09/2010 06:00, viola lu wrote: > Is this a bug of EL implementation? Parse number as Long, not type of > ManagedBean defined? Yep, looks like a possible bug in the code that identifies the method you are trying to call. Mark -

Re: Possible to proxy JMX?

2010-09-13 Thread Wesley Acheson
On Mon, Sep 13, 2010 at 11:21 PM, Wesley Acheson wrote: > On Mon, Sep 13, 2010 at 11:12 PM, Pid wrote: >> On 12/09/2010 21:38, Wesley Acheson wrote: >>> If it was possible to proxy JMX though I think it should be possible >>> to have a small daemon application that proxy's tomcats JMX, and >>> in

Re: classpathx-mail

2010-09-13 Thread Pid
On 13/09/2010 22:20, Daniel Rindt wrote: > Hello, > > i would send emails with javamail-api. My tomcat 5.5 comes with the > classpathx-javamail. My installation of Sun's javamail via maven2 seems > to be in conflict with the classpathx-mail package. Someone can please > tell me how can i avoid tha

Re: Tomcat AJP APR connector to mod_jk can result in SEND_BODY_CHUNK message after END_RESPONSE message, was Re: unusual mod_jk 1.2.30 log messages

2010-09-13 Thread Mladen Turk
On 09/14/2010 12:28 AM, Brett Delle Grazie wrote: Detaching AJP streams from the servlet and using them as a OutputStream is not very well handled in Tomcat. I suppose if using APR the entire thing would even crash the JVM. Trying to deal with that on mod_jk side would have my strong -1. And

One question about EL 2.2 :"java.lang.NoSuchMethodException" error when call a managedbean int method

2010-09-13 Thread viola lu
1. Create a managed bean ,define an int field package coreservlets; import javax.faces.bean.*; @ManagedBean public class SpanishColorMapper extends ColorMapper { private int age; public SpanishColorMapper() { super("Spanish", "rojo", "anaranjado", "amarillo", "verde", "negro",

Re: Tomcat AJP APR connector to mod_jk can result in SEND_BODY_CHUNK message after END_RESPONSE message, was Re: unusual mod_jk 1.2.30 log messages

2010-09-13 Thread Brett Delle Grazie
On Mon, 2010-09-13 at 19:41 +0200, Mladen Turk wrote: > On 09/13/2010 07:15 PM, Brett Delle Grazie wrote: > > > > Our problem is that in a servlet that retrieves a file that is then sent > > to the client we are receiving a 'flush' message _after_ the > > END_RESPONSE message. On the next request,

classpathx-mail

2010-09-13 Thread Daniel Rindt
Hello, i would send emails with javamail-api. My tomcat 5.5 comes with the classpathx-javamail. My installation of Sun's javamail via maven2 seems to be in conflict with the classpathx-mail package. Someone can please tell me how can i avoid that tomcat makes use of the classpathx-mail package? T

Re: interaction between .forward() and

2010-09-13 Thread Brian McBride
Hi Christopher, On 13/09/2010 19:58, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- [...] That's a bit of a worry. Can you say any more about the edge cases I should be concerned about. Well, if Tomcat intercepts a request in order to perform authentication, then the filter

Re: Possible to proxy JMX?

2010-09-13 Thread Wesley Acheson
On Mon, Sep 13, 2010 at 11:12 PM, Pid wrote: > On 12/09/2010 21:38, Wesley Acheson wrote: >> If it was possible to proxy JMX though I think it should be possible >> to have a small daemon application that proxy's tomcats JMX, and >> injects two commands, startup and restart. The idea being so this

Re: Tomcat & IIS - Understanding Context definition to access Webapps

2010-09-13 Thread Pid
On 12/09/2010 22:09, Caldarale, Charles R wrote: >> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] >> Subject: Re: Tomcat & IIS - Understanding Context definition to access >> Webapps > >>> I create in conf/Catalina/localhost a new file called webSiteA.xml with >>> this content: > >> t

Re: Possible to proxy JMX?

2010-09-13 Thread Pid
On 12/09/2010 21:38, Wesley Acheson wrote: > Hi I was wondering if Its possible to proxy a JMX service. I got to > thinking a lot of people don't hot deploy for whatever reasons. They > literally shut down tomcat and put in the new content and start it up > again. > > If it was possible to proxy

RE: Want to get involved in Tomcat development?

2010-09-13 Thread Caldarale, Charles R
> From: Wesley Acheson [mailto:wesley.ache...@gmail.com] > Subject: Re: Want to get involved in Tomcat development? > On Sat, Sep 11, 2010 at 7:01 PM, Mark Thomas wrote: > > https://issues.apache.org/bugzilla/show_bug.cgi?id=49914 > > could be a good place to start. > So does martins comment an

Re: Want to get involved in Tomcat development?

2010-09-13 Thread Mark Thomas
On 13/09/2010 21:24, Wesley Acheson wrote: > So does martins comment answer this? I tend to have a hard time parsing Martin's comments and usually just ignore them as the vast majority of them are just plain wrong and past attempts to point out the errors have fallen on deaf ears. If I have under

Re: Want to get involved in Tomcat development?

2010-09-13 Thread Wesley Acheson
So does martins comment answer this? On Sat, Sep 11, 2010 at 7:01 PM, Mark Thomas wrote: > https://issues.apache.org/bugzilla/show_bug.cgi?id=49914 > could be a good place to start. > > No idea if this is a bug or user error but from past experience my gut > instinct is that this will be an easy

Re: How to serialize user principal

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammad, On 9/13/2010 3:29 PM, Mohammad M. AbuZer wrote: > Thanks to note about disadvantages of using JDBCRealm, but about tomcat > login-surviving, I still see login-page, after web-app reload or tomcat > restart... even default configuration prese

Re: How to serialize user principal

2010-09-13 Thread Mohammad M. AbuZer
Thanks to note about disadvantages of using JDBCRealm, but about tomcat login-surviving, I still see login-page, after web-app reload or tomcat restart... even default configuration presents On Mon, Sep 13, 2010 at 9:20 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEG

Re: How to serialize user principal

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammad, (Note the change in spelling of "principal". Principle is a notion or laws or morals.) On 9/13/2010 2:37 PM, Mohammad M. AbuZer wrote: > I'm using tomcat 7.0.2 BETA, I used JDBCRealm, and I think it uses by > default GenericPrinciple at org

Re: How to serialize user principle

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 9/13/2010 2:21 PM, André Warnier wrote: > As far as I know, the Tomcat (container-managed) authentication is based > on the user session Per the servlet spec, the HttpSession == "user login" for FORM authentication. > and the persistence o

Re: interaction between .forward() and

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 9/12/2010 4:18 PM, Brian McBride wrote: > On 09/09/2010 19:47, Christopher Schultz wrote: >> I'm sure there are some edge cases where an authenticated user might end >> up looking like a "guest", but you cna probably solve those. > > That's

Re: How to serialize user principle

2010-09-13 Thread Mohammad M. AbuZer
I'm using tomcat 7.0.2 BETA, I used JDBCRealm, and I think it uses by default GenericPrinciple at org.apache.catalina.realm, which do not implement Serializable interface, On Mon, Sep 13, 2010 at 8:04 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Mohammad M. AbuZer [mail

Re: How to serialize user principle

2010-09-13 Thread André Warnier
Caldarale, Charles R wrote: From: Mohammad M. AbuZer [mailto:m.abuze...@gmail.com] Subject: How to serialize user principle Is there anyway that force tomcat to serialize user Principle so that when tomcat webapp get reloaded or even tomcat restarted, logged in users won't be asked to login a

RE: How to serialize user principle

2010-09-13 Thread Caldarale, Charles R
> From: Mohammad M. AbuZer [mailto:m.abuze...@gmail.com] > Subject: How to serialize user principle > Is there anyway that force tomcat to serialize user > Principle so that when tomcat webapp get reloaded or > even tomcat restarted, logged in users won't be asked > to login again... That norma

Re: How to serialize user principle

2010-09-13 Thread André Warnier
Mohammad M. AbuZer wrote: Hi All,,, Is there anyway that force tomcat to serialize user Principle so that when tomcat webapp get reloaded or even tomcat restarted, logged in users won't be asked to login again... Would this be what you are referring to ? http://tomcat.apache.org/tomcat-5.5-doc

How to serialize user principle

2010-09-13 Thread Mohammad M. AbuZer
Hi All,,, Is there anyway that force tomcat to serialize user Principle so that when tomcat webapp get reloaded or even tomcat restarted, logged in users won't be asked to login again... Best Regards

Re: Tomcat AJP APR connector to mod_jk can result in SEND_BODY_CHUNK message after END_RESPONSE message, was Re: unusual mod_jk 1.2.30 log messages

2010-09-13 Thread Mladen Turk
On 09/13/2010 07:15 PM, Brett Delle Grazie wrote: Our problem is that in a servlet that retrieves a file that is then sent to the client we are receiving a 'flush' message _after_ the END_RESPONSE message. On the next request, mod_jk sees this a breach in the protocol, closes the socket and resu

Tomcat AJP APR connector to mod_jk can result in SEND_BODY_CHUNK message after END_RESPONSE message, was Re: unusual mod_jk 1.2.30 log messages

2010-09-13 Thread Brett Delle Grazie
Hi, I'm top posting because I have more details and better logs. I've change the thread title accordingly. Environment is the same as the original post, with the exception that I have applied the patch Rainer suggested so that mod_jk provides more information when a protocol error is detected. C

Re: To JAAS or not to JAAS

2010-09-13 Thread Mark Eggers
As an alternative, maybe you could write an ant script that would add the libraries, read values from a properties file to write the jaas.config file, and populate the database? Copying files with ant is easy, and http://db.apache.org/ddlutils/ makes it pretty easy to dump and recreate databas

Re: Apache AJP to 4 TCs

2010-09-13 Thread Mark Eggers
Thanks, but credit where credit is due. The basis for my configuration was taken from the examples in the source code. There are a lot of notes in the original source code configurations. Even if you don't compile it yourself (I do, since I'm mostly on Linux), the files are worth the read. D

Re: Apache AJP to 4 TCs

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 9/13/2010 3:09 AM, Andrew Bruno wrote: > If there is anything I can improve in the process, as documented, please let > me know. Upgrade from Tomcat 4.x to Tomcat 6.x? ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (Ming

Re: Interesting wiki article and discussion: static versus transient Log references

2010-09-13 Thread Wesley Acheson
Thats a useful refrence page. Thanks On Mon, Sep 13, 2010 at 3:23 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > For those who are interested, there is an interesting discussion > surrounding an article on the Apache Commons Wiki regarding the use of

Interesting wiki article and discussion: static versus transient Log references

2010-09-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, For those who are interested, there is an interesting discussion surrounding an article on the Apache Commons Wiki regarding the use of static "log" references within library code deployed at a "container" level - such as Tomcat. I'm not sure it

Re: apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread Mark Thomas
On 13/09/2010 11:20, Amol Puglia wrote: > Hello Mark, > > Thanks for the response. > > Please let me know what do i use in place of wildcard. You don't. Read the docs for ProxyPass. > 2)I required nofailover attribute as i have to load balanced two tomcat > servers in the backend. No you don'

Re: apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread Amol Puglia
Hi, I am using following versions of softwares 1)Apache version :- 2.2.14 2)Tomcat version :- apache-tomcat-6.0.20 3)Java Version :- jdk 1.6.0.5 4)Operating system :- solaris 5.10 I am trying to acheive load balancing for two instance of tomcat with apache with mod_proxy module. As of now

Re: apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread Amol Puglia
Hello Mark, Thanks for the response. Please let me know what do i use in place of wildcard. 2)I required nofailover attribute as i have to load balanced two tomcat servers in the backend. 3)It will be good if you can let me know when to use the stickysession attribute or provide me the docs l

Re: apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread Mark Thomas
On 13/09/2010 10:56, Amol Puglia wrote: > No need to use a wildcard. > ProxyPass balancer://tomcatservers/* stickysession=JSESSIONID > nofailover=off No need to use a wildcard. The stickysession attribute is invalid - see the docs The nofailover attribue is unexpected unless you

Re: apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread André Warnier
Amol Puglia wrote: .. kindly assist me to acheive loadbalancing using proxies modules. Kindly telling us what version of Apache, Tomcat, Java etc you are using, on which platform, and what is not working, may help us helping you.

apache tomcat load balancing not working using mod_proxy

2010-09-13 Thread Amol Puglia
Hello Team, I am trying to achieve load balancing with proxies modules. Following are the configuration of proxy module. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so    Listen server_name:443      BalancerM

To JAAS or not to JAAS

2010-09-13 Thread Gabriele Bulfon
Hello, I have a web application written with JAAS authentication, using my own login modules. This is fine as long as the deployment is made by a system administrator who knows how to configure jaas.config and to place needed jars in the tomcat lib directory, following my instructions. Also, JAA

Re: Apache AJP to 4 TCs

2010-09-13 Thread Andrew Bruno
I did a fresh install, and it all worked. Steps documented @ http://bruniglobal.blogspot.com/2010/09/load-balancing-4-tomcats-with-apache-22.html I then went back to my old install, and noticed that I didnt specific ServerName domain:80 I did that and it all worked.. weird. Anyway, thank you a