Re: Tomcat 5.17 crashes too often

2009-11-29 Thread Rocco Scappatura
Hello PID,

On Ven, 27 Novembre 2009 16:50, Pid wrote:
 On 27/11/2009 15:41, Rocco Scappatura wrote:
 Peter,

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Friday, November 27, 2009 4:17 PM
 To: Rocco Scappatura
 Subject: Re: Tomcat 5.17 crashes too often

 On 27/11/2009 15:00, Rocco Scappatura wrote:

 On 27/11/2009 14:00, Rocco Scappatura wrote:
 Thanks Peter,

 -Original Message-
 From: peter.crowth...@googlemail.com
 [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter
 Crowther
 Sent: Friday, November 27, 2009 2:29 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.17 crashes too often

 2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:
 I think that I have forgotten to attach the core file above
 mentioned..
 :-(

 This mailing list removes attachments.  Core files are often very
 large, and they also don't provide very much information to
 anyone
 on
 the list as we'd have to be able to reproduce your exact
 computer,
 kernel, Java virtual machine and Tomcat environment - helpfully,
 you
 haven't told us any of these, but even if you did probably nobody
 would have an environment that matched yours.

 So, given that we can't use the core file, what *can* we use?
 Error
 messages!  Look in Tomcat's log files for error messages that may
 be
 related to the crash.  And... please tell us your operating
 system,
 Tomcat version, Java version, and whether your Tomcat is running
 pure
 Java connectors and applications, or whether you have any JNI
 code
 in
 your applications or are running APR connectors.


 I can see that you are running PHP, please provide specific
 information
 about how you are doing that   what library you are using.


 http://www.rocsca.it/info.php

 It would also be helpful to know if the server is processing the
 same
 request each time when it crashes.

 I can't figure out.. I have no evidence of the crash of the server..

 Well if the server crashed, it'll be one of, or the very last line in
 the access log.  Have you configured an access log in server.xml?

 I can't see access log configured in server.xml, but I get them in logs
 directory..

 So, when it crashes:

 1. Don't restart Tomcat, leave it off.

 2. Find the current access log file.

 3. Look at the last few requests - if Tomcat has crashed, then there
 will be no new log entries after the crash.  So the last one will
 probably be the one that caused the crash.

 Hopefully the request that caused the crash will be logged and you'll
 see which one it is.

127.0.0.1 - - [29/Nov/2009:07:52:40 +0100] GET /rocsca/index.php
HTTP/1.1 500 - http://www.rocsca.it/index.php; Mozilla/4.0 (compatible;
MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]

The original request is http://www.rocsca.it/index.php; which is reverse
proxied into http://localhost:8081/rocsca/index.php;.

After this request, there are no other an Tomcat is hanged.

 How have you configured PHP - which PHP library have you installed in
 Tomcat to make Tomcat serve PHP pages.  It won't do so without
 additional manual configuration by you.

  servlet
  servlet-namephp/servlet-name
  servlet-classnet.php.servlet/servlet-class
  /servlet
  servlet
  servlet-namephp-formatter/servlet-name
  servlet-classnet.php.formatter/servlet-class
  /servlet
  servlet-mapping
  servlet-namephp/servlet-name
  url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
  servlet-namephp-formatter/servlet-name
  url-pattern*.phps/url-pattern
  /servlet-mapping

 This entry are set in the web.xml of my application.

 I have followed the instruction on this page:

 http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi
 ng-tomcat-4x-or-5x/

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-29 Thread Rocco Scappatura
Thanks Charles,

On Ven, 27 Novembre 2009 17:14, Caldarale, Charles R wrote:
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Tomcat 5.17 crashes too often

 Hopefully the request that caused the crash will be logged and you'll
 see which one it is.

 I don't think so - the AccessLogValve doesn't write anything out until the
 response has been generated.  Wireshark or something similar should catch
 the last incoming messages that might be triggering the crash.

 Regardless, I'd agree with Peter - throwing questionable DLLs into the
 Tomcat process leaves you at risk.  This looks much safer (but I haven't
 personally tried it):
 http://php-java-bridge.sourceforge.net/pjb/

Cool! I'll take a look as soon as possible..

 And there's always Quercus, which is pure Java, and it does run under
 Tomcat, not just Resin:
 http://caucho.com/download/quercus-4.0.2.war
 http://wiki.caucho.com/Quercus:_Tomcat

Interesting,

Thanks,

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-29 Thread Pid

On 29/11/2009 19:04, Rocco Scappatura wrote:

On Dom, 29 Novembre 2009 19:14, Pid wrote:

On 29/11/2009 11:02, Rocco Scappatura wrote:

Hello PID,

On Ven, 27 Novembre 2009 16:50, Pid wrote:

On 27/11/2009 15:41, Rocco Scappatura wrote:

Peter,


-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Friday, November 27, 2009 4:17 PM
To: Rocco Scappatura
Subject: Re: Tomcat 5.17 crashes too often

On 27/11/2009 15:00, Rocco Scappatura wrote:



On 27/11/2009 14:00, Rocco Scappatura wrote:

Thanks Peter,


-Original Message-
From: peter.crowth...@googlemail.com
[mailto:peter.crowth...@googlemail.com] On Behalf Of Peter

Crowther

Sent: Friday, November 27, 2009 2:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.17 crashes too often

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

I think that I have forgotten to attach the core file above

mentioned..

:-(


This mailing list removes attachments.  Core files are often very
large, and they also don't provide very much information to

anyone

on

the list as we'd have to be able to reproduce your exact

computer,

kernel, Java virtual machine and Tomcat environment - helpfully,

you

haven't told us any of these, but even if you did probably nobody
would have an environment that matched yours.

So, given that we can't use the core file, what *can* we use?

Error

messages!  Look in Tomcat's log files for error messages that may

be

related to the crash.  And... please tell us your operating

system,

Tomcat version, Java version, and whether your Tomcat is running

pure

Java connectors and applications, or whether you have any JNI

code

in

your applications or are running APR connectors.



I can see that you are running PHP, please provide specific

information

about how you are doing that what library you are using.



http://www.rocsca.it/info.php


It would also be helpful to know if the server is processing the

same

request each time when it crashes.


I can't figure out.. I have no evidence of the crash of the server..


Well if the server crashed, it'll be one of, or the very last line in
the access log.  Have you configured an access log in server.xml?


I can't see access log configured in server.xml, but I get them in
logs
directory..


So, when it crashes:

1. Don't restart Tomcat, leave it off.

2. Find the current access log file.

3. Look at the last few requests - if Tomcat has crashed, then there
will be no new log entries after the crash.  So the last one will
probably be the one that caused the crash.

Hopefully the request that caused the crash will be logged and you'll
see which one it is.


127.0.0.1 - - [29/Nov/2009:07:52:40 +0100] GET /rocsca/index.php
HTTP/1.1 500 - http://www.rocsca.it/index.php; Mozilla/4.0
(compatible;
MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]

The original request is http://www.rocsca.it/index.php; which is
reverse
proxied into http://localhost:8081/rocsca/index.php;.

After this request, there are no other an Tomcat is hanged.


What is acting as a proxy?  I can't see you mentioning that before.


Apache HTTPD,

I have notice that if I look for an PHP page that doesn't exists, then
Tomcat goes in exception and stops to work.


Wait, so you're running HTTPD + Tomcat?

And you have PHP running inside Tomcat, instead of running inside HTTPD?

Why aren't you using mod_php?


p



rocsca


How have you configured PHP - which PHP library have you installed in
Tomcat to make Tomcat serve PHP pages.  It won't do so without
additional manual configuration by you.


servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
/servlet
servlet
servlet-namephp-formatter/servlet-name
servlet-classnet.php.formatter/servlet-class
/servlet
servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
/servlet-mapping

servlet-mapping
servlet-namephp-formatter/servlet-name
url-pattern*.phps/url-pattern
/servlet-mapping

This entry are set in the web.xml of my application.

I have followed the instruction on this page:

http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi
ng-tomcat-4x-or-5x/


rocsca










-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-29 Thread Rocco Scappatura
On Dom, 29 Novembre 2009 20:49, Pid wrote:
 On 29/11/2009 19:04, Rocco Scappatura wrote:
 On Dom, 29 Novembre 2009 19:14, Pid wrote:
 On 29/11/2009 11:02, Rocco Scappatura wrote:
 Hello PID,

 On Ven, 27 Novembre 2009 16:50, Pid wrote:
 On 27/11/2009 15:41, Rocco Scappatura wrote:
 Peter,

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Friday, November 27, 2009 4:17 PM
 To: Rocco Scappatura
 Subject: Re: Tomcat 5.17 crashes too often

 On 27/11/2009 15:00, Rocco Scappatura wrote:

 On 27/11/2009 14:00, Rocco Scappatura wrote:
 Thanks Peter,

 -Original Message-
 From: peter.crowth...@googlemail.com
 [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter
 Crowther
 Sent: Friday, November 27, 2009 2:29 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.17 crashes too often

 2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:
 I think that I have forgotten to attach the core file above
 mentioned..
 :-(

 This mailing list removes attachments.  Core files are often
 very
 large, and they also don't provide very much information to
 anyone
 on
 the list as we'd have to be able to reproduce your exact
 computer,
 kernel, Java virtual machine and Tomcat environment -
 helpfully,
 you
 haven't told us any of these, but even if you did probably
 nobody
 would have an environment that matched yours.

 So, given that we can't use the core file, what *can* we use?
 Error
 messages!  Look in Tomcat's log files for error messages that
 may
 be
 related to the crash.  And... please tell us your operating
 system,
 Tomcat version, Java version, and whether your Tomcat is
 running
 pure
 Java connectors and applications, or whether you have any JNI
 code
 in
 your applications or are running APR connectors.


 I can see that you are running PHP, please provide specific
 information
 about how you are doing that what library you are using.


 http://www.rocsca.it/info.php

 It would also be helpful to know if the server is processing the
 same
 request each time when it crashes.

 I can't figure out.. I have no evidence of the crash of the
 server..

 Well if the server crashed, it'll be one of, or the very last line
 in
 the access log.  Have you configured an access log in server.xml?

 I can't see access log configured in server.xml, but I get them in
 logs
 directory..

 So, when it crashes:

 1. Don't restart Tomcat, leave it off.

 2. Find the current access log file.

 3. Look at the last few requests - if Tomcat has crashed, then there
 will be no new log entries after the crash.  So the last one will
 probably be the one that caused the crash.

 Hopefully the request that caused the crash will be logged and you'll
 see which one it is.

 127.0.0.1 - - [29/Nov/2009:07:52:40 +0100] GET /rocsca/index.php
 HTTP/1.1 500 - http://www.rocsca.it/index.php; Mozilla/4.0
 (compatible;
 MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]

 The original request is http://www.rocsca.it/index.php; which is
 reverse
 proxied into http://localhost:8081/rocsca/index.php;.

 After this request, there are no other an Tomcat is hanged.

 What is acting as a proxy?  I can't see you mentioning that before.

 Apache HTTPD,

 I have notice that if I look for an PHP page that doesn't exists, then
 Tomcat goes in exception and stops to work.

 Wait, so you're running HTTPD + Tomcat?

 And you have PHP running inside Tomcat, instead of running inside HTTPD?

 Why aren't you using mod_php?

Because I need to apply a JSP filter to the PHP page too.. If I demand the
processing of php page to HTTPD I can't apply the JSP filter to that page.

I'ld like to know why php5servlet.dll cause the crashes of Tomcat. Once I
understand that there is a solution I can also evaluate another solution
(Like the one proposed by chuck, some mail ago).

rocsca

 p


 rocsca

 How have you configured PHP - which PHP library have you installed
 in
 Tomcat to make Tomcat serve PHP pages.  It won't do so without
 additional manual configuration by you.

  servlet
  servlet-namephp/servlet-name
  servlet-classnet.php.servlet/servlet-class
  /servlet
  servlet
  servlet-namephp-formatter/servlet-name
  servlet-classnet.php.formatter/servlet-class
  /servlet
  servlet-mapping
  servlet-namephp/servlet-name
  url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
  servlet-namephp-formatter/servlet-name
  url-pattern*.phps/url-pattern
  /servlet-mapping

 This entry are set in the web.xml of my application.

 I have followed the instruction on this page:

 http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi
 ng-tomcat-4x-or-5x/

 rocsca







 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Tomcat 5.17 crashes too often

2009-11-29 Thread André Warnier

Rocco Scappatura wrote:
...
 Pid wrote...

Wait, so you're running HTTPD + Tomcat?

And you have PHP running inside Tomcat, instead of running inside HTTPD?

Why aren't you using mod_php?


Because I need to apply a JSP filter to the PHP page too.. If I demand the
processing of php page to HTTPD I can't apply the JSP filter to that page.

Just to provide you with even more options then : as far as I know, you 
can run PHP as an output filter in Apache httpd. So you could forward 
the request to Tomcat for the JSP part and, on the Tomcat response, 
apply your PHP output filter in Apache on the way back.


As a matter of general application design however, I must say that I 
find this combination rather on the heavy side.  I mean Java /and/ PHP.
What is it that you absolutely have to do in Java, and in PHP, that you 
cannot substitute by just one of them ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-29 Thread Pid

On 29/11/2009 22:51, Rocco Scappatura wrote:

On Dom, 29 Novembre 2009 21:29, Pid wrote:


snip


Why aren't you using mod_php?


Because I need to apply a JSP filter to the PHP page too.. If I demand
the
processing of php page to HTTPD I can't apply the JSP filter to that
page.

  

I'ld like to know why php5servlet.dll cause the crashes of Tomcat. Once
I
understand that there is a solution I can also evaluate another solution
(Like the one proposed by chuck, some mail ago).


Your bug looks suspiciously like this one:

   http://bugs.php.net/bug.php?id=32206

which lead me to this one:

   http://pecl.php.net/bugs/bug.php?id=10155


I really don't understand if is the same problem. Anyway this is the
excetion report that I get when Tomcat crashes:

java.io.IOException:
net.php.servlet.send(Native Method)
net.php.servlet.service(servlet.java:190)
net.php.servlet.service(servlet.java:214)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.mortbay.webapps.jetty.DemoFilter.doFilter(DemoFilter.java:39)

Can I tell definitely that the cause of the problem is in the
net.php.servlet class or org.mortbay.webapps.jetty class or whatever?


You previously reported that there was no error message or stacktrace in 
the logs.  Are we now addressing a different problem?



The bugs I found (above) may not apply exactly to your situation - I 
can't be certain - but they do indicate that php5servlet.dll  PECL were 
known to have problems several years ago.


The fact that there are no more recent reports of similar bugs might 
lead one to believe that upgrading your ancient PHP installation will 
help.  Have you done that?



The best advice we can give you is to ensure that you are running the 
latest version of HTTPD, Tomcat, JVM etc.  Have you upgraded any of 
these since we started?



p



This answer could help me to understand who I could face so that the bug
is solved.

Thanks,

rocsca




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org














-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-29 Thread Rocco Scappatura
On Lun, 30 Novembre 2009 0:04, Pid wrote:
 On 29/11/2009 22:51, Rocco Scappatura wrote:
 On Dom, 29 Novembre 2009 21:29, Pid wrote:

 snip

 Why aren't you using mod_php?

 Because I need to apply a JSP filter to the PHP page too.. If I demand
 the
 processing of php page to HTTPD I can't apply the JSP filter to that
 page.
   
 I'ld like to know why php5servlet.dll cause the crashes of Tomcat.
 Once
 I
 understand that there is a solution I can also evaluate another
 solution
 (Like the one proposed by chuck, some mail ago).

 Your bug looks suspiciously like this one:

http://bugs.php.net/bug.php?id=32206

 which lead me to this one:

http://pecl.php.net/bugs/bug.php?id=10155

 I really don't understand if is the same problem. Anyway this is the
 excetion report that I get when Tomcat crashes:

 java.io.IOException:
  net.php.servlet.send(Native Method)
  net.php.servlet.service(servlet.java:190)
  net.php.servlet.service(servlet.java:214)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  org.mortbay.webapps.jetty.DemoFilter.doFilter(DemoFilter.java:39)

 Can I tell definitely that the cause of the problem is in the
 net.php.servlet class or org.mortbay.webapps.jetty class or whatever?

 You previously reported that there was no error message or stacktrace in
 the logs.  Are we now addressing a different problem?

Sorry, I told the thruth. Infact, the stacktrace has not be reported in
the logs of tomcat. I swear. When I found the cause of the crash of tomcat
(as I said, a request to a non existant PHP document) I sa the report of
the exception that I collect directly from the browser.

 The bugs I found (above) may not apply exactly to your situation - I
 can't be certain - but they do indicate that php5servlet.dll  PECL were
 known to have problems several years ago.

 The fact that there are no more recent reports of similar bugs might
 lead one to believe that upgrading your ancient PHP installation will
 help.  Have you done that?

You are right. Even if - as Andre' said - PHP and Java are a perfect
couple, I need for the moment to keep them to live together.

My last chance is to upgrade PHP and PECL.

Otherwise I have to finde another way to let to live toghether Java and PHP.

 The best advice we can give you is to ensure that you are running the
 latest vershttp://webmail.sttspa.it/src/webmail.php
Mail for rscappation of HTTPD, Tomcat, JVM etc.  Have you upgraded any of
 these since we started?

Yes I have upgraded either Tomcat and Java. I don't think that HTTPD could
be a cause of the problem.

Thanks,

rocsca
 p


 This answer could help me to understand who I could face so that the bug
 is solved.

 Thanks,

 rocsca



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-28 Thread Rocco Scappatura
Hello.

On Sab, 28 Novembre 2009 5:38, Caldarale, Charles R wrote:
 From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
 Subject: RE: Tomcat 5.17 crashes too often

 But once I have changed the path of jvm with the
 new one, Tomcat has no more started.

 Might be time to try a newer version of Tomcat, since it appears you've
 broken the installation of this one.  (5.5.17 is over 3.5 years old, and
 numerous bug and security fixes have gone in between then and when 5.5.28
 was released.)  Download the .zip one rather than the .exe and you can
 install it in whatever directory you want, and use the service.bat script
 to create the service.


I have upgrade Tomcat 5.5.17--5.5.28.

But service Tomcat5 doesn't start anyway. Just as before update, I can
start Tomcat only at command line typing

C:\ tomcat5.exe

If I try to start the service as configured in Service tab, I get:

C:\C:\Tomcat\bin\tomcat5.exe //RS//Tomcat5

C:\

The prompt simply returns and the server is not started.

Furthermore I get the following error when I shut down Tomcat (typing
CTRL+c):

28-nov-2009 15.56.41 org.apache.catalina.startup.Catalina stopServer
GRAVE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

How can prevent it?

Thanks,

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-28 Thread Andre-John Mas

On 28-Nov-2009, at 10:17, Rocco Scappatura wrote:

 
 28-nov-2009 15.56.41 org.apache.catalina.startup.Catalina stopServer
 GRAVE: Catalina.stop:
 java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
 

Don't worry about that one. Its just a confirmation that Tomcat is not running.
The shutdown script will attempt to contact Tomcat to shutdown, but if it is
not running, then it won't be able to connect.

If it is running, then it is possible it was using a different configuration 
when
it was started.

André-John
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-28 Thread Rocco Scappatura
Thanks Andre-John,

On Sab, 28 Novembre 2009 16:21, Andre-John Mas wrote:

 On 28-Nov-2009, at 10:17, Rocco Scappatura wrote:


 28-nov-2009 15.56.41 org.apache.catalina.startup.Catalina stopServer
 GRAVE: Catalina.stop:
 java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)


 Don't worry about that one. Its just a confirmation that Tomcat is not
 running.
 The shutdown script will attempt to contact Tomcat to shutdown, but if it
 is
 not running, then it won't be able to connect.

 If it is running, then it is possible it was using a different
 configuration when
 it was started.


OK. Now remain to solve the main problem..

Could not start the Apache Tomcat Service. Error 1058: The service cannot
be started, either because it is disabled or because it has no enabled
devices associated with it.

Any hint is appreciated.

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-28 Thread Rocco Scappatura
Uauh!!

On Sab, 28 Novembre 2009 16:40, Rocco Scappatura wrote:
 Thanks Andre-John,

 On Sab, 28 Novembre 2009 16:21, Andre-John Mas wrote:

 On 28-Nov-2009, at 10:17, Rocco Scappatura wrote:


 28-nov-2009 15.56.41 org.apache.catalina.startup.Catalina stopServer
 GRAVE: Catalina.stop:
 java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.init(Unknown Source)
at java.net.Socket.init(Unknown Source)
at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)


 Don't worry about that one. Its just a confirmation that Tomcat is not
 running.
 The shutdown script will attempt to contact Tomcat to shutdown, but if
 it
 is
 not running, then it won't be able to connect.

 If it is running, then it is possible it was using a different
 configuration when
 it was started.


 OK. Now remain to solve the main problem..

 Could not start the Apache Tomcat Service. Error 1058: The service cannot
 be started, either because it is disabled or because it has no enabled
 devices associated with it.

 Any hint is appreciated.

Solved the question of system start..

http://support.citrix.com/article/CTX105850

Now I will wait to see with the system updated as is, Tomcat will continue
to crashes..

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Sorry,

 It frequently happens that Tomcat crashes. Or better, it not responds.
 Neverthless windows is able to restart the service, because while it
 tries to stop it, it expires the maximum time provided to stop the
 service.
 
 I have attached the 'core' file so that someone could to take a look
 and give me some hint about the cause of the crashes.

I think that I have forgotten to attach the core file above mentioned..
:-(

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Peter Crowther
2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
 I think that I have forgotten to attach the core file above mentioned..
 :-(

This mailing list removes attachments.  Core files are often very
large, and they also don't provide very much information to anyone on
the list as we'd have to be able to reproduce your exact computer,
kernel, Java virtual machine and Tomcat environment - helpfully, you
haven't told us any of these, but even if you did probably nobody
would have an environment that matched yours.

So, given that we can't use the core file, what *can* we use?  Error
messages!  Look in Tomcat's log files for error messages that may be
related to the crash.  And... please tell us your operating system,
Tomcat version, Java version, and whether your Tomcat is running pure
Java connectors and applications, or whether you have any JNI code in
your applications or are running APR connectors.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Thanks Peter,

 -Original Message-
 From: peter.crowth...@googlemail.com
 [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
 Sent: Friday, November 27, 2009 2:29 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.17 crashes too often
 
 2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
  I think that I have forgotten to attach the core file above
 mentioned..
  :-(
 
 This mailing list removes attachments.  Core files are often very
 large, and they also don't provide very much information to anyone on
 the list as we'd have to be able to reproduce your exact computer,
 kernel, Java virtual machine and Tomcat environment - helpfully, you
 haven't told us any of these, but even if you did probably nobody
 would have an environment that matched yours.
 
 So, given that we can't use the core file, what *can* we use?  Error
 messages!  Look in Tomcat's log files for error messages that may be
 related to the crash.  And... please tell us your operating system,
 Tomcat version, Java version, and whether your Tomcat is running pure
 Java connectors and applications, or whether you have any JNI code in
 your applications or are running APR connectors.

Indeed the file that I ve tried to upload in not properly a core file.

The strange think is that in log file there is no sign of any problem.
But In $CATALINA_HOME I get the file hs_err_pidpid.log. The content
is:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6db65cd7, pid=2420,
tid=292
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b01 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x295cd7]
#

---  T H R E A D  ---

Current thread (0x0c2a8ba0):  JavaThread http-8081-Processor7 daemon
[_thread_in_vm, id=292]

siginfo: ExceptionCode=0xc005, reading address 0x0009

Registers:
EAX=0x0009, EBX=0x, ECX=0x10ddf408, EDX=0x10ddf44c
ESP=0x10ddf380, EBP=0x0009, ESI=0x, EDI=0x
EIP=0x6db65cd7, EFLAGS=0x00010246

Top of Stack: (sp=0x10ddf380)
0x10ddf380:   0c2a8ba0 6dae4ca6 0009 
0x10ddf390:   0c2a8ba0 0009  6d9c9a56
0x10ddf3a0:   0009 0c2a8ba0 0c2a8ba0 6d9c9a91
0x10ddf3b0:   0009 0c2a8ba0  0c2a8ba0
0x10ddf3c0:   6d98a21a 10ddf44c 0009 0c2a8ba0
0x10ddf3d0:   0009 0c2a8ba0 0173 0075d024
0x10ddf3e0:   0001 00410438 03ec 0cc6bcf8
0x10ddf3f0:   01c833ca 0075d028 6db3b798 0186d4c1 

Instructions: (pc=0x6db65cd7)
0x6db65cc7:   d3 7c e9 8b c6 5f 5e 5b c3 8b 44 24 04 56 33 f6
0x6db65cd7:   80 38 00 74 15 8d 4c 24 08 46 51 50 e8 68 fe ff 


Stack: [0x10da,0x10de),  sp=0x10ddf380,  free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
V  [jvm.dll+0x295cd7]

[error occurred during error reporting, step 120, id 0xc005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j
net.php.servlet.send(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Stri
ng;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V+0
j
net.php.servlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/se
rvlet/http/HttpServletResponse;Ljava/lang/String;)V+52
j
net.php.servlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/se
rvlet/http/HttpServletResponse;)V+24
j
javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Lja
vax/servlet/ServletResponse;)V+30
j
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/
servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354
j
org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/
ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j
org.mortbay.webapps.jetty.DemoFilter.doFilter(Ljavax/servlet/ServletRequ
est;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+17
j
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/
servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+117
j
org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/
ServletRequest;Ljavax/servlet/ServletResponse;)V+101
j
org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalin
a/connector/Request;Lorg/apache/catalina/connector/Response;)V+670
j
org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalin
a/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
j
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/c
atalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+327
v  ~C2IAdapter
J
org.apache.catalina.valves.AccessLogValve.invoke(Lorg/apache/catalina/co
nnector/Request;Lorg/apache/catalina/connector/Response;)V
v  ~I2CAdapter
j
org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/c
onnector/Request;Lorg/apache/catalina/connector/Response;)V+64
j
org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/
connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j

Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 14:00, Rocco Scappatura wrote:

Thanks Peter,


-Original Message-
From: peter.crowth...@googlemail.com
[mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
Sent: Friday, November 27, 2009 2:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.17 crashes too often

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

I think that I have forgotten to attach the core file above

mentioned..

:-(


This mailing list removes attachments.  Core files are often very
large, and they also don't provide very much information to anyone on
the list as we'd have to be able to reproduce your exact computer,
kernel, Java virtual machine and Tomcat environment - helpfully, you
haven't told us any of these, but even if you did probably nobody
would have an environment that matched yours.

So, given that we can't use the core file, what *can* we use?  Error
messages!  Look in Tomcat's log files for error messages that may be
related to the crash.  And... please tell us your operating system,
Tomcat version, Java version, and whether your Tomcat is running pure
Java connectors and applications, or whether you have any JNI code in
your applications or are running APR connectors.



I can see that you are running PHP, please provide specific information 
about how you are doing that  what library you are using.


It would also be helpful to know if the server is processing the same 
request each time when it crashes.


Are you running Tomcat as a service?


p




Indeed the file that I ve tried to upload in not properly a core file.

The strange think is that in log file there is no sign of any problem.
But In $CATALINA_HOME I get the file hs_err_pidpid.log. The content
is:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6db65cd7, pid=2420,





Thanks,

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Peter Crowther
2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
 The strange think is that in log file there is no sign of any problem.
 But In $CATALINA_HOME I get the file hs_err_pidpid.log.

OK.  The Java virtual machine itself is crashing, and you've attached
the log file it writes from the crash.  Thanks - that's exactly what
we need!

 The content is:
[...]

 # Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b01 mixed mode)

That is a very old Java virtual machine.

 # Problematic frame:
 [error occurred during error reporting, step 120, id 0xc005]

That looks like a problem!  If I read this correctly - and Chuck would
be able to say more about it - then the Java virtual machine is seeing
an error, is trying to report the error, and is crashing while
reporting the error.

 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
 j
 net.php.servlet.send(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Stri
 ng;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V+0
[...]

The error appears to be occurring in net.php.servlet.send().  Looking
at your native libraries...

 0x10e2 - 0x10e28000         C:\php-5.2.5\php5servlet.dll
 0x10e3 - 0x1130c000         C:\php-5.2.5\php5ts.dll

Hmm.  Those are very odd libraries to have loaded in a Tomcat process.
 What are you trying to do here - serve PHP from within Tomcat?

Anyway.  I think the error is being caused by your application, not by Tomcat.

 OS: Windows 2000 Build 2195 Service Pack 4

Heh :-).

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Markus Schönhaber
Am 27.11.2009 15:00, schrieb Rocco Scappatura:

I have no idea if it's in any way related to the problem you're seeing,
but...

 vm_info: Java HotSpot(TM) Server VM (1.5.0_09-b01) for windows-x86,
 built on Sep  7 2006 13:40:20 by java_re with MS VC++ 6.0

...the first thing I'd check is whether a (much) more recent JVM (for
example 1.5.0_22 or even a Java 6 VM) still shows this problem.

-- 
Regards
  mks

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura

 On 27/11/2009 14:00, Rocco Scappatura wrote:
  Thanks Peter,
 
  -Original Message-
  From: peter.crowth...@googlemail.com
  [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
  Sent: Friday, November 27, 2009 2:29 PM
  To: Tomcat Users List
  Subject: Re: Tomcat 5.17 crashes too often
 
  2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:
  I think that I have forgotten to attach the core file above
  mentioned..
  :-(
 
  This mailing list removes attachments.  Core files are often very
  large, and they also don't provide very much information to anyone
 on
  the list as we'd have to be able to reproduce your exact computer,
  kernel, Java virtual machine and Tomcat environment - helpfully,
you
  haven't told us any of these, but even if you did probably nobody
  would have an environment that matched yours.
 
  So, given that we can't use the core file, what *can* we use?
Error
  messages!  Look in Tomcat's log files for error messages that may
be
  related to the crash.  And... please tell us your operating system,
  Tomcat version, Java version, and whether your Tomcat is running
 pure
  Java connectors and applications, or whether you have any JNI code
 in
  your applications or are running APR connectors.
 
 
 I can see that you are running PHP, please provide specific
information
 about how you are doing that  what library you are using.


http://www.rocsca.it/info.php 

 It would also be helpful to know if the server is processing the same
 request each time when it crashes.

I can't figure out.. I have no evidence of the crash of the server..
 
 Are you running Tomcat as a service?

Yes.

Thanks,

rocsca

  Indeed the file that I ve tried to upload in not properly a core
 file.
 
  The strange think is that in log file there is no sign of any
 problem.
  But In $CATALINA_HOME I get the file hs_err_pidpid.log. The
 content
  is:
 
  #
  # An unexpected error has been detected by HotSpot Virtual Machine:
  #
  #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6db65cd7,
 pid=2420,


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Thanks,

a very exaustive answer..

 -Original Message-
 From: peter.crowth...@googlemail.com
 [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
 Sent: Friday, November 27, 2009 3:18 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.17 crashes too often
 
 2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
  The strange think is that in log file there is no sign of any
 problem.
  But In $CATALINA_HOME I get the file hs_err_pidpid.log.
 
 OK.  The Java virtual machine itself is crashing, and you've attached
 the log file it writes from the crash.  Thanks - that's exactly what
 we need!
 
  The content is:
 [...]
 
  # Java VM: Java HotSpot(TM) Server VM (1.5.0_09-b01 mixed mode)
 
 That is a very old Java virtual machine.
 
  # Problematic frame:
  [error occurred during error reporting, step 120, id 0xc005]
 
 That looks like a problem!  If I read this correctly - and Chuck would
 be able to say more about it - then the Java virtual machine is seeing
 an error, is trying to report the error, and is crashing while
 reporting the error.

So I think that I will update the jave VM soon.. Maybe an opinion of Chuck 
would be useful?

  Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  j
 
 net.php.servlet.send(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Str
 i
  ng;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V+0
 [...]
 
 The error appears to be occurring in net.php.servlet.send().  Looking
 at your native libraries...
 
  0x10e2 - 0x10e28000         C:\php-5.2.5\php5servlet.dll
  0x10e3 - 0x1130c000         C:\php-5.2.5\php5ts.dll
 
 Hmm.  Those are very odd libraries to have loaded in a Tomcat process.
  What are you trying to do here - serve PHP from within Tomcat?

I'm running some pages from my old web site tha I have imported under my 'new' 
platform (Tomcat).

 Anyway.  I think the error is being caused by your application, not by
 Tomcat.

OK. I totally agree with you.. But I there any way to correct this problem? 
Maybe is the case to ask to PHP developer?

Thanks,

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Markus, Thanks to you too..

 -Original Message-
 From: Markus Schönhaber [mailto:tomcat-us...@list-post.mks-mail.de]
 Sent: Friday, November 27, 2009 3:20 PM
 To: users@tomcat.apache.org
 Subject: Re: Tomcat 5.17 crashes too often
 
 Am 27.11.2009 15:00, schrieb Rocco Scappatura:
 
 I have no idea if it's in any way related to the problem you're seeing,
 but...
 
  vm_info: Java HotSpot(TM) Server VM (1.5.0_09-b01) for windows-x86,
  built on Sep  7 2006 13:40:20 by java_re with MS VC++ 6.0
 
 ...the first thing I'd check is whether a (much) more recent JVM (for
 example 1.5.0_22 or even a Java 6 VM) still shows this problem.

As I said I will update java VM soon.

rocsca

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 15:17, Pid wrote:

On 27/11/2009 15:00, Rocco Scappatura wrote:



On 27/11/2009 14:00, Rocco Scappatura wrote:

Thanks Peter,


-Original Message-
From: peter.crowth...@googlemail.com
[mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
Sent: Friday, November 27, 2009 2:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.17 crashes too often

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

I think that I have forgotten to attach the core file above

mentioned..

:-(


This mailing list removes attachments. Core files are often very
large, and they also don't provide very much information to anyone

on

the list as we'd have to be able to reproduce your exact computer,
kernel, Java virtual machine and Tomcat environment - helpfully,

you

haven't told us any of these, but even if you did probably nobody
would have an environment that matched yours.

So, given that we can't use the core file, what *can* we use?

Error

messages! Look in Tomcat's log files for error messages that may

be

related to the crash. And... please tell us your operating system,
Tomcat version, Java version, and whether your Tomcat is running

pure

Java connectors and applications, or whether you have any JNI code

in

your applications or are running APR connectors.



I can see that you are running PHP, please provide specific

information

about how you are doing that what library you are using.



http://www.rocsca.it/info.php


It would also be helpful to know if the server is processing the same
request each time when it crashes.


I can't figure out.. I have no evidence of the crash of the server..


Well if the server crashed, it'll be one of, or the very last line in
the access log. Have you configured an access log in server.xml?


This still stands.


How have you configured PHP - which PHP library have you installed in
Tomcat to make Tomcat serve PHP pages. It won't do so without additional
manual configuration by you.


Scrap that, Peter spotted it.

PHP 5.2.5 was released 08 November 2007.  This is quite a long time ago.
Maybe a newer PHP version won't have the same problem.

p




p



Are you running Tomcat as a service?


Yes.

Thanks,

rocsca


Indeed the file that I ve tried to upload in not properly a core

file.


The strange think is that in log file there is no sign of any

problem.

But In $CATALINA_HOME I get the file hs_err_pidpid.log. The

content

is:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6db65cd7,

pid=2420,







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Peter Crowther
2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
 So I think that I will update the jave VM soon.. Maybe an opinion of Chuck 
 would be useful?

I would try updating the VM anyway.  You have one of three possible outcomes:

1) It fixes the bug, and we can all go home happy on a Friday;

2) It changes the way the bug appears, and we get some better
information out of the JVM as to what's happening;

3) It changes nothing, and we're almost certain it's a problem in your
application code or the PHP code somewhere.

All of those three give us extra information - or a fix!  So I would
install a new JVM in a different directory to your current one, change
Tomcat's startup to point to that JVM, and see whether it still fails.
 At worst, you can change Tomcat's startup to point back to the
current JVM and you have lost nothing except a little time.

 I'm running some pages from my old web site tha I have imported under my 
 'new' platform (Tomcat).

OK.  It looks like those pages are PHP pages.  I know there are ways
of getting PHP to run under Tomcat, but I've never tried!

 But I there any way to correct this problem? Maybe is the case to ask to PHP 
 developer?

I would be asking on whichever list handles the PHP servlet.  That
code looks to be part of the PHP distribution; it's certainly not part
of Tomcat.  From the comments on various blogs, it also looks like
it's *very* fragile.

This might be one of the very few times I recommend installing Apache
httpd in front of Tomcat on your system, connecting the two, and
getting httpd to serve the PHP pages and Tomcat to serve everything
else!

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 15:27, Peter Crowther wrote:

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

So I think that I will update the jave VM soon.. Maybe an opinion of Chuck 
would be useful?


I would try updating the VM anyway.  You have one of three possible outcomes:

1) It fixes the bug, and we can all go home happy on a Friday;

2) It changes the way the bug appears, and we get some better
information out of the JVM as to what's happening;

3) It changes nothing, and we're almost certain it's a problem in your
application code or the PHP code somewhere.

All of those three give us extra information - or a fix!  So I would
install a new JVM in a different directory to your current one, change
Tomcat's startup to point to that JVM, and see whether it still fails.
  At worst, you can change Tomcat's startup to point back to the
current JVM and you have lost nothing except a little time.


I'm running some pages from my old web site tha I have imported under my 'new' 
platform (Tomcat).


OK.  It looks like those pages are PHP pages.  I know there are ways
of getting PHP to run under Tomcat, but I've never tried!


But I there any way to correct this problem? Maybe is the case to ask to PHP 
developer?


I would be asking on whichever list handles the PHP servlet.  That
code looks to be part of the PHP distribution; it's certainly not part
of Tomcat.  From the comments on various blogs, it also looks like
it's *very* fragile.


I think it's the dll supplied with PHP, but that version is quite old so 
a newer PHP install might have a better version.



p



This might be one of the very few times I recommend installing Apache
httpd in front of Tomcat on your system, connecting the two, and
getting httpd to serve the PHP pages and Tomcat to serve everything
else!

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 15:41, Rocco Scappatura wrote:

Peter,


-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Friday, November 27, 2009 4:17 PM
To: Rocco Scappatura
Subject: Re: Tomcat 5.17 crashes too often

On 27/11/2009 15:00, Rocco Scappatura wrote:



On 27/11/2009 14:00, Rocco Scappatura wrote:

Thanks Peter,


-Original Message-
From: peter.crowth...@googlemail.com
[mailto:peter.crowth...@googlemail.com] On Behalf Of Peter

Crowther

Sent: Friday, November 27, 2009 2:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.17 crashes too often

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

I think that I have forgotten to attach the core file above

mentioned..

:-(


This mailing list removes attachments.  Core files are often very
large, and they also don't provide very much information to

anyone

on

the list as we'd have to be able to reproduce your exact

computer,

kernel, Java virtual machine and Tomcat environment - helpfully,

you

haven't told us any of these, but even if you did probably nobody
would have an environment that matched yours.

So, given that we can't use the core file, what *can* we use?

Error

messages!  Look in Tomcat's log files for error messages that may

be

related to the crash.  And... please tell us your operating

system,

Tomcat version, Java version, and whether your Tomcat is running

pure

Java connectors and applications, or whether you have any JNI

code

in

your applications or are running APR connectors.



I can see that you are running PHP, please provide specific

information

about how you are doing that   what library you are using.



http://www.rocsca.it/info.php


It would also be helpful to know if the server is processing the

same

request each time when it crashes.


I can't figure out.. I have no evidence of the crash of the server..


Well if the server crashed, it'll be one of, or the very last line in
the access log.  Have you configured an access log in server.xml?


I can't see access log configured in server.xml, but I get them in logs
directory..


So, when it crashes:

1. Don't restart Tomcat, leave it off.

2. Find the current access log file.

3. Look at the last few requests - if Tomcat has crashed, then there 
will be no new log entries after the crash.  So the last one will 
probably be the one that caused the crash.


Hopefully the request that caused the crash will be logged and you'll 
see which one it is.



p




How have you configured PHP - which PHP library have you installed in
Tomcat to make Tomcat serve PHP pages.  It won't do so without
additional manual configuration by you.


servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
/servlet
servlet
servlet-namephp-formatter/servlet-name
servlet-classnet.php.formatter/servlet-class
/servlet
servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
/servlet-mapping

servlet-mapping
servlet-namephp-formatter/servlet-name
url-pattern*.phps/url-pattern
/servlet-mapping

This entry are set in the web.xml of my application.

I have followed the instruction on this page:

http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi
ng-tomcat-4x-or-5x/

Thanks,

rocsca



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Caldarale, Charles R
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Tomcat 5.17 crashes too often
 
 Hopefully the request that caused the crash will be logged and you'll
 see which one it is.

I don't think so - the AccessLogValve doesn't write anything out until the 
response has been generated.  Wireshark or something similar should catch the 
last incoming messages that might be triggering the crash.

Regardless, I'd agree with Peter - throwing questionable DLLs into the Tomcat 
process leaves you at risk.  This looks much safer (but I haven't personally 
tried it):
http://php-java-bridge.sourceforge.net/pjb/

And there's always Quercus, which is pure Java, and it does run under Tomcat, 
not just Resin:
http://caucho.com/download/quercus-4.0.2.war
http://wiki.caucho.com/Quercus:_Tomcat

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Peter,

 -Original Message-
 From: peter.crowth...@googlemail.com
 [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
 Sent: Friday, November 27, 2009 4:28 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.17 crashes too often
 
 2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
  So I think that I will update the jave VM soon.. Maybe an opinion of
 Chuck would be useful?
 
 I would try updating the VM anyway.  You have one of three possible
 outcomes:
 
 1) It fixes the bug, and we can all go home happy on a Friday;
 
 2) It changes the way the bug appears, and we get some better
 information out of the JVM as to what's happening;
 
 3) It changes nothing, and we're almost certain it's a problem in your
 application code or the PHP code somewhere.
 
 All of those three give us extra information - or a fix!  So I would
 install a new JVM in a different directory to your current one, change
 Tomcat's startup to point to that JVM, and see whether it still fails.
  At worst, you can change Tomcat's startup to point back to the
 current JVM and you have lost nothing except a little time.

OK. I will do so.. You have persuaded me.. :-)

It will be sufficient to install the only jre or I need to install the
complete jdk?

  I'm running some pages from my old web site tha I have imported
under
 my 'new' platform (Tomcat).
 
 OK.  It looks like those pages are PHP pages.  I know there are ways
 of getting PHP to run under Tomcat, but I've never tried!

You are normal while who tries to do this, is not.. ;-)

  But I there any way to correct this problem? Maybe is the case to
ask
 to PHP developer?
 
 I would be asking on whichever list handles the PHP servlet.  That
 code looks to be part of the PHP distribution; it's certainly not part
 of Tomcat.  From the comments on various blogs, it also looks like
 it's *very* fragile.
 
 This might be one of the very few times I recommend installing Apache
 httpd in front of Tomcat on your system, connecting the two, and
 getting httpd to serve the PHP pages and Tomcat to serve everything
 else!

Infact I completely agree with you!

rocsca

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Sorry one trivial question..

I have set up JDK build 1.6.0_17-b04.

I have set the JAVA_HOME env variable. Bu tomcat still uses old version
of jvm installed on the server. How I have to do to address Tomcat to
use the new version of JDK?

Thanks,

Rocsca

 -Original Message-
 From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
 Sent: Friday, November 27, 2009 5:52 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.17 crashes too often
 
 Peter,
 
  -Original Message-
  From: peter.crowth...@googlemail.com
  [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
  Sent: Friday, November 27, 2009 4:28 PM
  To: Tomcat Users List
  Subject: Re: Tomcat 5.17 crashes too often
 
  2009/11/27 Rocco Scappatura rocco.scappat...@infracom.it:
   So I think that I will update the jave VM soon.. Maybe an opinion
 of
  Chuck would be useful?
 
  I would try updating the VM anyway.  You have one of three possible
  outcomes:
 
  1) It fixes the bug, and we can all go home happy on a Friday;
 
  2) It changes the way the bug appears, and we get some better
  information out of the JVM as to what's happening;
 
  3) It changes nothing, and we're almost certain it's a problem in
 your
  application code or the PHP code somewhere.
 
  All of those three give us extra information - or a fix!  So I would
  install a new JVM in a different directory to your current one,
 change
  Tomcat's startup to point to that JVM, and see whether it still
 fails.
   At worst, you can change Tomcat's startup to point back to the
  current JVM and you have lost nothing except a little time.
 
 OK. I will do so.. You have persuaded me.. :-)
 
 It will be sufficient to install the only jre or I need to install the
 complete jdk?
 
   I'm running some pages from my old web site tha I have imported
 under
  my 'new' platform (Tomcat).
 
  OK.  It looks like those pages are PHP pages.  I know there are ways
  of getting PHP to run under Tomcat, but I've never tried!
 
 You are normal while who tries to do this, is not.. ;-)
 
   But I there any way to correct this problem? Maybe is the case to
 ask
  to PHP developer?
 
  I would be asking on whichever list handles the PHP servlet.  That
  code looks to be part of the PHP distribution; it's certainly not
 part
  of Tomcat.  From the comments on various blogs, it also looks like
  it's *very* fragile.
 
  This might be one of the very few times I recommend installing
Apache
  httpd in front of Tomcat on your system, connecting the two, and
  getting httpd to serve the PHP pages and Tomcat to serve everything
  else!
 
 Infact I completely agree with you!
 
 rocsca
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 17:22, Rocco Scappatura wrote:

Sorry one trivial question..

I have set up JDK build 1.6.0_17-b04.

I have set the JAVA_HOME env variable. Bu tomcat still uses old version
of jvm installed on the server. How I have to do to address Tomcat to
use the new version of JDK?


It's in the service settings/properties.


p



Thanks,

Rocsca


-Original Message-
From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
Sent: Friday, November 27, 2009 5:52 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.17 crashes too often

Peter,


-Original Message-
From: peter.crowth...@googlemail.com
[mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
Sent: Friday, November 27, 2009 4:28 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.17 crashes too often

2009/11/27 Rocco Scappaturarocco.scappat...@infracom.it:

So I think that I will update the jave VM soon.. Maybe an opinion

of

Chuck would be useful?

I would try updating the VM anyway.  You have one of three possible
outcomes:

1) It fixes the bug, and we can all go home happy on a Friday;

2) It changes the way the bug appears, and we get some better
information out of the JVM as to what's happening;

3) It changes nothing, and we're almost certain it's a problem in

your

application code or the PHP code somewhere.

All of those three give us extra information - or a fix!  So I would
install a new JVM in a different directory to your current one,

change

Tomcat's startup to point to that JVM, and see whether it still

fails.

  At worst, you can change Tomcat's startup to point back to the
current JVM and you have lost nothing except a little time.


OK. I will do so.. You have persuaded me.. :-)

It will be sufficient to install the only jre or I need to install the
complete jdk?


I'm running some pages from my old web site tha I have imported

under

my 'new' platform (Tomcat).

OK.  It looks like those pages are PHP pages.  I know there are ways
of getting PHP to run under Tomcat, but I've never tried!


You are normal while who tries to do this, is not.. ;-)


But I there any way to correct this problem? Maybe is the case to

ask

to PHP developer?

I would be asking on whichever list handles the PHP servlet.  That
code looks to be part of the PHP distribution; it's certainly not

part

of Tomcat.  From the comments on various blogs, it also looks like
it's *very* fragile.

This might be one of the very few times I recommend installing

Apache

httpd in front of Tomcat on your system, connecting the two, and
getting httpd to serve the PHP pages and Tomcat to serve everything
else!


Infact I completely agree with you!

rocsca

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.17 crashes too often

2009-11-27 Thread Pid

On 27/11/2009 16:14, Caldarale, Charles R wrote:

From: Pid [mailto:p...@pidster.com]
Subject: Re: Tomcat 5.17 crashes too often

Hopefully the request that caused the crash will be logged and you'll
see which one it is.


I don't think so - the AccessLogValve doesn't write anything out until the 
response has been generated.  Wireshark or something similar should catch the 
last incoming messages that might be triggering the crash.


ah, nuts.

p


Regardless, I'd agree with Peter - throwing questionable DLLs into the Tomcat 
process leaves you at risk.  This looks much safer (but I haven't personally 
tried it):
http://php-java-bridge.sourceforge.net/pjb/

And there's always Quercus, which is pure Java, and it does run under Tomcat, 
not just Resin:
http://caucho.com/download/quercus-4.0.2.war
http://wiki.caucho.com/Quercus:_Tomcat

  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Caldarale, Charles R
 From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
 Subject: Re: Tomcat 5.17 crashes too often
 
 How I have to do to restore functionality of Tomcat5 service?

Use the tomcat5w.exe program to update the registry settings for the service; 
do *not* use the services plugin, and do *not* edit the registry manually.  
Look at the Java tab of tomcat5w.exe and make sure the settings are what you 
want.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
On Sab, 28 Novembre 2009 4:34, Caldarale, Charles R wrote:
 From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
 Subject: Re: Tomcat 5.17 crashes too often

 How I have to do to restore functionality of Tomcat5 service?

 Use the tomcat5w.exe program to update the registry settings for the
 service; do *not* use the services plugin, and do *not* edit the registry
 manually.  Look at the Java tab of tomcat5w.exe and make sure the settings
 are what you want.


Yes I ve done exactly so. But once I have changed the path of jvm with the
new one, Tomcat has no more started. Even if I have restored the old
version of java (along with the olversion of jvm in Java tab of
tomcat5w.exe, and JAVA_HOME env variable).

rocsca


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Caldarale, Charles R
 From: Rocco Scappatura [mailto:rocco.scappat...@infracom.it]
 Subject: RE: Tomcat 5.17 crashes too often
 
 But once I have changed the path of jvm with the
 new one, Tomcat has no more started.

Might be time to try a newer version of Tomcat, since it appears you've broken 
the installation of this one.  (5.5.17 is over 3.5 years old, and numerous bug 
and security fixes have gone in between then and when 5.5.28 was released.)  
Download the .zip one rather than the .exe and you can install it in whatever 
directory you want, and use the service.bat script to create the service.

 - Chuck


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



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org