Also, if the OS is Unix/Linux based, you most likely should grant
execute permissions for startup.sh and shutdown.sh - before trying to
execute them the first time.
-Regards
Rashmi
-
To start a new topic, e-mail:
Sebastiaan,
Yes you're right. I forgot to add something like isClosed() to your
SynchronizedOutputStream so I can check if it's closed before writing.
Anyways, I found that after a certain limit (for ex. 6000 - 8000 users) the
system starts to behave incorrectly. Some clients never get an
Sebastiaan,
Yes you're right. I forgot to add something like isClosed() to your
SynchronizedOutputStream so I can check if it's closed before writing.
Anyways, I found that after a certain limit (for ex. 6000 - 8000 users) the
system starts to behave incorrectly. Some clients never get an
Sorry about this last email. It was for Sebastiaan but in another thread.
Cheers,
Martin
On 5/2/07, Martin Perez [EMAIL PROTECTED] wrote:
Sebastiaan,
Yes you're right. I forgot to add something like isClosed() to your
SynchronizedOutputStream so I can check if it's closed before writing.
-Original Message-
From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 7:24 PM
To: Tomcat Users List
Subject: Re: Comet: problem with request.getParameter() in
Comet POST requests
GET parameters, ie parameters in the URL will work.
However,
Hi,
Wouldn't every application which isn't as dumb as the chat example
(which does not care about the content it reads but simply passes it
back to it's clients) need to implement it's own mechanism to check
whether there is enough input available to start parsing a chunk of
data?
Either
Wouldn't every application which isn't as dumb as the chat example
(which does not care about the content it reads but simply passes it
back to it's clients) need to implement it's own mechanism to check
whether there is enough input available to start parsing a chunk of
data?
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
What you seem to want is more in line with the asynchronous servlet
(request, wait, response), which Filip and Remy pointed out is not the
quite the same as Tomcat's Comet. Ideally, both models would be possible
through single unified API,
Hello Everybody,
i am currently developing a Servlet for Controlling my Winamp with my
Mobile.
The Library i want to use is jdic.
jdic uses JNI with a DLL
As Java Application, it is perfectly working.
But on my Tomcat6 i always get a Exception while Servlet Initialization:
Christian Becker wrote:
Hello Everybody,
i am currently developing a Servlet for Controlling my Winamp with my
Mobile.
The Library i want to use is jdic.
jdic uses JNI with a DLL
As Java Application, it is perfectly working.
But on my Tomcat6 i always get a Exception while Servlet
I try to setup session persistence using database. I created the file
context.xml under the META-INF directory of my WAR file
Context
WatchedResourceWEB-INF/web.xml/WatchedResource
Manager distributable=true
className=org.apache.catalina.session.PersistentManager debug=5
saveOnRestart=true
I noticed the MemoryRealm / form-based authentication example in Tomcat
6.0 is broken. The example works just fine in Tomcat 5.5, but in the
migration to 6.0, it got broken. According to the doc at
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html
the app is supposed to be available
Hello list:
We're using Tomcat to host some web services. The nature of our
application is such that a single web service receives a lot of
requests in bursts.
We use Cognos to connect to a data provider called Simba, which in
turn makes the requests to the web service.
Our customers are
Good Morning Dave
usually the binaries are located in %JAVA_HOME%/jre/bin
backup everything (jvm.cfg especially) you have beforehand
change LD_LIBRARY_PATH in jvm.cfg to point to the folder containing your DLL
(please verify this works as the signatures for JNI dll's need to conform to
spec)
Now jconsole works but when i shut it down with /bin/./shutdown.sh i get this
error:
Errore: Eccezione dell'agente : java.rmi.server.ExportException: Port already
in use: 7019; nested exception is:
java.net.BindException: Address already in use
and tomcat doesn't shut down properly.
I
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
Sorry about that, did not mean to say it is not possible to do a
request, wait, response with Comet. All I'm trying to say is that Comet
was not designed (at least, Filip stated this) for the async servlet
model, and I tried to point out
Good Morning Wang-
Your listener is either not started or is blocked (perhaps by a firewall)
verify the default Oracle Port is listening at 1521
netstat -a | grep 1521
(this will verify the Oracle listener is at least listening)
verify the SERVICE NAME you have for SID is the same as
On 5/2/07, Frank McCown [EMAIL PROTECTED] wrote:
The default contents of the conf/tomcat-users.xml file *should* be
tomcat-users
user name=tomcat password=tomcat roles=tomcat /
user name=role1 password=tomcat roles=role1 /
user name=both password=tomcat roles=tomcat,role1 /
I runing linux where is the file at ?
- Original Message -
From: Rashmi Rubdi [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, May 01, 2007 11:40 PM
Subject: Re: shutdown restart
Depends on your Operating System and how you installed it on that OS.
Hi, I am Alejandro from Argentina.
I am having an issue with tomcat 6.0.10 using clusters and single sign on,
while performing load balance with apache 2.2
When I am accessing a secured page, I try to login (the login form is shown
correctly) but I receive the following:
HTTP Status 400 -
Hi,
How about not arguing about everything ? It is your fault when
parameters are not processed. Tomcat will process parameters with
comet.
No, Comet will not process parameters in POST requests if you call
getParameter() in the BEGIN event and the request body has not yet
arrived.
You probably might have locate the files, but just in case not the
startup.sh and shutdown.sh shell script files are under Tomcat's bin
folder.
-Regards
Rashmi
On 5/2/07, William Biggs [EMAIL PROTECTED] wrote:
I runing linux where is the file at ?
Sorry to be dim, what are tiles ?
Brantley Hobbs-3 wrote:
You could easily do it with tiles. An alternative would be to use a
filter and append your footer to the output stream.
B.
Simon Stone wrote:
I am trying to find a way to put some html text on the bottom of all
pages
http://struts.apache.org/1.x/struts-tiles/
A more structured replacement for plain-old JSP include statements.
B.
Simon Stone wrote:
Sorry to be dim, what are tiles ?
Brantley Hobbs-3 wrote:
You could easily do it with tiles. An alternative would be to use a
filter and append your footer
You neded to change your start/stop scripts, so that they use the
management parameters only in the starting case and not in the stopping
case (define a new variable and add it in bin/catalina.sh to the start
case.
[EMAIL PROTECTED] schrieb:
Now jconsole works but when i shut it down with
Hi
How can I get the password from the logged in user via the HttpServletRequest
in general? (I need the password in a servlet filter to do some stuff)
And there some web server independent solution?
Thanks in advance and greets
Sam
--
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sam,
[EMAIL PROTECTED] wrote:
How can I get the password from the logged in user via the
HttpServletRequest in general? (I need the password in a servlet
filter to do some stuff)
Do you mean during the login process, or after it has been done?
Rémy Maucherat wrote:
On 5/2/07, Frank McCown [EMAIL PROTECTED] wrote:
The default contents of the conf/tomcat-users.xml file *should* be
tomcat-users
user name=tomcat password=tomcat roles=tomcat /
user name=role1 password=tomcat roles=role1 /
user name=both password=tomcat
You should probably have a good read of the tomcat documentation.
http://tomcat.apache.org/
Many useful things are to be found in it.
The startup scripts are in %tomcat%/bin, where %tomcat% is the location
of your install, (probably, unless you have an unusual setup).
p
William Biggs
Reich, Matthias wrote:
-Original Message-
From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 7:24 PM
To: Tomcat Users List
Subject: Re: Comet: problem with request.getParameter() in
Comet POST requests
GET parameters, ie parameters in the
Sorry for the long explanation but this is a tricky problem that has me
stumped. I hope someone else has experienced this.
We are having a strange problem with FORM based authentication that we can't
figure out. It seems to be an issue with the tomcat
Do you mean during the login process, or after it has been done?
I mean after the user has been logged in (form based login).
Have you an example how I can receive the password from the HttpServletRequest?
greets
Original-Nachricht
Datum: Wed, 02 May 2007 13:31:49 -0400
Hi Sam,
I did something like that once but using the JSP saving the data in
session variable that were available for all the session of the user...
Roberto
Hi
How can I get the password from the logged in user via the
HttpServletRequest in general? (I need the password in a servlet filter to
Caldarale, Charles R wrote:
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Subject: Re: JNI in Tomcat6
usually the binaries are located in %JAVA_HOME%/jre/bin
Only DLLs that are part of the JVM should be placed in
%JAVA_HOME%/jre/bin; this is not an appropriate location for
Ultraedit also works.
If I could threadjack here, I'd like to point out my own gripe with
windows tomcat logging. Can we please make it out of the box log all
stdout stuff to a *single* catalina.out file that doesn't roll over?
That's a pain. I like to set up an icon to my log file, but I
Im using a FORM based authentication. Im not sure, but I think to remember that
I once had the possibility to see all the user stuff (password, roles, database
password, database user, etc.) but I dont know where ;-).
Im using the password of the authentification to encrypt and decrypt some
Thanks... does the trick.
But still wondering why the file handles are left open... I would think its
not good practice.
- Original Message -
From: Venkat Venkataramanan [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Wednesday, May 02, 2007 8:45 PM
Subject:
Hi
Am 02.05.2007 um 17:26 schrieb Sebastiaan van Erk:
Hi,
How about not arguing about everything ? It is your fault when
parameters are not processed. Tomcat will process parameters with
comet.
No, Comet will not process parameters in POST requests if you call
getParameter() in the BEGIN
[EMAIL PROTECTED] wrote:
Do you mean during the login process, or after it has been done?
I mean after the user has been logged in (form based login).
Have you an example how I can receive the password from the HttpServletRequest?
You can't access the credential from HttpServletRequest
Please use CATALINA_OPTS to set jmx options. The catalina.sh stop
command use only JAVA_OPTS and not CATALINA_OPTS.
Peter
Am 02.05.2007 um 18:09 schrieb Rainer Jung:
You neded to change your start/stop scripts, so that they use the
management parameters only in the starting case and not in
I always drag and drop them from their given directory (in my case it's a
shared directory, then the logs are in a subdir) to my desktop and read them
that way, as to not interfere with perpetual logging to the file.
-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent:
Im using a DataSource Realm.
Hmm but from where can I access the credentials?
Original-Nachricht
Datum: Wed, 02 May 2007 20:00:04 +0100
Von: Pid [EMAIL PROTECTED]
An: Tomcat Users List users@tomcat.apache.org
Betreff: Re: User-password from the HttpServletRequest
[EMAIL
I'm able to open Tomcat log files with Notepad, while Tomcat is running.
I guess the lock happens when Tomcat is writing to the log file, and
the file is being opened simultaneously. I think you're using the
Windows Installer and I've installed mine from the zip file. I don't
know if it makes a
Johnny Kewl wrote:
Thanks... does the trick.
But still wondering why the file handles are left open... I would
think its
not good practice.
I would assume for performance reasons, but that's just a guess. I do
the same thing when I know I'm going to be doing a lot of writing, but
if
I think this is a Windows issue. I doubt that Tomcat actually locks the log
files.
The reason I think that this is a Windows issue is that I run into the same
thing with other programs. I don't run Tomcat on Windows, so I can't check
Tomcat log files specifically.
I think that this behavior
JDBC I guess...
Maybe the difficulty is an indication that its not the right way to go...
For example if a user ever has to change their password... data is lost, or
a huge procedure.
Think about this... maybe its a good idea.
Remember that if you see the user name in a page it means
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sam,
[EMAIL PROTECTED] wrote:
Do you mean during the login process, or after it has been done?
I mean after the user has been logged in (form based login).
Have you an example how I can receive the password from the
HttpServletRequest?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Steven,
Steven Rock wrote:
Sorry for the long explanation but this is a tricky problem that has me
stumped. I hope someone else has experienced this.
When you build your URL using javascript, make sure to run the URL
through
Wots Up Doc!... Rashmi I am using the Windows Installer... and when I saw
what you said
I killed every thing and then just started and stopped Tomcat... and guess
wot!... the
files are not locking... ie they letting other programs open them.
So now I dont know whats causing the solid lock...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sam,
[EMAIL PROTECTED] wrote:
I'm using the password of the [authentication] to encrypt and decrypt
some data to a database user specific (each users own data has the
users password).
Uh... are you sure this is a good idea? If the user changes
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Log files always locked
but if you look at Propes, Barry L post... thats exactly wot
I had to do ie copy all the files... and then open them...
That doesn't really make sense: if they were hard locked, how were you
able to copy
I actually didn't get a notification saying it was locked, but assumed it
wouldn't write to the log while I had it open.
Copying it takes a second for me, but I can see where that conflict should
theoretically occur.
However, I've not held the file open, and then been prompted to save, reload
I use tomcat and jboss on windows. I have installed cygwin Unix shell for
windows and put all the commands in my PATH env variable. Then I can run:
tail -f log.out
This continuously shows me the log file as it gets updated.
-Steve
-Original Message-
From: Fargusson.Alan [mailto:[EMAIL
Hi,
I have no problem to get POST parameter with NIO Connector at my
begin.event. With APR connector I also have POST parameter problems.
Strange! A my first request I get the POST parameter. The POST message
close the event and I got an exception after the end event.
It's a race
I think its just because a copy on a drag and drop is opening the file as
read only...
Thing is utilities like notepad and wordpad will try open rw.
- Original Message -
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, May
Hi,
I need to advise someone on how to install Tomcat on a Windows Server 2003
64-bit edition server with an AMD64 processor.
Unfortunately I do not have this hardware/software setup myself so am unable
to test.
I see from a google search that others have encoutered problems with Win2k3
64.
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Subject: Re: Log files always locked
I think its just because a copy on a drag and drop is opening
the file as read only...
Thing is utilities like notepad and wordpad will try open rw.
Makes sense. What about a real editor like ConTEXT or
I use form based authentication backed by a Database Realm. After the user
logs in I can get the user info on top of every JSP page with this code
snippet.
%
Principal principle = (Principal)request.getUserPrincipal();
User loggedInUser = JSPUtils.loadUser(session, principle.getName()); //
I've not tried to attempt to open it in Textpad with a current date log.
If I'm trying to troubleshoot some problems, I just drag it from my shared
dir's subdirectory to either my desktop (usually) or another location and then
open it in notepad.
I'm not using any other logging mechanism like
On 5/2/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
It's a race condition and the problem occurs quite infrequently
(especially with small request bodies). The larger the request body of
the POST request, the more likely it is that the problem occurs. I was
testing at a few thousand request
thank you.
You neded to change your start/stop scripts, so that they use the
management parameters only in the starting case and not in the stopping
case (define a new variable and add it in bin/catalina.sh to the start
case.
[EMAIL PROTECTED] schrieb:
Now jconsole works but when i shut
I've not ever gotten a file is copy-protected or disk-protected message, like
MS is prone to do with files.
However, I'm not sure about Textpad exclusively opening up a read only copy of
those things.
When I've got a servlet open in Textpad, and let's I say I opened it in Eclipse
for some
Yes... but I dont think we should ever have to do that...
Textpad works BTW... will save u you some hassle...
But thanks... nice to know other guys are also seeing it.
- Original Message -
From: Propes, Barry L [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent:
oh yeah, I use Textpad a great deal, I just usually don't open the logs in it
-- I just double click and open them in their native app (notepad.).
-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 4:26 PM
To: Tomcat Users List
Subject: Re: Log
Hi,
I want to reload an application using the Manager but I have a doubt:
does it reload immediately after I call the Manager or does it wait for
processing requests to end or has some other delay?
In case there is a delay, can I set it to immediately reload?
Thanks in advance,
-- cifroes
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Subject: RE: Log files always locked
oh yeah, I use Textpad a great deal, I just usually don't
open the logs in it -- I just double click and open them in
their native app (notepad.).
That's one of the reasons I use ConTEXT - it replaces
We just had an extremely odd incident occur in our production
environment, and I am hoping the scenario sounds at least familiar to
someone. I'm having a fairly difficult time coming up with a good search
string, so please excuse me if this is a known issue.
This afternoon, we have a number of
My setup: Tomcat 5.5.23, JDK 1.5, WIN XP
I am also using tcnative-1.dll and OpenSSL 0.9.8b
Client browser: IE6, Firefox 1.5 for IPv4
IE7 for IPv6.
I successfully tested Tomcat 5.5.23 by enabling ipV6 without using APR.
SUCCESS:
If I use tcnative-ipv4.dll (version 1.1.8)
I find that I am able
Corrections:
Here is a summary of what works and what does not.
Tomcat 5.5.23, WinXP, JDK 1.5, OpenSSL-0.9.8b is the base configuration.
tcnative-1-ipv4.dll (ver 1.1.7) works for both HTTP and HTTPS.
tcnative-1-ipv6.dll (ver 1.1.7) works for HTTP and HTTPS only with ipv6
transport
between
69 matches
Mail list logo