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
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
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
>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
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
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
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
> 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
>
>
> 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"
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
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/ -
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
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
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
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
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
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-
--
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
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
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
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
> 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 -
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://
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
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]
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
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
> 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
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
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
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
> 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
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
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
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
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
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
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
---
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");
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
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
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,
>
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
#
43 matches
Mail list logo