Re: Apache/mod_jk serves random files from tomcat

2009-01-21 Thread yuvalperlov
Trying to revive this thread: I am having the exact same symptoms with the latest versions of everything: Fedora 10 Tomcat 6.0.18 Apache Apache/2.2.10 mod_jk-1.2.27 (and the same problem with the built-in mod_proxy_ajp). It takes a day or so for the problem to start but once it does it happens m

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-21 Thread Konstantin Kolinko
2009/1/22 Michael Ludwig : > But I'm assured by the developers that: > "The Java API for DB XML begins by first trying to load the > release versions of the libraries, and failing that then tries > to load the debug versions. If it fails to find both versions > then the UnsatisfiedLinkError

Re: PostgreSQL vs MySQL with Tomcat

2009-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: > I think the biggest gripe I've had with mysql is the problem where I was > violating a unique constraint and it was giving me some generic > (completely useless) error; HY001 I think. I've always found the error messages

IIS6, Tomcat 6.0, ISAPI redirector 1.2.27 - no log on one server

2009-01-21 Thread Rick Larkin
I've searched all over the web and on the list to try and find an answer to my question. We have a similar installation for a DEV, TEST, STAGE and PROD environments, namely: Windows 2003 Tomcat 6.0 (I don't remember the full version, but it isn't critical to this post) isapi_redirect.dll version 1

RE: Facing “Javax.servlet.servletException: cannot con nect to windows server”. error

2009-01-21 Thread Martin Gainty
Prakash- are your interfaces up and running? ifconfig -a also make sure the ports are not already bound specifically 3306 for MySQL and 8080 for TC HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments rel

Facing “Javax.servlet.servletException: cannot con nect to windows server”. error

2009-01-21 Thread prakash shanmugam
Hai all, I am using jrxml for preparing the reports in excel files. It is working fine in windows but if the same is implemented (server)MAC OS tomcat I am facing "Javax.servlet.servletException: cannot connect to windows server – not enough". I am using Tomcat 5.5.28 as server

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-21 Thread Michael Ludwig
Caldarale, Charles R schrieb am 20.01.2009 um 21:11:21 (-0600): > Environment variables are not used by services, so it doesn't really > matter what's in PATH. True, it only matters for the script version. > Does the account the Tomcat service runs under have access to the > directory of interest

Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)

2009-01-21 Thread Michael Ludwig
Tommy Pham schrieb am 20.01.2009 um 21:45:17 (-0800): > > I don't know if this is relevant to your problem or not and you didn't > mention whether you're x64 or x86 of XP version. Yes, I forgot to say, this is a 32 bit system. > Here's where you can get 64bit for tomcat5: > http://svn.apache.org

Re: PostgreSQL vs MySQL with Tomcat

2009-01-21 Thread Joseph Millet
Hi all, in my opinion MySql as previously said is a lot easier to administrate, and more "developer friendly" than postgre - even if its process managements is far from being good (some single query may bring it down - as far as I could see so far using 5.1.22 and many previous versions... ). Howe

Re: PostgreSQL vs MySQL with Tomcat

2009-01-21 Thread Terence M. Bandoian
Chris- My effort was to relate my experience with MySQL which, as I said, has been very positive, to the original poster. The JSP applications I've developed using MySQL on Linux servers and Windows laptops, desktops and servers have proven over time to be reliable and responsive. And, as I said

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Greg Burrow
Konstantin, The Servlet specification does make it clear, thanks for the suggestion. The HttpServletResponse.encodeRedirectURL javadoc on the other hand seems to contradict the specification. I now have a workaround for my application by using RequestDispatcher.forward and setting a new codebase

Re: Service Unavailable - zero size object

2009-01-21 Thread Steve Ochani
Send reply to: Tomcat Users List Date sent: Wed, 21 Jan 2009 12:33:40 + Subject:Re: Service Unavailable - zero size object From: Andrew Hole To: Tomcat Users List > The strange thing is that i cannot find any log file with this error! > Its very strange! > It is most li

Re: run tomcat as tomcat user

2009-01-21 Thread Rusty Wright
(Repeating a reply I sent a week or so ago.) I made this by modifying one for a different service. It's set up so that tomcat runs as the user tomcat. In order to do that you'll need to tweak the ownership of the files in the tomcat directory. I just made everything owned by tomcat except we

need an example of how to use the NIO connector

2009-01-21 Thread Dharma Lion
I'm now looking for an example of how to use the NIO connector with Tomcat--I need this in order to use chat.  I've found the following example of how to configure this on the Tomcat side: But I can't seem to find any information on how to configure things on the Apache side--in the httpd.con

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Dan
I did read that but it didn't explicitly mention the change in the properties files etc. for classloader. I did expect the server to at least boot up with errors or something. Thanks for the help, will simply copy the installation default properties files to my base and should be good. Best, Da

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Windows Migration 5.5.23 to 6.0.18 - > java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina > > If you simply expect your 5.5 conf/server.xml and > conf/*.properties files to work in Tomcat 6, you're sadly mistaken. You might want to re

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Caldarale, Charles R
> From: Dan [mailto:d...@tipjarawards.com] > Subject: RE: Windows Migration 5.5.23 to 6.0.18 - > java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina > > The c:\dev\tomcat contains my webapps etc. so it has a > bin/conf/logs/shared/webapps/ directories. The classloading hierarchy

Re: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Konstantin Kolinko
2009/1/21 Dan : > I haven't changed anything from the default installation. I did the > following: > > 1. Installed 6.0.18 as windows service > 2. Launch the service after a successful installation, no problems it > starts. Tried the tomcat6.exe directly, no problems. > 3. Click the service tray ic

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Dan
I haven't changed anything from the default installation. I did the following: 1. Installed 6.0.18 as windows service 2. Launch the service after a successful installation, no problems it starts. Tried the tomcat6.exe directly, no problems. 3. Click the service tray icon to change the -Dcatalina.b

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Caldarale, Charles R
> From: Dan [mailto:d...@tipjarawards.com] > Subject: RE: Windows Migration 5.5.23 to 6.0.18 - > java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina > > -Dcatalina.base=c:\dev\tomcat And what's under c:\dev\tomcat? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR O

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Caldarale, Charles R
> From: Flavio Crispim [mailto:flavio.cris...@sulamerica.com.br] > Subject: Re: Windows Migration 5.5.23 to 6.0.18 - > java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina > > You need to set CATALINA_HOME variable pointingo to your installation > directory. That's not useful in

RE: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Dan
CATALINA_HOME is pointing there, that is the default from the installtion. Here is the view of the tomcat service params: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0.18 -Dcatalina.base=c:\dev\tomcat -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat

Re: Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Flavio Crispim
Hi Dan You need to set CATALINA_HOME variable pointingo to your installation directory. Flavio regards "Dan" gravou em 21/01/2009 14:27:27: > I am migrating from 5.5.23 on Windows to 6.0.18. I have installed the > Windows Service binary download and can start up the server fine with the > i

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Konstantin Kolinko
2009/1/21 Greg Burrow : > > My expectation was that the same session would be used by App2 after > the redirect. The javadoc for HttpServletResponse. encodeRedirectURL > looks clear that it should retain the session either by cookies or by > URL rewriting. > >> >> I do not understand, what are you

Windows Migration 5.5.23 to 6.0.18 - java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina

2009-01-21 Thread Dan
I am migrating from 5.5.23 on Windows to 6.0.18. I have installed the Windows Service binary download and can start up the server fine with the installation defaults. I then point CATALINA_BASE to my actual tomcat base directory that I use for my project with 5.5.23 and I get the following: java.

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Karl San Gabriel
Hi Greg, HttpServletResponse.sendRedirect(String) basically just "commands" the web browser proceed to another URL. It's like opening another browser window, typing the other URL in the Address bar, then hitting the Enter button. The session object created in the second web application is a n

Re: Monitor Tomcat

2009-01-21 Thread Brian Clark
I use Sun's Visual VM. https://visualvm.dev.java.net/ Brian From: Zaki Akhmad To: Tomcat Users List Sent: Tuesday, January 20, 2009 10:02:51 PM Subject: Monitor Tomcat Hello, I am deploying my web application on Tomcat. How do I monitor the tomcat perform

run tomcat as tomcat user

2009-01-21 Thread Kaushal Shriyan
Hi I am not able to start tomcat as tomcat user on ubutu 8.04 Linux, Below is my start/stop script Any ideas as what is going wrong ? Thanks and Regards Kaushal ### #!/bin/sh # # Startup script for

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Greg Burrow
Konstantin, My expectation was that the same session would be used by App2 after the redirect. The javadoc for HttpServletResponse. encodeRedirectURL looks clear that it should retain the session either by cookies or by URL rewriting. HttpServletResponse.encodeRedirectURL "Encodes the specified

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Greg Burrow
Flavio, Thanks for the response. Once LaunchServlet in App2 is called it will start an applet. The RequestDispatcher.forward() will not change the context to App2 so the applet lookup will occur in App1 and fail. I was able to work around this by hard coding the codebase attribute in the applet

Re: Random Connection Closed Exceptions - Question to the code example

2009-01-21 Thread Flavio Crispim
Hi Stefan you´re right, I wrote this with your first example in mind. Regards Flavio Stefan Riegel gravou em 21/01/2009 01:36:34: > Hello Flavio, > > thank You for your answer but isn't Your code the same as my code below? > I don't see any significant difference. > > Regards > Stefan > > Flav

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Konstantin Kolinko
2009/1/20 Greg Burrow : > Hello, > I have two web applications in different context, one servlet will forward > the request to a servlet in the other application using encodeRedirectURL > and sendRedirect. The receiving servlet creates a new session and session > attributes are lost. > Running Tom

Re: encodeRedirectURL URL rewrite not working

2009-01-21 Thread Flavio Crispim
Hi Greg You may try this on App1: RequestDispatcher rd; rd = context.getContext("/App2").getRequestDispatcher("/LaunchServlet"); rd.forward(request, response); Flavio "Greg Burrow" gravou em 20/01/2009 18:44:18: > Hello, > I have two web applications in different context, one servlet will for

Re: jsvc error with tomcat and java 1.6 on os x

2009-01-21 Thread Adam Dajka
On 20 Jan 2009, at 06:26, m zyzy wrote: If this is a jsvc issue, are there any ways to use tomcat without jsvc? try using the core binary download , extract it and run the startup script inside the /bin folder of extracted folder , test it on the browser http://localhost:8080 . to stop th

Re: JMX Controlpanel Application

2009-01-21 Thread Kees Jan Koster
Dear Gerardus, > I was just wondering if anyone can recommend a open source that one can > use to build "control panels" based on jmx properties published by the > jvm or your own application. > > We have monitoring software that can alert us when some jmx values > exceeds a threshold but I would

Re: Service Unavailable - zero size object

2009-01-21 Thread Andrew Hole
The strange thing is that i cannot find any log file with this error! Its very strange! Thanks On Wed, Jan 21, 2009 at 12:23 PM, Piller Sébastien wrote: > Hi, > > you will most likely find more informations on the log files (catalina.out > or smt like that) > > could you have a look and report t

Re: Service Unavailable - zero size object

2009-01-21 Thread Piller Sébastien
Hi, you will most likely find more informations on the log files (catalina.out or smt like that) could you have a look and report the stacktrace here? Andrew Hole a écrit : Hi! We are using Apache + Mod_jk + Tomcat and randomly we are getting the following error (http 503) Service Unavailab

Service Unavailable - zero size object

2009-01-21 Thread Andrew Hole
Hi! We are using Apache + Mod_jk + Tomcat and randomly we are getting the following error (http 503) Service Unavailable - *zero* *size* *object* The server is temporarily unable to service your request. Please try again later. Do you have any idea about why happens this error? Thanks a lot A.H

JMX Controlpanel Application

2009-01-21 Thread Gerhardus.Geldenhuis
Hi I was just wondering if anyone can recommend a open source that one can use to build "control panels" based on jmx properties published by the jvm or your own application. We have monitoring software that can alert us when some jmx values exceeds a threshold but I would like to see a tool where

RE: mod_jk - load balancing

2009-01-21 Thread Gerhardus.Geldenhuis
Hi Andrew, It will mark a worker as down and only send requests to "working" workers. There is a separate thread that checks the availability of all workers in an configurable time period which will mark the worker as available/functioning again when it becomes available, where after it will receiv

mod_jk - load balancing

2009-01-21 Thread Andrew Hole
Hi Guys! What is the behavior of mod_jk if one of the workers stops? Mod_jk stops to send requests to that worker? Or it retries at each request and only after determine that the worker is down , it sends the request to the fine worker ? # -- # Load Balancer worker #

Re: Monitor Tomcat

2009-01-21 Thread Leon Rosenberg
well, monitoring tomcat itself: lambdaprobe java-monitor monitoring the webapp in tomcat moskito jamon regards Leon On Wed, Jan 21, 2009 at 5:02 AM, Zaki Akhmad wrote: > Hello, > > I am deploying my web application on Tomcat. How do I monitor the > tomcat performance? > 1. If I am using GNU/

Re: Monitor Tomcat

2009-01-21 Thread Gregor Schneider
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html http://docs.hp.com/en/5992-4861/ar01s10.html HTH Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371