Re[2]: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread 吴熊敏
400%? what do you mean??


On Thu, 14 Jun 2007 21:14:45 +0200
Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)
 
 Filip


吴熊敏 [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: [OT] Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David Delbecq
Do as Tim Funk suggested, issue a kill -3 to tomcat when CPU usage gets
high to get an idea of what java Threads are currently doing. Issue a
few kills to get a better view of what part of process takes times. If
it's not enough to find the location of issue, you might want to invest
time in using a profiler to locate problem (attach profiler to running
jvm when it starts to consume CPU).

En l'instant précis du 14/06/07 05:17, Sumit Gaikaiwari s'exprimait en
ces termes:

 There is an application deployed that refreshes after every 30 seconds.
 After every 30 seconds, it requeries database and fetches the data. This
 was a design requirement for this application. Generally large numbers
 of sessions of this application are running (450-500). 

 Regards,
 Sumit Gaikaiwari


 -Original Message-
 From: Andre Prasetya [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 13, 2007 4:22 PM
 To: Tomcat Users List
 Subject: Re: Tomcat Server CPU utilization goes upto 400%

 i think its more to application problem instead of tomcat problem. Is
 there
 any application hosted inside tomcat that get infinite loop or use a
 kind of
 loop checking something that utilize the thread fully ? try solving that
 with the application developer

 On 6/13/07, Sumit Gaikaiwari [EMAIL PROTECTED] wrote:
   
 Hello,



 We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There
 
 two
   
 applications in webapps. We are facing an issue from around 3-4 months
 where the CPU utilization by java process (tomcat) goes quite high:
 around 400% in every 4-5 days. The application gets very slow and
 
 tomcat
   
 needs to be restarted for normal operation. The output of top command
 
 is
   
 as below-



 [EMAIL PROTECTED] jakarta-tomcat-5.0.25]# top

 Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie

 Cpu(s): 25.1% us,  0.1% sy,  0.0% ni, 74.5% id,  0.2% wa,  0.0% hi,
 0.0% si

 Mem:   4086472k total,  2487676k used,  1598796k free,   217464k
 
 buffers
   
 Swap:  6094824k total,0k used,  6094824k free,  1811576k
 
 cached
   

   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

 1038 root  16   0  545m 244m  61m S  101  6.1   1156:22 java

 1 root  16   0  2556  552  472 S0  0.0   0:01.17 init

 2 root  RT   0 000 S0  0.0   0:00.31
 
 migration/0
   



 Here is the status of active threads-

 Thread Status-



 [EMAIL PROTECTED] jakarta-tomcat-5.0.25]# ps -Le -o
 pid,user,s,lwp,pcpu,args | awk '$3 != S { print }'

 1038 root R  1093 19.8 /usr/local/j2sdk1.4.2_12/bin/java -Xmx256m
 -Xms128m -Djava.awt.headless=true -Dsun.awt.font.advancecache=off
 -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.25/common/endorsed
 -classpath

 
 /usr/local/j2sdk1.4.2_12/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.25/
   
 bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.25/bin/commons-logging-a
   
 pi.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.25
 -Dcatalina.home=/usr/local/jakarta-tomcat-5.0.25
 -Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.25/temp
 org.apache.catalina.startup.Bootstrap start

 20544 root R 20544  0.0 ps -Le -o pid,user,s,lwp,pcpu,args



 This was status at certain instant of time. After 5 hours from this
 instant, the utilization reached to 400% and also there were many
 threads which were using almost 150% of CPU time.



 The system configuration is -



 [EMAIL PROTECTED] ~]# wget --quiet -O - --user admin --password nimda
 http://localhost:8080/manager/serverinfo

 OK - Server info

 Tomcat Version: Apache Tomcat/5.0.25

 OS Name: Linux

 OS Version: 2.6.9-42.0.2.ELsmp

 OS Architecture: i386

 JVM Version: 1.4.2_12-b03

 JVM Vendor: Sun Microsystems Inc.



 Please can any one tell me possible cause for this issue? This issue
 
 has
   
 become very critical and needs to be fixed out soon.



 Regards,

 Sumit Gaikaiwari



 -**Nihilent***

  *** All information contained in this communication is confidential,
 proprietary, privileged and is intended for the addressees only. If
 
 you have
   
 received this E-mail in error please notify mail administrator by
 
 telephone
   
 on +91-20-39846100 or E-mail the sender by replying to this message,
 
 and
   
 then delete this E-mail and other copies of it from your computer
 
 system.
   
 Any unauthorized dissemination, publication, transfer or use of the
 
 contents
   
 of this communication, with or without modifications is punishable
 
 under the
   
 relevant law.

 Nihilent has scanned this mail with current virus checking
 
 technologies.
   
 However, Nihilent makes no representations or warranties to the effect
 
 that
   
 this communication is virus-free.

 Nihilent reserves the right to monitor all E-mail communications
 through  its Corporate Network. *** 


 
 
 *-




   


Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David Delbecq
That probably means that 4 CPUs/Cores are busy 100% time working for
tomcat. This mean the issue appears in several Threads, leading to think
it's webapps related issues :) Garbage collector issue wouldn't use 4 or
more Threads.

En l'instant précis du 15/06/07 09:17, 吴熊敏 s'exprimait en ces termes:
 400%? what do you mean??


 On Thu, 14 Jun 2007 21:14:45 +0200
 Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

   
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)

 Filip
 

 
 吴熊敏 [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: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread Richard Kaye
I think I have one if you'd like it...
Only problem is, it doesn't work :(
AFAIK 400% of zero is still zero :D

R

On Thu, 2007-06-14 at 21:14 +0200, Filip Hanik - Dev Lists wrote:
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)
 
 Filip
 
 -
 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 Server CPU utilization goes upto 400%

2007-06-15 Thread Sumit Gaikaiwari


Yeah, that's right. The application server is having 4 CPU's and top gives 
collective output for all the CPU's. Hence 400%... :)

Regards,
Sumit Gaikaiwari

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 15, 2007 1:01 PM
To: Tomcat Users List
Subject: Re: Tomcat Server CPU utilization goes upto 400%

That probably means that 4 CPUs/Cores are busy 100% time working for
tomcat. This mean the issue appears in several Threads, leading to think
it's webapps related issues :) Garbage collector issue wouldn't use 4 or
more Threads.

En l'instant précis du 15/06/07 09:17, 吴熊敏 s'exprimait en ces termes:
 400%? what do you mean??


 On Thu, 14 Jun 2007 21:14:45 +0200
 Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

   
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)

 Filip
 

 
 吴熊敏 [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]


-**Nihilent***

 *** All information contained in this communication is confidential, 
proprietary, privileged and is intended for the addressees only. If you have 
received this E-mail in error please notify mail administrator by telephone on 
+91-20-39846100 or E-mail the sender by replying to this message, and then 
delete this E-mail and other copies of it from your computer system. Any 
unauthorized dissemination, publication, transfer or use of the contents of 
this communication, with or without modifications is punishable under the 
relevant law. 

Nihilent has scanned this mail with current virus checking technologies. 
However, Nihilent makes no representations or warranties to the effect that 
this communication is virus-free. 

Nihilent reserves the right to monitor all E-mail communications through  its 
Corporate Network. *** 

*-

-
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[2]: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread 吴熊敏
“AFAIK” What it mean?

 AFAIK 400% of zero is still zero :D
 



吴熊敏 [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]



Problem with JVM, and Tomcat tuning

2007-06-15 Thread Jacob Bunk Nielsen
Hi

I'm running Tomcat 6.0.13 on Sun Java6 and Linux. I upgraded from
Tomcat 5.5.17 and Java5 update 9 a couple of weeks ago.

I experience random crashes of the JVM on a daily basis. It simply
fails with segmentation faults, double frees and similar. Are any of
you experiencing similar problems? I had the same problems with Java5
and Tomcat 5.5, but less often.

If I submit a bug report with Sun I get a reply that I should contact
Apache because the problem seems to be triggered by Tomcat. Is anyone
at Apache interested in those hs_err_PID.log files generated by the
JVM?

So, how would I go about avoiding to trigger these sorts of problems?
It is a production system and I'm not very happy about it being down
almost daily due to bugs in the JVM.

I should add that I run my fairly memory consuming application on a 32
bit server with 4 GB of physical memory and 8 GB of swap space and
with CATALINA_OPTS set as:

CATALINA_OPTS=-Djava.awt.headless=true -server -Xms512m -Xmx2g
 -verbose:gc -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC
 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseTLAB
 -XX:+UsePerfData -XX:NewSize=128m -XX:MaxNewSize=128m
 -XX:MaxTenuringThreshold=0 -XX:SurvivorRatio=1024 -Xincgc

I tried some even more agressive garbage collector settings a while
back because I was experiencing long pauses while the garbage
collector was running, but I kept triggering loads of segmentation
faults. This is the settings that around a year ago gave the best
balance between crashes and halts from the garbage collector.

But are these settings optimal for Tomcat 6 and Java6?

-- 
Jacob


-
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: deploying ant

2007-06-15 Thread Scott Marshall
Hi Jyothi

I think you're on the wrong forum. Try the Apache Ant mailing lists, these can 
be found at http://ant.apache.org/mail.html. You might get more of a response 
there.

Good luck

Scott


-Original Message-
From: bhagya jyothi [mailto:[EMAIL PROTECTED] 
Sent: 14 June 2007 19:37
To: users@tomcat.apache.org
Subject: deploying ant

  
Hi all,

AM new to Ant build tool and was jus writing an application.am done with my 
programme and when i give ant in my present working directory at command prompt 
its fine.when i give ant deploy or ant deploywar it's saying Build 
Successfull but nothing is there under build and deploy.also when is gave ant 
list-- nothing is shown under my current directory.And giving ant install its 
saying [Install] FAIL-Failed to deploy application at context path/(my working 
directory) BUILD FAILED.

can any one tell what to do exactly so that i can run it successfully...waiting 
for a wuick reply.

Jyothi

This e-mail has been scanned for all viruses by Blackspider MailControl.
www.blackspider.com

Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==  to report this 
email as spam.

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



Unable to get the free endpoint for worker xyz from, 1 slots

2007-06-15 Thread Dirk Koehler
Hi,

recently I'm facing an issue with the mod_jk connector (1.2.21) together
with apache 1.3.x where requests to apache are answered with 500
INTERNAL SERVER ERROR. Enabling mod_jk debug logging shows that at
exactly that time mod_jk warnings show up saying something like (after
having tomcat/apache up for some time):

[Thu Jun 14 19:49:51 2007] [19351:] [warn] 
ajp_get_endpoint::jk_ajp_common.c (2336): Unable to get the free
endpoint for worker myworker from 1 slots
[Thu Jun 14 19:49:51 2007] [19351:] [info] 
ajp_get_endpoint::jk_ajp_common.c (2350): can't find free endpoint

Did anybody has an any hints or a answer for me what could have caused
that issue. I was looking in the web for any hints but unfortunately was
not successful yet!

All help is pretty much appreciated

thx,

dirk


-
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 get the free endpoint for worker xyz from, 1 slots

2007-06-15 Thread Tim Funk
You probably have more apache children running than connections which 
can be accepted by tomcat. See the Connector config docs on how o up them.


-Tim

Dirk Koehler wrote:

Hi,

recently I'm facing an issue with the mod_jk connector (1.2.21) together
with apache 1.3.x where requests to apache are answered with 500
INTERNAL SERVER ERROR. Enabling mod_jk debug logging shows that at
exactly that time mod_jk warnings show up saying something like (after
having tomcat/apache up for some time):

[Thu Jun 14 19:49:51 2007] [19351:] [warn] 
ajp_get_endpoint::jk_ajp_common.c (2336): Unable to get the free

endpoint for worker myworker from 1 slots
[Thu Jun 14 19:49:51 2007] [19351:] [info] 
ajp_get_endpoint::jk_ajp_common.c (2350): can't find free endpoint


Did anybody has an any hints or a answer for me what could have caused
that issue. I was looking in the web for any hints but unfortunately was
not successful yet!



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



[OT] Re: Re[2]: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread Ronald Klop

Install this: http://www.freshports.org/games/wtf/ (There is probably a Linux 
port somewhere also)

$ wtf afaik
AFAIK: as far as I know



On Fri Jun 15 10:21:37 CEST 2007 Tomcat Users List users@tomcat.apache.org 
wrote:

?AFAIK? What it mean?

 AFAIK 400% of zero is still zero :D
 




??? [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 - Apache ... and CGI

2007-06-15 Thread Raghupathy, Gurumoorthy
Post your jkmounts directives and also posty your httpd.conf 

-Original Message-
From: Yannick Haudry [mailto:[EMAIL PROTECTED] 
Sent: 15 June 2007 11:15
To: users@tomcat.apache.org
Subject: Tomcat - Apache ... and CGI

Hi all,

First, here is the global configuration on a centos machine:
apache: httpd-2.0.52-19
tomcat: 6.0.13
mod_jk: 1.2.22

I'm currently working on a webapp where we have some pages generated
with perl scripts.
The first step was to configure tomcat CGIservlet and now cgi are
successfully executed using this kind of url:
http://localhost:8080/Context/myscript.cgi

the CGI servlet is configured as below in web.xml :
  servlet
servlet-namecgi/servlet-name
 
servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value6/param-value
/init-param
init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param
load-on-startup5/load-on-startup
  /servlet

  servlet-mapping
servlet-namecgi/servlet-name
url-pattern*.cgi/url-pattern
  /servlet-mapping


In a second step, I configured mod_jk to run tomcat through apache.
After mod_jk module configuration in httpd.conf / workers.properties,
I can access my webapp with htpp://localhost/Context/ (without 8080)
everything works fine except cgi, when I try to access:
http://localhost/Context/myscript.cgi

from the Browser I get
The requested URL /Context/myscript.cgi was not found on this server

and in apache error log:
[error] script not found or unable to stat: myscript.cgi, referer:
http://localhost/myscript.cgi

When I look in tomcat log the perl script is actually executed as
usual without any error. This seems an apache configuration issue but
I don't know which parameter I have to set / modify.

Thanks in advance for any help resolving this.


Yannick

-
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: deploying ant

2007-06-15 Thread Johnny Kewl

Jyothi

Cant really understand what you saying, but suggest the following
If you using Netbeans and want to run the ant scripts from you project 
manually, then after you build it, flip over to the file tab, find the ant 
script you interested in and right click on it, NB has very cool facilities 
to play with ant... can even debug your script.


If you trying to deploy Tomcat war files... then go to the tomcat site and 
download the standalone deployer package, it has the ant script you need 
already, and the relevant help files.


good luck


- Original Message - 
From: bhagya jyothi [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, June 14, 2007 8:36 PM
Subject: deploying ant



Hi all,

AM new to Ant build tool and was jus writing an application.am done with my 
programme and when i give ant in my present working directory at command 
prompt its fine.when i give ant deploy or ant deploywar it's saying 
Build Successfull but nothing is there under build and deploy.also when is 
gave ant list-- nothing is shown under my current directory.And giving ant 
install its saying [Install] FAIL-Failed to deploy application at context 
path/(my working directory) BUILD FAILED.


can any one tell what to do exactly so that i can run it 
successfully...waiting for a wuick reply.


Jyothi 



-
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 get the free endpoint for worker xyz from, 1 slots

2007-06-15 Thread Dirk Koehler
Well, my server xml defines maxProcessors to be 512, apache is
configured with MaxClients 128...

Connector port=22001 address=127.0.0.1 maxProcessors=512
   enableLookups=false redirectPort=8443
protocol=AJP/1.3 /

Also mbean (Catalina:type=ThreadPool,name=jk-127.0.0.1-22001) reports
that there are up to 512 processors...

any more ideas?

thx, dirk

Tim Funk wrote:
 You probably have more apache children running than connections which
 can be accepted by tomcat. See the Connector config docs on how o up
 them.

 -Tim

 Dirk Koehler wrote:
 Hi,

 recently I'm facing an issue with the mod_jk connector (1.2.21) together
 with apache 1.3.x where requests to apache are answered with 500
 INTERNAL SERVER ERROR. Enabling mod_jk debug logging shows that at
 exactly that time mod_jk warnings show up saying something like (after
 having tomcat/apache up for some time):

 [Thu Jun 14 19:49:51 2007] [19351:] [warn]
 ajp_get_endpoint::jk_ajp_common.c (2336): Unable to get the free
 endpoint for worker myworker from 1 slots
 [Thu Jun 14 19:49:51 2007] [19351:] [info]
 ajp_get_endpoint::jk_ajp_common.c (2350): can't find free endpoint

 Did anybody has an any hints or a answer for me what could have caused
 that issue. I was looking in the web for any hints but unfortunately was
 not successful yet!


 -
 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: Trouble with APR and Tomcat 5.5.15

2007-06-15 Thread Ilja S.

Hi
I had similar problem on Ubunutu Linux. Logs have been saying something 
about inability to bind to socket.


If log clearly says that address already in use (probably 8080). Check 
that no other application using this port.


If log says something like:
java.lang.Exception: Socket bind failed: [22] Invalid argument

Then try to disable ipv6 in your OS. This helped me.




*
Best Regards
Ilja


Jarrod Cuzens wrote:

Hi All,

 


  We are currently experimenting with APR and libtcnative on our
machines. We have a machine in test that we configured and things when
quite smoothly (although it was RHEL4 and the production box we are
testing is CentOS). When we start tomcat and include all the relevant
library paths in the java.library.path we can see APR attempt to load
but it continually fails and reports that the socket was already in use.
When we remove the java.library.path (effectively turning off APR) we
restart and the server starts correctly with no complaints. We can
readily switch between the two configs and always get the same behavior.
I tried upgrading the Tomcat Native to the one from Tomcat 5.5.23 but
this has made no difference. I also tried running the server as root to
determine if this could have any impact but it did not make any
difference. I have included some relevant information below. Any help
you can give would be greatly appreciated.

 


Thanks,

Jarrod

 


+--+

Tomcat 5.5.15

APR 1.2.8

Tomcat Native 1.1.6

 


Linux version 2.6.9-42.0.3.ELsmp ([EMAIL PROTECTED])
(gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Oct 6 06:28:26
CDT 2006

 


ldd libtcnative-1.so

libapr-1.so.0 = /usr/local/apr/lib/libapr-1.so.0
(0x002a95678000)

librt.so.1 = /lib64/tls/librt.so.1 (0x002a957a8000)

libcrypt.so.1 = /lib64/libcrypt.so.1 (0x002a958c2000)

libpthread.so.0 = /lib64/tls/libpthread.so.0
(0x002a959f7000)

libdl.so.2 = /lib64/libdl.so.2 (0x002a95b0c000)

libssl.so.4 = /lib64/libssl.so.4 (0x002a95c0f000)

libcrypto.so.4 = /lib64/libcrypto.so.4 (0x002a95d4c000)

libc.so.6 = /lib64/tls/libc.so.6 (0x002a95f7c000)

/lib64/ld-linux-x86-64.so.2 (0x00552000)

libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2
(0x002a961b)

libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x002a962c7000)

libcom_err.so.2 = /lib64/libcom_err.so.2 (0x002a96438000)

libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3
(0x002a9653a000)

libresolv.so.2 = /lib64/libresolv.so.2 (0x002a9665e000)

libz.so.1 = /usr/lib64/libz.so.1 (0x002a96773000)

 


server.xml:

Connector port=8080 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false redirectPort=8443
acceptCount=100

   connectionTimeout=2 disableUploadTimeout=false
unpackWARs=false

   compression=off compressionMinSize=2048

   compressableMimeType=text/html

/

 


Connector port=8443 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false connectionTimeout=2
disableUploadTimeout=false

   acceptCount=100 scheme=https secure=true

 


SSLEngine=on

SSLCertificateFile=##

SSLCertificateKeyFile=##

SSLPassword=##

 


   clientAuth=false sslProtocol=TLS

keystoreFile=## keystorePass=##

keystoreType=PKCS12/

 

 


catalina.log

Apr 17, 2007 1:28:48 PM org.apache.coyote.http11.Http11AprProtocol init

SEVERE: Error initializing endpoint

java.lang.Exception: Socket bind failed: Address already in use

at
org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:544)

at
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:1
15)

at
org.apache.catalina.connector.Connector.initialize(Connector.java:1016)

at
org.apache.catalina.core.StandardService.initialize(StandardService.java
:580)

at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7
82)

at org.apache.catalina.startup.Catalina.load(Catalina.java:503)

at org.apache.catalina.startup.Catalina.load(Catalina.java:523)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Apr 17, 2007 1:28:48 PM 

Re: APR installation Question

2007-06-15 Thread Ilja S.

Hi
Your tomcat should start with option: -Djava.library.path=/usr/local/apr/lib
in this case APR libs are in /usr/local/apr/lib, change to wherever you 
got your libs


Usually you add this line to tomcat startup script...



*
Best Regards
Ilja


Andre Prasetya wrote:

I got this :

The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:

I already compiled the tcnative, where can i add the path to
java.library.path ?




-
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 get the free endpoint for worker xyz from, 1 slots

2007-06-15 Thread Tim Funk
Check the manager app and see how many ajp connections are in use. If 
your lucky maybe tomcat is not seeing the dropped apache connections. 
In which case - I forget how to fix this. (With our looking through the 
docs and google first) Since you are on localhost - that is probably not 
the case.


-Tim

Dirk Koehler wrote:

Well, my server xml defines maxProcessors to be 512, apache is
configured with MaxClients 128...

Connector port=22001 address=127.0.0.1 maxProcessors=512
   enableLookups=false redirectPort=8443
protocol=AJP/1.3 /

Also mbean (Catalina:type=ThreadPool,name=jk-127.0.0.1-22001) reports
that there are up to 512 processors...

any more ideas?

thx, dirk

Tim Funk wrote:

You probably have more apache children running than connections which
can be accepted by tomcat. See the Connector config docs on how o up
them.

-Tim

Dirk Koehler wrote:

Hi,

recently I'm facing an issue with the mod_jk connector (1.2.21) together
with apache 1.3.x where requests to apache are answered with 500
INTERNAL SERVER ERROR. Enabling mod_jk debug logging shows that at
exactly that time mod_jk warnings show up saying something like (after
having tomcat/apache up for some time):

[Thu Jun 14 19:49:51 2007] [19351:] [warn]
ajp_get_endpoint::jk_ajp_common.c (2336): Unable to get the free
endpoint for worker myworker from 1 slots
[Thu Jun 14 19:49:51 2007] [19351:] [info]
ajp_get_endpoint::jk_ajp_common.c (2350): can't find free endpoint


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



APR with tomcat - long boot

2007-06-15 Thread Ilja S.

Hi
Startup time of tomcat became very slow after installing APR.
Tomcat version is 5.5.23
APR 1.2.7
Ubuntu, kernel 2.6.20
Logs says INFO: Server startup in 192631 ms
Which is more 3 minutes! Is that normal?

--
*
Best Regards
Ilja


-
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 6 classloader leak in Commons Pool

2007-06-15 Thread Diego Rodríguez Martín

Hi,

   I have found what you said about the factory. It is ported to 6.0. I 
have tried to use the old commons-dbcp library, copying 
commons-pool-1.2.jar and commons-dbcp-1.2.2.jar in tomcat lib directory 
and defining the attribute 
factory=org.apache.commons.dbcp.BasicDataSourceFactory in the resource 
in my context.xml.


   It works, but I still have a memory leak. Tomcat is retaining my new 
commons-dbcp classes, and I think it is related to this classes:


org.apache.tomcat.util.modeler.BaseModelMBean,
com.sun.jmx.mbeanserver.NamedObject,
com.sun.jmx.mbeanserver.RepositorySupport.
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor
com.sun.jmx.mbeanserver.JmxMBeanServer,

This part of Tomcat is completely unkown to me, Do you have any clue?

Many thanks for your help


   Diego
David Smith escribió:
In older versions of tomcat (5.0.x) there is a factory attribute 
defining the pool to use.  It's unclear from the limited look I did 
whether that was carried forward to 5.5 and 6.0.


--David

Diego Rodríguez Martín wrote:

Hi,

   Is there any way to fix this leak downgrading the version of 
commons pool. I have a production enviroment where we have a lot of 
deploy/undeploy and with this leak we have to stop/start Tomcat very 
often. Is there a possibility of replacing tomcat-dbcp.jar with the 
older individual jars? It will work or you have used new 
functionalities of these packages?


   Thanks

   Diego


Rémy Maucherat escribió:

On 6/8/07, Diego Rodríguez Martín [EMAIL PROTECTED] wrote:

It affects version 1.3 of commons pool. In tomcat 6, commons pool is
embbeded in /tomcat-dbcp.jar/, and the docs don't say with version of
commons is inside.


It's that version. A new commons-pool version will be integrated when
it's available.

Rémy

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




--
-
Diego Rodríguez Martín ([EMAIL PROTECTED])
ALTIRIA TIC - Servicios SMS - Desarrollo Web
Tel. +34 913311198 - Fax +34 913310087 - Móvil +34 610299750
www.altiria.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: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Mark Thomas
Jacob Bunk Nielsen wrote:
 If I submit a bug report with Sun I get a reply that I should contact
 Apache because the problem seems to be triggered by Tomcat. Is anyone
 at Apache interested in those hs_err_PID.log files generated by the
 JVM?
If you are using the native connector, it is possible that Tomcat is
the cause. In this case open a bugzilla item and add the log files and
any other relevant information. Do you have a url for a Sun bug report
we can look at?

If you are using the pure Java configuration, I don't see what we can
do - it would be an issue for Sun in that case.

 So, how would I go about avoiding to trigger these sorts of problems?
 It is a production system and I'm not very happy about it being down
 almost daily due to bugs in the JVM.
If using the native connector, switch to the pure Java one in production.

 But are these settings optimal for Tomcat 6 and Java6?
Your application is usually the biggest factor. If you have the
cycles, you might want to repeat the testing you did that arrived at
these settings but using your new TC6/Java6 configuration.

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: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David kerber
It's an acronym for As Far As I Know.

D

吴熊敏 wrote:
 “AFAIK” What it mean?

   
 AFAIK 400% of zero is still zero :D
 



-
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 - Apache ... and CGI

2007-06-15 Thread Yannick Haudry

here is the worker.properties file:
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1


and the httpd.conf (unconmmented lines only, to make it shorter):
hopes someone can help !

ServerTokens OS
ServerRoot /etc/httpd

PidFile run/httpd.pid
Timeout 1000
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

IfModule prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000
/IfModule

IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule jk_module modules/mod_jk.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin [EMAIL PROTECTED]

UseCanonicalName Off

DocumentRoot /home/auser/htdocs

Directory /
   Options FollowSymLinks
   AllowOverride None
/Directory

Directory /home/auser/htdocs
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

IfModule mod_userdir.c
   UserDir disable
/IfModule

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

Files ~ ^\.ht
   Order allow,deny
   Deny from all
/Files

TypesConfig /etc/mime.types

DefaultType text/plain

IfModule mod_mime_magic.c
   MIMEMagicFile conf/magic
/IfModule

HostnameLookups Off

ErrorLog logs/error_log
LogLevel warn
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
\%{User-Agent}i\ combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent
CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ /var/www/icons/

Directory /var/www/icons
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

IfModule mod_dav_fs.c
   DAVLockDB /var/lib/dav/lockdb
/IfModule

ScriptAlias /cgi-bin/ /home/auser/cgi-bin/

Directory /home/auser/cgi-bin
SetEnv PERL5LIB /home/auser/bin/src/perlmodule
/Directory

Directory /home/auser/htdocs/4d
AllowOverride None
Options ExecCGI
Allow from all
/Directory

IndexOptions FancyIndexing VersionSort NameWidth=*

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi

Re: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Jacob Bunk Nielsen
Hi

Mark Thomas [EMAIL PROTECTED] writes:
 Jacob Bunk Nielsen wrote:
 If I submit a bug report with Sun I get a reply that I should contact
 Apache because the problem seems to be triggered by Tomcat. Is anyone
 at Apache interested in those hs_err_PID.log files generated by the
 JVM?
 If you are using the native connector, it is possible that Tomcat is
 the cause. In this case open a bugzilla item and add the log files and
 any other relevant information. Do you have a url for a Sun bug report
 we can look at?

I'm using the Java connector as far as I can figure. I'm more or less
using the standard configuration that comes with Tomcat.

I don't have a Sun bug to link at because they won't accept my bug. In
stead they say:

,[ From the email that I got after Sun reviewed my lastest bug report ]
| Thank you for reporting this issue.
| 
| Please ask Apache to investigate this issue further.  Since Tomcat
| appears to trigger this failure, the developers at Apache will be able
| to examine their product, isolate the cause of the behavior, and, if
| necessary, provide us with a detailed report.
| 
| We greatly appreciate your efforts in identifying areas in the Java
| Standard Edition where we can improve upon and I would request you to
| continue doing so.
`

I have gotten this standard reply several times by now.

 If you are using the pure Java configuration, I don't see what we can
 do - it would be an issue for Sun in that case.

I agree!

 But are these settings optimal for Tomcat 6 and Java6?
 Your application is usually the biggest factor.

I know.

However, I also noticed that Tomcat 6 features Memory usage
optimizations. That's why I asked.

 If you have the cycles, you might want to repeat the testing you did
 that arrived at these settings but using your new TC6/Java6
 configuration.

It took a lot of time and a lot of segmentation faults (resulting in
my application being unavailable) to find these settings. The upside
was that I got the script that automatically restarts Tomcat when the
JVM dies perfected to a degree I had hoped wasn't necessary.

-- 
Jacob


-
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: APR installation Question

2007-06-15 Thread Richard Kaye
Hi

I also get 
  The Apache Tomcat Native library which allows optimal performance in
  production environments was not found on the java.library.path:

I'm using tomcat 5.5 installed from debian debs, and I think I
understand the instructions I have read so far and have all the
prerequisites to compile the necessary libraries, but I have not
got past stage 1 yet.  The docs at
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html
tells me to look for tomcat-native.tar.gz which I have done.
The result is I don't have this file or anything remotely
similar, nor is it provided in any of the debs I think.  So 
I can't unpack it and compile it.  What should I do now?

Richard


On Fri, 2007-06-15 at 13:52 +0300, Ilja S. wrote:
 Hi
 Your tomcat should start with option: -Djava.library.path=/usr/local/apr/lib
 in this case APR libs are in /usr/local/apr/lib, change to wherever you 
 got your libs
 
 Usually you add this line to tomcat startup script...
 
 
 
 *
 Best Regards
 Ilja
 
 
 Andre Prasetya wrote:
  I got this :
  
  The Apache Tomcat Native library which allows optimal performance in
  production environments was not found on the java.library.path:
  
  I already compiled the tcnative, where can i add the path to
  java.library.path ?
  
 
 
 -
 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: APR installation Question

2007-06-15 Thread Dhaval Patel
Hi Richard,

I made small tutorial about how to enable APR and SSL. I have it in word file. 
If you don't mind I
can email it to you on your email.

I have question for this mailing list about attaching document. I can generate 
small size PDF from
it. But am I allowed to attach document on this list? I want to make that 
document available on
this list as well so that everyone can able to see it.

Thanks.

Regards,
Dhaval
--- Richard Kaye [EMAIL PROTECTED] wrote:

 Hi
 
 I also get 
   The Apache Tomcat Native library which allows optimal performance in
   production environments was not found on the java.library.path:
 
 I'm using tomcat 5.5 installed from debian debs, and I think I
 understand the instructions I have read so far and have all the
 prerequisites to compile the necessary libraries, but I have not
 got past stage 1 yet.  The docs at
  http://tomcat.apache.org/tomcat-5.5-doc/apr.html
 tells me to look for tomcat-native.tar.gz which I have done.
 The result is I don't have this file or anything remotely
 similar, nor is it provided in any of the debs I think.  So 
 I can't unpack it and compile it.  What should I do now?
 
 Richard
 
 
 On Fri, 2007-06-15 at 13:52 +0300, Ilja S. wrote:
  Hi
  Your tomcat should start with option: -Djava.library.path=/usr/local/apr/lib
  in this case APR libs are in /usr/local/apr/lib, change to wherever you 
  got your libs
  
  Usually you add this line to tomcat startup script...
  
  
  
  *
  Best Regards
  Ilja
  
  
  Andre Prasetya wrote:
   I got this :
   
   The Apache Tomcat Native library which allows optimal performance in
   production environments was not found on the java.library.path:
   
   I already compiled the tcnative, where can i add the path to
   java.library.path ?
   
  
  
  -
  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]
 
 



   

Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.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]



Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Mark Hawkes
Hi all,

I have a HelloWorld servlet. Real simple. Packaged as hello-world.war. 
I copy it to $CATALINA_HOME/webapps. My environment:

Operating System: Fedora Core 5 Linux 2.6.15-1.2054
Java Version: 1.6.0-b105
JAVA_HOME = /opt/SDK/jdk
CATALINA_HOME = /apache-tomcat-5.5.23
CLASSPATH
= 
.:/apache-tomcat-5.5.23/common/lib/servlet-api.jar:/apache-tomcat-5.5.23/common/lib/jsp-api.jar

When I run $CATALINA_HOME/bin/startup.sh, the following appears in 
catalina.out. Note the SEVERE message...

- BEGIN -
Jun 15, 2007 1:14:15 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the
java.library.path: 
/opt/SDK/jdk/jre/lib/i386/client:/opt/SDK/jdk/jre/lib/i386:/opt/SDK/jdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Jun 15, 2007 1:14:15 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 15, 2007 1:14:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1349 ms
Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 15, 2007 1:14:16 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive hello-world.war
Jun 15, 2007 1:14:16 PM org.apache.commons.modeler.Registry
registerComponent
SEVERE: Null component
Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/hello-world,J2EEApplication=none,J2EEServer=none
Jun 15, 2007 1:14:17 PM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 15, 2007 1:14:17 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 15, 2007 1:14:17 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/35  config=null
Jun 15, 2007 1:14:17 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 15, 2007 1:14:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2332 ms
- END -

Any clues? Here's the application's web.xml and context.xml files:

$ cat $CATALINA_HOME/webapps/hello-world/WEB-INF/web.xml
?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd
version=2.4
  display-nameHello World/display-name
  description
An application that outputs a text/plain response of the string
Hello World
  /description

  servlet
servlet-nameHelloWorld/servlet-name
servlet-classcom.markhawkes.misc.HelloWorldServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/url-pattern
  /servlet-mapping

/web-app


$ cat $CATALINA_HOME/conf/Catalina/localhost/hello-world.xml
Context path=/hello-world docbase=hello-world.war reloadable=true
debug=0
  Loader checkInterval=1/
/Context


All the servlet examples at http://localhost:8080/servlets-examples/
work fine. But if I request http://localhost:8080/hello-world/HelloWorld
I get HTTP 500 with the following stack trace:


javax.servlet.ServletException: Error allocating a servlet instance

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:619)

root cause

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)


Re: APR installation Question

2007-06-15 Thread Ilja S.

Hi
Well I can suggest you to download the same version of tomcat you have 
installed from the apache.org and just copy this file from downloaded 
archive..

*
Best Regards
Ilja


Richard Kaye wrote:

Hi

I also get 

The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:


I'm using tomcat 5.5 installed from debian debs, and I think I
understand the instructions I have read so far and have all the
prerequisites to compile the necessary libraries, but I have not
got past stage 1 yet.  The docs at
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html
tells me to look for tomcat-native.tar.gz which I have done.
The result is I don't have this file or anything remotely
similar, nor is it provided in any of the debs I think.  So 
I can't unpack it and compile it.  What should I do now?


Richard


On Fri, 2007-06-15 at 13:52 +0300, Ilja S. wrote:

Hi
Your tomcat should start with option: -Djava.library.path=/usr/local/apr/lib
in this case APR libs are in /usr/local/apr/lib, change to wherever you 
got your libs


Usually you add this line to tomcat startup script...



*
Best Regards
Ilja


Andre Prasetya wrote:

I got this :

The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:

I already compiled the tcnative, where can i add the path to
java.library.path ?



-
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: Stop deployOnStartup for only one webapp

2007-06-15 Thread Joseph Valerio
Mark,

Thanks for the reply.  First, let me explain sakai a little... Sakai is
a learning management portal.  The architecture is such that if you want
to add a feature, you create a new webapp and tie it into the portal
app.  All service implementation details are  deployed  out of
${CATALINA_HOME}/components due to their nifty classloader, and all
webapps access these services staticly either by an internal lookup, or
factories almost entirely injected by spring.  This one webapp is a
built-in quartz scheduler we use to import our student/course data from
our course management system (Banner).  The job defs are held in the
DB.  If there are more than one scheduler deployed, the first one that
checks in and the job is available to run, gets the privilege of running
it.  This job reads banner via jdbc, and writes to sakai via the sakai
services api (deployed via components).  So we have complete dependency
on these static configured services being present and configured
correctly.  They are all dependent, there is no breaking it up. 

I think the best thing to do is to actually hack the code and place an
init-param that starts/stops the job listener.  That would be cleanest,
and actual require the least amount of effort.  If there was a context
specific override for deployOnStartup, that would have worked to...

Thanks for your time,

- Joe

Mark H. Wood wrote:
 Could you give the host another name and set up a separate virtual
 host for your standby Sakai instance?  The Host container seems to be
 the only one that defines deployOnStartup.  This separation might have
 other minor benefits.

 What happens when you place the application outside of appBase, create
 an explicit Context (PATH.xml) with docBase pointing to it, and flip
 the Context file into/out of $CATALINA_HOME/config/Catalina/localhost ?
 It shouldn't be too hard to arrange for a startup script to delete
 certain Context files before Tomcat starts, and then you can copy one
 in later when you want it.

   


-
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: Stop deployOnStartup for only one webapp

2007-06-15 Thread Mark H. Wood
Could you give the host another name and set up a separate virtual
host for your standby Sakai instance?  The Host container seems to be
the only one that defines deployOnStartup.  This separation might have
other minor benefits.

What happens when you place the application outside of appBase, create
an explicit Context (PATH.xml) with docBase pointing to it, and flip
the Context file into/out of $CATALINA_HOME/config/Catalina/localhost ?
It shouldn't be too hard to arrange for a startup script to delete
certain Context files before Tomcat starts, and then you can copy one
in later when you want it.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is intuitive he
means the exact opposite.


pgpyToR6JHnz1.pgp
Description: PGP signature


Re: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Hassan Schroeder

On 6/15/07, Jacob Bunk Nielsen [EMAIL PROTECTED] wrote:


I'm running Tomcat 6.0.13 on Sun Java6 and Linux.



I experience random crashes of the JVM on a daily basis. It simply
fails with segmentation faults, double frees and similar. Are any of
you experiencing similar problems? I had the same problems with Java5
and Tomcat 5.5, but less often.


I've had no such problems with either of the combinations you mention
on SuSE10/2.6.13-15-default or RHES3/2.4.21-9.EL. ...


I should add that I run my fairly memory consuming application on a 32
bit server with 4 GB of physical memory and 8 GB of swap space and
with CATALINA_OPTS set as:


..  but my systems' OPTS are pretty simple: -Xms256M -Xmx256M for
one and  -Xms512m -Xmx512m for the other.

In any case I've never had a JVM crash.

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: Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread neocollec

Mark, i suggest you ti use the tomcat manager tool.

Connecting to your manager webapp, you will be able to send a war package and 
deploy it successfully.

Your error sounds your mapping is wrong, because tomcat does not seem to find 
your servlet.

Have a good day, and i recommend you to work with good tools.

Neocollec





 Subject: Tomcat 5.5.23: Cannot Deploy hello-world.war
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Date: Fri, 15 Jun 2007 14:00:16 +0100
 
 Hi all,
 
 I have a HelloWorld servlet. Real simple. Packaged as hello-world.war. 
 I copy it to $CATALINA_HOME/webapps. My environment:
 
 Operating System: Fedora Core 5 Linux 2.6.15-1.2054
 Java Version: 1.6.0-b105
 JAVA_HOME = /opt/SDK/jdk
 CATALINA_HOME = /apache-tomcat-5.5.23
 CLASSPATH
 = 
 .:/apache-tomcat-5.5.23/common/lib/servlet-api.jar:/apache-tomcat-5.5.23/common/lib/jsp-api.jar
 
 When I run $CATALINA_HOME/bin/startup.sh, the following appears in 
 catalina.out. Note the SEVERE message...
 
 - BEGIN -
 Jun 15, 2007 1:14:15 PM org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance
 in production environments was not found on the
 java.library.path: 
 /opt/SDK/jdk/jre/lib/i386/client:/opt/SDK/jdk/jre/lib/i386:/opt/SDK/jdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
 Jun 15, 2007 1:14:15 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Jun 15, 2007 1:14:15 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1349 ms
 Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
 Jun 15, 2007 1:14:15 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Jun 15, 2007 1:14:16 PM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive hello-world.war
 Jun 15, 2007 1:14:16 PM org.apache.commons.modeler.Registry
 registerComponent
 SEVERE: Null component
 Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/hello-world,J2EEApplication=none,J2EEServer=none
 Jun 15, 2007 1:14:17 PM org.apache.coyote.http11.Http11BaseProtocol
 start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Jun 15, 2007 1:14:17 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Jun 15, 2007 1:14:17 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/35  config=null
 Jun 15, 2007 1:14:17 PM org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Jun 15, 2007 1:14:17 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 2332 ms
 - END -
 
 Any clues? Here's the application's web.xml and context.xml files:
 
 $ cat $CATALINA_HOME/webapps/hello-world/WEB-INF/web.xml
 
 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 web-app_2_4.xsd
 version=2.4
   Hello World
   
 An application that outputs a text/plain response of the string
 Hello World
   
 
   
 HelloWorld
 com.markhawkes.misc.HelloWorldServlet
   
   
 HelloWorld
 /HelloWorld
   
 
 
 
 
 $ cat $CATALINA_HOME/conf/Catalina/localhost/hello-world.xml
  debug=0
   
 
 
 
 All the servlet examples at http://localhost:8080/servlets-examples/
 work fine. But if I request http://localhost:8080/hello-world/HelloWorld
 I get HTTP 500 with the following stack trace:
 
 
 javax.servlet.ServletException: Error allocating a servlet instance
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   org.apache.coyote.http11.Http11BaseProtocol
 $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   org.apache.tomcat.util.threads.ThreadPool
 $ControlRunnable.run(ThreadPool.java:685)
   java.lang.Thread.run(Thread.java:619)
 
 root cause
 
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
   java.lang.ClassLoader.defineClass1(Native Method)
   java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
 
 

Re: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Andrew Miehs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 15/06/2007, at 4:36 PM, Peter Crowther wrote:


From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
On 6/15/07, Jacob Bunk Nielsen [EMAIL PROTECTED] wrote:

I experience random crashes of the JVM on a daily basis. It simply
fails with segmentation faults, double frees and similar. Are any of
you experiencing similar problems? I had the same problems

with Java5

and Tomcat 5.5, but less often.


I've had no such problems with either of the combinations you mention
on SuSE10/2.6.13-15-default or RHES3/2.4.21-9.EL. ...


Jacob, are you *absolutely* sure the hardware is solid?  Does anything
else ever crash?  Does the same setup work on another machine (I
appreciate this is not always easy to test)?


I have to agree with Peter. This definitely sounds like a hardware  
problem.

'Random' errors sound very much like faulty RAM. As you were also having
this problem before, it is obviously not a Java 6 problem.

What messages are you getting 'EXACTLY'?

You may also want to look in /var/log/messages and dmesg and see if  
you are

seeing any strange messages in there...

Cheers

Andrew

PS: The server isn't a SuperMicro server is it? (or rebadged like  
Transtec)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFGcqZCW126qUNSzvURAsdTAJ9Mh3TQo8WuX+1+cs1LpYC1bxGQHwCfYTUR
+iw9g74h0B8SrSJEvRqmI5c=
=Hxyk
-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: Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Caldarale, Charles R
 From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war

Looks like you have the same classes being loaded by multiple
classloaders.

 CLASSPATH = 
 .:/apache-tomcat-5.5.23/common/lib/servlet-api.jar:
 /apache-tomcat-5.5.23/common/lib/jsp-api.jar

None of that should be in the CLASSPATH; in fact, you should not be
using the CLASSPATH environment variable at all with Tomcat.  Get rid of
it.

 - 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: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Peter Crowther
 From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
 On 6/15/07, Jacob Bunk Nielsen [EMAIL PROTECTED] wrote:
 
  I'm running Tomcat 6.0.13 on Sun Java6 and Linux.
 
  I experience random crashes of the JVM on a daily basis. It simply
  fails with segmentation faults, double frees and similar. Are any of
  you experiencing similar problems? I had the same problems 
 with Java5
  and Tomcat 5.5, but less often.
 
 I've had no such problems with either of the combinations you mention
 on SuSE10/2.6.13-15-default or RHES3/2.4.21-9.EL. ...

Jacob, are you *absolutely* sure the hardware is solid?  Does anything
else ever crash?  Does the same setup work on another machine (I
appreciate this is not always easy to test)?

Also, which Linux?  Not all kernels or distros are created equal.  Linux
is now where Windows was about a decade ago*, with the equivalent of DLL
hell but with the added bonus of some buggy kernels as well as all the
usual issues of buggy drivers and libraries.  It used to be a small,
cute system back when I started with it in 1995; now there can be some
unpleasant stability issues that can only show up with some combinations
of kernel, modules and applications.

- Peter

* Some would argue it still is, although IMHO that's more an issue with
application developers than Microsoft now.

-
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: APR installation Question

2007-06-15 Thread Richard Kaye
Thanks.  That worked.  Funnily enough despite my care
in getting the version right (5.5.20) tomcat carped
that the new library was the wrong version.  I don't know.

] INFO: An older version 1.1.3 of the Apache Tomcat Native library is 
] installed, while Tomcat recommends version greater than 1.1.4

R

On Fri, 2007-06-15 at 15:37 +0300, Ilja S. wrote:
 Hi
 Well I can suggest you to download the same version of tomcat you have 
 installed from the apache.org and just copy this file from downloaded 
 archive..
 *
 Best Regards
 Ilja
 
 
 Richard Kaye wrote:
  Hi
  
  I also get 
  The Apache Tomcat Native library which allows optimal performance in
  production environments was not found on the java.library.path:
  
  I'm using tomcat 5.5 installed from debian debs, and I think I
  understand the instructions I have read so far and have all the
  prerequisites to compile the necessary libraries, but I have not
  got past stage 1 yet.  The docs at
   http://tomcat.apache.org/tomcat-5.5-doc/apr.html
  tells me to look for tomcat-native.tar.gz which I have done.
  The result is I don't have this file or anything remotely
  similar, nor is it provided in any of the debs I think.  So 
  I can't unpack it and compile it.  What should I do now?
  
  Richard
  
  
  On Fri, 2007-06-15 at 13:52 +0300, Ilja S. wrote:
  Hi
  Your tomcat should start with option: 
  -Djava.library.path=/usr/local/apr/lib
  in this case APR libs are in /usr/local/apr/lib, change to wherever you 
  got your libs
 
  Usually you add this line to tomcat startup script...
 
 
 
  *
  Best Regards
  Ilja
 
 
  Andre Prasetya wrote:
  I got this :
 
  The Apache Tomcat Native library which allows optimal performance in
  production environments was not found on the java.library.path:
 
  I already compiled the tcnative, where can i add the path to
  java.library.path ?
 
 
  -
  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]
 


-
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 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Mark Hawkes
Thanks for the info. I've erased my CLASSPATH environment variable but I
still have the exact same error in catalina.out when Tomcat starts up.

On Fri, 2007-06-15 at 09:49 -0500, Caldarale, Charles R wrote:
  From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
  Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war
 
 Looks like you have the same classes being loaded by multiple
 classloaders.
 
  CLASSPATH = 
  .:/apache-tomcat-5.5.23/common/lib/servlet-api.jar:
  /apache-tomcat-5.5.23/common/lib/jsp-api.jar
 
 None of that should be in the CLASSPATH; in fact, you should not be
 using the CLASSPATH environment variable at all with Tomcat.  Get rid of
 it.
 
  - 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 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Caldarale, Charles R
 From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war
 
 I've erased my CLASSPATH environment variable but
 I still have the exact same error in catalina.out
 when Tomcat starts up.

What exactly is in your hello-world.war file?  Have you made any changes
to conf/server.xml or any of the other .xml files in the conf directory?

 - 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: Using shared Spring Webapp in Tomcat 6

2007-06-15 Thread Kevin Wilhelm

I understand it makes no sense to share a whole webapp in Tomcat.

What about sharing a singleton across all Tomcat webapps? I want my main 
webapp to call a method on that shared singleton in order to provide a 
factory (...getInstance().setFactory()). This factory should be retrieved by 
webapps using that singleton (getFactory()). I know I have to put that 
singleton (in a jar file) into the $CATALINA_HOME/lib directory. How do I 
access the singleton from within my webapps after that? I guess I have to 
touch the web.xml somewhere. However, the first call must set the factory 
(the main webapp will do that)... all following calls shall be able to 
access the factory.



- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 15, 2007 12:08 AM
Subject: RE: Using shared Spring Webapp in Tomcat 6



From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
Subject: Using shared Spring Webapp in Tomcat 6

For Tomcat 6 there is a folder called $CATALINAHOME/lib
that is said to be used for that kind of stuff.


No, the $CATALINA_HOME/lib directory is for classes common to all
webapps, not any individual webapps.  Each webapp is normally deployed
in its own directory under the Host appBase (typically
$CATALINA_HOME/webapps).


1.) Does it work to create a war file from my services webapp
and put it into the lib directory? Is this the way to go?


No.


2.) Furthermore: Where do I start with my JSP/JSF view
webapp? I assume I have to access the SessionFacade somehow.
I will have to access the logic web app from within my view-webapp.


If your logic webapp is just that - no presentation capabilities -
then it's not really a webapp, is it?  Sounds like you haven't really
thought through the application architecture here.

This may well be more of a Spring topic than a Tomcat one.

- 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: Fwd: building mod_jk 1.2.23 apxs errors

2007-06-15 Thread Rainer Jung

What are the contents of your mod_jk.la file?

What is the output of doing make, especially the parts close to the end, 
like shortly before and all after the line


Making all in apache-2.0

After all it looks, like you are doing a static apache build. Note, that 
neither '--enable-module=most' nor '--enable-shared=max' exist as 2.0 
httpd configure options.


Look at

http://httpd.apache.org/docs/2.0/programs/configure.html

If you really want to do a static compilation, have a look at the page

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

especially around the places where with-apache is mentioned.

A little warning: static mod_jk compilation most likely is not done very 
often. So this procedure might be slightly broken on some platforms.


Regards,

Rainer

tom northcutt wrote:

I am attempting to compile the latest version of mod_jk for integration
with my apache 2.0.59 server on CentOS-3.8 (32bit)

After running  ./configure --with-apxs=/usr/local/apache/bin/apxs
from the native directory, the mod_jk.lai and mod_jk.a files are
created.

Upon running the make install, I get the following error:


Installing files to Apache Modules Directory...
/usr/local/apache/bin/apxs -i mod_jk.la
/usr/local/apache-2.0.59/build/instdso.sh
SH_LIBTOOL='/usr/local/apache-2.0.59/build/libtool' mod_jk.la
/usr/local/apache-2.0.59/modules
/usr/local/apache-2.0.59/build/libtool --mode=install cp mod_jk.la
/usr/local/apache-2.0.59/modules/
cp .libs/mod_jk.lai /usr/local/apache-2.0.59/modules/mod_jk.la
cp .libs/mod_jk.a /usr/local/apache-2.0.59/modules/mod_jk.a
ranlib /usr/local/apache-2.0.59/modules/mod_jk.a
chmod 644 /usr/local/apache-2.0.59/modules/mod_jk.a
PATH=$PATH:/sbin ldconfig -n /usr/local/apache-2.0.59/modules
--
Libraries have been installed in:
  /usr/local/apache-2.0.59/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
--
Warning!  dlname not found in /usr/local/apache-2.0.59/modules/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache-2.0.59/modules/mod_jk.so
chmod: failed to get attributes of
`/usr/local/apache-2.0.59/modules/mod_jk.so': No such file or
directory
apxs:Error: Command failed with rc=65536
.

If I run this command (from the Makefile) manually, I get the same error:

(in apache-2.0)
/usr/local/apache/bin/apxs -i mod_jk.la


My apxs was built from source with the following apache configuration:
configured by ./configure, generated by GNU Autoconf 2.59,
 with options \'--prefix=/usr/local/apache-2.0.59' 
'--enable-module=most' '--e

nable-shared=max' '--enable-proxy' '--enable-rewrite'\

Thanks,

-Tom


-
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 shared Spring Webapp in Tomcat 6

2007-06-15 Thread Caldarale, Charles R
 From: Kevin Wilhelm [mailto:[EMAIL PROTECTED] 
 Subject: Re: Using shared Spring Webapp in Tomcat 6
 
 I understand it makes no sense to share a whole webapp in Tomcat.

Still not clear on what you mean by share a whole webapp.  By
definition (the servlet spec), webapps are intended to be independent
and the interface to a webapp is via HTTP.  You can easily send an HTTP
request from one webapp to another within Tomcat, if that's what you
want to do - but I suspect you really want to use method invocations.

 What about sharing a singleton across all Tomcat webapps?

That's fine, and it doesn't have to be in a jar - you can put just the
.class file into the $CATALINA_HOME/lib directory.

 How do I access the singleton from within my webapps after that?

Just call it; the webapp's classloader will delegate to the common
classloader if the reference can't be found within the webapp.

 However, the first call must set the factory 
 (the main webapp will do that)

You might want to consider using a Listener to initialize the singleton.
Again, read the servlet spec.

 - 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 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Mark Hawkes
On Fri, 2007-06-15 at 11:21 -0500, Caldarale, Charles R wrote:
  From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
  Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war
  
  I've erased my CLASSPATH environment variable but
  I still have the exact same error in catalina.out
  when Tomcat starts up.
 
 What exactly is in your hello-world.war file?  Have you made any changes
 to conf/server.xml or any of the other .xml files in the conf directory?

$ jar -tf hello-world.war
META-INF/
META-INF/MANIFEST.MF
META-INF/context.xml
WEB-INF/
WEB-INF/web.xml
WEB-INF/lib/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/markhawkes/
WEB-INF/classes/com/markhawkes/misc/
WEB-INF/classes/com/markhawkes/misc/HelloWorldServlet.class
javascript/

I haven't edited any config files except
$CATALINA_HOME/conf/tomcat-users.xml so I could add myself as a user of
the Tomcat manager app. In all other respects, it's a clean, untouched
installation.

 
  - 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: Can not see the stack trace?

2007-06-15 Thread Rainer Jung
Are you actually using -Xrs? At least it's not contained in the part of 
the commandline you posted, which is unfortunately truncated.


The result of kill -QUIT goes to STDOUT of the jvm. So you need to find 
out, where your STDOUT goes to. The standard tomcat start scripts 
(startup.sh or catalina.sh called with the argument start) redirect 
STDOUT to logs/catalina.out.


Regards,

Rainer

Peter wrote:
 hi all;
 i try to use SIGQUIT but can not see the stack trace.

 [EMAIL PROTECTED] root]# ps -ef|grep tomcat
 root 26337 1  5 09:45 pts/000:00:11
 /usr/java/jre1.5.0_08/bin/java -Xms256m -Xmx512m -
 Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
 Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -
 Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath
 :/opt/tomcat/bin/bootstrap.ja
 root 26427 26172  0 09:49 pts/000:00:00 grep tomcat

 [EMAIL PROTECTED] root]# kill -SIGQUIT 26337
 [EMAIL PROTECTED] root]# kill -3 26337
 [EMAIL PROTECTED] root]#

 does anyone has idea why?
 some artical said that if JVM set -Xrs,it will ignore the OS signal like
 SIGQUIT
 Does anyone know how can i see the stack trace in this situation?
 i use Tomcat 5.5.20 in  linux , java, 1.5.0_10

 thanks


-
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 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Caldarale, Charles R
 From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war

The structure looks good.

 META-INF/context.xml
 WEB-INF/web.xml

What's in the above two files?

 - 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: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Rainer Jung

Give us a look at your hotspot error files.

Do they look very close to each other, or do they show very different 
stacks as the reason for the crash?


If double free is really the reason it won't be caused by a pure Java 
Tomcat, instead it could be native libs integrated into your webapps by 
JNI or a bug between the JVM and your platform.


Nevertheless a view at your hotspot error files should give a hint.

A second thing: since some of your JVM options are very advanced, 
consider upgrading to Java 1.5.0_12. JVM updates are usually low risk 
and easy to do and most of the patch releases enhance stability of the 
more advanced GC options.


Regards,

Rainer


Jacob Bunk Nielsen wrote:

Hi

I'm running Tomcat 6.0.13 on Sun Java6 and Linux. I upgraded from
Tomcat 5.5.17 and Java5 update 9 a couple of weeks ago.

I experience random crashes of the JVM on a daily basis. It simply
fails with segmentation faults, double frees and similar. Are any of
you experiencing similar problems? I had the same problems with Java5
and Tomcat 5.5, but less often.

If I submit a bug report with Sun I get a reply that I should contact
Apache because the problem seems to be triggered by Tomcat. Is anyone
at Apache interested in those hs_err_PID.log files generated by the
JVM?

So, how would I go about avoiding to trigger these sorts of problems?
It is a production system and I'm not very happy about it being down
almost daily due to bugs in the JVM.

I should add that I run my fairly memory consuming application on a 32
bit server with 4 GB of physical memory and 8 GB of swap space and
with CATALINA_OPTS set as:

CATALINA_OPTS=-Djava.awt.headless=true -server -Xms512m -Xmx2g
 -verbose:gc -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC
 -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseTLAB
 -XX:+UsePerfData -XX:NewSize=128m -XX:MaxNewSize=128m
 -XX:MaxTenuringThreshold=0 -XX:SurvivorRatio=1024 -Xincgc

I tried some even more agressive garbage collector settings a while
back because I was experiencing long pauses while the garbage
collector was running, but I kept triggering loads of segmentation
faults. This is the settings that around a year ago gave the best
balance between crashes and halts from the garbage collector.

But are these settings optimal for Tomcat 6 and Java6?


-
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 get the free endpoint for worker xyz from, 1 slots

2007-06-15 Thread Rainer Jung
Could you please post your configuration and maybe some more snippets 
from the debug log? What is your platform?


Under *nix systems Apache 1.3 is single threaded and uses a single 
backend connection tied to a process, so this situation should never happen.


How easy can you reproduce this?

Regards,

Rainer


Dirk Koehler wrote:

Hi,

recently I'm facing an issue with the mod_jk connector (1.2.21) together
with apache 1.3.x where requests to apache are answered with 500
INTERNAL SERVER ERROR. Enabling mod_jk debug logging shows that at
exactly that time mod_jk warnings show up saying something like (after
having tomcat/apache up for some time):

[Thu Jun 14 19:49:51 2007] [19351:] [warn] 
ajp_get_endpoint::jk_ajp_common.c (2336): Unable to get the free

endpoint for worker myworker from 1 slots
[Thu Jun 14 19:49:51 2007] [19351:] [info] 
ajp_get_endpoint::jk_ajp_common.c (2350): can't find free endpoint


Did anybody has an any hints or a answer for me what could have caused
that issue. I was looking in the web for any hints but unfortunately was
not successful yet!

All help is pretty much appreciated

thx,

dirk


-
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 - Apache ... and CGI

2007-06-15 Thread Rainer Jung
As I understand you, you want to let Tomcat handle the cgi for you. But 
you also configured Apache to locally handle *.cgi as a CGI itself. So 
you need to resolve the conflict between handling everything that starts 
with /Context/ by mod_jk and everything that ends in .cgi by mod_cgi. 
/Context/*.cgi is now no longer well defined (the handling depends on 
the internal ordering of the two modules in Apache).


You need to either disable forwarding for the *.cgi in mod_jk 
(JkUnmount; if you want Apache to do the cgi) or disable Apache cgi 
handling (not using mod_cgi, SetHandler for .cgi etc.) if you want 
Tomcat to handle cgi.


Regards,

Rainer



Yannick Haudry wrote:

here is the worker.properties file:
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1


and the httpd.conf (unconmmented lines only, to make it shorter):
hopes someone can help !

ServerTokens OS
ServerRoot /etc/httpd

PidFile run/httpd.pid
Timeout 1000
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

IfModule prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000
/IfModule

IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule jk_module modules/mod_jk.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin [EMAIL PROTECTED]

UseCanonicalName Off

DocumentRoot /home/auser/htdocs

Directory /
   Options FollowSymLinks
   AllowOverride None
/Directory

Directory /home/auser/htdocs
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

IfModule mod_userdir.c
   UserDir disable
/IfModule

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

Files ~ ^\.ht
   Order allow,deny
   Deny from all
/Files

TypesConfig /etc/mime.types

DefaultType text/plain

IfModule mod_mime_magic.c
   MIMEMagicFile conf/magic
/IfModule

HostnameLookups Off

ErrorLog logs/error_log
LogLevel warn
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
\%{User-Agent}i\ combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent
CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ /var/www/icons/

Directory /var/www/icons
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
/Directory

IfModule mod_dav_fs.c
   DAVLockDB /var/lib/dav/lockdb
/IfModule

ScriptAlias /cgi-bin/ /home/auser/cgi-bin/

Directory /home/auser/cgi-bin
SetEnv PERL5LIB /home/auser/bin/src/perlmodule
/Directory

Directory /home/auser/htdocs/4d
AllowOverride None
Options ExecCGI
Allow from all
/Directory

IndexOptions FancyIndexing 

Re: Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Mark Hawkes

Caldarale, Charles R wrote:
From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war


The structure looks good.


META-INF/context.xml
WEB-INF/web.xml



What's in the above two files?


$ cat META-INF/context.xml
Context path=/hello-world docbase=hello-world.war reloadable=true
debug=0
  Loader checkInterval=1/
/Context


$ cat WEB-INF/web.xml
?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
web-app_2_4.xsd

version=2.4
  display-nameHello World/display-name
  description
An application that outputs a text/plain response of the string
Hello World
  /description

  servlet
servlet-nameHelloWorld/servlet-name
servlet-classcom.markhawkes.misc.HelloWorldServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/url-pattern
  /servlet-mapping

/web-app

-
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 - Apache ... and CGI

2007-06-15 Thread Yannick Haudry

Thanks Rainer, I see what's happening now !
I think I will go for the first solution you've suggested (disabling
Tomcat cgi handling) and let Apache doing this, just because some cgi
applications are already running on the serer I'm using.

Yannick

On 6/15/07, Rainer Jung [EMAIL PROTECTED] wrote:

As I understand you, you want to let Tomcat handle the cgi for you. But
you also configured Apache to locally handle *.cgi as a CGI itself. So
you need to resolve the conflict between handling everything that starts
with /Context/ by mod_jk and everything that ends in .cgi by mod_cgi.
/Context/*.cgi is now no longer well defined (the handling depends on
the internal ordering of the two modules in Apache).

You need to either disable forwarding for the *.cgi in mod_jk
(JkUnmount; if you want Apache to do the cgi) or disable Apache cgi
handling (not using mod_cgi, SetHandler for .cgi etc.) if you want
Tomcat to handle cgi.

Regards,

Rainer



Yannick Haudry wrote:
 here is the worker.properties file:
 ps=/
 worker.list=worker1

 worker.worker1.port=8009
 worker.worker1.host=localhost
 worker.worker1.type=ajp13
 worker.worker1.lbfactor=1


 and the httpd.conf (unconmmented lines only, to make it shorter):
 hopes someone can help !

 ServerTokens OS
 ServerRoot /etc/httpd

 PidFile run/httpd.pid
 Timeout 1000
 KeepAlive Off
 MaxKeepAliveRequests 100
 KeepAliveTimeout 15

 IfModule prefork.c
 StartServers   8
 MinSpareServers5
 MaxSpareServers   20
 ServerLimit  256
 MaxClients   256
 MaxRequestsPerChild  4000
 /IfModule

 IfModule worker.c
 StartServers 2
 MaxClients 150
 MinSpareThreads 25
 MaxSpareThreads 75
 ThreadsPerChild 25
 MaxRequestsPerChild  0
 /IfModule

 Listen 80

 LoadModule access_module modules/mod_access.so
 LoadModule auth_module modules/mod_auth.so
 LoadModule auth_anon_module modules/mod_auth_anon.so
 LoadModule auth_dbm_module modules/mod_auth_dbm.so
 LoadModule auth_digest_module modules/mod_auth_digest.so
 LoadModule ldap_module modules/mod_ldap.so
 LoadModule auth_ldap_module modules/mod_auth_ldap.so
 LoadModule include_module modules/mod_include.so
 LoadModule log_config_module modules/mod_log_config.so
 LoadModule env_module modules/mod_env.so
 LoadModule mime_magic_module modules/mod_mime_magic.so
 LoadModule cern_meta_module modules/mod_cern_meta.so
 LoadModule expires_module modules/mod_expires.so
 LoadModule deflate_module modules/mod_deflate.so
 LoadModule headers_module modules/mod_headers.so
 LoadModule usertrack_module modules/mod_usertrack.so
 LoadModule setenvif_module modules/mod_setenvif.so
 LoadModule mime_module modules/mod_mime.so
 LoadModule dav_module modules/mod_dav.so
 LoadModule status_module modules/mod_status.so
 LoadModule autoindex_module modules/mod_autoindex.so
 LoadModule asis_module modules/mod_asis.so
 LoadModule info_module modules/mod_info.so
 LoadModule dav_fs_module modules/mod_dav_fs.so
 LoadModule vhost_alias_module modules/mod_vhost_alias.so
 LoadModule negotiation_module modules/mod_negotiation.so
 LoadModule dir_module modules/mod_dir.so
 LoadModule imap_module modules/mod_imap.so
 LoadModule actions_module modules/mod_actions.so
 LoadModule speling_module modules/mod_speling.so
 LoadModule userdir_module modules/mod_userdir.so
 LoadModule alias_module modules/mod_alias.so
 LoadModule rewrite_module modules/mod_rewrite.so
 LoadModule proxy_module modules/mod_proxy.so
 LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
 LoadModule proxy_http_module modules/mod_proxy_http.so
 LoadModule proxy_connect_module modules/mod_proxy_connect.so
 LoadModule cache_module modules/mod_cache.so
 LoadModule suexec_module modules/mod_suexec.so
 LoadModule disk_cache_module modules/mod_disk_cache.so
 LoadModule file_cache_module modules/mod_file_cache.so
 LoadModule mem_cache_module modules/mod_mem_cache.so
 LoadModule cgi_module modules/mod_cgi.so
 LoadModule jk_module modules/mod_jk.so

 Include conf.d/*.conf

 User apache
 Group apache

 ServerAdmin [EMAIL PROTECTED]

 UseCanonicalName Off

 DocumentRoot /home/auser/htdocs

 Directory /
Options FollowSymLinks
AllowOverride None
 /Directory

 Directory /home/auser/htdocs
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
 /Directory

 IfModule mod_userdir.c
UserDir disable
 /IfModule

 DirectoryIndex index.html index.html.var

 AccessFileName .htaccess

 Files ~ ^\.ht
Order allow,deny
Deny from all
 /Files

 TypesConfig /etc/mime.types

 DefaultType text/plain

 IfModule mod_mime_magic.c
MIMEMagicFile conf/magic
 /IfModule

 HostnameLookups Off

 ErrorLog logs/error_log
 LogLevel warn
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
 \%{User-Agent}i\ combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - %U referer
 LogFormat %{User-agent}i agent
 CustomLog logs/access_log combined

 ServerSignature On

 Alias /icons/ /var/www/icons/

 Directory /var/www/icons
Options Indexes 

RE: Tomcat 5.5.23: Cannot Deploy hello-world.war

2007-06-15 Thread Caldarale, Charles R
 From: Mark Hawkes [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat 5.5.23: Cannot Deploy hello-world.war
 
 $ cat META-INF/context.xml
 Context path=/hello-world docbase=hello-world.war 
   reloadable=true debug=0
   Loader checkInterval=1/
 /Context

Take out the path and docBase attributes - they're not allowed when the
Context element is in META-INF/context.xml.  However, the real problem
is that there's no checkInterval attribute documented for Loader -
that's what's causing the error message you see; the entire Loader
element should just be removed.

 - 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: Can not see the stack trace?

2007-06-15 Thread Peter

thank you i got that

On 6/16/07, Rainer Jung [EMAIL PROTECTED] wrote:


Are you actually using -Xrs? At least it's not contained in the part of
the commandline you posted, which is unfortunately truncated.

The result of kill -QUIT goes to STDOUT of the jvm. So you need to find
out, where your STDOUT goes to. The standard tomcat start scripts
(startup.sh or catalina.sh called with the argument start) redirect
STDOUT to logs/catalina.out.

Regards,

Rainer

Peter wrote:
 hi all;
 i try to use SIGQUIT but can not see the stack trace.

 [EMAIL PROTECTED] root]# ps -ef|grep tomcat
 root 26337 1  5 09:45 pts/000:00:11
 /usr/java/jre1.5.0_08/bin/java -Xms256m -Xmx512m -
 Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
 Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -
 Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath
 :/opt/tomcat/bin/bootstrap.ja
 root 26427 26172  0 09:49 pts/000:00:00 grep tomcat

 [EMAIL PROTECTED] root]# kill -SIGQUIT 26337
 [EMAIL PROTECTED] root]# kill -3 26337
 [EMAIL PROTECTED] root]#

 does anyone has idea why?
 some artical said that if JVM set -Xrs,it will ignore the OS signal like
 SIGQUIT
 Does anyone know how can i see the stack trace in this situation?
 i use Tomcat 5.5.20 in  linux , java, 1.5.0_10

 thanks


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