Thanks Rainer for your reply!
Here's my mod_jk.conf
I solved my previous error adding the directive
JkShmFile /var/log/apache2/mod_jk.shm
(see later the copy of the file)
Now I have different errors:
[Sat Nov 18 09:27:57 2006] [16854:7072] [info]
ajp_send_request::jk_ajp_common.c (1170):
I have a simple JSP-application that makes use of an ODBC database
(access). When I run it using Tomcat on PC2 (XP) its performance is
very good. However, running on PC1 (W2K Server) is orders of
magnitudes slower! :-(
I have already read most of the relevant manuals and tried various
settings
Hi all,
I was wondering if there is a smarter way to reload a jaas configuration
file than to call
Configuration.getConfiguration().refresh(); in a servlet.
I was thinking of such a call in a webapp lifcycle listener.
I really don't know much about JMX but perhaps it should the only nice way?
Hi Enrico,
it looks like the config you sent doesn't fit to your problem. The only
configured forwarding rule with JkMount is a comment, so mod_jk should
never try to reach any tomcat. I assume, you added the comment sign when
trying to find the reason to your problem, but this makes me question
Hi Again,
Running catalina run - same result
Service is not running.
Nothing logged.
How to work out what is not happening??
David
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Saturday, 18 November 2006 4:26 PM
To: Tomcat Users List
Subject: RE:
Nelson, Tracy wrote:
Why not just grab the source
I looked at the source (org.apache.tomcat.util.threads.ThreadPool) and it IS
logging to the commons logger - see below.
private static void logFull(Log loghelper, int currentThreadCount,
int maxThreads) {
your diagnostic appears out of sync with your source
where did you acquire the source?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you
are hereby
On Sat, Nov 18, 2006 at 12:20:59AM -0800, Dave wrote:
How to support RSS in a website so that people can subscribe? I
googled and found lots of documents about how to subscribe and about
news readers, but not talking about how to support RSS functionality
in a website?
Developing Feeds
Dave
I went thru the same thing. Basically all you need to do is make an XML file
and put it on a web server some place. Then provide the link. People can
copy the link and paste it into any rss reader, or if their browser
understands what to do, it will add the rss feed link to the integrated
From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED]
Subject: Tomcat Performance Concerns
I have a simple JSP-application that makes use of an ODBC database
(access).
Try using a real database with JDBC drivers. Access and ODBC are pretty
much just toys and inappropriate for any kind of
From: David Schulberg [mailto:[EMAIL PROTECTED]
Subject: Re: Starting Tomcat
Running catalina run - same result
What shows up in the command prompt window when you do this? (Do not
use the Run... menu item from the Start button.) Are you using the
exact same installation files as the
Good Morning Gaurav-
It is truly Amazing how many managers who want to use Access DB in their
production environments
I would recommend a migration to true multi-threaded environment with a DB
which has full Transaction support such as Oracle
Take a look at
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat Performance Concerns
I would recommend a migration to true multi-threaded
environment with a DB which has full Transaction support
such as Oracle
For once, I at least partially agree with Martin, but I would not use
Oracle
Adding to my own comments: I think I found a problem. So one more question:
Do you also observe a real problem, or only the info log messages. Do
the requests actually fail?
Regards,
Rainer
Enrico Donelli schrieb:
Thanks Rainer for your reply!
Here's my mod_jk.conf
I solved my previous
Can you determine which part of the system is running slowly? One thing to
try would be a simplified version of your application that doesn't access
the database - if it is still slow then you know it's not related to the DB.
You could also add logging messages at various points to measure how
You can purchase Oracle Lite 32 concurrent connections with transaction support
for 90.00 thru University of Wisconsin
http://wwwtest.techstore.doit.wisc.edu/product.asp?itemnum=C13093login=D
Oracle Lite Doc available at
http://download-east.oracle.com/docs/html/A97672_01/wn32db.htm
There are
I'm having problems setting up connection pooling with
comcat 5.5.2.0 and MySQL 5.0.24 using mysql
connector/J 5.0.
I've setup / populated a test database and verified
that I can login to the server/db using the specified
username/password/host found in the connection string.
My server.xml looks
For starters, you might want to make a copy of your server.xml file for
documentation purposes and then drop all the comments from the active
one. The documentation comments are excellent, but they make the
serverl.xml near impossible to read.
At any rate the exception is connection
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I am using JNI to load a library which
I use for a Web Service running on a Tomcat5.5-Server
using Axis. My problem is that when I call a native function
it immediatly fails with java.lang.UnsatisfiedLinkError:
new_ParticleSocket__SWIG_0 (
the entries in the LD_LIBRARY_PATH must be colon separated
if your setting thru bash make sure you export LD_LIBRARY_PATH
If none that works take a look at these LD_LIBRARY_PATH diagnostics
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
M-
This e-mail communication and any
Hi David,
Thank you so much for the response and good advice.
I verified that I was able to connect to MySQL using
the command you suggested (via port 3306). I also
removed the autoReconnect parameter and moved the
pooling config out to Catalina/localhost/DBTest.xml. I
restarted tomcat and I'm
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
the library itself is found and loaded ( at least according to
LD_DEBUG=all ), also if the library is not in the LD_LIBRARY_PATH I get
a different error ( the runtime telling me the library could not be loaded).
- - Daniel Wildschut
Martin
Thanks a lot for your help Rainer, I really appreciate.
From time to time (every couple of weeks) the connector completely
hangs apache. Tomcat alone is still alive, but apache no longer
replies to requests, and I need to restart both
Now it's working properly, but there are still many error
Hi - I'm trying to show utf-8 data in the browser from my jsp page.
When the page renders, its character encoding is iso-8859-1, according
to the browser. The http
response headers have the same encoding (iso-8859-1).
Here's what's been done thus far:
1) meta tag set as follows:
meta
I don't know if this helps, but I had a similar problems once, and it
was caused by a filter which was reading a parameter from the request.
This first access set the encoding to 8859-1, overriding all my
following settings.
I would start from this ... hope this helps.
Good luck!
Enrico
On
From: Daniel Wildschut [mailto:[EMAIL PROTECTED]
Subject: UnsatisfiedLinkError while using JNI
I then used LD_DEBUG=all to check if the library was indeed loaded.
There I found that the library was loaded however when JNI searches
for the necessary function it does not search the newly
From: Enrico Donelli [mailto:[EMAIL PROTECTED]
Subject: Re: Response encoding problem
I don't know if this helps, but I had a similar problems once, and it
was caused by a filter which was reading a parameter from the request.
This first access set the encoding to 8859-1, overriding all my
Hi Enrico,
would you be so kind and answer some of the questions in my previous
mails, before we proceed to further questions from your side :)
Regards,
Rainer
Enrico Donelli schrieb:
Thanks a lot for your help Rainer, I really appreciate.
From time to time (every couple of weeks) the
If your JSP page is being included from another servlet, then it won't be
allowed to set the content-type (or charset) of the response. Just a wild
guess here :).
The HTTP/1.1 RFC states that the character encoding of the headers is
iso-8859-1. That is why Tomcat doesn't provide an option to
Attached is the server.xml file requested.
Regards,
Rusty
-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Sent: Friday, November 17, 2006 02:33 PM
To: Tomcat Users List; Martin Gainty
Subject: Re: Accessing Tomcat Manager failure
Please post the file
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I checked the classloader and indeed the problem was
a classloader conflict ( the imported classes used the System-default
ClassLoader, which lead to the problem ).
I was able to place the call to LoadLibrary into a separate class
which I put
Martin Gainty wrote:
your diagnostic appears out of sync with your source. where did you
acquire the source?
The app is deployed under the the binary distribution gotten from the web
site (http://tomcat.apache.org/download-55.cgi). We do not compile from the
source, at least not yet. I
Thanks Martin and Everyone else for the suggestions.
Martin, Oracle I dont want to go with since its expensive. I will infact try
out MySQL and will let you guys know.
Regards,
Gaurav.
On 11/18/06, Martin Gainty [EMAIL PROTECTED] wrote:
Good Morning Gaurav-
It is truly Amazing how many
Hi Jeff,
jwboring schrieb:
private static void logFull(Log loghelper, int currentThreadCount,
int maxThreads) {
if( logfull ) {
log.error(sm.getString(threadpool.busy,
new Integer(currentThreadCount),
2006/11/19, Gaurav Kushwaha [EMAIL PROTECTED]:
Thanks Martin and Everyone else for the suggestions.
Martin, Oracle I dont want to go with since its expensive. I will infact try
out MySQL and will let you guys know.
I would argue that you chose one of the inferior database management
systems,
Thanks for all your help. Here's some more data and an update:
1) The jsp is basically displaying unicode strings from the db. So,
there is no other data other than a directive to print the string from
the db.
2) Running a direct query from the db shows the string correctly. The
db is mysql.
Well that's a stumper. The connection refused exception implies that
nothing is listening on that port or the port is blocked by a firewall.
Is there any more to that exception like a root cause? Given you are
using the localhost interface, I doubt this has a bearing but would you
happen to
I do have a firewall, but I tried opening port 3306 and still had the same
problem.
I don't know what could be impeding the connection since I'm able to connect to
mysql from the server.
Is there any other way for me to test the connection using from tomcat? Maybe
an interactive logon or
Hi;
just to give my 2-cents as a mod_jk user,
i had a similar problem where mod_jk and tomcat was working ok, and apache
was also working ok, but sending blank pages to the user.
noticed the mod_jk log had grown to over 3GB in size, then deleted and
restarted services and started working fine.
Hi,
As before I get the following output in my DOS window and then nothing
further:
F:\apache-tomcat-5.5.20\bincatalina run
Using CATALINA_BASE: F:\apache-tomcat-5.5.20
Using CATALINA_HOME: F:\apache-tomcat-5.5.20
Using CATALINA_TMPDIR: F:\apache-tomcat-5.5.20\temp
Using JRE_HOME:
From: David Schulberg [mailto:[EMAIL PROTECTED]
Subject: RE: Starting Tomcat
F:\apache-tomcat-5.5.20\bincatalina run
Using CATALINA_BASE: F:\apache-tomcat-5.5.20
Using CATALINA_HOME: F:\apache-tomcat-5.5.20
Using CATALINA_TMPDIR: F:\apache-tomcat-5.5.20\temp
Using JRE_HOME:
41 matches
Mail list logo