Hi all,
thanks a lot for all solutions proposed.
I think I am going create the directory within my webapp, but without
symbolic link, as my images are temporary files.
So even if the directory is deleted it really does not matter
Thanks again
Romain
Li wrote:
you are right Moises, if you really
Hello
Thaks. We will enable loggin to find this, but since its a production setup
will it affect performance ?
This is a set of stats. Apache was running for 3 weeks. (Hope this is clear)
mod_jk 1.2.18 with Busyness and sticky sessions (all nodes are identicical).
Name Type jvmRoute Ho
"Mark Thomas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> William Chu wrote:
>> Hello,
>>
>> When configuring tomcat for HTTPS, how does tomcat know which key to
>> use? If you run the keytool command multiple times, you generate
>> multiple keys. The keys are stored in the .ke
you are right Moises, if you really wanna write to somewhere within
the webapp deploy folder, a better is to make a soft symbol link point
to the directory that stores the image,
/webapps
---
---> /tmp/images/
so next time update the war, even the folder is
William Chu wrote:
> Hello,
>
> When configuring tomcat for HTTPS, how does tomcat know which key to
> use? If you run the keytool command multiple times, you generate
> multiple keys. The keys are stored in the .keystore file and so if I
> generate multiple keys, which one gets picked?
By defau
David Kerber wrote:
> I haven't run a profiler on this code; I've tried, but getting the
> configuration figured out has stumped me every time.
I have had good results with YourKit. Simple to set up and a nice
output that shows where the time is spent. I have used to to
investigate reported perfor
Hi,
Mohan Wickramasinghe schrieb:
> Hello
>
> We are using the "new" Busyness method with 1.2.18
> We have also using 'sticky sessions'.
>
> Clarification on
> "> As soon as there will be real load, behaviour will differ."
>
> We have 9 nodes on 3 identitical servers with identical settings, lb
Hi,
I have a lightweight singleton that I need to place in shared/lib so
that it may be accessed by a few other webapps. My question is what
logging jar will make my life the easiest to use in my singleton? My
assumption is that each webapp should be able to configure which classes
it wis
Hi,
first of all I assume you are using version 1.2.18 of mod_jk? Otherwise
please update.
Sharma, Siddharth schrieb:
> We have a 12 (tomcat 5.5.16) instance cluster on 4 physical machines running
> redhat linux. There is an Apache installed on each machine (4 mod_jks). Each
> mod_jk's worker.pro
FH wrote:
> This past week is my first experience/time working w/ tomcat so please bear w/
> me. I think I have most of it figured out, the server seems to be running ok
> and I've successfully limited the connections to it to ssl only by a couple of
> hacks to the server.xml config file[1] The o
Le Nguyen-Thinh wrote:
> Dear friends,
>
> My web-based application needs to communicate with a native library.
> Therefore, I specify the JAVA_OPTS variable with the path to a native
> library before running startup.sh:
>
> export
> JAVA_OPTS="-Djava.library.path=/opt/pkg/pl/lib/pl-5.6.6/lib/i68
Minh Tu Thanh Tran wrote:
> Thanks David,
>
> Again, I want to start the prolog engine, so I need to load the
> library of prolog when I start Tomcat 5.5.17. I think the command line
> is: java -Djava.library.path=$PLLIBDIR $1
> But I do not know where to put this command line in Tomcat in order t
Lars Nielsen Lind wrote:
> All my webapps and contents (including WEB-INF and components) are
> copied from an existing running solution with no problems.
>
> Anyone that know how to solve this?
Is there a more complete stack trace and/or exception in the logs?
Mark
---
Hi,
I tried to upgrade an older version of the win32 JK isapi_redirect.dll
to the jk-1.2.18 version that I downloaded from
http://mirrors.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.18. For some reason, IIS is not able to load the ISAPI filter. It errors
Almir Kazazic wrote:
where can I find more information about "old way" ?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/
PGP KeyID: 8b12ab02
There are three kinds of people: men, women and
Hi Moises,
Actually I am not trying to call it. I am hoping as per servlet 2.4 spec
there is some mechanism of getting HttpSession before it is destroyed.
My sessionListener class checks for some session attribute and updates
some bits in database. In case of session timeout by the time
sessionDest
Hi Rainer,
Wonderful, many many thanks - your patch worked beautifully. I have no more
errors with 1.3.27 on Solaris 8 nor Linux.
(my apologies for the delay - I wasted time experimenting with the patch
command on Solaris and Linux :-(
I am opening another email thread about some strange behav
I am not sure what you are trying to do ... but you should never be calling
this yourself - container callbacks are Tomcat's to call.
What you would do at app level is define an HttpSessionListener to be
called...
Moises
"Umesh Kudtarkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTEC
Cheers, Mark.
On 8/7/06, Mark Thomas <[EMAIL PROTECTED]> wrote:
Jack Ashburn wrote:
> Hi,
>
> I'm configuring my Tomcat server so that it uses a "strong" cipher for
> SSL. From the docs in both Tomcat 4.1 and 5.0, the "ciphers" attribute
> for the "connector" element in server.xml accepts "A com
Hello,
When configuring tomcat for HTTPS, how does tomcat know which key to
use? If you run the keytool command multiple times, you generate
multiple keys. The keys are stored in the .keystore file and so if I
generate multiple keys, which one gets picked?
Thanks,
Will
Hi,
I am trying to find out how to call beforeSessionDestroyed. From Tomcat
5.5 code I see following
in org.apache.catalina.session.StandardSession
fireContainerEvent(context,
"beforeSessionDestroyed",
listener);
But
We have a 12 (tomcat 5.5.16) instance cluster on 4 physical machines running
redhat linux. There is an Apache installed on each machine (4 mod_jks). Each
mod_jk's worker.properties is configured exactly the same way i.e. each
mod-jk load-balances across all 12 tomcat instances. All instances have t
Hello
We are using the "new" Busyness method with 1.2.18
We have also using 'sticky sessions'.
Clarification on
"> As soon as there will be real load, behaviour will differ."
We have 9 nodes on 3 identitical servers with identical settings, lb
factor equal on all nodes, but we see one node which
Oh ok. I am not sure how I got the round-robin thing in my head.
Anyhow, how does one configure this?
I assume this is load balancer worker type configuration.
-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 1:15 PM
To: Tomcat Users List
Sub
Pid wrote:
here's another obvious question:
if you're in a servlet, and you're getting an & separated string from
somewhere, where is the "somewhere" that you're getting it from?
does the servlet activate and collection the data somehow, or does the
data get sent to the servlet (in, for exampl
Peter Crowther wrote:
From: David Kerber [mailto:[EMAIL PROTECTED]
Is there a more efficient "split" method I could use? Or am I
completely missing the point of what you are suggesting?
I think you've slightly missed the point. I assume you're calling your function 5 times, each with a
mod_jk neither supports round-robin, nor random load-balancing.
Currently you can choose between three algorithms:
method=B (busyness): choose the worker with the lowwest number of
requests currently in processing.
method=R (requests): choose the worker that did the lowest number of
requests
Ramdas,
JConsole or any JMX tool would just give you a slightly more information. I
am not sure how much more helpful it would be.
With JConsole you would be able to look at the memory usage, heap stats,
connector information, database pool sizes, etc. and with that information
you would possibl
here's another obvious question:
if you're in a servlet, and you're getting an & separated string from
somewhere, where is the "somewhere" that you're getting it from?
does the servlet activate and collection the data somehow, or does the
data get sent to the servlet (in, for example the query st
are you rewriting the URLs in each of the pages to maintain the session?
each URL should get modified as a result:
/path/to/file.jsp;jsessiond=00?q=param
what's your jk config?
(unless i've missed something, and given that most people seem to get
this to work OK, it's probably a problem
> From: David Kerber [mailto:[EMAIL PROTECTED]
> Is there a more efficient "split" method I could use? Or am I
> completely missing the point of what you are suggesting?
I think you've slightly missed the point. I assume you're calling your
function 5 times, each with a different field name t
Is it possible to change mod_jk's load-balacing algorithm to random (from
round robin)?
If yes, how?
TIA
Sidd
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Since this is an application in production, i cannot add in any
instrumentation to enable JConsole or JMX information. What i have
currently to work with is the Tomcat status at page
http://:8009/status/status and that has information like :
jk-8009 Max threads: 400 Min spare threads: 375 Max spare
probably a firewall!
-Original Message-
From: Rahul Sood [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 05, 2006 9:03 AM
To: users@tomcat.apache.org
Subject: apache Tomcat webserver problem
Hello.
I have set up tomcat's service catalina to have the default host
192.168.15.100 and have
See my response to Peter; I can't control the format of that data string
(it's from a different application). I just need to split out the data
fields and store them away in a disk file. Or am I missing the point of
your suggestion?
Dave
Leon Rosenberg wrote:
thats ugly, why don't you to
I'm not sure how to "Split it on the &, put it into a suitably keyed
structure such as a Map" other than the way I'm doing it already, unless
I'm not understanding your suggestion. So I think I need to give a bit
more info about how this is used:
I can't control the data coming in; it's from
typically, when I've "installed Tomcat," and always on Windows, be it testing
with a box at home or on a server at work, I've simply unipped it to my C or D
drive.
But I was able to create it as a service nonetheless w/.o any additional
registry keys.
I think it mainly needs the service set up
Thanks for the help!
Leon Rosenberg wrote:
data.length is evaluated each time.
here's the example to demonstrate it:
public class TestLoop {
public static void main(String a[]){
byte data[] = new byte[10];
int counter = 0;
for (int i=0; i
System.out
> From: David Kerber [mailto:[EMAIL PROTECTED]
> It is
> executed for over 2 million data lines per day, so this routine is
> executed over 10 million times per day.
[snippet of code that parses the line each time elided]
Opinion: You're optimising the wrong piece of code.
You're calling this
I am using JBoss and JSF. Can anyone recommend a chat software that enables
instant conversation between two users? It is better to be open source, support
audio and file transfer. Thanks!
-
Yahoo! Music Unlimited - Access over 1 million songs.Try
thats ugly, why don't you tokenize it into string pairs, store the
pairs and works with them?
leon
On 8/7/06, David Kerber <[EMAIL PROTECTED]> wrote:
This code is part of a servlet running in TC 5.5.12, jre ver 1.5.0.6.
I use this code to break out individual data fields from a line which is
st
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> data.length is evaluated each time.
>
> here's the example to demonstrate it:
[Example elided that reassigns data inside the loop]
That example would indeed be evaluated each time. However, *if* the
compiler's sufficiently smart, it could detec
This code is part of a servlet running in TC 5.5.12, jre ver 1.5.0.6.
I use this code to break out individual data fields from a line which is
structured as "a=1&b=2&c=3&d=4&e=5". It is
executed for over 2 million data lines per day, so this routine is
executed over 10 mi
data.length is evaluated each time.
here's the example to demonstrate it:
public class TestLoop {
public static void main(String a[]){
byte data[] = new byte[10];
int counter = 0;
for (int i=0; i wrote:
I have a couple of questions about t
So, you need a directory where you can write files and serve them to
the web, and you don't want that directory to be hard-coded in your
application.
First, you need a way to specify the directory when the app is
installed. (In general your app may need a bunch of configuration
settings.) There a
By the way, this code is in a servlet running under 5.5.12, if it matters.
David Kerber wrote:
I have a couple of questions about the performance of my code, but I'm
going to ask them in separate threads.
The first one is, if I have this loop:
for ( ii = 0; ii < data.length; ii++ ) {
I have a couple of questions about the performance of my code, but I'm
going to ask them in separate threads.
The first one is, if I have this loop:
for ( ii = 0; ii < data.length; ii++ ) {
where data is defined as byte[] , is the .length property evaluated each
time through the loop,
This past week is my first experience/time working w/ tomcat so please bear w/
me. I think I have most of it figured out, the server seems to be running ok
and I've successfully limited the connections to it to ssl only by a couple of
hacks to the server.xml config file[1] The one final thing I c
Markus wrote on Monday, July 31, 2006 5:39 PM:
> Markus wrote on Monday, July 31, 2006 5:34 PM:
>> I've got the following problem on one server using Apache 2.0.54-5
>> (Debian x86) with mod_jk 1.2.15 (self-compiled) and tomcat 5.5.17: I try
>> to
>> create a redirect to a page with a session-id i
> From: Rahul Sood [mailto:[EMAIL PROTECTED]
> Now when I try to access the app using the following url
> http://192.168.15.100:8080/sample from my machine it works fine.
> But if i go to another machine, I am not able to access the
> website.
Have you checked your firewall settings? That's the
Dear friends,
My web-based application needs to communicate with a native library.
Therefore, I specify the JAVA_OPTS variable with the path to a native
library before running startup.sh:
export
JAVA_OPTS="-Djava.library.path=/opt/pkg/pl/lib/pl-5.6.6/lib/i686-linux"
Unfortunately, I got th
I had a similar question, earlier... There is another issue here: you are
right that WAR files are expanded back into a folder - at least by default -
so one could still create a folder within the web app to write to, and which
is visible to browsers... Until one deploys an updated WAR file.
where can I find more information about "old way" ?
On 8/7/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
Holger Klawitter wrote:
> I have written a webapplication with I would like to distribute as a war file
> amongst a few hosts. There is a resource in the context file which needs some
> in
Thanks David,
Again, I want to start the prolog engine, so I need to load the
library of prolog when I start Tomcat 5.5.17. I think the command line
is: java -Djava.library.path=$PLLIBDIR $1
But I do not know where to put this command line in Tomcat in order to
load the prolog library when Tomcat
Holger Klawitter wrote:
I have written a webapplication with I would like to distribute as a war file
amongst a few hosts. There is a resource in the context file which needs some
individual configuration per server.
* I used to unpack directly into the webapps directory and doing the
confi
Thanks David,
Again, I want to start the prolog engine, so I need to load the
library of prolog when I start Tomcat 5.5.17. I think the command line
is: java -Djava.library.path=$PLLIBDIR $1
But I do not know where to put this command line in Tomcat in order to
load the prolog library when Tomcat
Hi there,
I have written a webapplication with I would like to distribute as a war file
amongst a few hosts. There is a resource in the context file which needs some
individual configuration per server.
* I used to unpack directly into the webapps directory and doing the
configuration in the
I have tried to upgrade from apache-2.0.54/tomcat-5.5.9 to
apache-2.2.3/apache-5.5.17 (also tried with apache-2.0.59).
When I use this UseBean at index.jsp (root of webapplication):
class="internet.database.SimpleUseOfConnectionPool" />
I have no problems at all.
When I use the exact same Us
Your log message sited below is not related to accessing jpl.jar. It's
just a message stating it couldn't use the new native APR connector and
is falling back to the traditional Coyote connector.
As far as an external jar file, best practice is include it in your
webapp in WEB-INF/lib. In $C
Hi,
I want to use methods of an external library (jpl.jar file) inside a
java Bean class. But I got this error message from Tomcat 5.5.17 log
file:
Aug 7, 2006 1:14:44 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
perf
Tomcat does not explicitely use any specific classpath outside of it's
own. It even ignores the system set CLASSPATH variable. Check your
config settings and webapp for references to ~/cvs/fable/* directory.
--David
Ryan O'Hara wrote:
I think I found a promising lead to what is going wrong
Question: Is the "other computer" you are trying to contact tomcat from
on the same subnet or outside your cable router. I ask because
192.168.x.x addresses are not routeable. You can get around that with
config settings in your cable router, check the docs for details.
Outside of that, che
Gamefaqs Philippines wrote:
Hmmm.. I didn't have any choice but to search for more docs... I followed the
instructions from the following sites...
http://johnturner.com/howto/mod_jk_conf.html
http://www.devside.net/web/server/windows/tomcat
http://www.ccl.net/cca/software/UNIX/apache/debian-tom
The quick answer:
Do not mess with classpath. Tomcat has a very specific classloader
hierarchy. See
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html for
details. If this does not answer your question, please post a more
detailed message with specifics.
--David
Julien vand
Oscar Mechanic wrote:
> For those of you who ever have this problem
>
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 archiving services and mail clients
used by list subscr
Jack Ashburn wrote:
> Hi,
>
> I'm configuring my Tomcat server so that it uses a "strong" cipher for
> SSL. From the docs in both Tomcat 4.1 and 5.0, the "ciphers" attribute
> for the "connector" element in server.xml accepts "A comma seperated
> [sic] list of the encryption ciphers that may be us
One solution which is often mentioned to this question is to return a URL to
a servlet which knows how to generate the .jpg image as its response. Set
the context type appropriately, and write the JPEG bytes to the output
stream.
Tim
> -Original Message-
> From: Mohsen Saboorian [mailto:
* Oscar Mechanic wrote (07/08/06 12:04):
> For those of you who ever have this problem
>
> Symptoms
>
> 1) Cannot connect to tomcat after a period of time
> 2) Heavy load on startup
> 3) Various strangeness with SSL certs e.g. WEB browsers reject
> certs/incomplete TLS handshake
>
> Observed cas
Hello
would you pleas help me with this ,
when I am trying to decompile a class file with javap -c myclass.class I
am receiving following error :
Error: Binary file myclass contains com.cnsw.reveiw.conf
how can I decompile the class file that contain another class , also I
want to use it wit
For those of you who ever have this problem
Symptoms
1) Cannot connect to tomcat after a period of time
2) Heavy load on startup
3) Various strangeness with SSL certs e.g. WEB browsers reject
certs/incomplete TLS handshake
Observed case
Tomcat version we tried jakarta-tomcat-5.0.12 and jakarta-
Hi,
I'm configuring my Tomcat server so that it uses a "strong" cipher for
SSL. From the docs in both Tomcat 4.1 and 5.0, the "ciphers" attribute
for the "connector" element in server.xml accepts "A comma seperated
[sic] list of the encryption ciphers that may be used. If not
specified, then any
You can use a servlet init param inside web.xml for avoiding hardcoded
solutions.
e.g.
MY_PATH
c:\my\path\to\imgs
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Hi,
Hope I will be clear enough:
One part of my web application receives encodes stream that it has to
convert to jpg images.
hi,
1. even you deploy as war, later after start tomcat, it will still
generate a folder that actually tomcat uses normally. so in this case,
you still be able to use context path to write
2. if you wanna avoid other people modiy, you can create script/IO
stream object that generates folder befor
Oh I see,
something like that , i do not think taht this will work
String imagePath = path+"../imagedir";
but you will have to either convert path to instance of directory
object, or chop of the end by some string functions , using String
imagePath = path+"../imagedir"; as path works for browser
I agree with you, but
getContext().getRealPath("/"), will return the path to my webapp root,
so it means I am going to create my image dir under my webapp, which is
fine unless my application is deployed in a war file.
In such case I won't be able to write in my webapp.
Maybe using
String path
Hi,
to avoid using absolut paths you can find that out on runtime by
getContext().getRealPath("/") - will return your path to the root
regards
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Hi,
Hope I will be clear enough:
One part of my web application receives encodes stream that it
Hi,
Hope I will be clear enough:
One part of my web application receives encodes stream that it has to
convert to jpg images. When an image is written on the server, it
notifies a Servlet which pushes the name (or the url) of the newly
generated image inside client browser(thanks to pushlets
Hi,
It is not advisable to make your webapp dir writable, can you tell me
what exactly would you like to achieve so that I may get more info to
help out ...
On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote:
Hi,
thanks for the advice,
But I want to avoid harcoded links such as $APACHE_HOME\
Hi,
thanks for the advice,
But I want to avoid harcoded links such as $APACHE_HOME\httpdocs\images
or http://yourdomain/images/1.jpg";> in my jsp.
Indeed I don't want to modify these values if I decide Tomcat to run on
another port, or to install Tomcat in another directory or even OS. That
is
79 matches
Mail list logo