Re: number of worker threads in Tomcat 6

2008-09-14 Thread André Warnier

Madhav wrote:

Hi,
I want to know the values of maxThreads, minSpareThreads parameters as well
as the number of 'available' worker threads inside a servlet in Tomcat 6.

I tried googling with -- find worker threads in Tomcat-- and similar phrases
but was not able to get the above info. Could anyone help me ?


The Tomcat 6.0 on-line docs for ,
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
 "maxThreads" attribute
seems to be strongly related to your question.
Or I am understanding this wrong ?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to start tomacat....

2008-09-14 Thread Johnny Kewl


- Original Message - 
From: "Pankaj Jain" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, September 14, 2008 8:38 AM
Subject: Unable to start tomacat



I am unable to start the tomcat .
Whenever i click on start button it shows me some steps but after that it
remain stop.
Plz help me


Log Files... Error messages thats what they for... 
---

HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: number of worker threads in Tomcat 6

2008-09-14 Thread Madhav
Hi André,

Thanks for the reply, but the link is about configuring Tomcat which I know.
What I'm looking for is how to get these information inside servlet, i.e. in
java code. Please let me know that or point me to any resource if you know
that.

Thanks,
Madhav

On Sun, Sep 14, 2008 at 1:44 PM, André Warnier <[EMAIL PROTECTED]> wrote:

> Madhav wrote:
>
>> Hi,
>> I want to know the values of maxThreads, minSpareThreads parameters as
>> well
>> as the number of 'available' worker threads inside a servlet in Tomcat 6.
>>
>> I tried googling with -- find worker threads in Tomcat-- and similar
>> phrases
>> but was not able to get the above info. Could anyone help me ?
>>
>>  The Tomcat 6.0 on-line docs for ,
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
>  "maxThreads" attribute
> seems to be strongly related to your question.
> Or I am understanding this wrong ?
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
-Madhav


Re: number of worker threads in Tomcat 6

2008-09-14 Thread André Warnier

Madhav wrote:

Hi André,

Thanks for the reply, but the link is about configuring Tomcat which I know.
What I'm looking for is how to get these information inside servlet, i.e. in
java code. Please let me know that or point me to any resource if you know
that.


I don't really know.
But I can imagine that, from within your servlet, you might be able to 
"move back up the hierarchy" starting from e.g. the ServletRequest or 
ServletContext, back up to the Host, the Engine, to the Connector, and 
then to its properties, no ?

Or maybe that is not possible for security reasons ?


Gurus ?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to start tomacat....

2008-09-14 Thread Martin Gainty

determine the port your connector is binding to in $TOMCAT_HOME/conf/server.xml 
e.g.

 
 From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Re: Unable to start tomacat
> Date: Sun, 14 Sep 2008 10:43:28 +0200
> 
> 
> - Original Message - 
> From: "Pankaj Jain" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, September 14, 2008 8:38 AM
> Subject: Unable to start tomacat
> 
> 
> >I am unable to start the tomcat .
> > Whenever i click on start button it shows me some steps but after that it
> > remain stop.
> > Plz help me
> 
> Log Files... Error messages thats what they for... 
> ---
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Re: Tomcat 6.0 on-line docs

2008-09-14 Thread Mark Thomas
André Warnier wrote:
> Is this the right place to report something like .. ?

There are enough committers lurking on the users list that one of us
normally spots reports like this. If it looks like we have forgotten /
missed it just create a bugzilla entry.

> In the Tomcat 6.0 on-line docs,
> 
> http://tomcat.apache.org/tomcat-6.0-doc/architecture/overview.html
> in the "Host" section, there are several links that lead nowhere
> (Host, Hosts, StandardHostImplementation)
> 
> Similarly, in the Connector section right below that one.
> 
> Similarly in the Context section below it.

I'll get those fixed. Note that the on-line docs always reflect the latest
stable release so you won't see the fixes until the next 6.0.x release.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: number of worker threads in Tomcat 6

2008-09-14 Thread Mark Thomas
André Warnier wrote:
> Madhav wrote:
>> Hi André,
>>
>> Thanks for the reply, but the link is about configuring Tomcat which I
>> know.
>> What I'm looking for is how to get these information inside servlet,
>> i.e. in
>> java code. Please let me know that or point me to any resource if you
>> know
>> that.
>>
> I don't really know.
> But I can imagine that, from within your servlet, you might be able to
> "move back up the hierarchy" starting from e.g. the ServletRequest or
> ServletContext, back up to the Host, the Engine, to the Connector, and
> then to its properties, no ?
> Or maybe that is not possible for security reasons ?

You can do that. You'll probably need to make your app privileged to do it
(I haven't tested it).

Take a look at how the manager app does it for the status page.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-14 Thread Caldarale, Charles R
> From: walterw [mailto:[EMAIL PROTECTED]
> Subject: JNDI configuration in webapp/META-INF/context.xml
>
> Here is the configuration I am using:
> 

It's , not  - case matters.

> 

Ditto.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: application to windows -> linux

2008-09-14 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Subject: Re: application to windows -> linux
>
> Its highly unusual for a war to work on one and not the
> other... more likely a deployment issue?

Look for proper casing of directory, package, and class names.  Java on Windows 
lets some casing errors slide by, Java on Linux won't.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-14 Thread walterw

Hi,

Thanks for your reply.  I noticed my configuration in the Tomcat
installation directory did have a capital C in context.  However, the files
are identical now, but I'm still not getting a JNDI connection.

[code]



WEB-INF/web.xml



[/code]

Thanks for your suggestion, please let me know what else to try.

I am running Tomcat 6.0.18 on Linux.

Thanks,
Walter

Caldarale, Charles R wrote:
> 
>> From: walterw [mailto:[EMAIL PROTECTED]
>> Subject: JNDI configuration in webapp/META-INF/context.xml
>>
>> Here is the configuration I am using:
>> 
> 
> It's , not  - case matters.
> 
>> 
> 
> Ditto.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JNDI-configuration-in-webapp-META-INF-context.xml-tp19474901p19484751.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-14 Thread Caldarale, Charles R
> From: walterw [mailto:[EMAIL PROTECTED]
> Subject: RE: JNDI configuration in webapp/META-INF/context.xml
>
> 
> WEB-INF/web.xml
> 
>  type="javax.sql.DataSource"
> driverClassName="${jdbc.driver}" url="${jdbc.url}"
> username="${jdbc.username}"
> password="${jdbc.password}" maxActive="100"
> maxIdle="30" maxWait="1"/>
> 

Without seeing what's really being inserted for the various attributes, I don't 
think it's possible to go much further as is.  For now, try replacing the 
variable references with the actual values and see what happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-14 Thread Caldarale, Charles R
> From: walterw [mailto:[EMAIL PROTECTED]
> Subject: RE: JNDI configuration in webapp/META-INF/context.xml
>
> 
> WEB-INF/web.xml
> 
>  type="javax.sql.DataSource"
> driverClassName="${jdbc.driver}" url="${jdbc.url}"
> username="${jdbc.username}"
> password="${jdbc.password}" maxActive="100"
> maxIdle="30" maxWait="1"/>
> 

Also, exactly where is the above  element located?

If you have a  element in conf/Catalina/[host]/[appName].xml that 
might have been created from a previous deployment, that will override the one 
in META-INF/context.xml.  Get rid of the [appName].xml one if it exists.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]