> 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 c
"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
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
log4j.appender.R.lay
> 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 w
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: ja
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
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 org.apache.catalina.startup
> 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
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
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 servers
I usually never say this but ..good catch
Martin
-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 - http
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
-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 th
-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 joi
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 yo
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:
> 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 e
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.
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 wro
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
__
> 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 th
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;
>
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 us
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 DataSou
> 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* elements, even for
webapps that hav
>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 t
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 act
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:
http://www.nabble.co
> 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:
> maxThreads="150" minSpareThreads="1"/>
> in Tomcat's server.xml. But I still see
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
Exception has taken place here:
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/bzk2");
this is my Application-specific resource (context.xml)
thank you
2008/12/10 David Smith <[EMAIL PROTECTED]>
> Patient says: It hurts when I do this... (demonstrates movement)
> Doctor
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:
javax.sq
>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:
in Tomcat's server.xml. But I still see the problem when I cap my db
connection pool at 3.
I would think that I should be able to in
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 serve
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
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"
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 webap
> 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 availa
> 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 t
>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 b
> 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
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-user&m=12282306
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
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 or
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
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 respon
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
>
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
>> balanc
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 so
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.
Whe
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 20
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
http://marc.info/
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 Tomc
53 matches
Mail list logo