Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-12-10 Thread Jesse Klaasse
After two months with a system running smoothly, we are currently experiencing the same problems again (albeit less often). A little update: - The system's memory has been upgraded to 16 GB, Tomcat's memory settings are Xms4096m and Xmx10240m now. - We are using commons-dbcp 1.2.2 instead of

Re: Apache Tomcat 6.0.18 Not Starting

2008-12-10 Thread André Warnier
Michael CC wrote: I am already running Apache Webserver on 8080. I changed the Connector Port to 8088 in the Server. xml file. When I test the service by calling http://localhost:8088/ I get the Internet Explorer cannot display the webpage. Maybe another back-reference to

modjk windows connection_pool_size need to be sure

2008-12-10 Thread killbulle
Hi the list, i've two litlles question about using modjk on windows apache mpm_winnt(i'am not using windows for fun...) as i understand the documentation my worker.template.connection_pool_size=200 must be adequate with he the ThreadsPerChildin the windows mpm i have 5 tomcats servers with

Re: Can not fail over a web service call using mod_jk

2008-12-10 Thread Rainer Jung
Michael Ludwig schrieb: Rainer Jung schrieb am 09.12.2008 um 22:17:16 (+0100): I'm looking forward to httpd 2.4 with mod_luau aka mod_wombat, an embedded Lua interpreter that has access to httpd objects (like the request object) and will allow us to inject custom logic e.g. for balancing and

Re: modjk windows connection_pool_size need to be sure

2008-12-10 Thread Rainer Jung
killbulle schrieb: Hi the list, i've two litlles question about using modjk on windows apache mpm_winnt(i'am not using windows for fun...) as i understand the documentation my worker.template.connection_pool_size=200 must be adequate with he the ThreadsPerChildin the windows mpm i have

Tomcat-- Web Server or Web Container?

2008-12-10 Thread Thangavel Sankaranarayanan
Hi I have a doubt which is breaking my head and I dont find good definition for it... What is the difference between Web Server and Web Container? What are the roles of Web Server and Web Container ? is Tomcat a Web Server or Web Container ..and why? I would e very Thankfull to find a

Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-12-10 Thread Rainer Jung
Hi Jesse, Jesse Klaasse schrieb: After two months with a system running smoothly, we are currently experiencing the same problems again (albeit less often). A little update: - The system's memory has been upgraded to 16 GB, Tomcat's memory settings are Xms4096m and Xmx10240m now. When

Tomcat caching of static resources?

2008-12-10 Thread David Smith
Hi all, is it possible to cache static images and .js files in Tomcat? (I'm using version 6). When i look at the browser cache it looks like the browser is downloading all page assets for every call, including some very large .js files. I've come across a link which may be the same issue but the

Re: Tomcat-- Web Server or Web Container?

2008-12-10 Thread Leon Rosenberg
tomcat is a web server for it serves http requests. tomcat is a servlet container according to the servlet spec. there is no such thing as web container. regards Leon On Wed, Dec 10, 2008 at 1:19 PM, Thangavel Sankaranarayanan [EMAIL PROTECTED] wrote: Hi I have a doubt which is breaking my

RE: Tomcat thread pool question

2008-12-10 Thread ped
You're right, maybe I put this in the wrong forum. Below is a stack trace of a request when it first enters my code on a successful request. In the error case, my code is not being invoked. I believe that all of the code below (except the top 4 call frames) are coyote and catalina code. I thought

Re: Tomcat resources

2008-12-10 Thread Pid
Caldarale, Charles R wrote: From: Kees de Kooter [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat resources Is this some would-be turing machine babbling away or is there are genuine question here? Might be time to repost Andre's list... http://marc.info/?l=tomcat-userm=122823060425367w=2

RE: Tomcat-- Web Server or Web Container?

2008-12-10 Thread Ilya Kazakevich
Hi, Web-server is a tool, which handles HTTP requests. Apache is web-server. Microsoft IIS is web-server. Thttpd is web-server too. Servlet-container (according to specification of servlets) is something, that runs servlets in special environment. Web-server may work with CGI or static pages

RE: Tomcat thread pool question

2008-12-10 Thread Caldarale, Charles R
From: ped [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat thread pool question I believe that all of the code below (except the top 4 call frames) are coyote and catalina code. It's the top frames that are critical, of course, since they show where the thread is stuck. When I recreate my

RE: Tomcat thread pool question

2008-12-10 Thread ped
It's the top frames that are critical, of course, since they show where the thread is stuck. That stack trace is not from when the thread is hung - I put a bp on the entry point to my code so that I could see what code an incoming request must go thru before being passed to my code - my theory

RE: Tomcat caching of static resources?

2008-12-10 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Tomcat caching of static resources? is it possible to cache static images and .js files in Tomcat? Think about what you just asked for: how would caching static resources in the server avoid them being downloaded by the browser? It's the

RE: Tomcat thread pool question

2008-12-10 Thread Caldarale, Charles R
From: ped [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat thread pool question Perhaps there is a subtle bug here, or misconfiguration on my part It's not subtle - it's blatant. The db connection pool is exhausted, all of the Tomcat threads are waiting for db connections to become available,

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-12-10 Thread Filip Hanik - Dev Lists
after modifying the cart, you must add session.setAttribute(cart,cart) to trigger replication Filip rohit aman wrote: Hey Filip, sorry abt that. here is the example web application zip file: http://www.yousendit.com/download/TTZuRFFhbEo5eFh2Wmc9PQ please unzip it, put it in your

Set and pick FROM in context.xml

2008-12-10 Thread Tokajac
Hello! My context.xml looks like: [CODE] Resource name=mail/Session auth=Container type=javax.mail.Session mail.store.protocol=pop3 mail.pop3.host=mail.server mail.transport.protocol=smtp mail.smtp.host=mail.server mail.smtp.port=portNo

problem in pooled database

2008-12-10 Thread ahmet temiz
hello I am trying to manage pooled database (postgresql).I am encountering this problem : java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to javax.activation.DataSource I will appreciate if you supply any information to me to overcome the problem kind

Re: access to all sessions

2008-12-10 Thread Timothy J Schumacher
Hi Leon, How bad of an idea is it to set privileged=true in my context? Wouldn't this give me access to the things I want (and much more that I probably don't want access to)? Our environment is such that maybe this isn't totally out of the question, we run TC in a piece of hardware to

RE: Tomcat thread pool question

2008-12-10 Thread ped
all of the Tomcat threads are waiting for db connections to become available So that implies that Tomcat only supports a max of 3 threads... I uncommented: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=1/ in Tomcat's server.xml. But I

Re: problem in pooled database

2008-12-10 Thread David Smith
Patient says: It hurts when I do this... (demonstrates movement) Doctor says: Don't do that. Moral of the story is the error message is pretty clear. If your class has imported javax.activation.* and javax.sql.*, you may have to be more specific on the type of your datasource variable:

Re: problem in pooled database

2008-12-10 Thread ahmet temiz
Exception has taken place here: DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/bzk2); this is my Application-specific resource (context.xml) ?xml version=1.0 encoding=UTF-8? Context path=/home/orkun/workspace5/w1 docBase=w1 crossContext=true reloadable=true debug=1 Resource

Re: problem in pooled database

2008-12-10 Thread David Smith
Ok... so what do the import statements at the top of that file look like? Seems to me java has taken DataSource to mean javax.activation.DataSource instead of javax.sql.DataSource. That's probably because of the imports at the top of your source file. --David ahmet temiz wrote: Exception has

RE: Tomcat thread pool question

2008-12-10 Thread Caldarale, Charles R
From: ped [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat thread pool question So that implies that Tomcat only supports a max of 3 threads... Obviously untrue, since the default is 200. I uncommented: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150

Mbean accessible as a singleton across a tomcat cluster?

2008-12-10 Thread attel75
How can I deploy an Mbean so it is accessible as a singleton across a tomcat cluster. So far have been unable to use the Mbean as a singleton, each cluster member seems to be getting its own Mbean instance. Any help is appreciated. Thanks! -- View this message in context:

Context placement question

2008-12-10 Thread János Löbb
Hi, I am in the process to convert our production Apache2 + mod_jk + Tomcat setup on Max OSx 10.5 to a cluster, so some applications can run on the cluster, other applications will run only on one of the two participating balance members. The Apache in one of the machines will also

RE: Tomcat thread pool question

2008-12-10 Thread ped
The Tomcat thread pool is finite; we'll call the maxThread value T. Likewise, the db connection pool is finite, and we'll call its size D. The client makes some number of requests that are not committed, which we'll label R. Anytime R T + D, you're stuck. Yes - that's my understanding of

RE: Context placement question

2008-12-10 Thread Caldarale, Charles R
From: János Löbb [mailto:[EMAIL PROTECTED] Subject: Context placement question The default context.xml in the conf directory - $CATALINA_BASE/conf/ context.xml -, starts up the StandardContext by default No - it merely adds attribute values for *all* Context elements, even for webapps that

Re: problem in pooled database

2008-12-10 Thread ahmet temiz
Now, it seems ok after disabling javax.activation.DataSource; //import javax.activation.DataSource; import javax.sql.DataSource; thank you 2008/12/10 David Smith [EMAIL PROTECTED] Ok... so what do the import statements at the top of that file look like? Seems to me java has taken DataSource

How do I uninstall tomcat

2008-12-10 Thread BoyePeter
Hi Folks, I recently installed tomcat version 6 on my Windows XP laptop in order to test some Java servlets. Windows XP is fully up to date with all service updates and security updates. I believe that I followed all the installation instructions correctly and Tomcat reports that it is running

Re: problem in pooled database

2008-12-10 Thread David Smith
You could also be more explicit in your code if you import two classes of the same name from different packages: javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup( java:comp/env/jdbc/bzk2 ) ; --David ahmet temiz wrote: Now, it seems ok after disabling javax.activation.DataSource;

RE: How do I uninstall tomcat

2008-12-10 Thread Caldarale, Charles R
From: BoyePeter [mailto:[EMAIL PROTECTED] Subject: How do I uninstall tomcat Can I just delete the tomcat directory? If you installed Tomcat from the .zip download, then yes. If you ran the service.bat script to create a Tomcat service, run service.bat remove first. If you had used the

RE: problem in pooled database

2008-12-10 Thread Martin Gainty
also if you are going to be opening up more than 1 connection I would suggest using connection-pool Here is Oracle ex. http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-datasource/doc/how-to-datasource.html#conf (and follow david's advice) Martin

Re: problem in pooled database

2008-12-10 Thread ahmet temiz
thank you 2008/12/10 David Smith [EMAIL PROTECTED] You could also be more explicit in your code if you import two classes of the same name from different packages: javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup( java:comp/env/jdbc/bzk2 ) ; --David ahmet temiz wrote: Now,

RE: How do I uninstall tomcat

2008-12-10 Thread BoyePeter
Chuck, Ta much for your advice and response. Best Regards, Pete -- View this message in context: http://www.nabble.com/How-do-I-uninstall-tomcat-tp20941964p20942486.html Sent from the Tomcat - User mailing list archive at Nabble.com.

RE: problem in pooled database

2008-12-10 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: problem in pooled database also if you are going to be opening up more than 1 connection I would suggest using connection-pool The OP is already using connection pooling. Note the subject line of this thread and the use of a

RE: Re: Apache 5.5 on SSL - mod_SSL version?

2008-12-10 Thread Matt Moreira
Thanks for the reply. The errors are now gone. Has mod_SSL been published for Apache 5.5? I do not see it. This is all fronting a Liferay application. Matt -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, December 09, 2008 7:21 PM To:

Re: service.bat install failure (Windows, v 6.0.18)

2008-12-10 Thread andrew
Chuck, If you're still out there, I'm sort of continuing the service install thread. I have managed to move on to a different problem (but not real happy about how). I pretty much gave up on the Permission is denied. problem. (I have another vague thought about what was happening if you

Re: Tomcat thread pool question

2008-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ped, ped wrote: If I execute the loop N-1 times, I have no problems - I can execute my loop over and over. I can verify that I am not leaking connections (I have a monitor thread that displays the number of active connections). I'm probably

Re: Tomcat thread pool question

2008-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ped, ped wrote: I would think that I should be able to increase the number of threads available to Tomcat to prevent this problem (I'm not saying that is the correct solution to my problem - I fully understand that our design is the root of this

Re: Tomcat thread pool question

2008-12-10 Thread Michael Ludwig
ped schrieb am 10.12.2008 um 10:33:23 (-0800): The Tomcat thread pool is finite; we'll call the maxThread value T. Likewise, the db connection pool is finite, and we'll call its size D. The client makes some number of requests that are not committed, which we'll label R. Anytime R T +

Re: Tomcat thread pool question

2008-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Christopher Schultz wrote: So, unless you have maxActive == dbcp size, you're screwed. Er, that should be maxActive == maxThreads. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla -

RE: Tomcat thread pool question

2008-12-10 Thread Martin Gainty
i have a thread going on another list about integrating corner cases for SQL e.g. 1 connection or 999 connections it would be helpful for the Build manager to auto-execute these corner cases before deploying to staging servers I usually never say this but ..good catch Martin

Re: Tomcat thread pool question

2008-12-10 Thread André Warnier
Possibly [OT], and just disregard if so. I am just trying to follow this thread and to understand, from my very superficial and elementary knowledge of things Java and Tomcat. So we have a Tomcat, which somehow has a pool of database connections ready to be lent to webapps. And we have a

RE: Tomcat thread pool question

2008-12-10 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat thread pool question So we have a Tomcat, which somehow has a pool of database connections ready to be lent to webapps. In this particular case, the db connection pool is managed by Hibernate, not Tomcat. More typical usage

How to set Log4J debug flag in Tomcat

2008-12-10 Thread Prastein, Rebeccah H
How do I start tomcat as an application (not a service) and set the log4j debug commandline parameter? I tried editing startup.bat to prepend -Dlog4j.debug to %CMD_LINE_ARGS%, but I get the following error on startup, and I don't see any log4j debug output: usage: java

Re: Tomcat thread pool question

2008-12-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat thread pool question So we have a Tomcat, which somehow has a pool of database connections ready to be lent to webapps. In this particular case, the db connection pool is managed by Hibernate, not

Re: How to set Log4J debug flag in Tomcat

2008-12-10 Thread André Warnier
Prastein, Rebeccah H wrote: How do I start tomcat as an application (not a service) and set the log4j debug commandline parameter? I tried editing startup.bat to prepend -Dlog4j.debug to %CMD_LINE_ARGS%, but I get the following error on startup, and I don't see any log4j debug output: usage:

RE: Tomcat thread pool question

2008-12-10 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat thread pool question So it has nothing to do directly with the threads. Only in determining how many requests can be accepted by Tomcat before going on the limited TCP/IP queue and subsequent requests being rejected. I will

RE: How to set Log4J debug flag in Tomcat

2008-12-10 Thread Martin Gainty
LOGGING: Create a file called log4j.properties with the following content and save it into common/classes. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10

Re: Tomcat caching of static resources?

2008-12-10 Thread Bill Barker
Caldarale, Charles R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: David Smith [mailto:[EMAIL PROTECTED] Subject: Tomcat caching of static resources? is it possible to cache static images and .js files in Tomcat? Think about what you just asked for: how would caching

RE: service.bat install failure (Windows, v 6.0.18)

2008-12-10 Thread Caldarale, Charles R
From: andrew [mailto:[EMAIL PROTECTED] Subject: Re: service.bat install failure (Windows, v 6.0.18) I did a completely clean extract of the 6.0.18 tar.gz archive I usually use the .zip for Windows, but it should be the same thing. I notice that it does not start the service, so I take care