Re: Session across Realm and Servlet

2011-10-15 Thread Pid
On 14/10/2011 22:36, sailendra karthik wrote: > I need to maintain a session object between Realm and Servlet. > > I have written a CustomRealm and every thing working fine and now it > is required to send an object to servlets (possibly by > HttpRequestServlet ) But i know/think Servlet is not ye

Re: filters on j_security_check

2011-10-15 Thread Pid
On 13/10/2011 20:53, Caldarale, Charles R wrote: > If you want to do programmatic security in addition to declarative security, Or use the Servlet 3.0 APIs, supported by Tomcat. p signature.asc Description: OpenPGP digital signature

Re: appbase directory deleted partically

2011-10-15 Thread Pid
On 14/10/2011 04:07, Osamu Ochiai wrote: > Hello > > The problem: > Tomcat started successfully but the deployed webapp did not work > because the appbase directory was deleted partially. > Maybe the directory was deletedby mistake without user's > intention. > >

Re: Configure tomcat using init.d

2011-10-15 Thread Pid
On 14/10/2011 16:31, Mark Thomas wrote: > On 14/10/2011 16:15, Mark H. Wood wrote: >> This I can agree with. They don't allow application managers >> access to Tomcat's config., but anyone can drop stuff into >> /etc/init.d, whence it will run as root? Really? Something is not >> right here. +1

Re: filters on j_security_check

2011-10-13 Thread Pid
On 13/10/2011 15:09, Alejandro Soto wrote: > Hi, my name is Alejandro, I am working with Tomcat 7.0.20 and I need to know > how can I apply filters to j_security_check to verify the status of login > before continue with my authentication process. You can't use Filters because the Authentication V

Re: redirection error due to context path after JAAS authentication with mod_proxy

2011-10-12 Thread Pid
On 12/10/2011 17:51, Woonsan Ko wrote: > > - Original Message - >> From: André Warnier >> To: Tomcat Users List >> Cc: >> Sent: Wednesday, October 12, 2011 11:52 AM >> Subject: Re: redirection error due to context path after JAAS authentication >> with mod_proxy >> >> Woonsan Ko wrote:

Re: Pound Signs in Context/Paths

2011-10-12 Thread Pid
On 12/10/2011 15:55, Richard W. Adams wrote: > My Tomcat Version: 6.0.18.0 (running under Jboss) That's old. > I'm trying to understand the script we use to deploy to our Tomcat server. > = > > The scripts uses pound signs (#) instead of slashes in the path to the WAR > = > > file being deplo

Re: Loading Super Classes with ClassLoader in Tomcat

2011-10-11 Thread Pid
On 11/10/2011 12:59, Peter Lavin wrote: > > Hi Christopher, Pid, Filippo, thanks for your help. I have got this > working as required on my Tomcat server. Here is the code that works. > > public class MyCustomClassLoader extends ClassLoader { > > public MyCustomCl

Re: parallel webapp initialization

2011-10-11 Thread Pid
On 11/10/2011 08:20, Alexander Knöller wrote: > Hi Felix. > > Then you are already working on a patch? > I haven't done any tomcat development, yet. > And I am not familiar with the ettiquette for developing patches. http://tomcat.apache.org/getinvolved.html > So if you are already working on i

Re: How to externalize a webapp's logging.properties?

2011-10-11 Thread Pid
On 11/10/2011 07:28, Dan Checkoway wrote: > Hello, > > I run several webapps under one instance of tomcat (7.0.21 currently, fwiw), > and each webapp uses JDK logging and needs to log to its own separate log > file. I accomplish this by placing logging.properties in WEB-INF/classes, > and an exam

Re: EXTERNAL: Re: install of Tomcat 6.0.33

2011-10-10 Thread Pid
On 10/10/2011 21:42, Palmer, Anthony wrote: > Here is a response that I just received. What do you think? I think you should go with Mark's suggestion, which was: "Atlassian will disagree with this view but my recommendation would be to install the latest Tomcat 6.0.x release along with the lates

Re: Fwd: SessionListener.sessionDestroyed is not called when stopping web application

2011-10-10 Thread Pid
On 11/10/2011 06:24, Violeta Georgieva wrote: > Hi Chris, > > I tried: > - stopping application > - undeploying application > - stopping Tomcat > > I can confirm that in all three scenarios sessionDestroyed method is not > invoked and session.expire(false) is invoked. Is your application deploye

Re: parallel webapp initializa​tion

2011-10-10 Thread Pid *
On 10 Oct 2011, at 23:36, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Pid, > > On 10/10/2011 2:28 PM, Pid wrote: >> On 10/10/2011 10:30, sasc sasc wrote: >>> +1 for this enhancement. With configurable number of threads

Re: two questions about the session timeout in tomcat

2011-10-10 Thread Pid
ut more detail. What is slow, the application, the database or something else? Enable JMX[1] & connect VisualVM[2] to your Tomcat instance. p 1. http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#Enabling_JMX_Remote 2. http://visualvm.java.net/ > On Oct 10, 2011 3:02 PM, "Bill W

Re: How to save the log info to log file

2011-10-10 Thread Pid
On 09/10/2011 03:24, ganu MailList wrote: > In windows, How to let the tomcat write the catalina log to the log file, I > find that in the linux ,the log will be saved to the log file , > but in the window 7, the log is print to the console. how to set ? Install it as a service, configure the S

Re: parallel webapp initializa​tion

2011-10-10 Thread Pid
On 10/10/2011 19:16, Rainer Jung wrote: > On 10.10.2011 19:35, Felix Schumacher wrote: >> Am Montag, den 10.10.2011, 11:30 +0200 schrieb sasc sasc: >>> +1 for this enhancement. With configurable number of threads (default: >>> Runtime.getRuntime().availableProcessors()) >>> >>> I would also like to

Re: parallel webapp initializa​tion

2011-10-10 Thread Pid
On 10/10/2011 10:30, sasc sasc wrote: > +1 for this enhancement. With configurable number of threads (default: > Runtime.getRuntime().availableProcessors()) Such a change might prove unwelcome for people who've got (however fragile) configurations which rely on apps starting in a specific order.

Re: Loading Super Classes with ClassLoader in Tomcat

2011-10-10 Thread Pid
On 10/10/2011 18:51, Peter Lavin wrote: > Hi Filippo, tks for your reply. > > I'm not actually specifying any ClassLoader, perhaps I should? How > should I specify a ClassLoader to use when dynamically loading a class? You can pass one into the Constructor of your own classloader: public Custom

Re: two questions about the session timeout in tomcat

2011-10-07 Thread Pid
On 07/10/2011 00:20, Bill Wang wrote: > Hi Tomcat Guru, > > Recently one of Tomcat application has performance issue, which get slow > respond with high sessions. You should find out exactly why that is, rather than guessing. > One team member recommend me to adjust the session timeout from 60

Re: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Pid *
On 6 Oct 2011, at 19:22, Lahiru Gunathilake wrote: > Hi Charles, > > This is my usecase, I want to register my application URL to a repository > and there is another remote application who reads that URL somewhere and > invoke my application. So during the startup I need to register them before >

Re: Using multiple login pages

2011-10-06 Thread Pid
On 05/10/2011 18:51, Martin O'Shea wrote: > > /jsp/index/newjsp.jsp > This is incorrect, it should contain a list of welcome-file elements which indicated which files can be used as index files, when found in a directory. It shouldn't give a full path to a specific file: ind

Re: Logging properties of attributes in the HttpSession

2011-09-30 Thread Pid *
The changes from the Spring security filter can't be seen by the access log valve. p On 30 Sep 2011, at 12:40, Richard Sayre wrote: > I'm still having some trouble. I added the Spring filter and then in > my web app I called: > > getRequest().getRemoteUser() and getRequest().getUserPrincipal()

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-09-28 Thread Pid
ould read >> http://tomcat.apache.org/security-6.html >> >> as well as all the fixed issues in changelog. >> >>> I have recently enabled catalina_pid functionality using environment >>> variable. >>> The PID file got created and contains +1 PID number. &

Re: Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread Pid
All of which is splendid, but it would've been better if you hadn't hijacked the "Incorporating changes & compiling Tomcat" thread by replying to my last message & editing the subject & body. Please start a new thread instead, in future. p signature.asc Description: OpenPGP digital signature

Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Pid
On 28/09/2011 18:44, Wilde, Bruce R. wrote: > So, what are security minded system administrators to do about > mitigating CVE-2011-3190 against V6.0.33? > > From the > http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.34_( > not_yet_released) page > > "Mitigation options: > >

Re: Incorporating changes and compiling Tomcat

2011-09-28 Thread Pid
On 27/09/2011 21:58, gilbert.be...@bcbssc.com wrote: > Can any one please direct me to instructions on how to incorporate fixes and > then recompile. Target OS is Windows Server 2003. Thanks! Note: Tomcat doesn't issue patches, a new version is released. Unless you are planning to write patches

Re: TOMCAT-7.0 and SSL issues

2011-09-28 Thread Pid
On 28/09/2011 17:17, Alexandre Adao wrote: Please start a new email, rather than replying to an existing thread "2 servlets on tomcat." This is called thread hijacking. p signature.asc Description: OpenPGP digital signature

Re: Session management issue with Tomcat

2011-09-24 Thread Pid
On 23/09/2011 19:47, Martin O'Shea wrote: > I should have mentioned that as only one user can be logged into a browser > session at any one time, they do have to log out for another user to log on. > But the logging out process does not do any cookie handling or > server-session invalidation. The

Re: Session management issue with Tomcat

2011-09-23 Thread Pid
On 22/09/2011 19:49, Martin O'Shea wrote: > To answer your questions: > > Is there a reason this data is in a custom cookie, rather than the > session, via setAttribute()? > > The cookie is dedicated and meant to be persistent. The idea is that a user > is recognised by the system upon returning

Re: Limiting access to resources, based on username, not on the user role

2011-09-23 Thread Pid
On 22/09/2011 23:23, Omar Belkhodja wrote: > Thanks Pid. What do you mean by "a mapping" ? Is it some kind of servlet > that would read the file, and create the HTTP answer after having checked > the login ? An arbitrary URL structure: /images/{user}/{imageid} If /images/

Re: Limiting access to resources, based on username, not on the user role

2011-09-22 Thread Pid
On 22/09/2011 23:03, Omar Belkhodja wrote: > Hello, > > I'm trying to create some kind of web application, that will provide access > to sensitive data for users. Each user, should login first, then after that > he will be able to display a set of pictures. So the url for pictures, > should have a

Re: Tomcat 7 sometime returns wrong IP address with request.getRemoteAddr()

2011-09-22 Thread Pid
On 22/09/2011 03:06, Caldarale, Charles R wrote: >> From: charlesk40 [mailto:charles...@yahoo.com] >> Subject: Tomcat 7 sometime returns wrong IP address with >> request.getRemoteAddr() > >> box1 makes a request to Tomcat7 server but the request.getRemoteAddr() >> returns the IP address of box2

Re: [tomcat-6.0.33] META-INF/context.xml Environment not working

2011-09-22 Thread Pid *
Why not do your initialisation in the Servlet.init() method? p On 22 Sep 2011, at 16:42, Tim Watts wrote: > Hello, > > My very basic servlet fails to initialize when trying to read its JNDI > environment entry. The app context name is xbasic. The context.xml is in > xbasic.war's META-INF direc

Re: Apache Tomcat 5.5.34 Question (UNCLASSIFIED)

2011-09-22 Thread Pid *
On 22 Sep 2011, at 14:21, "BARRON, HAROLD H CTR DISA EE" wrote: > Classification: UNCLASSIFIED > Caveats: NONE > > Thanksit's kind of hard to understand how to implement this workaround > but I will look into it. Do you use HTTPD with mod_jk or mod_proxy_ajp in front if Tomcat? What is ha

Re: Session management issue with Tomcat

2011-09-22 Thread Pid *
Is there a reason this data is in a custom cookie, rather than the session, via setAttribute()? What is the expiry time of the custom cookie? How exactly are you invalidating this other cookie, when you invalidate the session? p On 22 Sep 2011, at 15:08, "Martin O'Shea" wrote: > OK. This is

Re: Session management issue with Tomcat

2011-09-22 Thread Pid
On 22/09/2011 13:56, Shanti Suresh wrote: > Hi Martin, > > You will have to expire/invalidate the session in the code upon user logout. > This way when the cookie comes in, there is no corresponding session-ID and > the system will create a new session. Are you doing that already? Does that

Re: Expected Release Date

2011-09-21 Thread Pid
On 21/09/2011 16:15, Wilde, Bruce R. wrote: > When is Tomcat version 6.0.34 expected to be released? There are no fixed release dates, but Tomcat 6 releases about 4 times per year. p signature.asc Description: OpenPGP digital signature

Re: default realm set to JAASRealm in StandardEngine

2011-09-21 Thread Pid
On 21/09/2011 15:54, Michael-O wrote: > Christopher, > > Christopher Schultz schrieb: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mike, >> >> On 9/21/2011 3:52 AM, 1983-01...@gmx.net wrote: >>> I have removed the MemoryRealm from my server.xml in Tomcat 6.0.33 >>> and noticed that th

Re: Users and authentication - how?

2011-09-20 Thread Pid
On 20/09/2011 15:40, Leo Donahue - PLANDEVX wrote: >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: Tuesday, September 20, 2011 6:29 AM >> To: Tomcat Users List >> Subject: Re: Users and authentication - how? >> >> On 18/09/20

Re: Users and authentication - how?

2011-09-20 Thread Pid
On 18/09/2011 21:42, java4dev wrote: > * Implement your own using phase listeners. WTF is a 'phase listener'? p signature.asc Description: OpenPGP digital signature

Re: Display a static page while application loading.

2011-09-20 Thread Pid
On 19/09/2011 16:52, David kerber wrote: > On 9/19/2011 10:50 AM, Eric Bouer wrote: >> >> Yeah but high availability/scaling solutions or a dynamic nature of >> application where new features are added frequently are common. > > HA and scaling solutions typically employ a load balancer (i.e. Apach

Re: mod_proxy_balancer anomaly Question

2011-09-15 Thread Pid
On 15/09/2011 16:18, Shanti Suresh wrote: > All, > > I am trying to understand some anomaly with mod_proxy and mod_proxy_balancer. > mod_proxy works fine if the (reverse)Proxying is done to the local Tomcat > Engine rather than going through the balancer. If it goes through the > "balancer",

Re: Request params randomly null in servlet(s)

2011-09-15 Thread Pid
On 15/09/2011 14:46, Darius D. wrote: > > > > Pid * wrote: >> >> >> What is your server.xml config? (please remove comments, passwords etc >> & post it inline, in the response) >> >> > > Here it is, nothing special ( except usage

Re: Request params randomly null in servlet(s)

2011-09-15 Thread Pid
On 14/09/2011 16:38, Darius D. wrote: > >> p >> > > Well the problem is that we already looked for that mode of failure, our > servlet class has 0 instance variables... Basically it is a method like i > pasted before, doing HttpSession session = request.getSession(); and if > session is valid (i

Re: HTTP errors Logging

2011-09-15 Thread Pid
On 14/09/2011 16:26, Michael Gesundheit wrote: > Hi, > I could not find anything in the archive so here is my question:Is there any > way to get DEBUG or any log regarding HTTP error messages? > I currently get a 403 but, so far, can't find the root cause. > Thanks,-Michael Please start an entire

Re: Using calendar .ics files over Tomcat 5.5

2011-09-15 Thread Pid
On 15/09/2011 13:28, André Warnier wrote: > Pid wrote: >> On 15/09/2011 02:08, Dean Hoover wrote: >>> We're using Lightning (add-on from Thunderbird email client). The >>> error we >>> get is MODIFICATION_FAILED, which from some review points to >>

Re: Using calendar .ics files over Tomcat 5.5

2011-09-15 Thread Pid
On 15/09/2011 02:08, Dean Hoover wrote: > We're using Lightning (add-on from Thunderbird email client). The error we > get is MODIFICATION_FAILED, which from some review points to permissions to > the .ics file. > > On Wed, Sep 14, 2011 at 4:34 PM, Pid wrote: > >&

Re: Using calendar .ics files over Tomcat 5.5

2011-09-14 Thread Pid
On 14/09/2011 18:14, Dean Hoover wrote: > The problem I am having is that we are unable to modify (add/remove calendar > entries) after the move. How are you trying to update them? p signature.asc Description: OpenPGP digital signature

Re: Request params randomly null in servlet(s)

2011-09-14 Thread Pid
On 14/09/2011 11:55, Darius D. wrote: > > > > Pid * wrote: >> >> doProcess(req, res) is not a Servlet API method. What other method(s) >> call it? >> >> Usually this type of thing occurs because the request (or response) is >> being held as an

Re: Request params randomly null in servlet(s)

2011-09-14 Thread Pid
On 14/09/2011 08:34, Darius D. wrote: > > Hi, > > we have a problem of request params beeing null in servlets where it > shouldn't be ( post or get, in get we can even see that > request.getQueryString() is fine, but params are null). > > It is more pronounced when using dedicated thread executo

Re: Tomcat and MS LDAP Configuration Problem

2011-09-14 Thread Pid
On 13/09/2011 23:35, Rudy Gireyev wrote: > If I change the url-pattern to /* then the user is authenticated each > and every time the application is accessed and the > request.getRemoteUser() is then set to that user name. But then I > cannot store anything in the session of the application. When I

Re: Urgent -- Need help configuring JNDI realm

2011-09-13 Thread Pid
On 13/09/2011 19:20, Savitha Akella wrote: > Hi, > Any help is appreciated. http://catb.org/~esr/faqs/smart-questions.html p signature.asc Description: OpenPGP digital signature

Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-09-13 Thread Pid
On 13/09/2011 13:19, Darius D. wrote: > > Hi, > > well the problem is that we have the same problem, real strange NPEs in > servlets. > > It is more pronounced when using dedicated thread executor, moving to > threads provided by connector itself (with maxThreads="500" option using NIO > ) seems

Re: Clustering / High Availability edge cases?

2011-09-13 Thread Pid
On 13/09/2011 10:51, John Bass wrote: > Hi all, > > I'm relatively new to clustering with Tomcat and I'm trying to understand > the edge cases. If I'd like to guarantee continuous availability, what are > the caveats? > > As I understand it, Tomcat clustering will ensure that session information

Re: Save session information in Memory database

2011-09-09 Thread Pid
On 09/09/2011 15:58, Ashish Kulkarni wrote: > Hi > > The problem is we are running on 32 bit system and cannot go beyond 1.5 GB > or ram, because of some clients limitations. > > Is it possible to save session in database, instead of heap memory which > would help us, the speed is ok if it slows

Re: tomcat manager not working

2011-09-08 Thread Pid
On 08/09/2011 21:06, Jordan Michaels wrote: > > Make sure the "localhost" server.xml mapping points to the tomcat > webapps/ROOT/ directory and you should be set to use the Tomcat webapps. What does that mean in terms of the XML elements & attributes in server.xml? p signature.asc Descriptio

Re: JNDI configuration with 6.0.29

2011-09-07 Thread Pid
On 06/09/2011 21:11, Anjib Mulepati wrote: > > Hi All, > I am trying to setup JNDI mapping for oracle JDBC Connection Pooling with > Tomcat 6.0.29. This is giving me following error > javax.naming.NameNotFoundException: Name dynic is not bound in this Context > org.apache.naming.NamingConte

Re: servlet unavailable

2011-09-04 Thread Pid
On 03/09/2011 22:36, Adam Posner wrote: > Posner to users > show details 8:16 PM (2 minutes ago) > > Hello all: > > > I am hoping someone can help with this. Tomcat 6.0.28 keeps giving me, > saying 'Servlet Front Controller is not available' > I am using struts 1, the jar file is struts-core-1

Re: [Solved] Two SSL certs. for same web app

2011-08-31 Thread Pid
On 31/08/2011 11:48, Pid wrote: > On 31/08/2011 08:24, Greg Johnson wrote: >> No, and you don't need to make any changes other than adding the extra >> . Traffic from both s will be routed to the single >> and . >>> Thanks for the advice, Chuck. I did en

Re: [Solved] Two SSL certs. for same web app

2011-08-31 Thread Pid
On 31/08/2011 08:24, Greg Johnson wrote: > No, and you don't need to make any changes other than adding the extra > . Traffic from both s will be routed to the single > and . >> Thanks for the advice, Chuck. I did end up needing to slightly change the >> Host and Engine declarations to point t

Re: manager / deploy context file

2011-08-27 Thread Pid
On 26/08/2011 19:21, Johannes Ernst wrote: >> The documentation has to be updated. Please file an issue. > > https://issues.apache.org/bugzilla/show_bug.cgi?id=51727 > > Personally I feel the documentation is correct and the code is wrong. What > point is there to have a path parameter in contex

Re: Need help regarding removing port number from URL

2011-08-26 Thread Pid
On 26/08/2011 17:02, Shanmukha Venkata Sri ChandraSekhar Nallapati wrote: > Hi, > > I need a help regarding removing port number from URL. > > For example: > Supposing my URL is, http://abcd.com:4040/context-path/gui/. > I wish Apache Tomcat to handle the request on same tomcat process, when > us

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Pid
On 24/08/2011 21:21, Mattmann, Chris A (388J) wrote: > Thanks Chris for the advice. Or people use an MVC framework of some sort to map URLs to methods. p > Cheers, > Chris > > On Aug 24, 2011, at 11:26 AM, Christopher Schultz wrote: > > Chris, > > On 8/24/2011 10:56 AM, Mattmann, Chris A (

Re: Conditional Branch from Servlet to URL

2011-08-24 Thread Pid
On 24/08/2011 03:46, Leo Donahue - PLANDEVX wrote: > > From: Donald Jolley [jolleyt...@gmail.com] > Subject: Conditional Branch from Servlet to URL > > I'm not at all surprised about the "request" and "response" symbols as they > appear to be undefined. > I re

Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread Pid
On 24/08/2011 09:44, André Warnier wrote: > Ana Maria Teodorescu wrote: >>Dear Tomcat users and experts, >> >> I downloaded Netbeans 6.9.1 including Apache Tomcat on my Mac snow >> leopard. >> When I go to the page http://localhost:8080/ the message that I've setup >> correctly Tomcat appears.

Re: how to link a webapp deployed on one tomcat server on another tomcat server?

2011-08-23 Thread Pid
On 23/08/2011 08:32, sanre6 wrote: > > > i have a main domain tomcat server ,i want to link a webapp that's deployed > in an another tomcat server which is in the LAN of the main server . i do > not want to use apache2 server and i cant deploy the app on the main server > .how can i do this

Re: Logging in options in Tomcat 6.0.26

2011-08-23 Thread Pid
On 23/08/2011 10:48, Martin O'Shea wrote: > Hello > > I wonder if anyone can advise? I am using Tomcat 6.0.26 in an application > with a MySQL 5.* back end database. > > Currently my users' username and userrole details are stored in the User > table of the database. > > At the moment though,

Re: Tomcat 7 + VirtualHost

2011-08-22 Thread Pid
On 22/08/2011 13:15, Piotr Pawlowski wrote: > A lot of hyperlinks are hard-coded in it. That can't possibly go wrong... p signature.asc Description: OpenPGP digital signature

Re: Tomcat 7 + VirtualHost

2011-08-22 Thread Pid
On 22/08/2011 11:51, Piotr Pawlowski wrote: > Dear All, > > I have following issue: > I have domain, example.com. My application is running under > http://example.com/myApp . Unfortunately every time I need to enter full url > to access my application (example.com/myApp). Is it possible to configu

Re: [OT] Re: How to handle the AWT-Windows thread?

2011-08-21 Thread Pid
On 21/08/2011 01:19, Christopher Schultz wrote: > Pid, > > On 8/20/2011 6:06 PM, Pid wrote: >> On 19/08/2011 15:45, Christopher Schultz wrote: >>> Dan, >>> >>> On 8/18/2011 5:22 PM, Dan Armbrust wrote: >>>> Toolkit.getDefaultToolk

Re: AW: How to cancel upload?

2011-08-21 Thread Pid
On 21/08/2011 08:08, Steffen Heil (Mailinglisten) wrote: >> > AFAIK Tomcat processes the request before the user code in a servlet is >> > active, so you can't do it from inside a servlet. > Hm. > Tomcat does NOT parse these POST parameters (at least not by default and not > in my case). > I know f

Re: How to cancel upload?

2011-08-20 Thread Pid
On 19/08/2011 14:37, Steffen Heil (Mailinglisten) wrote: > Hi > > Short question: How can I prevent tomcat to receive the complete post data? Stop sending the data before it's all been sent. > Long question: > > I have a servlet that uses apache commons fileupload to process incoming > uploads

Re: Tomcat 7 Directory Alias (content outside war file)...how to?

2011-08-20 Thread Pid
On 20/08/2011 21:08, Michael McCutcheon wrote: > Hello, > > I keep reading about how tomcat 7 has the ability to have a war file > reference external content (i.e. a directory containing images) outside > of the war file. > > Can someone point me to the documentation of this feature? Here: htt

[OT] Re: How to handle the AWT-Windows thread?

2011-08-20 Thread Pid
On 19/08/2011 15:45, Christopher Schultz wrote: > Dan, > > On 8/18/2011 5:22 PM, Dan Armbrust wrote: >> Toolkit.getDefaultToolkit().createImage(new byte[]{}); > > Simply calling getDefaultToolkit will do the trick: you don't have to > waste time creating an image. > > I'll implement this in the

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Pid
On 18/08/2011 22:22, Dan Armbrust wrote: > On Thu, Aug 18, 2011 at 2:13 PM, Christopher Schultz > wrote: > >> The JVM should not launch more than one AWT thread, so you should be >> okay. The only issue would be whether or not it inherits the webapp's >> context ClassLoader which would really rep

Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-08-17 Thread Pid
On 16/08/2011 08:08, rakesh k wrote: > Hi Andre > > Sorry for this, I had pasted the entire xml file.. I am hereby providing the > server.xml with removing the commented parts. I've edited the below a little. > maxThreads="150" minSpareThreads="4"/> > > port="80

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-15 Thread Pid
On 15/08/2011 19:09, Lataxes, Karl wrote: > I wrote the code to generate the session id and add it as an HTTP header at > the recommendation of someone on the users list. The problem now is > appending the jvmroute to the generated session id in order to get session > stickiness to work. If th

Re: Tomcat war context path

2011-08-15 Thread Pid
On 15/08/2011 18:05, Mohit Anchlia wrote: > Is this even possible with tomcat? In Tomcat 7.0: abc##SNAPSHOT-01.war abc##SNAPSHOT-02.war abc##SNAPSHOT-03.war abc##SNAPSHOT-04.war etc > On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia > wrote: >> Currently when I deploy abc-SNAPSHOT-01.war

Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-08-12 Thread Pid
On 12/08/2011 12:31, rakesh k wrote: > Hi Igor Cicimov > > Thank you very much for replying .. > port="8082" protocol="HTTP/1.1" >connectionTimeout="2" >redirectPort="8443" /> > That doesn't answer the question. Please remove all of the co

Re: Cannot make war file as default app

2011-08-12 Thread Pid
On 12/08/2011 09:32, exquisite wrote: > Hi Mark, > > I tried that way as well but i get the same issue. Tomcat does not even > deploy my war. All it says on console is ' Server startup in xxx ms" and > stays there forever. > > Im getting confused and wondering if there is any mistake in the Tom

Re: Parallel Deployment & Sessions: What am I Missing?

2011-08-12 Thread Pid
On 12/08/2011 04:01, Jonathan Rosenberg wrote: > Trying to fall asleep and just had a thought on my problem: are > context-param values shared across different context versions (as > implemented in parallel deployment)? Nope. The apps are self-contained. C > -- > JR > On Aug 11, 2011 6:10 P

Re: Generating SSL certificates

2011-08-12 Thread Pid
On 12/08/2011 02:26, Darryl Lewis wrote: > Our certificates are about to expire and I need to generate new ones for > tomcat. I'm using keytool, but getting a strange error. Please start an entirely new thread, rather than replying to an existing email & just editing the subject & body (which is

Re: Get SSO ID on server

2011-08-12 Thread Pid
On 11/08/2011 22:31, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chema, > > On 8/11/2011 5:00 PM, Chema wrote: >> How I can get SSO ID on a servlet? > > Get the cookie value for JSESSIONIDSSO. > >> I want to know this ID without browser sends a cookie to se

Re: Parallel Deployment: Get Context Version #

2011-08-11 Thread Pid
On 11/08/2011 02:55, Jonathan Rosenberg wrote: > Two benefits: > > 1) Allows incompatible upgrades. > 2) Allos existing sessions to complete. Parallel deployment does allow existing sessions to complete. Only new sessions are directed to the newest application. Are you seeing different behaviour

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Pid
t; Huh? App only needs to see its own version. Sorry, I thought you were sorting version numbers? p > -- > Jonathan Rosenberg > Founder & Executive Director > Tabby's Place, a Cat Sanctuary > http://www.tabbysplace.org/ > > > On Wed, Aug 10, 2011 at 4:00 PM

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Pid
On 10/08/2011 19:55, Jonathan Rosenberg wrote: > Quick answer: I want to have my Grails app determine at runtime which > version it was deployed as (bad English, I know). > > Longer answer: > > I want to use parallel deployment as an easy way to allow existing > sessions to continue while redirec

Re: TC 6.0.20 Cleanup after application crash

2011-08-10 Thread Pid
On 10/08/2011 19:26, Dante Bell wrote: > after 15 minutes it starts serving up db responses! Sounds a bit like an OutOfMemoryError, which is not uncommon during load tests. If the 'customised' load tester is a bit rough around edges, what are you really testing? p -

Re: URL rewrite

2011-08-09 Thread Pid
On 08/08/2011 20:36, Mohit Anchlia wrote: > I need to re-write URL using some Http Headers. Can I use any headers? > Or only the one listed here? > > http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html > > Is HTTP_HOST always set? I printed headers of my servlet and this is > what I see. I used

Re: Tomcat 7.0.19 overrides the http status code on forward

2011-08-08 Thread Pid
On 08/08/2011 15:07, Eugen Paraschiv wrote: > I'm seeing some strange behavior with a RequestDispatcher forward in Tomcat. > The the exact code doesn't generate the problem on Jetty, so it is probably > related to the servlet implementation. > > The problem is as follows: Spring does a forward on

Re: Application error after move of site

2011-08-08 Thread Pid
On 08/08/2011 13:46, Dave Filchak wrote: > Hi, > > I had to switch hosts and one of the sites that I inherited is a tomcat > site. After the move most of the site is fine but on a number of links, > I get the following error: > > Error reading properties file: Please check the following: 1. That

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread Pid
On 08/08/2011 10:30, jenskreidler wrote: > > > Pid * wrote: >> >> On 08/08/2011 09:56, jenskreidler wrote: >>> >>> Hi tomcat-users, >>> >>> using tomcat 7, is it possible to mount the ROOT context path for a .war >>> file, w

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread Pid
On 08/08/2011 09:56, jenskreidler wrote: > > Hi tomcat-users, > > using tomcat 7, is it possible to mount the ROOT context path for a .war > file, where the .war file will have a variable file name, i.e. building a > .war by a continuous integration server. > For example, you get a myapp-3.2.0-20

Re: Problem with cookies

2011-08-08 Thread Pid
On 08/08/2011 08:29, Oleg Belykh wrote: > I have a strange problem when accessing servlet on Tomcat 7.0.14 server with > Safari and Google Chrome browsers. There is no cookies. No JSESSIONID, > nothing in Javascript: document.cookie variable. But i see that cookie > JSESSIONID is registered in "

Re: Plz remove my contact

2011-08-08 Thread Pid
On 08/08/2011 08:34, MUKHERJEE, SUPRATIM (ATTSI) wrote: > Hi, > > I no longer wish to be part of this mailing list. Please remove me from the > list. > > Regards, > Supratim Mukherjee | Mobility ProdOps and Tools Team > Cube: 9-3n250d, 900 North Point Parkway, Alpharetta GA 30005 > (D) 678-893-

Re: Tomcat 7 and Java 7

2011-08-05 Thread Pid
On 05/08/2011 16:59, Jarnagin.Andrew wrote: > > It is working for me now. I think it had to do with remnants of multiple JDK > versions on my machine including RC Java 7 releases. It caused many > exceptions to show in the console on start-up and a 404 response for > http:localhost:8080. I un

Re: Urgent: Tomcat 6.0.20 on Solaris 10 Reaches max threads and is non responsive

2011-08-05 Thread Pid
On 05/08/2011 16:12, Mark Thomas wrote: > On 05/08/2011 15:34, Dante Bell wrote: >> Hi, >> >> I'm running out of ideas on what to try for this customer. Their load >> tests show that Tomcat is getting to a point where it no longer services >> requests. > > Let me guess. It is fine for low loads bu

Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5

2011-08-05 Thread Pid *
On 4 Aug 2011, at 08:23, Javed wrote: > > I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was > working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat > 7. > > The application works fine for most of the part but gives problem with > URLRewriteFilter. > I

Re: 503 error - service not available

2011-08-04 Thread Pid
On 04/08/2011 21:36, Brendon wrote: > From what I gether from this thread is sounds like the Apache web server > is not active and the problem is not ApacheTomcat. If HTTPD wasn't active there'd be nothing in the mod_jk log and no 503 response... p --

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-04 Thread Pid
On 02/08/2011 02:11, Christopher Schultz wrote: >> > public HTMLEncoder() { mapChar2HTMLEntity= new HashMap(); int >> > longueur = characters.length; >> > >> > for (int i = 0; i < longueur; i++) mapChar2HTMLEntity.put(new >> > Character(characters[i]), entities[i]); } > So you have Character -> St

Re: 503 error - service not available

2011-08-04 Thread Pid
On 04/08/2011 03:38, Igor Cicimov wrote: > Obviously apache can't connect to tomcat. Any firewall/load balancer changes > maybe done last night between apache and tomcat? Can you access tomcat apps > bypassing apache? Can you telnet to tomcat server on the tomcat port from > the apache? Any errors

<    4   5   6   7   8   9   10   11   12   13   >