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

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

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

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

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

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

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

Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
Hello, 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

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

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

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

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

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

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

RE: Tomcat 5.17 crashes too often

2009-11-27 Thread Rocco Scappatura
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

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

mod_proxy_html setup

2007-11-27 Thread Rocco Scappatura
I have some problem after reversing proxy a web app. After many research I inferred that mod_proxy_html could solve the problem of accessing my web app through reverse proxy. My big clue is to: 1) find the exact instructions to setup mod_proxy_html 2) find all the binaries needed For 1) I

RE: mod_proxy_html setup

2007-11-27 Thread Rocco Scappatura
I have some problem after reversing proxy a web app. After many research I inferred that mod_proxy_html could solve the problem of accessing my web app through reverse proxy. My big clue is to: 1) find the exact instructions to setup mod_proxy_html 2) find all the binaries

RE: Tomcat 6 virtual host problem please help

2007-11-26 Thread Rocco Scappatura
verify the right version of modules (mod_proxy_ajp.so) are in %APACHE_HOME%/modules folderstart here http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html Im using the module mod_proxy_ajp.so that comes with Apache 2.2.6 which I'm using. The version of Tomcat 5.5 that Im using

Re: Tomcat 6 virtual host problem please help

2007-11-26 Thread Rocco Scappatura
Someone know why the pages that I get via reverse proxy are relative to the real web server and not to the proxy server? eg: ProxyPass / http://localhost:8081/app/ ProxyPassReverse / http://localhost:8081/app/ when I access http://www.example.com (www.example.com resolves to proxy

RE: Tomcat 6 virtual host problem please help

2007-11-26 Thread Rocco Scappatura
Such a proxy configuration may require manipulation of the HTML links. Why? I think that this is not feasible! Are the links being created dynamically or are they hard coded with css/style.css instead of /app/css/style.css and so on. Sorry I have no path in style.css.. I wanna show with a

Re: Tomcat 6 virtual host problem please help

2007-11-26 Thread Rocco Scappatura
How I have to do so that app does'n create absolute paths relative to the context of the application running under Tomcat? rewrite the app :-) This problems is a clear example of how mod_proxy_* is unusable when application to be proxed contains lynks create dynamically? Or is there any

Re: Tomcat 6 virtual host problem please help

2007-11-26 Thread Rocco Scappatura
?? That article doesn't mention mod_rewrite at all, so I'm not sure what it has to do with anything... Im trying to use mod_proxy_html But I have to find: - mod_proxy_html.so for windows - it's prerequisites (libxml2.so) ..and AFAIK you don't need either of those to use mod_rewrite.

RE: Tomcat 6 virtual host problem please help

2007-11-25 Thread Rocco Scappatura
add another CNAME (Canonical Name) for http://foo.example.comhttp://httpd.apache.org/docs/1.3/vhosts/examples.html#purename Martin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official

RE: Tomcat 6 virtual host problem please help

2007-11-25 Thread Rocco Scappatura
If you were using apache infront of tomcat you can use the proxy to do this for you I think ProxyPass / ajp13://localhost:8009/app/ any requests for '/' go to '/app/' on tomcat Hope that helps Sorry, but I have noted an important thing: In my server.xml (as read from a tutorial

RE: Tomcat 6 virtual host problem please help

2007-11-25 Thread Rocco Scappatura
verify the right version of modules (mod_proxy_ajp.so) are in %APACHE_HOME%/modules folderstart here http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html Im using the module mod_proxy_ajp.so that comes with Apache 2.2.6 which I'm using. The version of Tomcat 5.5 that Im using is Tomcat

RE: Tomcat 6 virtual host problem please help

2007-11-24 Thread Rocco Scappatura
If you were using apache infront of tomcat you can use the proxy to do this for you I think ProxyPass / ajp13://localhost:8009/app/ any requests for '/' go to '/app/' on tomcat David, I'm experimenting Apache2.2+mod_proxy_* in front of Tomcat5.5. I have simply put: ProxyPass /blog/

RE: Tomcat 6 virtual host problem please help

2007-11-23 Thread Rocco Scappatura
You should not be attempting to place a web application actually inside the deployed directory of another web application. In your case, if you have two war files from roller, a blog app and an admin app, then place them both in the appBase for the Host: roller.war -

RE: Tomcat 6 virtual host problem please help

2007-11-23 Thread Rocco Scappatura
do you want your app to be the default one? Not necessarily. And even the app name can be avoid in a URL Path? Yes, but look below to understand precisily what I really want. I have an application, say 'app'. I access it trhough: http://www.example.com/app I have a valid URL:

RE: Tomcat 6 virtual host problem please help

2007-11-23 Thread Rocco Scappatura
If you were using apache infront of tomcat you can use the proxy to do this for you I think ProxyPass / ajp13://localhost:8009/app/ any requests for '/' go to '/app/' on tomcat Hope that helps Infact, this seems to me my last chance.. I'll let you know.. Thanks, rocsca

Re: Relate URL / to a tomcat web application

2007-11-22 Thread Rocco Scappatura
So I need to have further clarification... Not sure what you're looking for -- the best clarification would be to simply install Roller and see for yourself that it works :-) Youre very ironic and I very appreciate the guy like you. I have already installed roller and it works fine.. Now

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
I want to access this URL using the following alias in my browser: http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone) So I need to link a virtual host to an application right? I look to but alias in the context.xml file .. I haven't found anything to specify my

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
2) Suppose that I have another level inside the root webapps dir (eg: http://mysite.com:8080/toto/subdir/hello.jpg) and I would like to access to the URL above with http://alias1.com:8080/hello.jpg. How I behave myself in this situation? :-( If you mean a second virtual host, then you would

Re: Tomcat 6 virtual host problem please help

2007-11-22 Thread Rocco Scappatura
On Nov 22, 2007 3:18 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: But I get the sad surprise that indeed roller/blog is not a valid path on the filesystem. It is merely a path of a context created on the fly from data cointained in the roller data base (I suppose). /roller

Relate URL / to a tomcat web application

2007-11-21 Thread Rocco Scappatura
Hello, If I well understood, a correct setup for a web application running under Tomcat, requires that Apache stay in the middle to: - collect the HTTP requests - eventually forward them to Tomcat (eg: trough AJP) - eventually collect responses from tomcat - return response to the end user My

Re: Relate URL / to a tomcat web application

2007-11-21 Thread Rocco Scappatura
On Nov 21, 2007 3:18 PM, Rocco Scappatura [EMAIL PROTECTED] wrote: If I well understood, a correct setup for a web application running under Tomcat, requires that Apache stay in the middle to: no, Apache httpd is not necessary at all. Infact, I never use Apache before, until I wolud

Re: mod_proxy or mod_jk?

2007-11-19 Thread Rocco Scappatura
put this in your servlet.xml file Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- Added this for JK THIS-- Listener className=org.apache.jk.config.ApacheConfig append=true forwardAll=false modJk=Path/To/mod_jk.so /

Re: jk issue

2007-11-18 Thread Rocco Scappatura
would expect, and what answer you get. You can furthermore improve the chance of finding your problem by running a simple test case when having JkLogLevel debug and posting the jk log file in addition. Regards, Rainer Rocco Scappatura schrieb: Hello, after a long time I was persuaded

jk issue

2007-11-16 Thread Rocco Scappatura
Hello, after a long time I was persuaded to install to run Apache Tomcat 5.5 as application server an use Apache 2.0.54 as Web server. I configured Apache to load the appropriate jk connector and have defined a workers. I run Tomcat 5.5, using 8080 port for amministrative issues. But I have

RE: Virtual hosts

2007-11-13 Thread Rocco Scappatura
I would like to know if is there a similar concept to the 'VirtualHost' directive of Apache, in Tomcat. It's not by any means identical, but the Tomcat documentation for the concept is here: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html OK. Thanks. Suppose

Running a Script in a web application

2007-11-07 Thread Rocco Scappatura
Hello, I'm tring to run a script inside a web application using JSR223Script class. I get an error and I get to do so that JSR223Script is visible to Tomcat, but I'm not experienced with Java. Here the relative Tomcat log I get: 7-nov-2007 20.41.27 org.apache.catalina.core.ApplicationContext

Re: Problems with a web application running a PHP script

2007-11-07 Thread Rocco Scappatura
Thanks for you hints. I will disinstall all JDK/JRE versions from my PC. I'm dowloading JDK 6 Update 3 and I will install it. No problem, you got me curious about scripting... I Tested with this == protected void processRequest(HttpServletRequest

Virtual hosts

2007-11-07 Thread Rocco Scappatura
Hello, I would like to know if is there a similar concept to the 'VirtualHost' directive of Apache, in Tomcat. I have set up a web app that respond at the URL http://hostname/path I'ld like to masquarade ti url with another one of the form http://anotherhostname. It is possible to do so in

Re: Problems with a web application running a PHP script

2007-11-06 Thread Rocco Scappatura
Thanks for you hints. I will disinstall all JDK/JRE versions from my PC. I'm dowloading JDK 6 Update 3 and I will install it. No problem, you got me curious about scripting... I Tested with this == protected void processRequest(HttpServletRequest

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
I have installed: - jdk 1.5.0.13 - jre 1.5.0.13 -- jre 1.6.0.02 In NB, Java platform is set for both TC is 'JDK 1.5 (Default)' whose folder path is 'C:\Programmi\Java\jdk1.5.0_13' (i.e.: The installation path for the jdk 1.5.0.13 that I have installed.) As Chuck mentioned , this script

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
As Chuck mentioned , this script class is in 1.6 so you need to either change the environment variable or if from service set it to 1.6. Then there is just one other thing, in NB right click-properties-source... Check the source level... ie you can be running on 1.6 but still tell NB to

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
: Rocco Scappatura [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, November 06, 2007 2:37 AM Subject: Re: Problems with a web application running a PHP script As Chuck mentioned , this script class is in 1.6 so you need to either change the environment variable

RE: Problems with a web application running a PHP script

2007-11-04 Thread Rocco Scappatura
From: Rocco Scappatura [mailto:[EMAIL PROTECTED] Subject: Problems with a web application running a PHP script Under Netbeans it works. But wen deploy it under Tomcat 5.5.25 I get this error when I try to access at a PHP page: java.lang.NoSuchMethodError

Re: Problems with a web application running a PHP script

2007-11-04 Thread Rocco Scappatura
Firstly dont worry too much about the Tomcat Native library message, that is not the cause of the problem. OK. For the moment I will ignore it as suggested by Chuck. OK, so now you have the new Tomcat installed. + Tell netbeans to use it Go to TOOLS - SERVER MANAGER and show

Problems with a web application running a PHP script

2007-11-02 Thread Rocco Scappatura
Hello, I'm trying to run a PHP script under my web application for tomcat, developed wiwith Netbeans 551. Under Netbeans it works. But wen deploy it under Tomcat 5.5.25 I get this error when I try to access at a PHP page: INFO: Marking servlet JSR223Script as unavailable 2-nov-2007 22.56.36