Re: Realm authentication - unconventional usage

2006-11-22 Thread Santosh Puranshettiwar
Caldarale, Charles R wrote: Thanks. From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED] Subject: Re: Realm authentication - unconventional usage So seems like I *will* have to stick to application layer authentication, or is there a way out? Why can't you use one of the sta

Re: Realm authentication - unconventional usage

2006-11-22 Thread Santosh Puranshettiwar
ervlet/download.html With restricted resources define in web.xml Login page (FORM) And a defined realm in context.xml (or server.xml) No more ... PS: I don't think it really smart to GET login & password in (clear) URL ;-) On 11/22/06, Santosh Puranshettiwar <[EMAIL PROTECTED]>

Re: Realm authentication - unconventional usage

2006-11-22 Thread Santosh Puranshettiwar
ll now, my authentication code used to be in the application layer. But now, I wish to offload the task to my container (Tomcat) without any changes to the application protocol; which is to send username and password as _plain key-value pairs_ in the request URL. On 11/22/06, Santosh Puranshettiwa

Realm authentication - unconventional usage

2006-11-22 Thread Santosh Puranshettiwar
Hello, I wish to user a JDBCRealm with the username & password coming in the HTTP request as key-value pairs. Is it possible? Elaborate: - They request uri: - http://localhost/realm-test/RealmTestServetlet?username=foo&password=bar The Realm must authenticate with 'foo' & 'bar'. -- Santosh.

Re: RSS help

2006-11-21 Thread Santosh Puranshettiwar
Dave wrote: Thanks, It semms that it is easy to write the XML file for a Feed. But how does NewsReader know the page (pointed by feed link) has been changed, what are the changes, updated time? I have not got the idea yet :) The NewsReader /polls/ the feed regularly. As such the

Re: Tomcat Out Of Memory

2006-11-15 Thread Santosh Puranshettiwar
Gaurav Kushwaha wrote: A quick fix would be to specify minimum and maximum heap size using JVM parameters -Xms and -Xmx. -Xms specifies the minimum heap size and -Xmx is used to determine the maximum allowed heap size. So, lets say if you have enough memory to allocate 512 MB to your java proce

Re: sql connection error

2006-11-15 Thread Santosh Puranshettiwar
[EMAIL PROTECTED] wrote: unfotrtunately i didn t have any more the complete trace i will wait for tomcat to do it again , i just now that i had this sort of log in the same time with the other error : com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception

Re: sql connection error

2006-11-15 Thread Santosh Puranshettiwar
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, i use tomcat 5.5.20, when i start tomcat all is fine all works but after some time i am getting this message : java.sql.SQLException: No operations allowed after connection closed and the only way right now i have find is to restart tom

Re: sql connection error

2006-11-14 Thread Santosh Puranshettiwar
[EMAIL PROTECTED] wrote: Hi, i use tomcat 5.5.20, when i start tomcat all is fine all works but after some time i am getting this message : java.sql.SQLException: No operations allowed after connection closed and the only way right now i have find is to restart tomcat, what could be the cause of

Re: Java heap space

2006-10-07 Thread Santosh Puranshettiwar
Are you sure there isn't any memory leak? I mean it might happen that you are increasing the heap size just to delay the OutOfMemoryErrors. Santosh. Daniel Blumenthal wrote: I've been running a struts app on a plain vanilla install of Tomcat (5.0.28), and recently I've been getting some OutOf

Re: use mod_jk

2006-09-21 Thread Santosh Puranshettiwar
Sorry I didn't get you question well but see if this helps. http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html#adapter_jk_vs_js Santosh. Raffaele Viola wrote: Hi all, I Apache web server with Tomcat and mod_jk. The row JkMount /MyApp/* worker1 in the httpd.conf file is it enough

Re: Need Help w. Servlets And The JDBC.

2006-09-20 Thread Santosh Puranshettiwar
Adding to that, you should try using a connection pool rather than direct JDBC connection, once you get familiar with the fundamentals. With connection pools the application performs better than not. Santosh. Frank W. Zammetti wrote: Google is your friend... here's a quick hit: http://publib

Re: Logging application messages to a file instead of to the console

2006-09-20 Thread Santosh Puranshettiwar
ng package) Santosh Puranshettiwar <[EMAIL PROTECTED] To .com> T

Re: Logging application messages to a file instead of to the console

2006-09-20 Thread Santosh Puranshettiwar
Hi, What Logger are you using within the application. Is it Log4j? Santosh. Shiby Maria John wrote: Thanks for the immediate reply.. But I tried that .. it is loggin only Tomcat server specific messages and not the application messages. This is what I gave in my server.xml file But only th

Re: Precompiled JSPs after Tomcat restart

2006-09-20 Thread Santosh Puranshettiwar
Google for "JSP lifycyle" to know more. Santosh. Michael Zoller wrote: Frank Niedermann wrote: Hello, is it right that Tomcat stores all compiled JSP sites in Tomcat5\work\Catalina\localhost\application\org\apache\jsp? yes. After a restart of Tomcat I still see all the .class files in abo

Re: plz hlp. Servlet Not found when accessing Servlet from internet

2006-09-14 Thread Santosh Puranshettiwar
m not that experienced with Linux. Thanks. Eddie. Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote: Eddie Fahy wrote: Hi, I have a strange problem. I am not able to access my servlet from internet although everything works very well when i access mywebapp using http://localhost/mywe

Re: plz hlp. Servlet Not found when accessing Servlet from internet

2006-09-12 Thread Santosh Puranshettiwar
Eddie Fahy wrote: Hi, I have a strange problem. I am not able to access my servlet from internet although everything works very well when i access mywebapp using http://localhost/mywebapp/Servletx I am running a webapp which has a servlet. When I try to run my webapp, all the JSPs work good

Re: Executing binary from Servlet

2006-09-12 Thread Santosh Puranshettiwar
(Runtime.java:566) at java.lang.Runtime.exec(Runtime.java:428) at RunSimulation.run(CimmSimServlet.java:655) I am looking into deploying the servlet in the J2EE app server instead and seeing if that avoids this problem. Its all very odd! Thanks Mark Santosh Puranshettiwar wrote:

Re: Executing binary from Servlet

2006-09-12 Thread Santosh Puranshettiwar
I agree with David. This does not seem to be a SecurityManager problem. Does your code run properly as a normal executable program (with main())? Sameer Acharya wrote: Have you tried adding following to your web app permissions in policy file permission java.lang.RuntimePermission "java.lang.R

Re: How to disable search machines?

2006-09-11 Thread Santosh Puranshettiwar
There is a robot.txt standard followed by web servers and search engines which specifies if a search agent can / cannot index files on a server. Zsolt wrote: Hi, I see that google and msn searches on our pages (tomcat-5.5.17). How can I disable that? Zsolt

Re: Performance monitoring for web applications

2006-09-10 Thread Santosh Puranshettiwar
You could get them profiled though. Leon Rosenberg wrote: I don't think that this is possible, simpy because all your webapps are running in one jvm, which is one process for the cpu. You could try to identify separate threads, but i'm sceptical that this works. regards Leon On 9/8/06, Shimol

Re: stopping a tomcat web application

2006-09-06 Thread Santosh Puranshettiwar
You mean you wish to do it without using the Tomcat Manger? asaf.lahav wrote: I did... It doesn't answer my question... -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 1:33 PM To: Tomcat Users List Subject: Re: stopping a tomcat w

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
Version: Tomcat 4.1.x OS: Fedora core 2 (also reproduced on Windows XP) Peter Crowther wrote: From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED] 4. (need more? ... please tell me.) Tomcat version? :-) - Peter

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
parsed them myself using a HttpServletRequest wrapper. Santosh. Mikolaj Rydzewski wrote: Santosh Puranshettiwar wrote: 1. a POST request 2. all request parameter (in form of key-value pairs) in the message body 3. application/x-www-form-urlencoded 4. (need more? ... please tell me.) Norma

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
I sorted it out moments later of posting this mail. It was a mistake from my side. Thanks any sorry for any inconvenience, if caused. But there is still something I am curious about. How does Tomcat 4.1.x deal with HTTP requests that have *transfer-coding=chunked*? Santosh. Santosh

Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
1. a POST request 2. all request parameter (in form of key-value pairs) in the message body 3. application/x-www-form-urlencoded 4. (need more? ... please tell me.) Normally, the parameterMap (for HttpServletRequest.getParameter() method) is not built. But when I use a RequestDumperValve in betw

Re: Problems configuring the RequestDumperValve

2006-08-29 Thread Santosh Puranshettiwar
That did it. Thank you so much. David Smith wrote: Yes... in 4.1, the context definition is supposed to be in $CATALINA_HOME/conf/server.xml, not on it's own under WEB-INF. Santosh Puranshettiwar wrote: Any ideas? Santosh Puranshettiwar wrote: Here is my config file: -

Re: Problems configuring the RequestDumperValve

2006-08-29 Thread Santosh Puranshettiwar
In windows, I am able to see all output on console. It must be the case in Linux where the output goes in logs/catalina.out. Mark Thomas wrote: Santosh Puranshettiwar wrote: Any ideas? The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF But still

Re: Problems configuring the RequestDumperValve

2006-08-29 Thread Santosh Puranshettiwar
Any ideas? Santosh Puranshettiwar wrote: Here is my config file: - factory org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:mysql

Problems configuring the RequestDumperValve

2006-08-29 Thread Santosh Puranshettiwar
Here is my config file: - factory org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:mysql://localhost/mirage?useUnicode=true&characte

Re: Can Tomcat expose original HTTP request?

2006-08-28 Thread Santosh Puranshettiwar
request. - Original Message - From: "Santosh Puranshettiwar" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, August 25, 2006 1:04 AM Subject: Re: Can Tomcat expose original HTTP request? Checkout the RequestDumperValve. It should help. bill cao wro

Re: Site statistics for tomcat?

2006-08-25 Thread Santosh Puranshettiwar
Marcelo Chryssovergis wrote: Also, I would like to know how to enable an access logging in tomcat to be utilized with this tool I´m looking. Would the *Access Log Valve* help? Santosh. - To start a new topic, e-mail: users@to

Re: Can Tomcat expose original HTTP request?

2006-08-24 Thread Santosh Puranshettiwar
Checkout the RequestDumperValve. It should help. bill cao wrote: Hi there, see if anyone knows how to do this. When a http request is sent to Tomcat, Tomcat manufactures a HTTPServletRequest object based on the raw http request. HTTPServletRequest has easy method to retrieve the request inform

Re: Enabling RequestDumperValve

2006-08-24 Thread Santosh Puranshettiwar
/Tomcat 4 "Manager" Helped. Thanks alot. /David Smith wrote: Place your context definition in your server.xml file. See http://tomcat.apache.org/tomcat-4.1-doc/appdev/deployment.html --David Santosh Puranshettiwar wrote: This is how its being done: - reloadable="true&quo

Enabling RequestDumperValve

2006-08-24 Thread Santosh Puranshettiwar
This is how its being done: - reloadable="true" > This snippet is inside a file named server.xml which is placed in $CATALINA_HOME/webapps/magicktest/WEB-INF/ . But nothing gets logged on the console. It was quite urgent, therefore only a minimal digging was performed. Please tell

Re: Parsing keyvalue pairs in POST data

2006-08-22 Thread Santosh Puranshettiwar
. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Santosh Puranshettiwar" <[EMAIL PROTECTED]> To: "Tomcat

Re: Parsing keyvalue pairs in POST data

2006-08-22 Thread Santosh Puranshettiwar
have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Santosh Puranshettiwar" <[EMAIL PROTECTED]> To: "Tomcat Users List

Re: Parsing keyvalue pairs in POST data

2006-08-21 Thread Santosh Puranshettiwar
e data extract in such a way seems perfectly fine. Should still give the request dumper valve a try? Thank alot again. Santosh. Mark Thomas wrote: Santosh Puranshettiwar wrote: Nope. No such attribute in the . Would any default value take effect then? If so what is it? Anything nearb

Re: Parsing keyvalue pairs in POST data

2006-08-20 Thread Santosh Puranshettiwar
Nope. No such attribute in the . Would any default value take effect then? If so what is it? Anything nearby 2016? Thanks, Santosh. Mark Thomas wrote: Santosh Puranshettiwar wrote: Well, there's another problem. HttpServletRequest.getParameter() is unable to parse the key-value pai

Re: Parsing keyvalue pairs in POST data

2006-08-20 Thread Santosh Puranshettiwar
ender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Santosh Puranshettiwar" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, August 19, 2006 8:03 AM Subject: Re: Pars

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Well, there's another problem. HttpServletRequest.getParameter() is unable to parse the key-value pairs in the http message body if the the total content-length is greater that 2016. Any ideas? Please. Santosh. Santosh Puranshettiwar wrote: Managed to digg it. Had to set Content

Re: Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Managed to digg it. Had to set Content-Type=application/x-www-form-urlencoded Santosh Puranshettiwar wrote: Hello, How does tomcat parse the key-value pairs sent in a Http Request as POST data? I am unable to read the parameters using the HttpServletRequest.getParameter() method. Parameters

Parsing keyvalue pairs in POST data

2006-08-19 Thread Santosh Puranshettiwar
Hello, How does tomcat parse the key-value pairs sent in a Http Request as POST data? I am unable to read the parameters using the HttpServletRequest.getParameter() method. Parameters are being sent by a J2ME application. Tell me if more details are required. Thanks alot. Santosh.