Re: Servlet with POST Request

2006-12-19 Thread Andre Prasetya
Why dont you try using PUT instead of POST ? I think put is more suitable for this as you can stream anything to servlet. if you insist on using post, i recommend getting the parameter and replace the newline with some chars like ':' this is an example on streaming an object using put Htt

Re: Servlet with POST Request

2006-12-19 Thread Scott Carr
I am creating a client - server application that will process lines like: startjob adduser adduser adduser adduser endjob adduser can be an unlimited amount of times. I want to process the lines as they come into the Servlet, that way a seperate process could be doing something to complete ea

Re: Servlet with POST Request

2006-12-19 Thread Andre Prasetya
Why do you want to read POST by using reader ? I only use the stream from request on a PUT request. On 12/16/06, Scott Carr <[EMAIL PROTECTED]> wrote: Hassan Schroeder wrote: > On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: >> Does a servlet require the use of a Content-Length for the Read

RE: Installing Tomcat and IIS

2006-12-19 Thread LiuYan 刘研
>I normally need to access http://localhost:9191/luntbuild to see my application. So in theory with that filter thing installed correctly I should be able to access it by going to http://localhost/luntbuild? Yes, that's our goal of integration. >But for IIS, /luntbuild does not exist. How does it

Re: Custom JAAS LoginModule not authorizing GenericPrincipal roles

2006-12-19 Thread John McPeek
Hi Joe, This is my commit(). I think you are missing the User Principle. When you say request.getUserPrincipal(), that token (1) I am putting in first comes back. The Principles you add after that are the roles you want to test against. This stuff drove me nuts when I was setting it up. Hope

Re: ajp connector issue - getting "Unable to get the free" in mod_jk.log file.

2006-12-19 Thread Shekar Tippur
Rainer, One another change we noticed was that response is cut off for a particular transaction on a thread. For every other thread, we see marshelling and un-marshelling messages in the mod_jk.log file. There is no issue of load [Fri Dec 08 01:16:25 2006] [18477:] [debug] ajp_connection_t

Re-executing a servlet request

2006-12-19 Thread David Kerber
I have a web app that starts with a .jsp, and then goes through a series of servlets to process some data. If possible, I'd like to set it up so that after the last processing page is done, it goes back and re-executes the first servlet (the one that they go to from the .jsp), which is a data

RE: Custom JAAS LoginModule not authorizing GenericPrincipalroles

2006-12-19 Thread Caldarale, Charles R
> From: Workman, Joe [mailto:[EMAIL PROTECTED] > Subject: RE: Custom JAAS LoginModule not authorizing > GenericPrincipalroles > > After playing around I found that if I were to create > a second Principal with the username of the rolename, > everything worked as expected. This behavior is not >

Re: JDBCRealm

2006-12-19 Thread Warren Pace
> > From: Wojtek Kusch <[EMAIL PROTECTED]> > Date: 2006/12/19 Tue AM 11:52:20 EST > To: users@tomcat.apache.org > Subject: JDBCRealm > > Hallo! > > I am a newbie. I am defining a JDBCRealm for my web application in the > server.xml: > > driverName="sun.jdbc.odbc.JdbcOdbcDriver"

RE: Custom JAAS LoginModule not authorizing GenericPrincipal roles

2006-12-19 Thread Workman, Joe
I have found a work-around (although it seems like a hack to me): Here is the code snippet from my LoginModule commit method. Code: List roles = new ArrayList(); roles.add( "tomcat_auth_role" ); GenericPrincipal gp = new GenericPrincipal(null, username, null, roles); subject.getPrincip

tomcat and iis connectivity almost working...

2006-12-19 Thread Ziv Shalev
Hello, I've installed Tomcat 5.0 on port 8081 and redirected IIS 6 to it. It seems to work and you can try: http://www.seorally.com/jsp-examples/ But, I've deployed my own project I can see it in the tomcat manager, and activate it through tomcat(e.g., http://www.seorally.com:8081/Arvit/ -

avoiding multiple form submission

2006-12-19 Thread Pierre Goupil
Hello, listers ! As you have certainly seen it, some sites submit their forms as many times as you validate them. For instance, how many forums post two messages if, by mistake, you click on the submit button twice ? As everyone (I guess), I had to face this problem, and then... I gave Hibernate

Custom JAAS LoginModule not authorizing GenericPrincipal roles

2006-12-19 Thread Workman, Joe
I'm trying to use my own LoginModule. Its is successfully authenticating my username but the problem is when its trying to authorize my roles. Tried: 1. Here is the code snippet from my LoginModule commit method. Code: List roles = new ArrayList(); roles.add( "tomcat_auth_role" ); Gener

Re: my webapps lost after deleting *.war

2006-12-19 Thread Pierre Goupil
Hello ! Perhaps locating the developed apps outside the tomcat server webapps folder? Yes, as someone teached me here, point Tomcat to your webapp directory, instead of deploying it to a Tomcat's subdir ! Another pro : better, faster, lighter refreshing. And more frequent backups. And, on

Re: Notification of expiring sessions

2006-12-19 Thread Hassan Schroeder
On 12/19/06, ben short <[EMAIL PROTECTED]> wrote: I was hoping that doing it this way would also provide me with replication of this data between several tomcat instances. Odviously I would need to setup session replication between them. Also it would allow for session data persistence should to

Re: PHP on Tomcat

2006-12-19 Thread dl
Ran-2 wrote: > > Has anyone managed to get PHP4/5 to work on Tomcat ? Try here .. http://tools.herberlin.de/phpservlet/index.shtml phpservlet.war .. this worked for me on PHP5 (note: read configuration file re: use of php-cgi.exe). -- View this message in context: http://www.nabble.com/PHP

Re: Using 2 Realms for authentication and access control

2006-12-19 Thread Martin Gainty
Joe here is one possible starting point for JDBCRealm http://jroller.com/page/brviking?entry=glassfish_for_tomcat_users_jdbc another JDBCRealm example using kerberos http://www.pramati.com/docstore/1270002/index.htm HTH M- --

Re[2]: Notification of expiring sessions

2006-12-19 Thread Dima Retov
I agree that it worth to avoid storing session in DB. It is not reasonable to load session data from DB every 20 seconds. You can handle session create/destroy events using class that implements following interface. http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSessionLis

Re: ajp connector issue - getting "Unable to get the free" in mod_jk.log file.

2006-12-19 Thread Shekar Tippur
Rainer, We upgraded mod_jk to 1.2.19 and we are still getting the same error in mod_jk. [Tue Dec 19 11:35:36 2006] [31691:] [warn] ajp_get_endpoint::jk_ajp_common.c (2258): Unable to get the free endpoint for worker myWorker from 1 slots [Tue Dec 19 11:35:36 2006] [31691:] [info] ajp_get

RE: Need help with JK2 connector/workers2.properties

2006-12-19 Thread Simon Renshaw
At the point I'm at, I will try this. Thanks! -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 19 décembre, 2006 14:29 To: Tomcat Users List Subject: Re: Need help with JK2 connector/workers2.properties Caldarale, Charles R schrieb: >> From: Simon Renshaw [mailto:[EM

Re: Need help with JK2 connector/workers2.properties

2006-12-19 Thread Rainer Jung
Caldarale, Charles R schrieb: >> From: Simon Renshaw [mailto:[EMAIL PROTECTED] >> Subject: Need help with JK2 connector/workers2.properties >> >> I followed the instructions found at >> http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html to install the >> connector. > > The mod_jk2 package has

RE: Need help with JK2 connector/workers2.properties

2006-12-19 Thread Caldarale, Charles R
> From: Simon Renshaw [mailto:[EMAIL PROTECTED] > Subject: Need help with JK2 connector/workers2.properties > > I followed the instructions found at > http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html to install the > connector. The mod_jk2 package has been deprecated for well over a year -

Need help with JK2 connector/workers2.properties

2006-12-19 Thread Simon Renshaw
Hi, I followed the instructions found at http://tjworld.net/help/kb/0001_iis6-Tomcat5-JK2.html to install the connector. I also used the very basic workers2.properties files they provided. Then I tested it. Going to http://192.168.64.20:9191/jsp-examples/ works fine but if I try to go to http://

Re: my webapps lost after deleting *.war

2006-12-19 Thread dl
Mark Thomas-11 wrote: > > I am afraid they are gone for good. Do have anything in a backup of > version control system you can recover from? That came as a shock .. can you confirm whether this behaviour is new to tomcat 5.5 .. since I am fairly sure that I have deleted *.war files in older t

Re: Tomcat Session Replicating Failing under load

2006-12-19 Thread cifroes
By the way, I'm using Tomcat 5.5.20 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.5: j_security_check doesn't read the form-passwords, log4j

2006-12-19 Thread Gregor Schneider
ok, maybe I should start with a question that#s a bit easier: Is there any possibility to log which credentials (username, password) are passed from form-login to j_security_check (Tomcat 5.5)? Either AccessLogValve or log4j? How do I specify this (either in log4j.properties or in the AccessValve

Re: Notification of expiring sessions

2006-12-19 Thread ben short
Chuck, Valid points. I was hoping that doing it this way would also provide me with replication of this data between several tomcat instances. Odviously I would need to setup session replication between them. Also it would allow for session data persistence should tomcat be restarted etc. I coul

RE: Notification of expiring sessions

2006-12-19 Thread Caldarale, Charles R
> From: ben short [mailto:[EMAIL PROTECTED] > Subject: Notification of expiring sessions > > I want to store user session data into a database rather than in the > session, to conserve memory. Unless your session data is huge, you're probably consuming more memory by accessing the data base rath

Tomcat 5.5: j_security_check doesn't read the form-passwords, log4j

2006-12-19 Thread Gregor Schneider
Hi list, problem-description is above. I've defined a jdbc-realm in conf/server.xml, that is: My form-login-page is (snippet): User ID Password I do not think that my pr

Notification of expiring sessions

2006-12-19 Thread ben short
Hi, I want to store user session data into a database rather than in the session, to conserve memory. I want to use the session id as the key to look up this data. As a request comes in, the servlet will hit the db with the session id and get the data if its there. if its not then i will create

JDBCRealm

2006-12-19 Thread Wojtek Kusch
Hallo! I am a newbie. I am defining a JDBCRealm for my web application in the server.xml: userTable="USER" userNameCol="username" userCredCol="userpass" userRoleTable="USER_ROLE" roleNameCol="role" /> If I am starting Tomcat I get followwing message: INFO: Initializ

RE: Error in dependencyCheck

2006-12-19 Thread Caldarale, Charles R
> From: Assaf Flatto [mailto:[EMAIL PROTECTED] > Subject: Error in dependencyCheck > > I googled it a bit and it refers to TOC of the war file , whoever the > same war file has been used on 2 other servers and with no issues . The error you're getting indicates that the name length is zero for

Error in dependencyCheck

2006-12-19 Thread Assaf Flatto
Hello I've installed tomcat 5.5.17 - this is the 8th server i install in a row and the first one that displays this error when i start tomcat. I googled it a bit and it refers to TOC of the war file , whoever the same war file has been used on 2 other servers and with no issues . Any one g

Re: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-19 Thread Tim Funk
You can't mix page directives with snippets. Page directives occur at page translation time (before the compilation process) To eliminate buffering - try <[EMAIL PROTECTED] buffer='none'%> -Tim Richard Mundell wrote: Thanks Tim. out.flush() wasn't doing anything unless there was already 8

RE: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-19 Thread Richard Mundell
Thanks Tim. out.flush() wasn't doing anything unless there was already 8KB in the buffer. But, the JSP page directive helped: Before setting the JSP page directive, the pre-compiled .java file that Tomcat was creating had... pageContext = _jspxFactory.getPageContext(this, request, respon

RE: Question on Admin WebApp in Tomcat 6.0

2006-12-19 Thread Richard Mundell
Ritu, You might want to take a look at Lambda Probe, a freeware 'manager' application, which is like Tomcat manager on steriods! http://www.lambdaprobe.com/ - Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 12:06 AM To: us

Re: How to Run Servlet

2006-12-19 Thread David Delbecq
And please provide the complete terminal output of compilation process so we can have an idea what is your problem. Mark Thomas a écrit : > athula bogoda wrote: > >> This is the file i tried to execute. >> >> I also set the class path for jsp-api.jar and servlet.jar files. >> But it did not work

Re: How to Run Servlet

2006-12-19 Thread Mark Thomas
athula bogoda wrote: > This is the file i tried to execute. > > I also set the class path for jsp-api.jar and servlet.jar files. > But it did not work. Your servlet needs to be in a package. Next, how did you try and compile it when you got the "Cannot find symbols." error? Mark ---

Re: How to Run Servlet

2006-12-19 Thread athula bogoda
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html");

Re: How to Run Servlet

2006-12-19 Thread Mark Thomas
athula bogoda wrote: > I installed it and try to compile servlet file. But it gives an error"Cannot > find symbols." > > Thanks, A little more information would help. What did you try and compile and how did you try and compile it? Mark

Re: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-19 Thread Tim Funk
JSP's also have a buffer too. To make it smaller or eliminate it: <[EMAIL PROTECTED] buffer='none'%> or use out.flush() instead or response.flushBuffer() -Tim Richard Mundell wrote: No one replied, so in the hope someone might have the answer to this, here's a repost... :-) -Original

Re: How to Run Servlet

2006-12-19 Thread athula bogoda
I installed it and try to compile servlet file. But it gives an error"Cannot find symbols." Thanks, - Original Message From: Mark Thomas <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, December 19, 2006 9:04:04 AM Subject: Re: How to Run Servlet athula bogoda wrote: > Hi, >

Re: Problem with JOTM...

2006-12-19 Thread kalakhr
Try and put this carol.properties in jakarta-tomcat/common/classes --- Start carol.properties # JNDI (Protocol Invocation) carol.protocols=jrmp # Local RMI Invocation carol.jvm.rmi.local.call=true #