Hi,
I use J2EE securitty in my application. I need to know username of
authenticated user. So are there any differences between
request.getRemoteUser() and request.getUserPrincipal().getName()? I
know, I'd get NPE with second call with unauthorized user, but some more
differences?
--
Hi all,
our web application which is an add server (Java 1.5, Apache2 worker
mpm, Tomcat 5, mod_jk, on Debian) is using ehcache 1.2.3 to cache
data.
All was ok since we deploy a new feature which is occasionnaly cpu
consuming. This feature slow down the server for few seconds. After
this slow
Leon,
Leon Rosenberg-3 wrote:
check your probably not existing performance monitoring log files? :-)
On 8/11/06, Propes, Barry L [EMAIL PROTECTED] wrote:
I'm having some problems this morning with performance. How can I easily
determine if it's servlets, or Tomcat, as opposed to
Hi,
my users are experiencing increasing performance if I enable access.log:
!-- Access log processes all requests for this virtual host. By
default, log files are created in the logs directory relative
to
$CATALINA_HOME. If you wish, you can specify a
Hello Frank,
the comment was a bit ironic.
There are no monitoring logs for tomcat, since tomcat doesn't perform
any serious performance or error monitoring. However there are tools
which you could use.
To learn what tomcat is doing you could use lamdaprobe. (www.lamdaprobe.org)
To learn what
Hello Pascal,
I think you should ask your question in the ehcache support list,
since your stacktrace shows that the problem is in their code.
regards
Leon
On 10/9/06, Pascal Alberty [EMAIL PROTECTED] wrote:
Hi all,
our web application which is an add server (Java 1.5, Apache2 worker
mpm,
Hi,
Im not able to access my jsp pages on a tomcat running on a different
machine using the apache2 webserver on localhost. Iv used mod_jk.
Looking at the logs, mod_jk is initialised when the webserver starts and
viewing the catalina.out shows that ajp13 listening on /0.0.0.0:8009
But when I
Tim,
Tim Funk wrote:
Unless you are max'd on working threads - access logging should not be a
performance hit. Access logging takes pace after the response is sent to
the client.
BUT if the access logs are big, AND you a re low on disk, AND/OR your
disk is SLW then that could be
Sorry for the strange quoting, that was me using nabble.com ...
My reply should also contain (but does not - don't know what went wrong):
I've installed LambdaProbe and it tells me that there are not much Threads
(about 50) and most of them are in state of waiting or timed_waiting. So
that
We need details of your mod_jk config. Also are there any network
stumbling blocks like a firewall in between? Can you use the manager
webapp on the tomcat server (not through mod_jk) to confirm that
servlets_examples is available?
--David
Danish wrote:
Hi,
Im not able to access my jsp
Hello Experts,
Im just a little confused about the structure of Tomcat folder
where to put the files. Under my Tomcat installation I got some
folder like:
/common
|
/classes
/endorsed
/i18n
good question.
anyone?
John McPeek wrote:
Hi all,
I am hitting a database form a LoginModule. I would like to use a
datasource. I don't have any problem configuring the datasource and
accessing it from an app. I have a global resource
GlobalNamingResources
...
Resource
Something seems odd with your system. I have pounded some tomcat
installations with old unix hardware with and without access logging and
could hardly tell the difference.
In linux - i was able to tell more of a difference, but not enough to
turn off logging.
I am at a loss of where the
Unfortunately I have to use Windows Server 2003 as the company behind the
application we're using is not supporting UNIX/Linux.
Windows also has performance utilities but they tell me that the server
isn't heavily loaded at all.
A good think would be to have a smaller access log just for
Any/all files related to your web application (including .tld files)
should be within your webapp's folder in the /webapps folder of tomcat.
No need to move any of this around.
There are however minor exceptions to this. One of those exceptions is
if your webapp uses JNDI to access a
I think a long time ago in a galaxy far, far away I remember something
about antivirus impacting file I/O performance. Would your box happen
to have antivirus enabled? If so, any chance you could exclude your
logs from it and/or disable it for the purpose of a test?
--David
Frank
I know we had/have problems with GlobalNamingResources. We have it working
with the connection pool Resource .. and our JAAS realm configured under
the webapp context node.
Also make sure that your JAAS classes are available to tomcat's classloader,
i.e. under common/lib or common classes.
Like
David Smith wrote:
We need details of your mod_jk config. Also are there any network
stumbling blocks like a firewall in between? Can you use the manager
webapp on the tomcat server (not through mod_jk) to confirm that
servlets_examples is available?
--David
Danish wrote:
Hi,
Im
David Smith wrote:
We need details of your mod_jk config. Also are there any network
stumbling blocks like a firewall in between? Can you use the manager
webapp on the tomcat server (not through mod_jk) to confirm that
servlets_examples is available?
--David
Danish wrote:
Hi,
Im
David,
that is a good idea from far, far away :-)
Antivirus is enabled (I'm not suicidal, this is a Windows box ;) but
according to the Windows performance viewer there is no bottleneck on the
harddisk, it's always way under 10% load.
Frank
David Smith-2 wrote:
I think a long time ago in
I'm seeing a lot of stuff -- mostly depricated (in process jni, ajp12). Also
there's no need for the load balancer unless you actually have two or more
tomcat instances to connect to. At the very least, remove the extra space on
the worker.list line of your mod_jk.properties file. I would
I am using Tomcat 5.5 and I am testing a very simple jsp deployed in
tomcat.
I have a directory structure like this :
webapps/wm/test.jsp
webapps/WEB-INF/web.xml
webapps/WEB-INF/classes/DBTest.class
and when I access http://localhost:8080/wm/test.jsp , I get the
following exception:
You can have conditional access logging.
http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
condition='foo'
If set the Valve will look in the ServletRequest for an attribute called
foo. If it exists then the request is logged. (Of course
It's highly recommended that all classes be in packages. This may be
your problem. Add 'package mycompany.myproject ;' to your class source,
recompile, and then place the resulting .class file in
WEB-INF/classes/mycompany/myproject. Restart your webapp and see if
that resolves the issue.
But I'm not sure it would show as a disk bottleneck. If you have
frequent small writes to a disk and each write is delayed while
antivirus checks the datastream for virus signatures, the many tiny
delays could aggegate in to a much bigger file i/o slow down. The
system may experience a
David,
CPU load is also very low, maximum is 80%. There are two CPUs (real, not
virtualized) in the server and according to the performance view on Windows
there could be much more users on the system. But I'm not sure if that
performance view is true or not ...
Frank
David Smith-2 wrote:
From: Divick Kishore [mailto:[EMAIL PROTECTED]
Subject: Class not found problem with simple jsp
I have a directory structure like this :
webapps/wm/test.jsp
webapps/WEB-INF/web.xml
webapps/WEB-INF/classes/DBTest.class
Is that really your structure? Or did you leave out the wm
It's highly recommended that all classes be in packages. This may be
your problem.
Wow that solves my problem. I thought that running without package would
be more simpler but it turned up other way round. I am still wondering
why at all should a class without a package cannot be loaded by
Thnx David,
for clarifieding this concept. Really appriciate.
/Roberto
David Smith ha scritto:
Any/all files related to your web application (including .tld files)
should be within your webapp's folder in the /webapps folder of
tomcat. No need to move any of this around.
There are however
If I remember right, classes in packages has been a requirement since
tomcat 3.3. Overall it's just better coding practice to use packages.
There have been cases -- notably servlets that could get away without a
package, but that's as far as it goes.
--David
Divick Kishore wrote:
It's
From: Divick Kishore [mailto:[EMAIL PROTECTED]
Subject: Re: Class not found problem with simple jsp
I am still wondering why at all should a class without
a package cannot be loaded by tomcat?
Because packages are required by the spec. Quoting from JSP.11.2:
As of JSP 2.0, it is illegal
I would appreciate if you would answer on
my questions.
Thanks
From: Alla Winter
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 06, 2006
1:13 PM
To: users@tomcat.apache.org
Subject: Please help me to
configure TOMCAT with APR connector Thanks
I am trying to configure
Hi all,
I'm experiencing strange behavior when redeploying WARs on Tomcat
5.5.20. The first time the application is deployed it runs without error
but on subsequent re-deployments, I get a Null Pointer Exception from a
log4j class. If I restart Tomcat, the application will run without error
I have had the same. The problem was not the redeploy, but the
un-deploy as part of the redeploy.
Can it be, that you have own threads running? At least it was my
problem, I had threads running, and dear mr. tomcat has already
deinitialized class loaders, so my classes lost their static variables
Hi,
I would say two things:
(1) Use JDK 1.5 for Tomcat 5.5.x.
(2) Look at
http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/[EMAIL
PROTECTED]
for how to configure SSL + APR on windows.
As far as your questions are concerned, someone will able to answer that. :)
Regards,
From: Dhaval Patel [mailto:[EMAIL PROTECTED]
Subject: Re: Please help me to configure TOMCAT with APR
connector Thanks
(1) Use JDK 1.5 for Tomcat 5.5.x.
Not necessary if the 1.4 Compatibility Package is installed (two jars).
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
Thanks for you response.
I am using jdk 1.4 just because my development tool IBM's RAD is still using
jdk 1.4.
Are you saying that APR will not work with jdk 1.4?
-Original Message-
From: Dhaval Patel [mailto:[EMAIL PROTECTED]
Sent: Monday, October 09, 2006 10:06 AM
To: Tomcat Users
From: Alla Winter [mailto:[EMAIL PROTECTED]
Subject: RE: Please help me to configure TOMCAT with APR
connector Thanks
Are you saying that APR will not work with jdk 1.4?
APR works fine with 1.4 - it's native code, not Java. The advice given
by Mr. Patel was irrelevant in that regard.
do you have any resource problems?
How do you know that the performance is falling, and what does falling
exactly mean? 10%? 1%? 1 ms per request?
regards
Leon
On 10/9/06, Frank Niedermann [EMAIL PROTECTED] wrote:
David,
CPU load is also very low, maximum is 80%. There are two CPUs (real,
ops sorry, did i got you right?
my users are experiencing ___increasing___ performance if I enable access.log:
?
So enabling the log actually increases performance? Sounds like jrockit :-)
On 10/9/06, Frank Niedermann [EMAIL PROTECTED] wrote:
David,
CPU load is also very low, maximum is
Hi folks,
I have a servlet with the following web.xml:
?xml version=1.0 encoding=ISO-8859-1?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5.5.15. ROOT.war doesn't get deployed
I packed everything into ROOT.war, copied it into
$TOMCAT_HOME/webapps, restarted tomcat, but it just
doesn't get deployed.
Do I miss something here?
Perhaps. Did you delete the
Pardon the final line of my posting should have read:
So should we upgrade to Tomcat 4.1.31 or to 4.1.34 -
what is best practice given our problem?
Nicolouw M. Kruger [EMAIL PROTECTED] wrote in message news:...
Mark Thomas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The Apache
Hello All,
I have been trying to unsubscribe to this mailing list , and save many
emails for that , haven't been able to un-subscribe myself... can anyone
adivse how to ?? Thanks
khozaima
-
To start a new topic, e-mail:
Nathan,
I am using Tomcat 5.5. I would like to be able to specify different
authentication rules for different url patterns within my web
application.
[snip]
However, if I try it with a browser, once I authenticate for one URI,
then I am locked out of the other one until I successfully
Did you try?
To unsubscribe, e-mail: [EMAIL PROTECTED]
Dan Decker
Microsoft Dynamics GP Developer
www.Business-Computers.com
(303)499-2039
-Original Message-
From: khozaima shakir [mailto:[EMAIL PROTECTED]
Sent: Monday, October 09, 2006 11:53 AM
To: users@tomcat.apache.org
Subject:
Mr. Patel,
I was following your advice and I was able to successfully configure TOMCAT
to use APR. I used it with jdk 1.4
Thanks a lot for your help! I really appreciated it.
PS. Now, after this I think I know some of the answers on my questions. I
may not know the explanation to it, but I just
I'm trying to do something which I think should be easy. I want to
change the default index for my tomcat welcome page from an index.xml
file to an index.xql file. I tried adding index.xql to the welcome
section at the bottom of the main web.xml file but this doesn't seem to
work. If I type
Sorry! I'm using tomcat 5.5.16
Kor Kiley wrote:
I'm trying to do something which I think should be easy. I want to
change the default index for my tomcat welcome page from an index.xml
file to an index.xql file. I tried adding index.xql to the welcome
section at the bottom of the main
On Oct 9, 2006, at 11:20 AM, Christopher Schultz wrote:
Nathan,
I am using Tomcat 5.5. I would like to be able to specify different
authentication rules for different url patterns within my web
application.
[snip]
However, if I try it with a browser, once I authenticate for one URI,
then
From: Kor Kiley [mailto:[EMAIL PROTECTED]
Subject: Switching default index page from xml to xql
I want to change the default index for my tomcat welcome
page from an index.xml file to an index.xql file.
Do you really mean index.jsp? There is no index.xml in the default ROOT
webapp. Also
Hello,
I am using Tomcat
5.0.28 and JSDK 1.4.2_11 on Linux. No Apache is
deployed.
From catalina.out, I
am seeing that _sometimes_ the HTTP/HTTPS connectors are started up before all
of my webapps are loaded. My deployment scenario:
-
4 webapps, each being deployed as a small war file
I'm trying to find a good HowTo or Tutorial on what must be done to
configure Apache-2.0 + Tomcat-5.0 + mod_jk all running on my single
Fedora Core 4 box. Is there such a document? I'm running the Apache
from the original FC4 install. I'm using Sun's Java 1.4.2-10. The
Apache runs correctly
Nathan,
One question: if you a user who needs access to both resources, why are
they not associated with both roles? That's the general [way] to do
authorization.
Well... To be honest we are still in the process of developing use cases
for our user authentication. It may well be that we
From: Eugene Poole [mailto:[EMAIL PROTECTED]
Subject: Is There A HowTo?
I'm trying to find a good HowTo or Tutorial on what must be done to
configure Apache-2.0 + Tomcat-5.0 + mod_jk all running on my single
Fedora Core 4 box.
Unless you have a pressing need to do so, why bother?
Nicolouw M. Kruger wrote:
Pardon the final line of my posting should have read:
So should we upgrade to Tomcat 4.1.31 or to 4.1.34 -
what is best practice given our problem?
Personally, I would upgrade to 4.1.34 (but I would say that wouldn't
I?). As well as the numerous Tomcat bug fixes the
Hopefully, a pretty easy question: how do you determine the IP address of
the server a servlet is running on?
Thanks!
Daniel
Have you been able to un-subscribe?
Dan Decker
Microsoft Dynamics GP Developer
www.Business-Computers.com
(303)499-2039
-Original Message-
From: khozaima shakir [mailto:[EMAIL PROTECTED]
Sent: Monday, October 09, 2006 11:53 AM
To: users@tomcat.apache.org
Subject: need to unsubscribe
Hi Ashley,
Thanks for the response. It seems that I misunderstood something. I
figured that since it was Global that JAAS could see it regardless of
the app that was using it. Once I put the ResourceLink in the context
for each app, all is well. Why should I need to configure the DataSource
Hello Dan-
take a look at obtaining host information via the AccessValve
for specifics on how to implement AccessValve I invite you to look at
http://tomcat.apache.org/tomcat-4.0-doc/config/valve.html#Access%20Log%20Valve
Anyone else?
Martin --
This e-mail communication and any attachments may
In a servlet, request.getLocalAddr() will return the server's IP address.
--
Len
On 10/9/06, Daniel Blumenthal [EMAIL PROTECTED] wrote:
Hopefully, a pretty easy question: how do you determine the IP address of
the server a servlet is running on?
Thanks!
Daniel
From: John McPeek [mailto:[EMAIL PROTECTED]
Subject: Re: JNDI inside a JAAS LoginModule
Is there a way to see Global resources without
referencing them in every app Context?
Try putting the ResourceLink element in conf/context.xml, which is
shared by all webapps.
- Chuck
THIS
Have a look here:
http://tomcat.apache.org/connectors-doc/howto/apache.html
HTH,
Bill
Eugene Poole wrote:
I'm trying to find a good HowTo or Tutorial on what must be done to
configure Apache-2.0 + Tomcat-5.0 + mod_jk all running on my single
Fedora Core 4 box. Is there such a document? I'm
Hi Leon,
you're right - performance is decreasing with log enabled, not increasing.
Would be nice if it was so ;-)
Unfortunately I don't know how to measure specific values, at the moment I'm
listening to my users (it was faster yesterday without log enabled) and
colleagues (I had a case where
64 matches
Mail list logo