Incomplete WAR deployment

2009-03-19 Thread Orson Alvarez
Hello all, We seem to be having the same problem as discussed in this thread: http://marc.info/?l=tomcat-user&m=117872182913850&w=2 The problem being that Tomcat on rare occasions does not completely unpack a war file. Our install procedure is very cut and dry: 1) stop/kill any running Tomcat pr

incorrect time in the catalina.out logging

2009-03-19 Thread Ghufran
Hi All I am using tomcat 6.0.18 on RHEL 5. The problem is that the time that is printed in the logging of catalina.out is one hour ahead of the server time. For example, when the command line date command said Fri Mar 20 05:57:46 GMT 2009 The time printed in the catalina.out was 2

help building a proxy

2009-03-19 Thread Richard Langly
Hey all, I'm searching for a way to make a proxy server to: - receive a request from a web-browser. - allows me to grab the URL and build a web page. - then forward the request to the destination. - and then allows me to store and access the response when the destination retur

Re: Question on Executor and maxThreads reported by Manager

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 3/19/2009 1:37 PM, Matt Brown wrote: > compression="on" compressableMimeType="..., > image/png,image/jpeg,image/gif" Are you sure you want to waste your CPU time compressing files that are already compressed? - -chris -BEGIN PGP SI

Re: form parameters

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joseph, On 3/19/2009 7:49 PM, Joseph Millet wrote: > Maybe I'm missing something but from the little knowledge I have, I'd > think an HTML form is posted encoded in the form enclosing HTML > document charset specified in the sent Server headers. It d

Session listeners and clustering problem

2009-03-19 Thread David Rees
Hi, I'm trying to implement a session listener so that I can check the status of a session. Essentially, I need to maintain a Map of all the sessions. I would add sessions to this map based on business logic. The problem I have is that the behavior of the listeners is different when clustering

Re: configuration about tomcat for work with mysql/J connector

2009-03-19 Thread Rusty Wright
http://lmgtfy.com/?q=tomcat+mysql+tutorial E.g., http://www.roseindia.net/mysql/mysqldatabase.shtml Tomas Rodriguez wrote: Hi all I'm new in Tomcat and java, I installed already Tomcat 6.0 for windows 2000, I have to mysql server and the connector/j for work together mysql and Tomcat. I dec

Re: form parameters

2009-03-19 Thread Joseph Millet
Maybe I'm missing something but from the little knowledge I have, I'd think an HTML form is posted encoded in the form enclosing HTML document charset specified in the sent Server headers. So that you settle a page encoded in iso-8859-2, you wouldn't expect a form present in that page to post unico

configuration about tomcat for work with mysql/J connector

2009-03-19 Thread Tomas Rodriguez
Hi all I'm new in Tomcat and java, I installed already Tomcat 6.0 for windows 2000, I have to mysql server and the connector/j for work together mysql and Tomcat. I declare a variable for connector mysql/j in panel control/system/advance(enviroment variable) , this variable have the mysql conn

RE: APR based Tomcat Native library

2009-03-19 Thread Caldarale, Charles R
> From: Tuan Quan [mailto:tuan_q...@yahoo.com] > Subject: APR based Tomcat Native library > > C:\Program Files (x86)\Dell\SysMgt\oma\bin Looks like you're running on a 64-bit version of Windows; are you using a 64-bit JVM? The .dll mode must match that of the JVM you're using. You can find t

APR based Tomcat Native library

2009-03-19 Thread Tuan Quan
Dear all, I installed Tomcat 6.0.16,  service is running but the catalina log shows: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Tomcat6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;

Re: mod_jk through a firewall (yes, I RTFM)

2009-03-19 Thread Jeff Fulmer
> On 19.03.2009 14:02, Jeff Fulmer wrote: >> >> If I stop the tomcat server tomcat2, there's no problem. It properly >> closes the sockets and mod_jk/apache/linux knows the server went away. >> But if I shutdown the network on tomcat2 (or yank the cable), mod_jk >> continues to send packets to it.

RE: Need Help With Clustered Tomcat Sessions

2009-03-19 Thread Alston, Brian (US SSA)
Yes I am. The frustrating thing is I have 2 Tomcat servers and 2 Apache load balancers. One load balancer is Linux and one load balancer is Windows Server 2003 (I never have them both on at the same time). I can turn off my Windows load balancer, turn on my Linux load balancer, and th

RE: Need Help With Clustered Tomcat Sessions

2009-03-19 Thread Jorge Medina
Are you maintaining session stickyness? Did you configure Tomcat to replicate the sessions? -Original Message- From: Alston, Brian (US SSA) [mailto:brian.als...@baesystems.com] Sent: Thursday, March 19, 2009 1:40 PM To: users@tomcat.apache.org Subject: Need Help With Clustered Tomcat

RE: Question on Executor and maxThreads reported by Manager

2009-03-19 Thread Caldarale, Charles R
> From: Matt Brown [mailto:matt.br...@citrixonline.com] > Subject: RE: Question on Executor and maxThreads reported by Manager > > We have a monitoring app that pings /manager/status?XML=true > to get mem usage, thread activity/count/stats, etc., so it > sounds like our stats for max threads mi

RE: Load server.xml without restarting Tomcat 5.5.26 Server

2009-03-19 Thread Caldarale, Charles R
> From: meamit221 [mailto:amit.n...@aceicon.com] > Subject: RE: Load server.xml without restarting Tomcat 5.5.26 Server > > However, can you assist me with some hints that can help me > to do so (with Tomcat APIs)? Since you're running 5.5, you can use the admin webapp to dynamically add elem

RE: Question on Executor and maxThreads reported by Manager

2009-03-19 Thread Matt Brown
Thanks Charles. I was using the Manager to confirm if my settings for the thread pool (particularily minSpareThreads) were working right - I'll have to confirm with jconsole. We have a monitoring app that pings /manager/status?XML=true to get mem usage, thread activity/count/stats, etc., so i

Re: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Mikolaj Rydzewski
Christopher Schultz wrote: Since you have written your own appender, maybe you could change it to fail gracefully (say, log messages to the console) when the JNDI DataSource is not available, retain a copy of a certain number of log messages (say, 100), and then write them all to the DataSource o

RE: Question on Executor and maxThreads reported by Manager

2009-03-19 Thread Caldarale, Charles R
> From: Matt Brown [mailto:matt.br...@citrixonline.com] > Subject: Question on Executor and maxThreads reported by Manager > > When I check the server info in Tomcat Manager, the max > thread count for each connector is reported as 250 (the value > of maxThreads in each element, which I expect

Re: mod_jk through a firewall (yes, I RTFM)

2009-03-19 Thread Rainer Jung
On 19.03.2009 14:02, Jeff Fulmer wrote: I'm having difficulty with failover testing. When a tomcat server goes away due to networking issues, the site become effectively unusable. Here's the architecture: => apache1tomcat1 LB FW => apache2tomcat2 If I stop

Need Help With Clustered Tomcat Sessions

2009-03-19 Thread Alston, Brian (US SSA)
Hello All I am having trouble with my Tomcat cluster that I hope you can help with. First my setup: Apache Load Balancer: Windows Server 2003 - Apache 2.2.11 - 192.168.1.100 Tomcat Server 1: Windows Server 2003 - Tomcat 6.0.18 - 192.168.1.110 Tomcat Server 2: Windows Server 2003

Question on Executor and maxThreads reported by Manager

2009-03-19 Thread Matt Brown
In my conf/server.xml, I have an executor and two connectors set up something like this: My intention is to have the two connectors share a thread pool with a maximum thread count of 200, and minSpareThreads of 50. When I check the server info in Tomcat Manager, the max thread count for e

Re: no request on access log

2009-03-19 Thread Kaushal Shriyan
On Thu, Mar 19, 2009 at 10:53 PM, Kaushal Shriyan wrote: > On Thu, Mar 19, 2009 at 10:32 PM, Peter Crowther < > peter.crowt...@melandra.com> wrote: > >> > From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] >> > > [...] >> > > [...] >> >> So are you testing these by browsing to http://testa.ex

RE: How to make Tomcat serve/listen to one more port?

2009-03-19 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: How to make Tomcat serve/listen to one more port? > > Correct; the element is equivalent to a web site, the > s just feed the s, based on the name and . Note that you don't really need multiple elements to support

Re: no request on access log

2009-03-19 Thread Kaushal Shriyan
On Thu, Mar 19, 2009 at 10:32 PM, Peter Crowther < peter.crowt...@melandra.com> wrote: > > From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] > > [...] > > [...] > > So are you testing these by browsing to http://testa.example.com, and have > you mapped that in your DNS or hosts file to be

Re: URI resolving to tomcat/bin

2009-03-19 Thread Gregor Schneider
On Thu, Mar 19, 2009 at 5:23 PM, Agent96 wrote: > > Thanks...I just came to the same conclusion too. > > URI uri = MyClass.class.getResource("/resources/xsd/Message.xsd").toURI() > which resolves to myWebApp/WEB-INF/classes/resources/xsd/Message.xsd > That's not recommended. Instead of using

RE: How to make Tomcat serve/listen to one more port?

2009-03-19 Thread Caldarale, Charles R
> From: Je suis la poubelle [mailto:laps...@gmail.com] > Subject: Re: How to make Tomcat serve/listen to one more port? > > wondering if copy-n-paste the connector section > in server.xml and change the port value is enough That's usually all that's needed for the portion. > Did you mean/imply

Re: How to make Tomcat serve/listen to one more port?

2009-03-19 Thread Je suis la poubelle
Thanks for your reply. I'm still struggling to understand the syntax of configuring another connector. wondering if copy-n-paste the connector section in server.xml and change the port value is enough too much things to read need some filter to filter out unnecessary thing an

RE: no request on access log

2009-03-19 Thread Peter Crowther
> From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] > http://testa.example.com, and have you mapped that in your DNS or hosts file to be your Tomcat server? If not, these won't work. Do you need two Host elements? Are you actually serving two different sites from one Tomcat? What Tomc

no request on access log

2009-03-19 Thread Kaushal Shriyan
Hi, I am using tomcat5 on gentoo OS and Sun JDK 1.5.0.12, i dont see any request coming to access log. is that access configuration in server.xml correct ? Please suggest Thanks and Regards Kaushal

Re: URI resolving to tomcat/bin

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/19/2009 12:15 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: URI resolving to tomcat/bin >> >>> ServletContext.getResourceAsStream("/classes/resources/myFile.xml"); >> >>

Re: How to get list of IP addresses and ports Tomcat is listening on, in a web-app

2009-03-19 Thread André Warnier
Leonard Smith wrote: To all, I am writing a webapp which runs under tomcat 6.0.18 and I am new to java. My webapp is configured to load on startup and in the init method/function I want to get the list of IP addresses and ports that can be used to connect to my web-app. I cannot use the HttpServ

RE: URI resolving to tomcat/bin

2009-03-19 Thread Agent96
Thanks...I just came to the same conclusion too. URI uri = MyClass.class.getResource("/resources/xsd/Message.xsd").toURI() which resolves to myWebApp/WEB-INF/classes/resources/xsd/Message.xsd Matt Caldarale, Charles R wrote: > >> From: Agent96 [mailto:matt.nel...@metadatatechnology.com]

RE: Applets with IE - difference between Tomcat and plain HTML?

2009-03-19 Thread Caldarale, Charles R
> From: herbert [mailto:i...@gmx.de] > Subject: Applets with IE - difference between Tomcat and plain HTML? > If I open the page http://localhost:8080/ with my > IE-7-Browser, the applet won't be rendered. IE8 was officially released about 20 minutes ago; you might want try the test with that

RE: URI resolving to tomcat/bin

2009-03-19 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: URI resolving to tomcat/bin > > > ServletContext.getResourceAsStream("/classes/resources/myFile.xml"); > > I think Chuck meant: > > ServletContext.getResourceAsStream("/WEB-INF/classes/resources > /myFile.xml"); N

RE: tomcat database connection pool

2009-03-19 Thread Carol Cheung
Caldarale, Charles R wrote: > >> From: Carol Cheung [mailto:cache...@consumercontact.com] >> Subject: tomcat database connection pool >> >> In tomcat 5.5, the database connection pool associated with >> my application does not seem to "shutdown" when I undeploy >> the application. > > You

Re: URI resolving to tomcat/bin

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Agent96, On 3/19/2009 11:17 AM, Caldarale, Charles R wrote: > ServletContext.getResourceAsStream("/classes/resources/myFile.xml"); I think Chuck meant: ServletContext.getResourceAsStream("/WEB-INF/classes/resources/myFile.xml"); - -chris -BEGIN

Re: Applets with IE - difference between Tomcat and plain HTML?

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Herbert, On 3/19/2009 5:22 AM, herbert wrote: > I've an applet, that should run out of an apache-tomcat-6.0.18 and that > should be seen with Internet Explorer 7.0 and with FireFox 3. > > The applet does work in a plain HTML-Page with IE and with FF.

Re: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mikolaj, On 3/19/2009 11:04 AM, Mikolaj Rydzewski wrote: > Caldarale, Charles R wrote: >> That may be true, but there's no guarantee that your classes will be >> loaded in any specific order, nor that resources will be registered >> prior to classload

Re: How to get list of IP addresses and ports Tomcat is listening on, in a web-app

2009-03-19 Thread Mikolaj Rydzewski
Leonard Smith wrote: Is there a way from my web-app, to get a list of IP addresses and ports that tomcat is listening on? Other java programmers I know mentioned using JMX, etc but that assumes I know the JMX port, which could change. You will use JMX beans in the same JVM, so you do not need

How to get list of IP addresses and ports Tomcat is listening on, in a web-app

2009-03-19 Thread Leonard Smith
To all, I am writing a webapp which runs under tomcat 6.0.18 and I am new to java. My webapp is configured to load on startup and in the init method/function I want to get the list of IP addresses and ports that can be used to connect to my web-app. I cannot use the HttpServletRequest or ServletRe

RE: URI resolving to tomcat/bin

2009-03-19 Thread Caldarale, Charles R
> From: Agent96 [mailto:matt.nel...@metadatatechnology.com] > Subject: URI resolving to tomcat/bin > [TOMCAT_HOME]/Webapps/myWebApp/classes/resources/myFile.xml Classes are normally stored in myWebApp/WEB-INF/classes, but the above is acceptable, just unusual (assuming you fix the spelling of

Re: Issue in sending Request/response http headers containing Japanese charateres

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, As Chuck points out, I really meant to encode using UTF-8. The result is always an US-ASCII string, as per the java.net.URLEncode documentation (really the URL Spec). On 3/18/2009 6:51 PM, André Warnier wrote: > If the string contained any Jap

URI resolving to tomcat/bin

2009-03-19 Thread Agent96
Hi, I have a URI that points to a relative location: URI myUri = new URI("resources/myFile.xml"); When I deply my application to Tomcat the location is relative to tomcat/bin. so it would be tomcat/bin/resource/myFile.xml. I was hoping for [TOMCAT_HOME]/Webapps/myWebApp/classes/resources/myFile

Re: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Mikolaj Rydzewski
Caldarale, Charles R wrote: That may be true, but there's no guarantee that your classes will be loaded in any specific order, nor that resources will be registered prior to classloading; the spec only indicates the resources will be available prior to any calls to the initialization methods o

Re: error page configuration

2009-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dinesh, On 3/19/2009 12:20 AM, Dinesh Gupta wrote: > In my application, using tiles > at the run time from the database we pick the the jsp file. > But some times exception occurred.So that if any include page got exception I > want to go to the erro

RE: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Caldarale, Charles R
> From: Mikolaj Rydzewski [mailto:m...@ceti.pl] > Subject: Re: JNDI: Name java:comp is not bound in this Context > > If I'm not wrong, log4j initialization should take place during > initialization of static 'log' field. That may be true, but there's no guarantee that your classes will be loade

python proxy.cgi

2009-03-19 Thread Paulo Cesar Rocha
Hi, I changed tomcat web.xml and copied the proxy.cgi python script from the OL example directory to the /webapps//cgi-bin/ directory (I'm using Vista, Tomcat5.5 and Geoserver). When I type the url http://localhost:8080/cgi-bin/proxy.cgi in IE it lists openlayers proxy instead of openlayers hompag

Re: How I can make a setup for Apache-Tomcat communication

2009-03-19 Thread André Warnier
singh.rakesh47 wrote: Hi, I want to make a alias of my domain in tomact through the Apache, can any guys provide the process to make alias in Apache Sit down, have a beer (or a coffee), rephrase your question in terms such that every one can understand what you want; You may want to g

Re: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Mikolaj Rydzewski
Caldarale, Charles R wrote: From: Mikolaj Rydzewski [mailto:m...@ceti.pl] Subject: Re: JNDI: Name java:comp is not bound in this Context So I rather think, that Tomcat fills JNDI information after webapp deployment. Not really after, just during. I'm still looking through the code, but

How I can make a setup for Apache-Tomcat communication

2009-03-19 Thread singh.rakesh47
Hi, I want to make a alias of my domain in tomact through the Apache, can any guys provide the process to make alias in Apache Thanx -- View this message in context: http://www.nabble.com/How-I-can-make-a-setup-for-Apache-Tomcat-communication-tp22600376p22600376.html Sent from the Tomcat

RE: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Caldarale, Charles R
> From: Mikolaj Rydzewski [mailto:m...@ceti.pl] > Subject: Re: JNDI: Name java:comp is not bound in this Context > > So I rather think, that Tomcat fills JNDI information > after webapp deployment. Not really after, just during. I'm still looking through the code, but the logger for the webap

RE: How to make Tomcat serve/listen to one more port?

2009-03-19 Thread Caldarale, Charles R
> From: Je suis la poubelle [mailto:laps...@gmail.com] > Subject: How to make Tomcat serve/listen to one more port? > > Is it possible o make it listen to one more port, > eg 12345, to serve HTTP? Just configure another connector for whatever ports you want. > it's suppose to serve a totally d

How to make Tomcat serve/listen to one more port?

2009-03-19 Thread Je suis la poubelle
(I've searched through the archive back to November 2008 but it seems like this question hasn't been asked, so I take the risk to ask it :) ) My short question is: How to make Tomcat serve HTTP to one more port (in Windows Server 2003)? Tomcat listens to 8080 (or 80) for HTTP. Is

mod_jk through a firewall (yes, I RTFM)

2009-03-19 Thread Jeff Fulmer
I'm having difficulty with failover testing. When a tomcat server goes away due to networking issues, the site become effectively unusable. Here's the architecture: => apache1tomcat1 LB FW => apache2tomcat2 If I stop the tomcat server tomcat2, there's no problem

Re: error page configuration

2009-03-19 Thread Ken Bowen
You may also want to try asking on the Tiles User list: us...@tiles.apache.org On Mar 19, 2009, at 7:54 AM, Gregor Schneider wrote: This is not a Tomcat-related question but a question relating to Servlets in general. http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1017571 Rgds Grego

APR does not understand this error code: proxy: read response failed

2009-03-19 Thread Jakob Ericsson
Hi, We are experiencing issues with AJP-communication between the httpd and Tomcat 6. This is communication between httpd and tomcat on localhost. Most of the requests work great in our performance tests but quite randomly we see this error in httpd error.log: ... [Wed Mar 18 21:47:09 2009] [erro

Re: Tomcat for dummies, subtopic Acronyms

2009-03-19 Thread Gregor Schneider
André, On Wed, Mar 18, 2009 at 7:37 PM, André Warnier wrote: > Nope, just that after people keep throwing mysterious acronyms at me, and > several of them start to use the same ones, I get curious. Since I believe one of those "people" was me, I hope throwing stuff at you didn't hurt too much :

Re: error page configuration

2009-03-19 Thread Gregor Schneider
This is not a Tomcat-related question but a question relating to Servlets in general. http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1017571 Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available

setAlias() for connector object.

2009-03-19 Thread Bhuvanesh Pattanashetti
Hi all, I m creating the connector object using certain port and SSL cert, But i had a problem relating connector to particular alias in the keystore. As i checked in the tomcat 6.0 APIs there is no setKeyAlias() or setAlias() method. Please suggest if any body has any idea? thank you, Bhuvan P

How to configure Apache/Tomcat6.0 to not send a chunked response?

2009-03-19 Thread Rajat Gupta05
Thanks Rajat CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further

Re: tomcat - perl cgi

2009-03-19 Thread Thangavel Sankaranarayanan
Hi, cgi (3-) org.apache.catalina.servlets.CGIServlet (4-) cgi(2-) /cgi-bin/* (1-) The Http servlet request's context path (/cgi-bin) is checked first in servlet mapping(1) and if one found , tomcat obtains the name of the servlet(2).

tomcat - perl cgi

2009-03-19 Thread Karthik Nanjangude
Hi Declared in webapps/ PERL_TOOLS_SITE / WEB-INF/web.xml for CGI Perl execution as given below, cgi org.apache.catalina.servlets.CGIServlet debug 0 cgiPathPrefix WEB-INF/cgi 1 cgi /cgi-bin/* http://localhost:8080/PERL_TOOLS_SITE/cgi/hello.cgi Unsuccessful : HTTP Status 40

Applets with IE - difference between Tomcat and plain HTML?

2009-03-19 Thread herbert
Hi, I've an applet, that should run out of an apache-tomcat-6.0.18 and that should be seen with Internet Explorer 7.0 and with FireFox 3. The applet does work in a plain HTML-Page with IE and with FF. Applet Test (Applet-Code lies within the

Re: JNDI: Name java:comp is not bound in this Context

2009-03-19 Thread Mikolaj Rydzewski
David Smith wrote: Try java:/comp instead. If that doesn't help, then we'll need more info: - OS: - where you got tomcat from (tomcat.apache.org or third party repackage) - Details of your setup like what's in tomcat's common/lib folder? - Config (relevant parts of server.xml, the webapp's con

Re: Issue in sending Request/response http headers containing Japanesecharateres

2009-03-19 Thread André Warnier
And as we recently mentioned the incompleteness of the current HTTP specification - at least in matters charsets - it may be worth remembering that it was 20 years ago, in March 1989, that a then little-known computer guy at CERN named Tim Berners-Lee wrote the paper "Information Management: A