Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
It seems I am invalidating another servlet than the one which authenticated the webapp. This confusion is because I am using Google Web Toolkit application template which not just a plain servlet application. I am now trying to invalidate all the sessions by calling HttpSession.logout(). I can see

Re: heap memory issues

2012-06-19 Thread Terence M. Bandoian
On 1:59 PM, Miguel González Castaños wrote: On 19/06/2012 06:04, Terence M. Bandoian wrote: On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32 GB

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
Ok let me try this. But in any case once I call invalidate the JAASRealm should automatically call the LoginModule.logout(). But my log suggest that this is not happening. On Wed, Jun 20, 2012 at 10:07 AM, Esmond Pitt wrote: > ** > You must never redirect to the login page: see the Servlet Spec.

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
Ooops, I could not explain. Sorry for mess... I am invalidating in logout only **not** in login. Once I click on logout, I invalidate. Then I redirect to login page. Then if I try to login again the foresaid error comes (error code 408). On Wed, Jun 20, 2012 at 5:22 AM, Esmond Pitt wrote: > Jave

RE: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Caldarale, Charles R
> From: Samuel V Green III [mailto:macun...@gmail.com] > Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion" > I was trying to follow the instructions here: > http://wolfpaulus.com/journal/mac/tomcat7 I would strongly recommend (as did Chris) that you _not_ follow someone else's

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Samuel V Green III
I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 where it mentions "Change ownership of the /Libaray/Tomcat folder hierarchy: sudo chown -R /Library/Tomcat" So I'm wondering if I need to change chown the /usr/local/tomcatversion directory to match my use

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Samuel V Green III
> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Not sure? I have sub directories: bin bundle lib man the install of tomcat at /usr/local is listed user "root" and owner "wheel" The permissions at the symbolic link of /Library/Tomcat are user "myusr name" and own

RE: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Caldarale, Charles R
> From: Samuel V Green III [mailto:macun...@gmail.com] > Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion" > Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) > Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) That looks quite reasonable. Can yo

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Samuel V Green III
java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) Thanks Charles ! Samuel. On Jun 19, 2012, at 6:09 PM, Caldarale, Charles R wrote: >> From: Samuel V Green III [mailto:macun...

RE: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Caldarale, Charles R
> From: Samuel V Green III [mailto:macun...@gmail.com] > Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion" > issued command export Catalina_HOME=/Library/Tomcat That's not useful (or necessary). The variable name is CATALINA_HOME, not Catalina_HOME (case matters). > Using JRE

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 11:09 PM, Mark Eggers wrote: If I remember correctly, you're using NetBeans. There are at least two ways of removing the JAR from the packaging without impacting your project. If you're using the NetBeans standard build mechanism: 1. Go to Project->Properties->Libraries 2. Uncheck

Re: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-19 Thread Kiran Badi
Yup done this Sharon.Thanks On 6/19/2012 2:03 PM, Sharon Prober (sprober) wrote: You could always position your jsp's inside the WEB-INF dir This will enable you to access them only through server redirects rather than absolute url's Sharon -Original Message- From: Kiran Bad

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Samuel V Green III
I backup and installed the 7.0.28 of Tomcat. I used the setup as follows: sudo ln -s /usr/local/apache-tomcat-7.0.28/ /Library/Tomcat sudo chown -R "myusername" /Library/Tomcat issued command export Catalina_HOME=/Library/Tomcat upon issue of : /Library/Tomcat/bin/startup.sh get the following out

Re: Tomcat shutdown.sh troubleshooting on AS/400

2012-06-19 Thread André Warnier
James Lampert wrote: . . . and when I looked back at the box I was testing, Tomcat *had* finally shut down. And when I ran both the start and stop scripts this time, the stop script worked perfectly (and promptly). Weird. Why would the shutdown take so long as to give the impression it had fa

RE: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread Esmond Pitt
Javed I don't know why you are invalidating the session when you log *in.* I said to invalidate it to log *out*. EJP - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomc

Re: Tomcat shutdown.sh troubleshooting on AS/400

2012-06-19 Thread James Lampert
. . . and when I looked back at the box I was testing, Tomcat *had* finally shut down. And when I ran both the start and stop scripts this time, the stop script worked perfectly (and promptly). Weird. Why would the shutdown take so long as to give the impression it had failed entirely, then ev

Re: Tomcat shutdown.sh troubleshooting on AS/400

2012-06-19 Thread André Warnier
James Lampert wrote: In my experience, Tomcat's "shutdown.sh" has never worked reliably on AS/400, and I don't know why, or even understand enough about how it works (or enough about shell scripts) to troubleshoot it. Here's the script. I can tell that it eventually transfers control to catal

Tomcat shutdown.sh troubleshooting on AS/400

2012-06-19 Thread James Lampert
In my experience, Tomcat's "shutdown.sh" has never worked reliably on AS/400, and I don't know why, or even understand enough about how it works (or enough about shell scripts) to troubleshoot it. Here's the script. I can tell that it eventually transfers control to catalina.sh (which is also

shutdown.sh troubleshooting on AS/400

2012-06-19 Thread James Lampert
In my experience, "shutdown.sh" has never worked reliably on AS/400, and I don't know why, or even understand enough about how it works (or enough about shell scripts) to troubleshoot it. Can somebody shed some light on it? -- JHHL -

Re: source for jdbc pool?

2012-06-19 Thread Mark Thomas
On 19/06/2012 18:55, S Ahmed wrote: > Where is the source for the jdbc pool? Can't seem to find it here: > https://github.com/apache/tomcat70 http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/ The canonical version of the source code for an ASF project will always be on ASF hardware. i.

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Mark Eggers
- Original Message - > From: Kiran Badi > To: users@tomcat.apache.org > Cc: > Sent: Tuesday, June 19, 2012 7:40 AM > Subject: Re: Javamail exception in tomcat 7.0.11 > > On 6/19/2012 11:23 AM, Tim Watts wrote: >>> I have send mail servlet, which looks something like below, >>> >  >  p

Re: Modify HTTP status returned by stopped context

2012-06-19 Thread kharper2
*resending this to group, as it has been about 3 hours and isn't showing up yet on list* Hello Chris, > No, the webapp is selected first, then the path is trimmed (if > necessary) and then the longest-match wins when matching against > url-patterns configured in that webapp's web.xml. ... > Sor

RE: Need assistance for 2048 Extended EV SSL certificate installation

2012-06-19 Thread Martin Gainty
if you followed the instructions provided by your CA who would've provided a package containing all necessary components what are the components available in the CA provided package? did you install *each* component as suggested by CA? did you verify the ldap credentials have not changed after

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 9:55 PM, Pid * wrote: Unfortunately you've completely omitted the code for setting the session object, so we can only guess why it's not working. Yup Pid, I realized it later on when Tim highlighted it.Its fixed now.Thanks I am able to send mail comfortably. --

Re: Modify HTTP status returned by stopped context

2012-06-19 Thread kharper2
Hello Chris, > No, the webapp is selected first, then the path is trimmed (if > necessary) and then the longest-match wins when matching against > url-patterns configured in that webapp's web.xml. ... > Sorry, longest match wins for URI matching once the webapp has been selected. Makes sense. I

Re: heap memory issues

2012-06-19 Thread Miguel González Castaños
On 19/06/2012 02:47, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 6/18/12 6:34 PM, Miguel González Castaños wrote: [H]ow do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Nobody can tel

Re: tomcat maven plugin deploy to multiple tomcat instances...

2012-06-19 Thread Jeff
Finally getting back to this. This does not work. If I include the executions section, then the url reverts back to the default http://localhost:8080 suggesting that it is not even using the configurations embedded in the executions section. It only seems to work if I create separate profil

Re: heap memory issues

2012-06-19 Thread Miguel González Castaños
On 19/06/2012 06:04, Terence M. Bandoian wrote: On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32 GB? Is this a medical image processing system?

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Pid *
On 19 Jun 2012, at 06:24, Kiran Badi wrote: > Hi All, > > I have send mail servlet, which looks something like below, > > protected void doPost(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException { > String emailRecipient = request.getParameter(

Re: Modify HTTP status returned by stopped context

2012-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kyle, On 6/19/12 9:26 AM, kharp...@oreillyauto.com wrote: > "Where did you configure this? Which webapp's web.xml?" In the ROOT > context (/). I'm on Ubuntu 10.04 with defaults, so > /var/lib/tomcat6/webapps/ROOT/WEB-INF/web.xml Ok. > "Yes, the lon

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samuel, On 6/18/12 11:34 PM, Samuel V Green III wrote: > I followed directions for install and config here: > http://wolfpaulus.com/journal/mac/tomcat7 I use Tomcat 7.0.27 on my Mac every day. I'm not sure why you needed an "installation guide" when

Re: Javamail exception in tomcat 7.0.11

2012-06-19 Thread Kiran Badi
On 6/19/2012 11:23 AM, Tim Watts wrote: I have send mail servlet, which looks something like below, > > protected void doPost(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException { > String emailRecipient = request.getParameter("name"); >

Re: Modify HTTP status returned by stopped context

2012-06-19 Thread kharper2
Chris, First, thanks again for your help. I appreciate it. To answer your questions: "Where did you configure this? Which webapp's web.xml?" In the ROOT context (/). I'm on Ubuntu 10.04 with defaults, so /var/lib/tomcat6/webapps/ROOT/WEB-INF/web.xml "Yes, the longest match should win." We kee

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Oguz Kologlu
You are likely getting the same error in both cases. Just that in the first case you can see the error on the console. In the second case it's just going to a log file. It could be a bad download/unzip/permission error. Make sure you have JAVA_HOME defined (maybe in your ~/.profile ) Oz On 1

Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"

2012-06-19 Thread Daniel Mikusa
- Original Message - > I followed directions for install and config here: > http://wolfpaulus.com/journal/mac/tomcat7 > > and here: > > http://www.janhellevik.no/blog/?p=323 > > When attempting to start Tomcat I get the following error…. ( I've > googled the _ _ it out of this error and

[ANN] Apache Tomcat 7.0.28 released

2012-06-19 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.28. Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. This release is includes may improvements as well as a number of bug fixes compared to version 7.0.27

Re: Abtract methods in DelegatingResultSet

2012-06-19 Thread Mark Thomas
On 19/06/2012 06:07, Olivier Lefevre wrote: > I just noticed that the DelegatingResultSet object handed by Tomcat > sports a slew of abstract methods even though the class itself is > not declared abstract. In Tomcat 7.0.x there are only 2 such methods: > the two getObject methods taking a Class as

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread javed Ansari
Hmmm, By Session I assume you mean HttpSession. I have below code in the doPost of the Login click. HttpSession session = req.getSession(); session.invalidate(); And then I am redirecting to Login page. Next when I try to login in the same browser session, it shows an error (error code 408) pa

RE: Protect JSP from Direct Access in Tomcat 7.0.xx

2012-06-19 Thread Sharon Prober (sprober)
You could always position your jsp's inside the WEB-INF dir This will enable you to access them only through server redirects rather than absolute url's Sharon -Original Message- From: Kiran Badi [mailto:ki...@poonam.org] Sent: Tuesday, June 19, 2012 3:10 AM To: Tomcat Users

Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm

2012-06-19 Thread Casper Wandahl Schmidt
Den 19-06-2012 08:41, javed Ansari skrev: Hi, But how to call the logout on my LoginModule? That is my actual question. I do not have a LoginModule object with me. LoginModule is called by tomcat himself when we use Form Based Authentication. Read what EJP said again. When you call Session.inva