Hook into Tomcat before web applications load

2011-03-19 Thread Pulkit Singhal
Hello, Is there a hook exposed in tomcat such that a custom class can be introduced to do some work at a point where we have a list of the docBase attribute for all the web applications that will be hosted by this tomcat instance ... while one of the web application specific handling has begun

Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
:0906A068:PEM routines:PEM_do_header:bad password read) --- Pulkit Singhal [EMAIL PROTECTED] wrote: Hello, Can you tell me if you are replacing this when you posted your question or if this is what you really have in your server.xml file: ${catalina.base} - Pulkit

Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
password is the default one 'changeit' so its not mandatory to supply --- Pulkit Singhal [EMAIL PROTECTED] wrote: Don't you need to specify: keystorePass=somePassword as well? On Jan 11, 2008 4:12 PM, Neha Agrawal [EMAIL PROTECTED] wrote: hi i have it my server.xml

How to specify attributes for Resource

2008-01-10 Thread Pulkit Singhal
Hello, I would like to specify the following attribute in the server.xml file in windows: url=jdbc:derby:net://ip:port/path/to/database;retrieveMessagesFromServerOnGetMessage=true; But the problem is that I can't figure out the right way to escape the path to the database in windows.

Why are log4j jars treated differently?

2007-08-21 Thread Pulkit Singhal
Hello, I'd like to ask a question regarding the log4j jars and how tomcat treats/handles them. Tomcat version: 5.5.23 Log4j version: 1.2.5 (I don't think that versions matter here) If one deploys as follows: ${tomcat_home}/shared/lib/log4j.jar ${tomcat_home}/shared/classes/log4j.properties

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
server.xml. Any suggestion ? Pulkit Singhal a écrit : Hi Frederic, I don't know about HttpSession.method for settign the URIEncoding. But you could always do somethign along the lines of: String uri_utf8 = new String (uri.getBytes(iso-8859-1), UTF-8); inside the application. On 7/26/07, Frederic

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
Hi Frederic, I don't know about HttpSession.method for settign the URIEncoding. But you could always do somethign along the lines of: String uri_utf8 = new String (uri.getBytes(iso-8859-1), UTF-8); inside the application. On 7/26/07, Frederic Bastian [EMAIL PROTECTED] wrote: Hi folks :) I

Re: Reloading keystore - how to register a new TrusStore Manager for Tomcat?

2007-06-11 Thread Pulkit Singhal
Hello, I am not sure what you are asking for here. You say that you fond some instructions on Creating Your Own X509TrustManager ... thats good. 1) Given that you have these instructions, whats the issue at hand? Conceptually (and without even looking at any content other than the title) I would

Re: I've been trying to unsubscribe from this list for years.

2007-05-17 Thread Pulkit Singhal
You don't leave the mob and you don't leave tomcat users list. Just some humor. On 5/17/07, Keith Adams [EMAIL PROTECTED] wrote: No matter how many times I send a blank email to: [EMAIL PROTECTED], like the one I sent at 11.19 Eastern this morning, nothing happens. I use a rule to delete them

Re: DB2 DataSource.

2007-04-12 Thread Pulkit Singhal
The following is copy/pasted from http://jtds.sourceforge.net/faq.html#noSuitableDriver Why do I get a java.sql.SQLException: No suitable driver when trying to get a connection? The No suitable driver exception is thrown by the DriverManager when none of the registered Driver implementations

Re: Filter class not found problem

2007-04-02 Thread Pulkit Singhal
Hello Frank, It seems to me that the error is not so much about the Filter you want to load but the fact that it can't find the javax/servlet/Filter class which is (I think) supposed to be part of the servlet-api.jar ... I know you said that its bundled but try moving that jar around. Or at

Re: HOW TO turn on client Certificate with pop choose a digital certificate window

2007-02-16 Thread Pulkit Singhal
For IE if you try to go to a https URL directly that requires Client Authn, IE itself will pop u a winddow. On 2/15/07, Zhan, Jimmy [EMAIL PROTECTED] wrote: Hi, I have set up HTTPS for tomcat without client certificate, and it is running good. Now I want to turn on the client

Re: Questions regarding SSL

2007-02-14 Thread Pulkit Singhal
Can we have a look at the connectors chunk of your server.xml file? On 2/14/07, Bryant McClellan [EMAIL PROTECTED] wrote: I've tried to do my homework but I'm still having trouble with getting HTTPS to work. For starters: Server is Windows 2003 Standard Server, SP1. Java version is

Re: Windows Authentication against multiple domains

2007-02-11 Thread Pulkit Singhal
I can't suggest any open-source/free products but allow me to suggest reading the following article if you want to roll your own solution one of these days in the windows world: http://www.microsoft.com/msj/0899/kerberos/kerberos.aspx Once you read it, I hope you will be able to see how you can

Re: How to display chinese chars in JSP / encoding UTF-8 without @page encoding tag

2007-01-14 Thread Pulkit Singhal
I think you can set the -DFileEncoding flag or something to be UTF-8 in the java options of the script you use to start tomcat. On 1/11/07, PATTUS, Jean-Philippe [EMAIL PROTECTED] wrote: Hello the list, i'm trying to display chinese chars in my web application. I have managed to display these

Re: Problem with UTF-8 characters in JSP page

2006-09-29 Thread Pulkit Singhal
Hi Jim, The very first thing I would be tempted to try the following Copyright \ua9 2006

Re: Error: No available certificate or key corresponds to the SSL cipher suites which are enabled.

2006-09-13 Thread Pulkit Singhal
I didn't specify the keyStore parameter in here because I only have one keystore at C:\Documents and Settings\HP_Administrator\.keystore or do Iexplicitely need to do that? I read somewhere that I didn't. Personally, I can not even begin to imagine how Tomcat would know where to find the

Re: SSL Keystore - help

2006-08-29 Thread Pulkit Singhal
Hello, I'm going to assume that you want server authN to function between the two machines, in which case you should exchange the certificates between IIS and Tomcat. These certificates that you exchange between IIS and Tomcat will ofcourse be the certificates that you export from the keypairs

Re: session drop from https to http

2006-08-27 Thread Pulkit Singhal
Hmm...kind of makes sense doesn't it? I mean there are a lot of apps that use the sessionID as a key of sorts for access or cookie management so its ok to go from a http to https connections with the same session ID because extra security is involved but not ok to go from https to http connection

Re: Multiple apache web servers single Tomcat, how many Connectors are needed?

2006-08-25 Thread Pulkit Singhal
Hi, I'm not an expert but just thinking out loud here: If in the long run you are not going to make - distinguishing the requests coming from either of the Apache instances - into a requirement. Then I do not see why you would need more than 1 JK connector. If there is absolutely never going to

Re: Tomcat does not sense the source modifications!!!

2006-07-31 Thread Pulkit Singhal
You could remove the war while tomcat is running and then redeploy it On 7/31/06, Ach [EMAIL PROTECTED] wrote: Hi all, I have a really bad problem with tomcat 5.5.x. I deploy an app (developed in Eclipse 3.1.2 using tomcat sysdeo plugin) to tomcat. Now I have a index.jsp that is just a:

Re: Tomcat5.5 and IIS 6.0 problem

2006-07-29 Thread Pulkit Singhal
i didn't touch the subject line...i have no clue what u r talkign about On 7/26/06, Mark Thomas [EMAIL PROTECTED] wrote: When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list

Re: Tomcat5.5 and IIS 6.0 problem

2006-07-26 Thread Pulkit Singhal
- JK connector - ISAPI Redirector: isapi_redirect.msihttp://tg-corpserver.cup.hp.com:8080/corpwiki/attach?page=TomcatConnectors%2Fisapi_redirect.msiis an Installer package for IIS 5 and later Web Server that takes care of all the configuration

Re: Tomcat 5.X

2006-03-16 Thread Pulkit Singhal
What URL did you use? Did you try others such as http://localhost:8080/jsp-examples/; ? On 3/16/06, Jorge Herrera Aguilar [EMAIL PROTECTED] wrote: I Install Tomcat on my pc, and i'm able to start it and to stop it, but when i try to view a simple index.html page it cames back with an error

Re: Tomcat 5.X

2006-03-16 Thread Pulkit Singhal
From: Pulkit Singhal [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Tomcat 5.X Date: Thu, 16 Mar 2006 09:28:24 -0800 What URL did you use? Did you try others such as http://localhost:8080/jsp-examples/; ? On 3

Re: Best IDE for dev of Tomcat Servlet?

2006-02-16 Thread Pulkit Singhal
I would say Eclipse web edition...but you have to figure out how to integrate it with tomcat...shld be able to find a tutorial on that out there somewhere. On 2/16/06, Mike Reynolds [EMAIL PROTECTED] wrote: What is the best development environment for developing a Tomcat servlet?

Re: Loading data in tree model from database table by Java

2006-02-16 Thread Pulkit Singhal
I guess you would just have to write a function to process the data. you probable need to look at the result set and use a data structure where you can, one by one, add the each child to the parent. Then you could write a output method that goes through this and for each node tabs the children and

Re: Having problem with special characters

2006-02-13 Thread Pulkit Singhal
Hi I think there were a few posts earlier regarding consistent UTF-8 encoding in tomcat. If I remember correctly, this was resolved by setting some flags in a few files. I know I'm being awfully vague :( but I know its there. Cheers, - Pulkit On 2/7/06, Randy Paries [EMAIL PROTECTED] wrote:

Re: mod_jk / 503 Error

2006-01-25 Thread Pulkit Singhal
Hello Neal, What stands out in my mod_jk.log is this line: trying to connect socket 10 to 127.0.0.1:8009 The system seems to be trying to connect via the local host. As you can see from my config files below I do not reference localhost or the 127.0.0.1 IP address. Best I can tell JK

Re: How can I take a webapp temporarily out of service using mod_jk?

2006-01-25 Thread Pulkit Singhal
Hello, Ok this might be a step in the totally wrong direction for you...but I just saw another post...where the problem is that the user sees the out of service message...LOL So may be you'll have some luck if you head over there and checkout what his config is!!! The subject of this topic is:*

Re: Remote address filter for host Alias

2006-01-20 Thread Pulkit Singhal
Using RemoteAddrValve as Host/ subelement won't work, as will apply to both, any suggestions? Why not just do: Host name=www.mydomain.com .. Context path= docBase= debug=0 . / /Host Host name=www-i.mydomain.com http://www.mydomain.com/ .. Context path= docBase=

Re: Tomcat5 and LDAP authentication

2006-01-09 Thread Pulkit Singhal
Hello, However, if we enter in a correct username/password combination, it binds correctly, however it just hangs there as if it were awaiting response. The LDAP logs indicate that it did successfully bind correctly with the username/password combination, but no search was performed. How

Re: log4j setup in tomcat 5.0

2005-12-29 Thread Pulkit Singhal
Also, try and remove any log4j .jars and .properties files from under the apps deployed under the webapps folders. Restart and see if that does the trick. - Pulkit On 12/28/05, Dwayne A. Ghant [EMAIL PROTECTED] wrote: If I remember correcty you should but the properties file(s) in the

Re: UDP Server app

2005-12-26 Thread Pulkit Singhal
Hi, A few questions to help clarify what you want: 1) Is this UDP port actually being used by your instance of Tomcat for implementing some functionality and you simply want to listen on the port without interfering with the actions that take place? (kind of like a wire tap) -- If you are indeed

Re: mod_jk versus mod_proxy under load ?

2005-12-26 Thread Pulkit Singhal
I hate to take you off topic here but just in case you migth want to check this post out as well: *Re: About possible memory leak in Tomcat 5.x* Cheers and Gluck! On 12/26/05, Laurent Perez [EMAIL PROTECTED] wrote: Hello One of our production servers recently started to suffer from very

Re: How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat?

2005-12-25 Thread Pulkit Singhal
Hi, Thank you for the suggestion :) I will give it a shot but I am really too deep into my setup to be doing any big changes or something new! So while I try to google and learn more about setting up mod_proxy, I would really appreciate if someone can tell me: How do I go about configuring

Re: How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat?

2005-12-25 Thread Pulkit Singhal
this helps. Daniel -Original Message- From: Pulkit Singhal [mailto:[EMAIL PROTECTED] Sent: Sunday, December 25, 2005 1:12 PM To: Tomcat Users List Subject: Re: How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat? Hi, Thank you for the suggestion