Hi ,
Thanks for all your reply.
Finally it is worked out.
Since Solaris by default allows a process to open some number of files which
is controlled by ulimit.
Since by default it allows a process to have 256 files opened and jre 1.6
also has some additional files(guess),the number of open
2009/10/30 Caldarale, Charles R chuck.caldar...@unisys.com:
Smalltalk is a classic example of the philosophy: I have a hammer, therefore
everything is a nail.
I used to teach Smalltalk*. Of a 3-day course, 1/4 day was on the
language, 1/2 day was on the environment and the rest was on the
Hi, I have a cluster with three tomcat6's instances. My tomcats access
applications on a common repository server, so I use Context descriptors in
order to point the applications. Differents apps often use same libraries,
and I'd like to share libraries at Context Descriptor level (in
Hello team,
I am Vikram Chauhan from New Delhi India and working for one telecom
client. i have installed tomcat 6.6 on my one Application server having
windows 2003 server environment. from last some days its utilization is
going 90% or 95% . due to this lots of problem are coming . some
Hello,
we are using tomcat 6.18 with different webapps for a Document Management
System on a windows 2003 server. TomCat was running as a Windows Service for 1
Year now, without any problems. After the Installation of an new Software from
another software vendor which is using Apache 2.2.11
Hello,
what about the initial memory pool and the maximum memory pool? Are you using:
-XX:MaxPermSize=xxxm
What does the TomCat Logfile write?
Best regrads
Marc
-Ursprüngliche Nachricht-
Von: Vikram S Chauhan [mailto:vikram.chau...@in.ibm.com]
Gesendet: Freitag, 30. Oktober 2009
2009/10/30 Vikram S Chauhan vikram.chau...@in.ibm.com:
I am Vikram Chauhan from New Delhi India and working for one telecom
client. i have installed tomcat 6.6 on my one Application server having
windows 2003 server environment. from last some days its utilization is
going 90% or 95% . due to
I wonder where the mechanism to invoke the login window with user/pwd for
authentication is located, and how to turn it off ? I have a proxy-based
authentication in a server in front of my Tomcat, so the user is already
authenticated when the request reaches Tomcat.
- I have a small valve class
I am serving Cocoon as my default app under Tomcat5 on RHEL5 using a
virtual host implemented in the Apache httpd.conf. This is now working
fine (thanks to the explanations of others on this list!)
I now have to add another app, OpenClinica, in its own virtual host, so
the DNS entry was made,
Peter
last year we targeted IBMWebsphere war files but experienced deployment
anomalies
when dual deploying first to IBM-Websphere6 and then to Tomcat6. We noticed
IBM-Websphere Server pegging stack/heap after just one webapp was deployed
we experienced no resource limitations when
Hi all,
Some background info:
OS: Windows Server 2003
Tomcat Version: 5.5
JDK Version: 1.6.0
I've run into a very annoying problem while trying to enable automatic
context reload on our development server. It works well when there is
not a user logged on to the system (I guess that means
Peter Crowther wrote:
At the other end of the language-complexity scale, I can't remember
the source of the quote but I do appreciate When C++ is your hammer,
everything looks like a screw.
I don't know what you people are all talking about. We Perl programmers
don't have such issues. It
From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com]
Subject: Share libraries for Context Descriptors
Differents apps often use same libraries, and I'd like to share
libraries at Context Descriptor level (in context.xml).
As has been discussed numerous times on this mailing list,
I'm a true Java developper (tm). If a problem can't be solved with Java,
that's not a real problem. Java is for big boys only, isn't it?
On Fri, Oct 30, 2009 at 2:12 PM, André Warnier a...@ice-sa.com wrote:
Peter Crowther wrote:
At the other end of the language-complexity scale, I can't
From: Peter Flynn [mailto:pfl...@ucc.ie]
Subject: Config file weirdness for additional applications
Then I found that Tomcat had also created another identical file in
/etc/tomcat5/Catalina/publish.ucc.ie (our virtual host for the default
Cocoon app).
Post your server.xml file. I suspect
From: daulat khan [mailto:daulat@gmail.com]
Subject: Re: Authencation in apache tomcat
Now i am experience different NPE
java.lang.NullPointerException
java.util.Hashtable.put(Hashtable.java:396)
com.cisco.earms.fm.Dispatcher.doPost(Dispatcher.java:565)
hi Josh, calling Connection.close() does not close statements and
resultsets.
There is an interceptor you can configure called StatementFinalizer that
does exactly that during the close call.
Filip
On 10/29/2009 07:17 PM, Josh Gooding wrote:
I wrote some code on top of the Tomcat's
I have been reading it and ALMOST chimed in, but decided to read farther
first. While I asked a question about it on the sun forums and got slammed
for a class I wrote and posted about why a ConnectionPool would ever have to
implement ServletContextListener. basically I was told to write in
AHH, I will read the API for the StatementFinalizer. I was looking at
something to do that. Thank you Filip!
On Fri, Oct 30, 2009 at 9:53 AM, Filip Hanik - Dev Lists devli...@hanik.com
wrote:
hi Josh, calling Connection.close() does not close statements and
resultsets.
There is an
Searched and googled for a answer for couple of hours.
I've installed and un-installed Tomcat 5.x and 6.x several times using
the windows installer on the Tomcat Apache site on Windows XP.
I've started it as service, and not, manually, on port 80 and 8080.
Stopped all other server
Brian Wolf wrote:
Searched and googled for a answer for couple of hours.
I've installed and un-installed Tomcat 5.x and 6.x several times using
the windows installer on the Tomcat Apache site on Windows XP.
I've started it as service, and not, manually, on port 80 and 8080.
Stopped all
2009/10/30 Brian Wolf brw...@gmail.com:
I've installed and un-installed Tomcat 5.x and 6.x several times using
the windows installer on the Tomcat Apache site on Windows XP.
I've started it as service, and not, manually, on port 80 and 8080.
Stopped all other server related software.
Caldarale, Charles R wrote:
From: Peter Flynn [mailto:pfl...@ucc.ie]
Subject: Config file weirdness for additional applications
Then I found that Tomcat had also created another identical file in
/etc/tomcat5/Catalina/publish.ucc.ie (our virtual host for the default
Cocoon app).
Post your
Hey what API holds the statementFinalizer?
On Fri, Oct 30, 2009 at 9:57 AM, Josh Gooding josh.good...@gmail.comwrote:
AHH, I will read the API for the StatementFinalizer. I was looking at
something to do that. Thank you Filip!
On Fri, Oct 30, 2009 at 9:53 AM, Filip Hanik - Dev Lists
From: Peter Flynn [mailto:pfl...@ucc.ie]
Subject: Re: Config file weirdness for additional applications
Indeed they do. But both ROOT and OpenClinica are subdirectories of
webapps.
Which is why you're getting all webapps deployed under both Hosts. Use
different appBase directories for
Hi all,
I've setup tomcat and apache on my workstation, and unpacked the contents of
the coldfusion 9 war file to my application root.
I have added Host in server.xml and can browse to http://mysite.dev:8080 and
everything runs fine.
looks like this
Host name=mysite.dev appBase=webapps
2009/10/30 Chris Blackwell ch...@team193.com:
VirtualHost *:80
DocumentRoot C:\Users\Chris\Documents\Eclipse Workspace\mysite
If I recall correctly, you don't want this. Serve a blank directory
out of httpd, and proxy everything to Tomcat. Or take httpd out of
the equation completely if you
Caldarale, Charles R wrote:
From: Peter Flynn [mailto:pfl...@ucc.ie]
Subject: Re: Config file weirdness for additional applications
Indeed they do. But both ROOT and OpenClinica are subdirectories of
webapps.
Which is why you're getting all webapps deployed under both Hosts.
Use different
Hi Peter,
I'm trying to get this setup with httpd, because eventually i'd like to
deploy it to my webserver that will host sites with a mixture of coldfusion
and php apps across multiple virtual hosts.
I wouldn't go to the bother if it were just for my development environment.
This is my first
From: Peter Flynn [mailto:pfl...@ucc.ie]
Subject: Re: Config file weirdness for additional applications
Interesting. Where should such new appBase directories be?
That's entirely up to you (and your sysadmin). 3rd-party repackaged versions
of Tomcat scatter files all over the place, so
On Fri, Oct 30, 2009 at 7:59 AM, Peter Flynn pfl...@ucc.ie wrote:
Interesting. Where should such new appBase directories be? Should they be
siblings of webapps? eg /var/lib/tomcat5/abc, /var/lib/tomcat5/def, etc?
Personal choice, but I put *all* webapp directories outside Tomcat's
installation
2009/10/30 Chris Blackwell ch...@team193.com:
I'm trying to get this setup with httpd, because eventually i'd like to
deploy it to my webserver that will host sites with a mixture of coldfusion
and php apps across multiple virtual hosts.
Yep, that's a great reason to go with the architecture
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Josh,
On 10/30/2009 9:54 AM, Josh Gooding wrote:
While I asked a question about it on the sun forums and got slammed
for a class I wrote and posted about why a ConnectionPool would ever have to
implement ServletContextListener. basically I was
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Filip,
On 10/30/2009 9:53 AM, Filip Hanik - Dev Lists wrote:
There is an interceptor you can configure called StatementFinalizer that
does exactly that during the close call.
Can you point me to some documentation for this? The only thing I can
Chris Blackwell wrote:
...
VirtualHost *:80
DocumentRoot C:\Users\Chris\Documents\Eclipse Workspace\mysite
Bad idea, almost always...
ServerName mysite.dev
ProxyPreserveHost On
ProxyPassReverse / ajp://localhost:8009/
RewriteEngine On
# If it's a CFML (*.cfc or *.cfm) request, just
I'm setting httpd tomcat's doc roots to the same location because in my
hosting setup users will be presented with /public_html directory in their
home directory. They should be able to place cfml, php and static resources
in the same location and have them served.
I realize this might not be
http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/interceptor/StatementFinalizer.java?view=log
Filip
On 10/30/2009 08:34 AM, Josh Gooding wrote:
Hey what API holds the statementFinalizer?
On Fri, Oct 30, 2009 at 9:57 AM, Josh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pierre,
On 10/30/2009 9:21 AM, Pierre Goupil wrote:
I'm a true Java developper (tm). If a problem can't be solved with Java,
that's not a real problem.
Here's one Java can't do (without significant help):
Write a command-line (no GUI) app that
look at jdbc-pool.html it has all the info, here are examples out of it
Configuration
Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource
factory=org.apache.tomcat.jdbc.pool.DataSourceFactory
testWhileIdle=true
2009/10/30 Chris Blackwell ch...@team193.com:
I'm setting httpd tomcat's doc roots to the same location because in my
hosting setup users will be presented with /public_html directory in their
home directory. They should be able to place cfml, php and static resources
in the same location
Caldarale, Charles R wrote:
Interesting. Where should such new appBase directories be?
That's entirely up to you (and your sysadmin).
So they don't have to be in and around the tomcat directories. OK, many
thanks. I must have missed this in the docs: the plural status of the
directory
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
James,
On 10/30/2009 9:05 AM, James Murphy wrote:
Some background info:
OS: Windows Server 2003
Tomcat Version: 5.5
JDK Version: 1.6.0
I've run into a very annoying problem while trying to enable
automatic context reload on our development
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotationon catalina.out)
Here's one Java can't do (without significant help):
Write a command-line (no GUI) app that prompts for a sensitive keyboard
On Oct 30, 2009, at 10:17 AM, Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotationon catalina.out)
Here's one Java can't do (without significant help):
Write a command-line (no
From: Robert Koberg [mailto:r...@koberg.com]
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotationon catalina.out)
I have been trying to pound in a nail with java. I have tried
everything and the damn nail just won't go in. I almost ready
to give up.
Try pounding on
Ok, that was it. chrome was hanging on to the source in its cache and
really didn't want to give it up.
I do take on board your points about the single docroot approach. testing
here on windows requesting indeX.cfM will serve up the source, which isn't
good! but the hosting environment is
On Fri, Oct 30, 2009 at 11:33 AM, Christopher Schultz
ch...@christopherschultz.net wrote:
Heh. Obviously, someone hasn't worked in the real world. Did he realize
that writing to the contract in this case could potentially bring-down
the database server?
Eh, I just let it go. I'm beyond
Wait a second. What I am seeing from you Filip and what I have in my
context.xml are similar:
Context
WatchedResourceWEB-INF/web.xml/WatchedResource
Resource
name=jdbc/RealmDB auth=Container type=javax.sql.DataSource
username=root password=password
staI guess this is the problem , although I don't understand it
catalina log file:
Oct 30, 2009 11:22:54 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2799 ms
Oct 30, 2009 11:22:55 AM org.apache.catalina.core.StandardService start
INFO: Starting service
From: Brian Wolf [mailto:brw...@gmail.com]
Subject: Re: not able to connect to localhost
Oct 30, 2009 11:23:02 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
Something is already using
nope, you're using commons-dbcp, see the factory attribute in my config
Filip
On 10/30/2009 12:22 PM, Josh Gooding wrote:
Wait a second. What I am seeing from you Filip and what I have in my
context.xml are similar:
Context
WatchedResourceWEB-INF/web.xml/WatchedResource
Resource
I also found this tid bit lying around. It get's a connection, but doesn't
close the statement.
public static void closeResources(ResultSet rs) throws
AardvarkResourceException {
try {
Statement s = rs.getStatement();
if (s != null) { // ResultSets produced by
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 10/30/2009 1:17 PM, Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotationon catalina.out)
Here's one Java can't do
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 10/30/2009 1:17 PM, Caldarale, Charles R wrote:
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotationon catalina.out)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Josh,
On 10/30/2009 2:10 PM, Josh Gooding wrote:
Oh this code BLEEDS resources. The only semi annoyance is that the methods
that get RS's are usually returned like:
return
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Josh,
On 10/30/2009 2:42 PM, Josh Gooding wrote:
I also found this tid bit lying around. It get's a connection, but doesn't
close the statement.
Might I suggest the following changes:
public static void closeResources(ResultSet rs) throws
Hi,
we have one Apache-2.2.13 running mod_proxy_ajp + mod_proxy_balancer,
connected to (3) Tomcat-6.0.20 instances under Fedora release 8. We
are experiencing some issues with high CPU load on the Tomcat side,
and Apache starts logging errors like this
[Fri Oct 30 14:47:43 2009] [error]
I'm trying to get basic SES urls working, in the form of
http://mysite.dev/index.cfm/foo/1/bar/2
Coldfusion 9's web.xml ships with the following servelt-mapping, but it
doesn't seem to work on Tomcat
servlet-mapping id=coldfusion_mapping_6
servlet-nameCfmServlet/servlet-name
On Fri, Oct 30, 2009 at 4:56 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
Java is for big boys only, isn't it?
I've heard that recent (even several years old, now) versions of Java
VMs can match the speed of compiled C++ for many non-trivial uses.
But, can the Java compiler use
From: Chris Blackwell [mailto:ch...@team193.com]
Subject: servlet mappings
Coldfusion 9's web.xml ships with the following servelt-mapping, but it
doesn't seem to work on Tomcat
servlet-mapping id=coldfusion_mapping_6
servlet-nameCfmServlet/servlet-name
-Original Message-
From: Josh Gooding [mailto:josh.good...@gmail.com]
Sent: Friday, October 30, 2009 1:11 PM
To: Tomcat Users List
Subject: Re: ConnectionPool question
This is not bad, but there is NO PLACE in the code that actively closes all of
the resources. Sometimes the code is
Caldarale, Charles R wrote:
From: Chris Blackwell [mailto:ch...@team193.com]
Subject: servlet mappings
Coldfusion 9's web.xml ships with the following servlet-mapping, but it
doesn't seem to work on Tomcat
servlet-mapping id=coldfusion_mapping_6
servlet-nameCfmServlet/servlet-name
Hey Filip, I do not have /jdbc/pool/DataSourceFactory in my
tomcat-dbcp.jar. Is there some other place I should look?
My jar's structure goes as:
org/apache/tomcat/
dbcp
jocl
pool
Under the dbcp I have a DataSourceConnectionFactory.class (which I am making
an assumption that is what it is.)
Where does it close the connection? Looks like it gets it, but the close part
is commented out. The rs gets closed, but the connection gets recycled.
Theoretically.
Seems like you put a finally block down there to try catching/closing the
wayward connection.
-Original Message-
From:
Barry I changed the code to this:
public static void closeResources(ResultSet rs) throws
AardvarkResourceException {
Statement s = null;
Connection c = null;
try {
s = rs.getStatement();
if (s != null) {
c = s.getConnection();
When you said you used the Tomcat ConnectionPool class, I simply assumed
that you were using the new pool being developed at Tomcat
http://people.apache.org/~fhanik/jdbc-pool/v1.0.7.1/
the org.apache.tomcat.dbcp is the same as the commons-dbcp, just renamed
to avoid class naming conflicts
THIS looks MUCH better.
Initializing the connections and statements to null outside, then going in to
do the conns and subsequently closing with the try/catch/finally block like you
have.
What did the stack trace show?
I am still on the dinosaur 4 version, getting ready to very soon upgrade
Sorry, Josh.
I forgot to include this:
ResourceParams name=jdbc/myoracle
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
Although you might very well have to use DataSourceFactory, not
BasicDataSourceFactory
-Original Message-
Yes, but the code for the AardvarkResourceException is a little strange.
public class AardvarkResourceException extends Exception {
//TODO: eventually change this to a logging exception
public AardvarkResourceException() {
}
public AardvarkResourceException(String message) {
When I log into the Tomcat Web Application Manager, in addition to the
actual webapps defined in server.xml, it also lists the /bin, /conf, /logs,
/temp, /lib and /work directories of the Tomcat installation as if they are
webapps.
I doubt this is correct, so how do I fix it?
thanks,
Tomcat 6
On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast
jhmast.develo...@gmail.com wrote:
When I log into the Tomcat Web Application Manager, in addition to the
actual webapps defined in server.xml, it also lists the /bin, /conf, /logs,
/temp, /lib and /work directories of the Tomcat installation as if
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Josh,
On 10/30/2009 4:31 PM, Josh Gooding wrote:
public static void closeResources(ResultSet rs) throws
AardvarkResourceException {
Statement s = null;
Connection c = null;
try {
s = rs.getStatement();
I think it must be because all the webapps except the manager webapp is
actually located outside of tomcat's dir (its in httpd's directory).
Its too late in the day for the sanitization needed with my server.xml, but
I think the cause is the dir issue above.
thanks
On Fri, Oct 30, 2009 at 5:07
-Original Message-
From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
Sent: Friday, October 30, 2009 1:53 PM
To: Tomcat Users List
Subject: Re: [OT] Hammers and nails (was Re: A question about log-
rotation on catalina.out)
On Fri, Oct 30, 2009 at 4:56 PM, Christopher
I installed Tomcat 6.0.20 on my 64bit Window2003. I installed the service. But
the Service did not start. Jakarta_service_mmdd.log file logs the below:
[994 prunsrv.c] [error] Failed creating java and
[1269 prunsrv.c] [error] ServiceStart returned 1
Please help me to run the service
sc query tomcat
what do the logs say?
Martin
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine
Hi folks,
I've hunted for this and seen it asked in the past -- but none of the
threads I found led me to the answer.
Fresh install of Tomcat6 on fresh install of ubuntu.
Commented out the localhost Host/
Set my someplace Host/ as the default.
Host name=someplace
We it works. Thanks for all the great help. I tracked down the problem to
wcescomm.exe from microsoft which seems have acquired a level of noteriety
and a coll aborative tool ercalled dimdim which does have a tomcat it,
and is hard to remove from your computer, you need to download and install
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brian,
On 10/30/2009 8:29 PM, Brian Wolf wrote:
We it works. Thanks for all the great help. I tracked down the
problem to wcescomm.exe from microsoft which seems have acquired a
level of noteriety and a coll aborative tool ercalled dimdim which
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pete,
On 10/30/2009 7:59 PM, Pete McNeil wrote:
Fresh install of Tomcat6 on fresh install of ubuntu.
Be specific: exactly which version of Tomcat 6?
Host name=someplace appBase=/home/someplace/webapps
unpackWARs=true
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hassan,
On 10/30/2009 5:07 PM, Hassan Schroeder wrote:
On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast
jhmast.develo...@gmail.com wrote:
When I log into the Tomcat Web Application Manager, in addition to the
actual webapps defined in server.xml,
2009/10/31 tiffany.d...@inovis.com tiffany.d...@inovis.com:
I installed Tomcat 6.0.20 on my 64bit Window2003. I installed the service.
But the Service did not start. Jakarta_service_mmdd.log file logs the
below:
[994 prunsrv.c] [error] Failed creating java and
[1269 prunsrv.c] [error]
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pete,
On 10/30/2009 7:59 PM, Pete McNeil wrote:
Fresh install of Tomcat6 on fresh install of ubuntu.
Be specific: exactly which version of Tomcat 6?
Using CATALINA_BASE: /usr/share/tomcat6
Using
Filip I grabbed the tomcat-jdbc.jar file and included it under the /lib
folder in my tomcat installation. I modified my context.xml's resource tag
to the following:
Resource
name=jdbc/RealmDB
auth=Container
type=javax.sql.DataSource
Chris,
I was looking at that earlier, wondering why it was put in there in the
first place. It just doesn't fit in. Sometimes you just hate to inherit
someone else's mess.
While there is another school of thought telling me to re-write the entire
DAO (which I could be willing to later on) for
85 matches
Mail list logo