RE: Why Tomcat hang for a while before starting

2008-03-06 Thread Mohamed Mohamedin
Can you please tell me how to detect such symbolic link.

Thanks a lot


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 12:42 AM
To: Tomcat Users List
Subject: RE: Why Tomcat hang for a while before starting

> From: Mohamed Mohamedin [mailto:[EMAIL PROTECTED] 
> Subject: Why Tomcat hang for a while before starting
> 
> "main" prio=1 tid=0x401161f0 nid=0x70ed runnable
> [0x7fdc1000..0x7fdc35d0]
> at java.io.UnixFileSystem.list(Native Method)
> at java.io.File.list(File.java:937)
> 
> The only difference I can tell is the slow one have a 
> symbolic link in its webapps while the other not.

I'd be looking for symbolic links that are forming an infinite loop.

 - 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]


__ NOD32 2922 (20080305) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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]



META-INF/context.xml does not take effect

2008-03-06 Thread uma_rk


Env: Jre 1.6, Tomcat 6.0.14

I have  a collection of 3 webapp contexts installed in Tomcat.

I have a context.xml defined in conf/ to define a a custom WebappLoader, since 
I want 
all my webapp contexts to be loaded using my custom loader:

 

Webapp 1 however, has a special resource that it loads via JNDI.
Hence I defined the resource in Webapp1/META-INF/context.xml 
as follows:


  



In the webapplication, the resource "jdbc/MyJdbcConn"  is not accessible;

Would the presence of conf/context.xml entirely override META-INF/context.xml?

(yes, I 've read http://tomcat.apache.org/tomcat-6.0-doc/config/context.html).

Thanks,

/U

-
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: viewing servlets on Tomcat

2008-03-06 Thread Richard Dunne
I have re-installled Tomcat (apache-tomcat-6.0.16) usung the zip.  I have set 
CATALINA_HOME as
c:\Program Files\Apache Software Foundation\Tomcat 6\apache-tomcat-6.0.16, but 
catalina.bat is moaning about not being set right.  



- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 5:48:31 AM
Subject: RE: viewing servlets on Tomcat

> From: Richard Dunne [mailto:[EMAIL PROTECTED] 
> Subject: Re: viewing servlets on Tomcat
> 
> If it should be, it's not.  webapps contains docs, 
> host-manager, manager and ROOT. 

I think a reinstall is in your future.  I prefer installing from the
.zip rather than the .exe, since it gives you more options for running
Tomcat - the .zip includes .bat files for starting and stopping Tomcat
as well as running it as a service, whereas the .exe only installs as a
service.

- 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]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: difference between TC5.5 and TC6

2008-03-06 Thread Konstantin Kolinko
And also there is
http://tomcat.apache.org/migration.html

> >
>  > Is there any documentation available where I can read about
>  > all the changes that has happened from TC 5 to TC6.
>
>
> http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
>

-
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: CVS check-out

2008-03-06 Thread David kerber

I have no clue; I've never used CVS, ever!

D


Quodras, Naveen wrote:
 
Hi David,   Would you have any suggestions on the below query ??



-Original Message-
From: Quodras, Naveen 
Sent: Thursday, March 06, 2008 1:57 AM

To: 'Tomcat Users List'
Subject: CVS check-out


Hi,
 Don't know if this would be the right place to ask this kinda
question.
 But would anybody out here know , How do I check-out only the
folder structure from CVS without checking-out the files that are within
those
 folders. (As I don't want my Disc to be cluttered with all those
files)

 
Thanks,

Naveen

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



  




-
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: CVS check-out

2008-03-06 Thread David Smith
I think you'll need post this question on a CVS list.  I've never really 
had all that much success with CVS -- Subversion is MUCH better.


--David

Quodras, Naveen wrote:



Hi David,   Would you have any suggestions on the below query ??


-Original Message-
From: Quodras, Naveen 
Sent: Thursday, March 06, 2008 1:57 AM

To: 'Tomcat Users List'
Subject: CVS check-out


Hi,
Don't know if this would be the right place to ask this kinda
question.
But would anybody out here know , How do I check-out only the
folder structure from CVS without checking-out the files that are within
those
folders. (As I don't want my Disc to be cluttered with all those
files)


Thanks,
Naveen

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

 




-
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: Why Tomcat hang for a while before starting

2008-03-06 Thread David Cassidy
normally 

ls -l 

in the directory concerned works for me.


On Thu, 2008-03-06 at 14:19 +0200, Mohamed Mohamedin wrote:
> Can you please tell me how to detect such symbolic link.
> 
> Thanks a lot
> 
> 
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 05, 2008 12:42 AM
> To: Tomcat Users List
> Subject: RE: Why Tomcat hang for a while before starting
> 
> > From: Mohamed Mohamedin [mailto:[EMAIL PROTECTED] 
> > Subject: Why Tomcat hang for a while before starting
> > 
> > "main" prio=1 tid=0x401161f0 nid=0x70ed runnable
> > [0x7fdc1000..0x7fdc35d0]
> > at java.io.UnixFileSystem.list(Native Method)
> > at java.io.File.list(File.java:937)
> > 
> > The only difference I can tell is the slow one have a 
> > symbolic link in its webapps while the other not.
> 
> I'd be looking for symbolic links that are forming an infinite loop.
> 
>  - 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]
> 
> 
> __ NOD32 2922 (20080305) Information __
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.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]
> 


-
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: viewing servlets on Tomcat

2008-03-06 Thread Richard Dunne
The CATALINA_HOME environment variable seems ok now, but catalina is now saying 
my JAVA_HOME is wrong.  I have my jdk set at c:\Program Files\Java\jdk1.6.0_04 
which catalina does not like, should I include bin in the path?

Richard.


- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 5:48:31 AM
Subject: RE: viewing servlets on Tomcat

> From: Richard Dunne [mailto:[EMAIL PROTECTED] 
> Subject: Re: viewing servlets on Tomcat
> 
> If it should be, it's not.  webapps contains docs, 
> host-manager, manager and ROOT. 

I think a reinstall is in your future.  I prefer installing from the
.zip rather than the .exe, since it gives you more options for running
Tomcat - the .zip includes .bat files for starting and stopping Tomcat
as well as running it as a service, whereas the .exe only installs as a
service.

- 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]


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

RE: viewing servlets on Tomcat

2008-03-06 Thread pranab.das


Please use the full-path "C:\Program Files\Java\jre1.6.0_05\bin"

Thanks & Regards,
Pranab

  _

From: Richard Dunne [mailto:[EMAIL PROTECTED]
Sent: Thu 3/6/2008 7:08 PM
To: Tomcat Users List
Subject: Re: viewing servlets on Tomcat



The CATALINA_HOME environment variable seems ok now, but catalina is now saying 
my JAVA_HOME is wrong.  I have my jdk set at c:\Program Files\Java\jdk1.6.0_04 
which catalina does not like, should I include bin in the path?

Richard.


- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 5:48:31 AM
Subject: RE: viewing servlets on Tomcat

> From: Richard Dunne [mailto:[EMAIL PROTECTED]
> Subject: Re: viewing servlets on Tomcat
>
> If it should be, it's not.  webapps contains docs,
> host-manager, manager and ROOT.

I think a reinstall is in your future.  I prefer installing from the
.zip rather than the .exe, since it gives you more options for running
Tomcat - the .zip includes .bat files for starting and stopping Tomcat
as well as running it as a service, whereas the .exe only installs as a
service.

- 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]


  

Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs



***
No virus was detected in the attachment no filename
No virus was detected in the attachment no filename

Your mail has been scanned by InterScan.
***-***


*
"This message and any attachments are solely for the intended recipient and may 
contain Birlasoft confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is
prohibited. If you have received this communication in error, please notify us 
by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and 
any attachments. Thank you."
*

Nio related problem - all threads are stuck

2008-03-06 Thread esagi123 esagi123
 Hello,

I have a web server application running (I am using TOMCAT NIO connector).
Looking at the thread dump It appears 392 request processing threads are
stuck while waiting for a monitor:

Waiting for monitor entry [0x58d75000..0x58d75eb0] at
java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock <0x739bdeb8> (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked <0xd8727238> (a sun.nio.ch.SelectionKeyImpl)

The "wanted" monitor is being held by the main selector thread which also
wait for a monitor entry:

Waiting for monitor entry [0x58d75000..0x58d75eb0]
at java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock <0x739bdeb8> (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked <0xd8727238> (a sun.nio.ch.SelectionKeyImpl)

The monitor that the selector is waiting for is not being held by any other
application thread.

Meanwhile, I am receiving request timeouts.

Comments will be appreciated.
Thanks


Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Smithson wrote:
| I was wondering if
| someone could have a look at [the graph] and tell me if I can
| conclude that the performance directives in server.xml do not need to be
| modified.

That depends on your target performance. If you wanted an average of 1
active thread, you have failed ;)

| To me, this graph says that there are very few active Tomcat
| threads

That is true for this particular hour. Is this a representative sample?

| and that there is no reason to go mucking around with the
| settings in Tomcat server.xml.  Is this a fair analysis?

It does not appear that you need more threads for any reason. Remember,
there are lots of other things you can tweak besides the thread pool
parameters.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfP+zQACgkQ9CaO5/Lv0PDlsQCeOmBnrFTrxlV5Ee3na4I1jb7w
+BcAn3g+QHy0NNz2mOLid+dLwV/FBLOA
=dwcc
-END PGP SIGNATURE-

-
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: viewing servlets on Tomcat

2008-03-06 Thread Richard Dunne
I changed the Java directory from c:\Program Files\Java to c:\Java  
CATALINA_HOME is causing me grief again.  
CATALINA_HOME=c:\Program Files\Apache Software Foundation\Tomcat 
6.0\apache-tomcat-6.0.16\bin
JAVA_HOME=c:\Java\jdk1.6.0_04
If anyone has a suggestion about CATALINA_HOME?

Richard.

- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Thursday, March 6, 2008 1:43:24 PM
Subject: RE: viewing servlets on Tomcat



Please use the full-path "C:\Program Files\Java\jre1.6.0_05\bin"

Thanks & Regards,
Pranab

  _

From: Richard Dunne [mailto:[EMAIL PROTECTED]
Sent: Thu 3/6/2008 7:08 PM
To: Tomcat Users List
Subject: Re: viewing servlets on Tomcat



The CATALINA_HOME environment variable seems ok now, but catalina is now saying 
my JAVA_HOME is wrong.  I have my jdk set at c:\Program Files\Java\jdk1.6.0_04 
which catalina does not like, should I include bin in the path?

Richard.


- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 5:48:31 AM
Subject: RE: viewing servlets on Tomcat

> From: Richard Dunne [mailto:[EMAIL PROTECTED]
> Subject: Re: viewing servlets on Tomcat
>
> If it should be, it's not.  webapps contains docs,
> host-manager, manager and ROOT.

I think a reinstall is in your future.  I prefer installing from the
.zip rather than the .exe, since it gives you more options for running
Tomcat - the .zip includes .bat files for starting and stopping Tomcat
as well as running it as a service, whereas the .exe only installs as a
service.

- 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]


  

Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs



***
No virus was detected in the attachment no filename
No virus was detected in the attachment no filename

Your mail has been scanned by InterScan.
***-***


*
"This message and any attachments are solely for the intended recipient and may 
contain Birlasoft confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is
prohibited. If you have received this communication in error, please notify us 
by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and 
any attachments. Thank you."
*


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


RE: viewing servlets on Tomcat

2008-03-06 Thread Peter Crowther
> From: Richard Dunne [mailto:[EMAIL PROTECTED]
> I have my jdk
> set at c:\Program Files\Java\jdk1.6.0_04 which catalina does
> not like, should I include bin in the path?

Try replacing "Program files" with "PROGRA~1" if you have short filenames 
enabled on your system, or put your JDK somewhere that doesn't have a space in 
the name (mine's under c:\java).  Not sure about Tomcat, but I've come across 
plenty of other systems that fail with spaces in paths and I no longer take the 
chance.

- Peter

-
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: viewing servlets on Tomcat

2008-03-06 Thread Caldarale, Charles R
> From: Richard Dunne [mailto:[EMAIL PROTECTED] 
> Subject: Re: viewing servlets on Tomcat
> 
> CATALINA_HOME is causing me grief again.  
> CATALINA_HOME=c:\Program Files\Apache Software 
> Foundation\Tomcat 6.0\apache-tomcat-6.0.16\bin

Saying "causing me grief" or "catalina.bat is moaning" is not really
providing useful information.  If there's an error message being
displayed, tell people what it is, don't try to be cute about it.

You normally do not set CATALINA_HOME; the startup.bat script does that
for you.  Just make sure your current directory is Tomcat's bin
directory when you kick off startup.bat.

 - 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: META-INF/context.xml does not take effect

2008-03-06 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: META-INF/context.xml does not take effect
> 
> In the webapplication, the resource "jdbc/MyJdbcConn"  is not 
> accessible;

What do you mean "not accessible"?  What exact error are you seeing?

> Would the presence of conf/context.xml entirely override 
> META-INF/context.xml?

No; conf/context.xml provides defaults for all webapps.  A 
element in conf/[engine]/[host]/[appName].xml will override the one in
META-INF/context.xml, however.

 - 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: Nio related problem - all threads are stuck

2008-03-06 Thread Caldarale, Charles R
> From: esagi123 esagi123 [mailto:[EMAIL PROTECTED] 
> Subject: Nio related problem - all threads are stuck
> 
> Looking at the thread dump It appears 392 request processing 
> threads are stuck while waiting for a monitor:

Tomcat version?  JRE/JDK version?  Platform?

 - 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: viewing servlets on Tomcat

2008-03-06 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: RE: viewing servlets on Tomcat
> 
> Please use the full-path "C:\Program Files\Java\jre1.6.0_05\bin"

Bad advice - the JAVA_HOME variable should *never* include the bin
directory.

Why are you posting obviously incorrect suggestions?

 - 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: viewing servlets on Tomcat

2008-03-06 Thread Richard Dunne
I changed my Tomcat directory from 
c:\Program Files\Apache Software Foundation\Tomcat 6\ 
to
c:\Tomcat\apache-tomcat-6.0.16
I noticed that when I set the CATALINA_HOME evironment variable, through the 
Control Panel, it was not taking affect.  When I checked it in DOS with "set 
CATALINA_HOME", it was not the same as the environment setting.  
Anyway, after setting it manually in DOS, startup.bat ran successfully.
Thanks Chuck for your help.

Richard.


- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 2:32:27 PM
Subject: RE: viewing servlets on Tomcat

> From: Richard Dunne [mailto:[EMAIL PROTECTED] 
> Subject: Re: viewing servlets on Tomcat
> 
> CATALINA_HOME is causing me grief again.  
> CATALINA_HOME=c:\Program Files\Apache Software 
> Foundation\Tomcat 6.0\apache-tomcat-6.0.16\bin

Saying "causing me grief" or "catalina.bat is moaning" is not really
providing useful information.  If there's an error message being
displayed, tell people what it is, don't try to be cute about it.

You normally do not set CATALINA_HOME; the startup.bat script does that
for you.  Just make sure your current directory is Tomcat's bin
directory when you kick off startup.bat.

- 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]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: Nio related problem - all threads are stuck

2008-03-06 Thread esagi123 esagi123
I am running with JDK 1.5.0_11-b03, tomcat 6.0.14 on a linux redhat machine

On Thu, Mar 6, 2008 at 4:38 PM, Caldarale, Charles R <
[EMAIL PROTECTED]> wrote:

> > From: esagi123 esagi123 [mailto:[EMAIL PROTECTED]
> > Subject: Nio related problem - all threads are stuck
> >
> > Looking at the thread dump It appears 392 request processing
> > threads are stuck while waiting for a monitor:
>
> Tomcat version?  JRE/JDK version?  Platform?
>
>  - 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: Nio related problem - all threads are stuck

2008-03-06 Thread Caldarale, Charles R
> From: esagi123 esagi123 [mailto:[EMAIL PROTECTED] 
> Subject: Re: Nio related problem - all threads are stuck
> 
> I am running with JDK 1.5.0_11-b03, tomcat 6.0.14 on a linux 
> redhat machine

What happens on a current JDK?  (And a current Tomcat, for that matter.)

 - 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]



tomcat slower

2008-03-06 Thread ib solution
hai,

 i have a problem that my application slower in random day.

 can anyone help me to slove my problem or is there anyone that have a
 problem like me ?

 my software
 -tomcat 5.028
 -mysql 5.0.21
 -mysql connector 5.1
 -SpringFramework
 -jasper report

 my hardware
 HP proliant with 2 GB RAM

 --
 TIA,

 Andy Susanto,S.Kom
 ==
 for better search
 http://www.slashmysearch.com/earn/id/24828
 HP : 081513039998

-
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: viewing servlets on Tomcat

2008-03-06 Thread Peter Crowther
> From: Richard Dunne [mailto:[EMAIL PROTECTED]
> I noticed that when I set the CATALINA_HOME evironment
> variable, through the Control Panel, it was not taking
> affect.

Yeah, that's bitten me in the past.  In Windows (to my knowledge):

- User environment variables are read by new processes.  You'd have to start a 
new command window to see the change.

- System environment variables are read when the machine reboots.  You'd have 
to reboot to see the change.

Anyway, you've done the obvious thing, which is to set the variable in a script 
and run the script.  By far the simplest (and safest).  Glad you've got it 
working.

- Peter

-
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: Nio related problem - all threads are stuck

2008-03-06 Thread Kaderabek, Kevin (TS)
On Linux, I have to create a virtual display with Xvfb and use it as the
DISPLAY environment variable for the startup script.  Maybe this was
included in the old startup shell script, but was not carried over to
the new tomcat.  I think I got a DISPLAY not defined when I forgot to do
this, but maybe there's some other environment variable you had set in
the old startup that needs to be added to the new one.   

-Original Message-
From: esagi123 esagi123 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 9:29 AM
To: Tomcat Users List
Subject: Re: Nio related problem - all threads are stuck

I am running with JDK 1.5.0_11-b03, tomcat 6.0.14 on a linux redhat
machine

On Thu, Mar 6, 2008 at 4:38 PM, Caldarale, Charles R <
[EMAIL PROTECTED]> wrote:

> > From: esagi123 esagi123 [mailto:[EMAIL PROTECTED]
> > Subject: Nio related problem - all threads are stuck
> >
> > Looking at the thread dump It appears 392 request processing threads

> > are stuck while waiting for a monitor:
>
> Tomcat version?  JRE/JDK version?  Platform?
>
>  - 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]
>
>

-
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: tomcat slower

2008-03-06 Thread Peter Crowther
> From: ib solution [mailto:[EMAIL PROTECTED]
> hai,
>
>  i have a problem that my application slower in random day.
>
>  can anyone help me to slove my problem

The person who developed the application?  It's almost certainly 
application-related.

> or is there anyone that have a problem like me ?

I think most of us have had a problem like that at one time or another.  
Profile your application when it runs slowly, and see what's causing the 
slowdown.  Remember to profile your database as well.

- Peter

-
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: Nio related problem - all threads are stuck

2008-03-06 Thread Filip Hanik - Dev Lists

can you point us to the complete dump, too little info below

Filip

esagi123 esagi123 wrote:

 Hello,

I have a web server application running (I am using TOMCAT NIO connector).
Looking at the thread dump It appears 392 request processing threads are
stuck while waiting for a monitor:

Waiting for monitor entry [0x58d75000..0x58d75eb0] at
java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock <0x739bdeb8> (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked <0xd8727238> (a sun.nio.ch.SelectionKeyImpl)

The "wanted" monitor is being held by the main selector thread which also
wait for a monitor entry:

Waiting for monitor entry [0x58d75000..0x58d75eb0]
at java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock <0x739bdeb8> (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked <0xd8727238> (a sun.nio.ch.SelectionKeyImpl)

The monitor that the selector is waiting for is not being held by any other
application thread.

Meanwhile, I am receiving request timeouts.

Comments will be appreciated.
Thanks

  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: 3/5/2008 6:38 PM
  



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



JSP Classloader issue

2008-03-06 Thread Pat C

Hi,

Similar to how different servlets run in different classloaders scope, 
we have written a web application (WAR File) that runs the applications 
for each customer by creating a classloader per customer within the same 
servlet context.


This means that all the dependent jar files of the project are NOT 
placed under WEB-INF/lib, but instead under another folder where the 
applications can be hot-swapped. While we successfully implemented 
customer specific classloader, we run into problems when the servlet 
forwarded the request to a JSP.


JSP apparently takes the class loader in which the WAR file is running 
and NOT our classloader, inspite of setting 
Thread.getCurrentThread().setContextClassLoader(CustomerSpecificClassLoader) 
in the servlet before the request was forwarded.


I am now stuck after committing so far in the project and now unable to 
find a solution.


Can you please advice me a way out?
Pat

-
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: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-06 Thread David Smithson
Hi, Christopher.   Thanks for your reply.  This is a typical hour on any given 
day.  What other things should I be looking at in Tomcat and Java?  I've got 
plenty of metrics from other parts of the operating system.

I've got my on the JVM memory metrics that come from the Tomcat status page as 
well.  If I'm not mistaken, these numbers represent JVM memory fluctuations and 
relate to garbage collection routines.

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 9:10 AM
To: Tomcat Users List
Subject: Re: Tomcat Status Metrics: RRDTool Graph: Analysis

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Smithson wrote:
| I was wondering if
| someone could have a look at [the graph] and tell me if I can
| conclude that the performance directives in server.xml do not need to be
| modified.

That depends on your target performance. If you wanted an average of 1
active thread, you have failed ;)

| To me, this graph says that there are very few active Tomcat
| threads

That is true for this particular hour. Is this a representative sample?

| and that there is no reason to go mucking around with the
| settings in Tomcat server.xml.  Is this a fair analysis?

It does not appear that you need more threads for any reason. Remember,
there are lots of other things you can tweak besides the thread pool
parameters.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfP+zQACgkQ9CaO5/Lv0PDlsQCeOmBnrFTrxlV5Ee3na4I1jb7w
+BcAn3g+QHy0NNz2mOLid+dLwV/FBLOA
=dwcc
-END PGP SIGNATURE-

-
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: viewing servlets on Tomcat

2008-03-06 Thread mgainty
Good Morning Richard

dont blame the piano player on this as Windows uses the 8.3 folder names
to verify
cd \
dir /X /AD
#note you will see PROGRA~1 assigned to C:\Program Files folder

cd PROGRA~1
dir /X /AD
#note you will see APACHE~1 assigned to Apache Software Foundation folder

cd APACHE~1
dir /X /AD
#note you will see TOMCAT~1.6 assigned to TOMCAT 6.0.16 folder so your
environment variable should contain the shortened 8.3 folder names e.g.

SET CATALINA_HOME=C:\PROGRA~1\APACHE~1\TOMCAT~1.6

HTH
Martin
- Original Message -
Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOB
To: "Tomcat Users List" 
Sent: Thursday, March 06, 2008 10:00 AM
Subject: Re: viewing servlets on Tomcat


> I changed my Tomcat directory from
> c:\Program Files\Apache Software Foundation\Tomcat 6\
> to
> c:\Tomcat\apache-tomcat-6.0.16
> I noticed that when I set the CATALINA_HOME evironment variable, through
the Control Panel, it was not taking affect.  When I checked it in DOS with
"set CATALINA_HOME", it was not the same as the environment setting.
> Anyway, after setting it manually in DOS, startup.bat ran successfully.
> Thanks Chuck for your help.
>
> Richard.
>
>
> - Original Message 
> Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKV
> To: Tomcat Users List 
> Sent: Thursday, March 6, 2008 2:32:27 PM
> Subject: RE: viewing servlets on Tomcat
>
> > Wrom: FVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQ
> > Subject: Re: viewing servlets on Tomcat
> >
> > CATALINA_HOME is causing me grief again.
> > CATALINA_HOME=c:\Program Files\Apache Software
> > Foundation\Tomcat 6.0\apache-tomcat-6.0.16\bin
>
> Saying "causing me grief" or "catalina.bat is moaning" is not really
> providing useful information.  If there's an error message being
> displayed, tell people what it is, don't try to be cute about it.
>
> You normally do not set CATALINA_HOME; the startup.bat script does that
> for you.  Just make sure your current directory is Tomcat's bin
> directory when you kick off startup.bat.
>
> - 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]
>
>
>


> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>


-
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: JSP Classloader issue

2008-03-06 Thread Caldarale, Charles R
> From: Pat C [mailto:[EMAIL PROTECTED] 
> Subject: JSP Classloader issue
> 
> Similar to how different servlets run in different 
> classloaders scope, 

Actually, it's different webapps that are handled by separate
classloaders.  All servlets of a given webapp are under the same
classloader.

> we run into problems when the servlet forwarded the
> request to a JSP.

What happens if you pre-compile the JSPs, so they all become servlets
and you can place them in the necessary directories?  See:
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web%20Applicat
ion%20Compilation

 - 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: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Smithson wrote:
| Hi, Christopher.   Thanks for your reply.  This is a typical hour on
| any given day.  What other things should I be looking at in Tomcat
| and Java?  I've got plenty of metrics from other parts of the
| operating system.

Typically, I look at heap activity (in Java, not just free memory from
the OS's perspective) and CPU utilization. The cleaner your heap, the
faster everything will run.

| I've got my on the JVM memory metrics that come from the Tomcat
| status page as well.  If I'm not mistaken, these numbers represent
| JVM memory fluctuations and relate to garbage collection routines.

Probably. Look for heap activity that looks like this: /\/\/\/\/\/\

~   __/
~   ___/
~   ___/
When you start seeing this: __/

You have a problem!

Just because your threads are not being used too much doesn't mean there
aren't other problems lurking. Even with low thread utilization, a bad
heap graph can mean that you're just waiting around for an OOME.

Consider performing load tests and watching the numbers instead of just
watching a typical hour of a typical day. You need to plan for peak
load, not for average load.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQIYoACgkQ9CaO5/Lv0PAcQwCfcXMtpU3JklRx074q8y2d1cn5
6mAAoLiPX9LMAAOjk31uAiQRFu1Uot+q
=Yfxr
-END PGP SIGNATURE-

-
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: Nio related problem - all threads are stuck

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kevin,

Kaderabek, Kevin (TS) wrote:
| On Linux, I have to create a virtual display with Xvfb

This is very unlikely to be the problem. If the application needs X,
you'll get an exception when you try to do something that requires it.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQIfIACgkQ9CaO5/Lv0PBI+wCeIMqzSWax7i/Lvh56tjQVOUHy
pWcAnjuLj2xUDnbrT98p4gJzagWAOdQT
=gNqS
-END PGP SIGNATURE-

-
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: viewing servlets on Tomcat

2008-03-06 Thread pranab.das


For your kind information, I have suggested to set the Java env!!

Thanks & Regards,
Pranab Das
Software Engineer | Birlasoft Ltd.
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2008 7:58 PM
To: Tomcat Users List
Subject: RE: viewing servlets on Tomcat

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: RE: viewing servlets on Tomcat
>
> Please use the full-path "C:\Program Files\Java\jre1.6.0_05\bin"

Bad advice - the JAVA_HOME variable should *never* include the bin
directory.

Why are you posting obviously incorrect suggestions?

 - 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]


***
No virus was detected in the attachment no filename

Your mail has been scanned by InterScan.
***-***


*
"This message and any attachments are solely for the intended recipient and may 
contain Birlasoft confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is
prohibited. If you have received this communication in error, please notify us 
by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and 
any attachments. Thank you."
*

-
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: JSP Classloader issue

2008-03-06 Thread Martin Gainty
Pat-

appears to be a security error
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#setContextClas
sLoader(java.lang.ClassLoader)
you'll need to set the runtime permission for the classLoader to execute via
1) make these edits to $CATALINA_HOME/conf/catalina.policy
grant codeBase "file:${catalina.home}/webapps/AppX/-"{
permission java.lang.RuntimePermission "setContextClassLoader";
}

2)restart TC to use the SecurityManager
%CATALINA_HOME%\bin\catalina start -security

3)read the logs to determine the contextClassLoader is in fact being loaded
and executed by catalina..

M-
- Original Message -
From: "Pat C" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 06, 2008 11:25 AM
Subject: JSP Classloader issue


> Hi,
>
> Similar to how different servlets run in different classloaders scope,
> we have written a web application (WAR File) that runs the applications
> for each customer by creating a classloader per customer within the same
> servlet context.
>
> This means that all the dependent jar files of the project are NOT
> placed under WEB-INF/lib, but instead under another folder where the
> applications can be hot-swapped. While we successfully implemented
> customer specific classloader, we run into problems when the servlet
> forwarded the request to a JSP.
>
> JSP apparently takes the class loader in which the WAR file is running
> and NOT our classloader, inspite of setting
>
Thread.getCurrentThread().setContextClassLoader(CustomerSpecificClassLoader)
> in the servlet before the request was forwarded.
>
> I am now stuck after committing so far in the project and now unable to
> find a solution.
>
> Can you please advice me a way out?
> Pat
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
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: viewing servlets on Tomcat

2008-03-06 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: RE: viewing servlets on Tomcat
> 
> For your kind information, I have suggested to set the Java env!!

What specific environment variable are you referring to?  If it's
JAVA_HOME (or JRE_HOME), it should not include the bin directory but
rather the directory one level above that.

 - 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: Nio related problem - all threads are stuck

2008-03-06 Thread Kaderabek, Kevin (TS)
Understood.  My point was more to see if startup.sh had been modified in
previous tomcat version and those changes needed including in the new
tomcat startup.sh.  The DISPLAY variable was the one that's always
bitten me in the past on Unix systems.  

Good day,
Kevin 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 10:55 AM
To: Tomcat Users List
Subject: Re: Nio related problem - all threads are stuck

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kevin,

Kaderabek, Kevin (TS) wrote:
| On Linux, I have to create a virtual display with Xvfb

This is very unlikely to be the problem. If the application needs X,
you'll get an exception when you try to do something that requires it.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQIfIACgkQ9CaO5/Lv0PBI+wCeIMqzSWax7i/Lvh56tjQVOUHy
pWcAnjuLj2xUDnbrT98p4gJzagWAOdQT
=gNqS
-END PGP SIGNATURE-

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


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



ExceptionInInitializerError

2008-03-06 Thread Pierre Goupil
Hello all,

I'm getting an exception as soon as I try and launch Tomcat 6 (from Eclipse
WTP or Sysdeo Launcher) :

***

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: com.sun.org.apache.commons.logging.LogConfigurationException:
com.sun.org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
(Caused by com.sun.org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
LogFactoryImpl.java:543)
at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
LogFactoryImpl.java:235)
at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
LogFactoryImpl.java:209)
at com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java
:351)
at org.apache.catalina.startup.Bootstrap.(Bootstrap.java:73)
Caused by: com.sun.org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at
com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
LogFactoryImpl.java:397)
at com.sun.org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
LogFactoryImpl.java:529)
... 4 more
Caused by: java.lang.NullPointerException
at
com.sun.org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
LogFactoryImpl.java:374)
... 5 more

***


I'm using JDK 5 on Linux & Eclipse 3.3.

Can anyone help me, please ?

Pierre


-- 
"Si les triangles avaient un Dieu, ils lui donneraient trois côtés."

Montesquieu


pls unubscribe

2008-03-06 Thread Sneha Manohar
pls unsubscribe my name from mailing list
   
-
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.

Re: Nio related problem - all threads are stuck

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kevin,

Kaderabek, Kevin (TS) wrote:
| Understood.  My point was more to see if startup.sh had been modified in
| previous tomcat version and those changes needed including in the new
| tomcat startup.sh.  The DISPLAY variable was the one that's always
| bitten me in the past on Unix systems.

Most of that should have been solved by Java's ability to run headless
AWT (I think that was wy back in 1.4 somewhere).

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQNnAACgkQ9CaO5/Lv0PCirACfTIc5QwMdIHrKXQoKxRUIDH7d
yY8An2MufjeVcUwW0y6X2f8mA6R6QEeQ
=jpe6
-END PGP SIGNATURE-

-
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: CVS check-out

2008-03-06 Thread Michael Beardsley
There's no facility in CVS that I'm aware of to do this. You're best bet
would be to do a cvs export and then remove the files yourself. If
you're on a *NIX box, you can use the find command to do this. Something
like:

find /path/to/cvs/export -type f -exec rm -{} \;

Read the man pages for find. I'm not responsible for you deleting stuff
you don't want to.

I don't know how you'd do a one-liner like this on a Windows box, but
I'm sure there's some sort of anagram -- or you could use Perl or
Python.

Remember, CVS doesn't version directories like Subversion does, so this
is basically a one-time deal. You're not going to be able to do a cvs
update to pull down new folders without also getting all the files and
having to remove them again. (If you're going to do that, use cvs
checkout rather than cvs export and be sure to use the -d switch to cvs
update to build new directories).

Hope that helps.

Mike

On Thu, 2008-03-06 at 08:18 -0500, David Smith wrote:
> I think you'll need post this question on a CVS list.  I've never really 
> had all that much success with CVS -- Subversion is MUCH better.
> 
> --David
> 
> Quodras, Naveen wrote:
> 
> > 
> >Hi David,   Would you have any suggestions on the below query ??
> >
> >
> >-Original Message-
> >From: Quodras, Naveen 
> >Sent: Thursday, March 06, 2008 1:57 AM
> >To: 'Tomcat Users List'
> >Subject: CVS check-out
> >
> >
> >Hi,
> > Don't know if this would be the right place to ask this kinda
> >question.
> > But would anybody out here know , How do I check-out only the
> >folder structure from CVS without checking-out the files that are within
> >those
> > folders. (As I don't want my Disc to be cluttered with all those
> >files)
> >
> > 
> >Thanks,
> >Naveen
> >
> >-
> >To start a new topic, e-mail: users@tomcat.apache.org
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
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: CVS check-out

2008-03-06 Thread Margotselma
In a message dated 3/6/2008 10:27:34 AM Pacific Standard Time, 
[EMAIL PROTECTED] writes:


> [EMAIL PROTECTED]
> 




**
It's Tax Time! Get tips, forms, and advice on AOL Money & 
Finance.
  (http://money.aol.com/tax?NCID=aolprf000301)


sym link to serve documents within web application.

2008-03-06 Thread Daniel Stephens
Hey everyone,

Has anyone ever tried to serve documents from within a tomcat webapp vai a
sym link. We have everything setup in tomcat to "allowLinking" within a
context. But I can not get my web app to serve documents via the link..
example below.

web-app location - /apps/development/tomcat/webapps/testSiteA

within testSiteA I create a sym link called Documents pointed to
/src/data/storage/Documents.

Now I can upload/write documents via the commons jars with the sym link
fine.. everything works great. but if I try to view those via something
like..

http://hostname:port/testSiteA/Documents/test123.doc. I keep getting a 404
for file not found. I've been looking around, and trying to set a different
context resource in my web.xml, server.xml, etc.. in different configs, but
no luck so far.

anyone ever done this before?


Configuring httpd and tomcat for individual user accounts

2008-03-06 Thread Choudhury, Sutanay
I'm trying to configure a system (Solaris/Linux) so individual
developers run their own tomcat instances by setting the CATALINA_BASE
to their individual directories. They would be using different ports for
starting their tomcat instance, and we could preassign that. I would
like to configure the Apache web server (version 2.0) so that a request
as /~/webapps/ gets forwarded to the
appropriate tomcat instance. I would appreciate if one can give me some
pointers on how to do this.

Thanks,

--Sutanay


Re: Configuring httpd and tomcat for individual user accounts

2008-03-06 Thread Hassan Schroeder
On Thu, Mar 6, 2008 at 11:55 AM, Choudhury, Sutanay
<[EMAIL PROTECTED]> wrote:
> I'm trying to configure a system (Solaris/Linux) so individual
>  developers run their own tomcat instances by setting the CATALINA_BASE
>  to their individual directories. They would be using different ports for
>  starting their tomcat instance, and we could preassign that.

Ick. If it was me, I'd do virtual host names instead, instead of messing
around with adding port #s to URLs, but...

>  like to configure the Apache web server (version 2.0) so that a request
>  as /~/webapps/ gets forwarded to the
>  appropriate tomcat instance. I would appreciate if one can give me some
>  pointers on how to do this.

mod_rewrite and mod_proxy should take care of it, either way.

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
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: NIO connector source code

2008-03-06 Thread neil davudo

Where?

I downloaded the entire Tomcat source code. Can you point me to the
directories?

TIA
Neil


markt-2 wrote:
> 
> neil davudo wrote:
>> Where can I find the source code for the NIO connector that uses the
>> CometProcessor?
> 
> http://tomcat.apache.org
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NIO-connector-source-code-tp15621736p15883669.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: sym link to serve documents within web application.

2008-03-06 Thread Maffitt, David
Yes, we are doing this successfully. (Linux, java 1.5.0_11, tomcat 5.5.23).  As 
you suggest, you have to set allowLinking="true" attribute in the context 
element in the webapp's META-INF/context.xml file

We have a different problem with this. Tomcat will follow the link and delete 
the contents of the linked-to directory when the app is redeployed. We have to 
be sure that the link is deleted before redeploying.  Not a problem if one 
always deploys from a script but a potential disaster if someone just drops the 
new war in webapps.  This is not the behavior we were expecting.  Is this a bug 
or a feature? :->


-Original Message-
From: Daniel Stephens [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2008 01:43 PM
To: users@tomcat.apache.org
Subject: sym link to serve documents within web application.

Hey everyone,

Has anyone ever tried to serve documents from within a tomcat webapp vai a
sym link. We have everything setup in tomcat to "allowLinking" within a
context. But I can not get my web app to serve documents via the link..
example below.

web-app location - /apps/development/tomcat/webapps/testSiteA

within testSiteA I create a sym link called Documents pointed to
/src/data/storage/Documents.

Now I can upload/write documents via the commons jars with the sym link
fine.. everything works great. but if I try to view those via something
like..

http://hostname:port/testSiteA/Documents/test123.doc. I keep getting a 404
for file not found. I've been looking around, and trying to set a different
context resource in my web.xml, server.xml, etc.. in different configs, but
no luck so far.

anyone ever done this before?

The materials in this message are private and may contain Protected Healthcare 
Information.  If you are not the intended recipient, be advised that any 
unauthorized use, disclosure, copying or the taking of any action in reliance 
on the contents of this information is strictly prohibited.  If you have 
received this email in error, please immediately notify the sender via 
telephone or return mail.

-
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: Configuring httpd and tomcat for individual user accounts

2008-03-06 Thread Rainer Jung

Hi Sutanay,

if you want to use mod_jk to connect httpd to Tomcat, there's a nice way 
of mapping naming conventions to workers:


- mod_jk can read the name of the configured backend (Tomcat), called a 
worker in mod_jk, from an httpd environmnt variable. By default it is 
the env var JK_WORKER_NAME.


- httpd can set env vars with mod_setenvif and mod_rewrite, using 
regexps on the URI etc.


For an example, see

http://tomcat.apache.org/connectors-doc/reference/apache.html

and search for JK_WORKER_NAME.

I didn't try, but it is quite possible, that you can use something like


SetHandler jakarta-servlet
SetEnvIf REQUEST_URI ^/~([^/]*) JK_WORKER_NAME=$1


to forward any requests to ~myname/x/y/z to a tomcat worker named 
"myname" (for all different myness with just one config).


Now this will send the request for /~myname/x/y/z to Tomcat, not simply 
/x/y/z. In order to achieve this you'll need to also rewrite the URL 
with mod_rewrite before forwarding. mod_rewrite can also set the env var 
for you.


That's just the rough plot. It'll need a little experimentation :)

Regards,

Rainer

Choudhury, Sutanay schrieb:

I'm trying to configure a system (Solaris/Linux) so individual
developers run their own tomcat instances by setting the CATALINA_BASE
to their individual directories. They would be using different ports for
starting their tomcat instance, and we could preassign that. I would
like to configure the Apache web server (version 2.0) so that a request
as /~/webapps/ gets forwarded to the
appropriate tomcat instance. I would appreciate if one can give me some
pointers on how to do this.

Thanks,

--Sutanay


-
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: mod_jk or mod_proxy_ajp - encryption benefits ?‏

2008-03-06 Thread James Ellis

I have done some goog'ling on IPSec and VPN and I have found three 
possibilities:
 
1) OpenSSH and Port Forwarding
 
2) OpenVPN
 
3) Stunnel (thanks little voice)
 
What concerns me about all three options is error handling.  If my OpenSSH or 
OpenVPN or Stunnel connection failed/timed out, the whole site would go down.  
There would have to be a VERY good and almost instant reconnection taking place.
 
I am also concerned about performance.
 
Any comments?
 
 

Re: sym link to serve documents within web application.

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

Maffitt, David wrote:
| We have a different problem with this. Tomcat will follow the link
| and delete the contents of the linked-to directory when the app is
| redeployed. We have to be sure that the link is deleted before
| redeploying.  Not a problem if one always deploys from a script but a
| potential disaster if someone just drops the new war in webapps.
| This is not the behavior we were expecting.  Is this a bug or a
| feature? :->

I would file it as a bug, though you're likely to get a response like
"if it's not part of the webapp, what is it doing in there" and "your
webapp should be completely self-contained", etc.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQdGsACgkQ9CaO5/Lv0PBU1gCgw1gZiyQYm9F+T7Vtw75tmybI
9vsAn0pwsUXEhqioPF20lWd06HpJlP77
=0Lg+
-END PGP SIGNATURE-

-
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: mod_jk or mod_proxy_ajp - encryption benefits?‏

2008-03-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James,

James Ellis wrote:
| I have done some goog'ling on IPSec and VPN and I have found three
| possibilities:
|
| 1) OpenSSH and Port Forwarding
|
| 2) OpenVPN
|
| 3) Stunnel (thanks little voice)
|
| What concerns me about all three options is error handling.  If my
| OpenSSH or OpenVPN or Stunnel connection failed/timed out, the whole
| site would go down.  There would have to be a VERY good and almost
| instant reconnection taking place.
|
| I am also concerned about performance.
|
| Any comments?

If you want encryption, you have to sacrifice performance, so just
forget about that concern right off the bat. Your concerns about
robustness are certainly reasonable. You should be able to find
information about restarting connections for each of these products by
searching their forums, help, etc. Any good VPN should have options for
restarting them when a failure is detected (but nothing is ever foolproof).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQdjIACgkQ9CaO5/Lv0PCfxwCfTDsfjFquhx2Yibw8hKZyTh28
m8sAoJ8eHlCR5KI/br4KeMwKMDNEXPRH
=wwmj
-END PGP SIGNATURE-

-
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: sym link to serve documents within web application.

2008-03-06 Thread Daniel Stephens
Thanks David, we found my misconfiguration about 30 minutes after I posted..
But I'm glad you brought up the redeploying issue. I didn't even think about
that. So I guess I'll be adding some documentation to that piece.

Thanks for your replies..
Danny

On Thu, Mar 6, 2008 at 4:47 PM, Christopher Schultz <
[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> David,
>
> Maffitt, David wrote:
> | We have a different problem with this. Tomcat will follow the link
> | and delete the contents of the linked-to directory when the app is
> | redeployed. We have to be sure that the link is deleted before
> | redeploying.  Not a problem if one always deploys from a script but a
> | potential disaster if someone just drops the new war in webapps.
> | This is not the behavior we were expecting.  Is this a bug or a
> | feature? :->
>
> I would file it as a bug, though you're likely to get a response like
> "if it's not part of the webapp, what is it doing in there" and "your
> webapp should be completely self-contained", etc.
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.8 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkfQdGsACgkQ9CaO5/Lv0PBU1gCgw1gZiyQYm9F+T7Vtw75tmybI
> 9vsAn0pwsUXEhqioPF20lWd06HpJlP77
> =0Lg+
> -END PGP SIGNATURE-
>
> -
> 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: Using tomcat to serve up directory

2008-03-06 Thread Frank Demion
Thank you. That did it.


- Original Message 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Thursday, March 6, 2008 5:34:47 AM
Subject: RE: Using tomcat to serve up directory

> From: Frank Demion [mailto:[EMAIL PROTECTED] 
> Subject: Using tomcat to serve up directory
> 
> What configuration files do I need to modify to achieve this? 

Look at conf/web.xml in the DefaultServlet section. Set the value of
listings to true.

- 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]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: tomcat slower

2008-03-06 Thread ib solution
hai peter,

i am a develop on that of application,

i would like to use jconsole to profile my application.   before i try
to use a jMeter but i do not how to start  that application.

is there any tool that i can use ?


-- 
Salam,

Andy Susanto,S.Kom
==
for better search
http://www.slashmysearch.com/earn/id/24828
HP : 081513039998


On Thu, Mar 6, 2008 at 11:01 PM, Peter Crowther
<[EMAIL PROTECTED]> wrote:
> > From: ib solution [mailto:[EMAIL PROTECTED]
>
> > hai,
>  >
>  >  i have a problem that my application slower in random day.
>  >
>  >  can anyone help me to slove my problem
>
>  The person who developed the application?  It's almost certainly 
> application-related.
>
>
>  > or is there anyone that have a problem like me ?
>
>  I think most of us have had a problem like that at one time or another.  
> Profile your application when it runs slowly, and see what's causing the 
> slowdown.  Remember to profile your database as well.
>
> - Peter
>
>  -
>  To start a new topic, e-mail: users@tomcat.apache.org
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: NIO connector source code

2008-03-06 Thread Filip Hanik - Dev Lists
tomcat.apache.org, click download link, there is a zip file containing 
the source.


Filip

neil davudo wrote:

Where?

I downloaded the entire Tomcat source code. Can you point me to the
directories?

TIA
Neil


markt-2 wrote:
  

neil davudo wrote:


Where can I find the source code for the NIO connector that uses the
CometProcessor?
  

http://tomcat.apache.org

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]






  



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