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 yet

Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
ote: > keystore 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" > > &g

Re: tomcat not working with HTTPS

2008-01-11 Thread Pulkit Singhal
Unable to load certificate key > /var/lib/tomcat5.5/conf/localhost.key > (error:0906A068:PEM routines:PEM_do_header:bad > password read) > > --- Pulkit Singhal <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > Can you tell me if you are replacing this w

How to specify attributes for

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://:/;retrieveMessagesFromServerOnGetMessage=true;" But the problem is that I can't figure out the right way to escape the path to the database in windows. I've tried the follow

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
the "query" parameter. I would like Tomcat to read correctly URL in UTF-8, but without modifying server.xml. Any suggestion ? Pulkit Singhal a écrit : > Hi Frederic, > > I don't know about HttpSession. for settign the URIEncoding. > But you could always do somethign a

Re: URIEncoding

2007-07-26 Thread Pulkit Singhal
Hi Frederic, I don't know about HttpSession. 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 ne

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 woul

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 least

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 certifica

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 jdk1.5.

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 p

Re: HP-UX Tomcat refuses connections after boot

2007-01-29 Thread Pulkit Singhal
Hi, It seems like one of the lines in your catalina.sh file can't find the "touch" command. I'm guessing that starting/stopping manually is not quite the same thing as the server coming up via "/sbin/rc3.d/S998Tomcat start" when it comes to the path that has the touch command in it. On 1/29/07,

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 thes

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 keyst

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

2006-09-12 Thread Pulkit Singhal
Could you please paste the piece out of your server.xml where you configure the use of the certificate here? It will help me understand what you are trying to do and what's actually happening a little better.

Re: Regarding SSL (http-https) installation or importing the trusted certificate

2006-09-01 Thread Pulkit Singhal
1) I am pretty sure that you can specify the alias that you want your tomcat "connector" (https in this case) to use in the server.xml file so you don't HAVE to name your alias "tomcat" it can be whatever you want 2) I am pretty sure you don't need to have your CSR in your keystore for any SSL fun

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 in

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: IIS 5.0 - Jboss with Tomcat 5.5 - JK 1.2.15 - NTLM

2006-08-22 Thread Pulkit Singhal
Hi Scott, I'm not exactly an expert on this but I'm quite sure that if you strictly want to use NTLM...you do not need to this: 2> set the auth-method to CLIENT-CERT in the web.xml unless ofcourse you are doing it because you want a secure channel between your IIS server and the tomcat instance

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: O

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.msiis an Installer package for IIS 5 and later Web Server that takes care of all the configuration steps

Re: Tomcat 5.X

2006-03-16 Thread Pulkit Singhal
t any > luck > > > > >From: "Pulkit Singhal" <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" > >To: "Tomcat Users List" > >Subject: Re: Tomcat 5.X > >Date: Thu, 16 Mar 2006 09:28:24 -0800 > > > >What URL

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

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 an

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: 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: 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: 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

Re: Remote address filter for host Alias

2006-01-20 Thread Pulkit Singhal
> Using RemoteAddrValve as subelement won't work, as will >apply to both, any suggestions? Why not just do: http://www.mydomain.com/>" .. > Ofcourse I'm pretty new to this so you might see some cons to this :) Cheers, - Pulkit On 1/20/06, Patricio Keilty <[EMAIL PROTEC

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. >

Re: IIS connector (JK-1.2.15) fails to call Tomcat - returns 404

2006-01-03 Thread Pulkit Singhal
Hi, >The last line says "[/vbc] is a servlet >url - should redirect to ajp13w" and then I get a 404 back. I am not >sure about if it is Tomcat or the connector that returns the 404. When I had a similar issue with Apache Web Server, I checked the Apache logs to see if it was looking in the wrong

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 t

Re: Tomcat uses locally only.

2005-12-26 Thread Pulkit Singhal
Hello, I am a n00b myself so I don't know how much this will help you but here's an interesting bit of fact for you: 1) My config: Apache Web Server + mod_jk (tomcat connector) + Tomcat 5.x 2) When I was sending GET or POST requests to my webserver for content that was actually being housed in T

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 ver

Re: Connection refused

2005-12-26 Thread Pulkit Singhal
Hi Mukesh, 1) Do you have any way of making sure that whatever it is that you are trying to connect to is actually up and running and accepting connections? 2) If so, then are you sure that the details you use to make the actual connection...are correct? 3) After your second post, I feel that mayb

Re: UDP Server app

2005-12-26 Thread Pulkit Singhal
gn flaws or opportunity for improvement? As I said, most of my > experience thus far has been writing web applications that are called from > JSP's, so this is all new to me. > > Thanks, > K > > -Original Message- > From: Pulkit Singhal [mailto:[EMAIL PROTECTED] &g

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: How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat?

2005-12-25 Thread Pulkit Singhal
something like this: > 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? > >

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 apache

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

2005-12-23 Thread Pulkit Singhal
Hello Everyone, I have successfully configured Apache to forward requests to my Tomcat instance. But it does so...only for requests whose IP resolves to 127.0.0.1 If I try to access a page through apache server (that's actually on tomcat) with the outside-facing-ip of my computer it fails. For e