apache/tomcat communication issues (502 response)

2009-04-07 Thread feedly team
We are running apache and tomcat on the same machine (using the http connector) and logging requests in both. Occasionally (maybe 1% of requests) we see 502 response in the apache log spread fairly evenly throughout the day. these requests don't appear in the tomcat log produced by the access valve

RE: tomcat, mod_jk, and apache

2009-04-07 Thread Caldarale, Charles R
> From: Jordan Michaels [mailto:jor...@viviotech.net] > Subject: tomcat, mod_jk, and apache > > I'm using mod_jk with apache and I was wondering if it would be > possible to configure mod_jk in a way that I wouldn't have to > specify the entries in Tomcat's server.xml file in addition > to apach

RE: $CATALINA_HOME

2009-04-07 Thread Caldarale, Charles R
> From: jigneshjsoni [mailto:jigneshjs...@gmail.com] > Subject: $CATALINA_HOME > > When I run above command on cmd prompt , I get message path can not be > found. How to find path for $CATALINA_HOME from cmd prompt ? Read *all* of RUNNING.txt, including this from 2.2: "For the purposes of the re

RE: tomcat not working

2009-04-07 Thread Caldarale, Charles R
> From: jigneshjsoni [mailto:jigneshjs...@gmail.com] > Subject: tomcat not working > > what is wrong in here ? Lots of things, such as you not telling us the Tomcat version you're using, the JDK/JRE it's running on, the platform this is all installed on, the complete contents of server.xml, how

$CATALINA_HOME

2009-04-07 Thread jigneshjsoni
I am trying to do following. (3) Start Up Tomcat (3.1) Tomcat can be started by executing the following commands: $CATALINA_HOME\bin\startup.bat (Windows) When I run above command on cmd prompt , I get message path can not be found. How to find path for $CATALINA_HOME from cmd prompt ? I

tomcat not working

2009-04-07 Thread jigneshjsoni
I have set up, ports as below <-- whats the eaning of snhutdown here ? --> Now when I run the "http://localhost:8080";, I get an error essage "Internet Explorer cannot display the webpage " what is wrong in here ? -- View this message in context: http://www.nabble.com/tomcat-not-wo

Re: Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread Ken Bowen
Thanks! To both Chuck & Andre. Not only does the simple solution work, but I understand a tiny bit more. Have a good night. Ken On Apr 7, 2009, at 7:20 PM, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Do multiple Hosts force multiple instances of w

Re: tomcat, mod_jk, and apache

2009-04-07 Thread Jordan Michaels
André Warnier wrote: Jordan Michaels wrote: Hey Folks, I'm using mod_jk with apache and I was wondering if it would be possible to configure mod_jk in a way that I wouldn't have to specify the entries in Tomcat's server.xml file in addition to apache. It's not terribly difficult to enter in

Re: Services not working under Program Files folder

2009-04-07 Thread Len Popp
I have used the service.bat in various versions of Tomcat with no such error. The script you posted is different from the service.bats in Tomcat 5.0, 5.5 and 6.0 that I have lying around. Where did you get your service.bat from? -- Len On Tue, Apr 7, 2009 at 19:52, mailinglist wrote: > Hi, >

Services not working under Program Files folder

2009-04-07 Thread mailinglist
Hi, I am trying to create a tomcat service with the service.bat. The service.bat looks for my environment variable to create the service. If my directory name has a space in it (e.g. Program files) it will create the service but it will not start. It keeps saying that the service has nothing t

Re: tomcat, mod_jk, and apache

2009-04-07 Thread André Warnier
Jordan Michaels wrote: Hey Folks, I'm using mod_jk with apache and I was wondering if it would be possible to configure mod_jk in a way that I wouldn't have to specify the entries in Tomcat's server.xml file in addition to apache. It's not terribly difficult to enter in host information in b

tomcat, mod_jk, and apache

2009-04-07 Thread Jordan Michaels
Hey Folks, I'm using mod_jk with apache and I was wondering if it would be possible to configure mod_jk in a way that I wouldn't have to specify the entries in Tomcat's server.xml file in addition to apache. It's not terribly difficult to enter in host information in both places, but it woul

RE: Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Do multiple Hosts force multiple instances of webapps? > > The first defined is the "default host". No - the defaultHost is the defined by the defaultHost attribute of the . It can be any of the elements. > To make a longer story

Re: Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread André Warnier
André Warnier wrote: Ken Bowen wrote: [Feels like a newbie question, but I don't know the anwser.] I have a web app (myapp) which has its context.xml in META-INF. When I run it on a local vanilla Tomcat 6.0.18 (Apache download) with the standard unzipped server.xml, only one instance of myapp

Re: Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread André Warnier
Ken Bowen wrote: [Feels like a newbie question, but I don't know the anwser.] I have a web app (myapp) which has its context.xml in META-INF. When I run it on a local vanilla Tomcat 6.0.18 (Apache download) with the standard unzipped server.xml, only one instance of myapp is started (as observ

RE: Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread Caldarale, Charles R
> From: Ken Bowen [mailto:kbo...@als.com] > Subject: Do multiple Hosts force multiple instances of webapps? > Note that they share the appBase. Which can lead to "interesting" events when updating on the fly. > When I drop myapp.war in webapps, and observe catalina.out, I see that > it is starte

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread André Warnier
André Warnier wrote: Trying to redeem myself to Andrey for hijacking his post.. Andrey, in your (latest) client code you do not set either a content-length, nor a "chunked" encoding headers. Is it possible that Tomcat 6 just ignores your POST content in that case ? In RFC2616, I find this in se

Do multiple Hosts force multiple instances of webapps?

2009-04-07 Thread Ken Bowen
[Feels like a newbie question, but I don't know the anwser.] I have a web app (myapp) which has its context.xml in META-INF. When I run it on a local vanilla Tomcat 6.0.18 (Apache download) with the standard unzipped server.xml, only one instance of myapp is started (as observed in catalina.

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Cannot read httpservlet's inputstream Does there exist a library somewhere which allows me to feed it this InputStream and which will parse the parts for me appropriately (for example allowing me to determine i

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
On Tue, Apr 07, 2009 at 05:30:49PM -0500, Caldarale, Charles R wrote: > > CGI? That URL gives me download links. > > Sorry, I scanned it too quickly (time to go home). No problems. It happens. Thanks for replying and have fun. :) -- "Not to engage in the pursuit of ideas is to live like ants i

RE: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Newbie Question with Apache Tomcat v6.0.18 in Windows XP > SP2. > CGI? That URL gives me download links. Sorry, I scanned it too quickly (time to go home). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL an

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
> > http://www.google.com/search?q=tomcat+pac+script reveal that the > > relationships. > > If you actually took a look at what the search found, you'd see that the > relationship is ... nothing. Mostly hits on a similarly confused thread from > a while back. Oh. Strange results then. > > >

RE: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Caldarale, Charles R
> From: Phillip Pi [mailto:a...@zimage.com] > Subject: Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP > SP2. > > http://www.google.com/search?q=tomcat+pac+script reveal that the > relationships. If you actually took a look at what the search found, you'd see that the relationship i

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
On Tue, Apr 07, 2009 at 05:58:46PM -0400, Christopher Schultz wrote: > > OK, she said we need Tomcat because of PAC scripts to do the proxy auto > > configurations. > > I think she's still confused. Sorry if you already know all this, but > I'm new to proxy research and I'd never heard of a "PA

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 5:56 PM, André Warnier wrote: > Now suppose I /do/ a POST with multipart/form-data encoding to a Tomcat > servlet, and one of the parts /is/ a large file. > How can I handle this at the servlet level ? Of course you can. Haven't we

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
On Tue, Apr 07, 2009 at 04:46:32PM -0500, Caldarale, Charles R wrote: > > OK, she said we need Tomcat because of PAC scripts to do the proxy auto > > configurations. > > I've never heard of PAC scripts in conjunction with Tomcat. http://www.google.com/search?q=tomcat+pac+script reveal that the

RE: Cannot read httpservlet's inputstream

2009-04-07 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Cannot read httpservlet's inputstream > > Does there exist a library somewhere which allows me to feed it this > InputStream and which will parse the parts for me appropriately (for > example allowing me to determine if a given paramete

Re: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashid, On 4/7/2009 5:45 PM, Rashid Malik wrote: > What I mean here is that I have three 3 installations of tomcat not > 2. How many total web applications do you have? Do any of them have any requirements for which Tomcat version on which they are

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip, On 4/7/2009 5:38 PM, Phillip Pi wrote: > OK, she said we need Tomcat because of PAC scripts to do the proxy auto > configurations. I think she's still confused. Sorry if you already know all this, but I'm new to proxy research and I'd never

RE: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Caldarale, Charles R
> From: Rashid Malik [mailto:rma...@dhmh.state.md.us] > Subject: Re: Migration from Tomcat 4.1 to 6.0 <<>> > > There is tomcat 2.2 application (using port 80) There was never any Tomcat 2.2 release. You may actually have httpd on port 80, since there is a 2.2 version of that. httpd usually com

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 4:49 PM, André Warnier wrote: Ok Mark, I don't pretend I know how it works in Tomcat. How does one upload a file then ? That depends on how you /want/ to upload it. If you want to use the standard HTM

RE: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Caldarale, Charles R
> From: Phillip Pi [mailto:a...@zimage.com] > Subject: Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP > SP2. > > OK, she said we need Tomcat because of PAC scripts to do the proxy auto > configurations. I've never heard of PAC scripts in conjunction with Tomcat. To repeat: Tomcat h

Re: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Rashid Malik
Hello Chris, Thanks for your quick response. What you said makes sense to me but let me clarify my situation further. > Hi, I changed port 8080 to 80 and I get page not found error. Please > note that I have another website that is running on an older version > of tomcat. What I mean here i

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip, On 4/7/2009 4:57 PM, Phillip Pi wrote: > On Tue, Apr 07, 2009 at 04:49:06PM -0400, Christopher Schultz wrote: > >>> I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). >> Question 1: What is "Tomcat's proxy server"? >

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
On Tue, Apr 07, 2009 at 02:10:39PM -0700, Phillip Pi wrote: > > >>>I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). > > >>Question 1: What is "Tomcat's proxy server"? > > > > > >Apache Tomcat to act like a proxy server so other PCs, on the LAN, can > > >go through it to acc

RE: Help with a Tomcat issue???

2009-04-07 Thread Jason Smith
Me too. And looking at the source (via Google search), it looks like that is what is was meant to do. I'm using Sun Java JDK 1.6.0_13. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, April 07, 2009 12:48 PM To: Tomcat Users List Subje

Re: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashid, On 4/7/2009 5:08 PM, Rashid Malik wrote: > Hi, I changed port 8080 to 80 and I get page not found error. Please > note that I have another website that is running on an older version > of tomcat. Aah, you didn't mention that. Only one proce

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 4:49 PM, André Warnier wrote: > Ok Mark, I don't pretend I know how it works in Tomcat. > How does one upload a file then ? That depends on how you /want/ to upload it. If you want to use the standard HTML form-based file upload, y

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
> >>>I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). > >>Question 1: What is "Tomcat's proxy server"? > > > >Apache Tomcat to act like a proxy server so other PCs, on the LAN, can > >go through it to access the Internet. Is this not a correct way to set > >up? > > What yo

Re: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Rashid Malik
Hi, I changed port 8080 to 80 and I get page not found error. Please note that I have another website that is running on an older version of tomcat. that website is already using port 80. On that page, there is a link that connects to http://localhost/MyWebAPP/ . If I use the older version o

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread André Warnier
Phillip Pi wrote: On Tue, Apr 07, 2009 at 04:49:06PM -0400, Christopher Schultz wrote: I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). Question 1: What is "Tomcat's proxy server"? Apache Tomcat to act like a proxy server so other PCs, on the LAN, can go through it to

Re: Redirect from https to http

2009-04-07 Thread Mark Thomas
as2 wrote: > Is this possible? Yes. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Redirect from https to http

2009-04-07 Thread as2
Is this possible? Thanks x -- View this message in context: http://www.nabble.com/Redirect-from-https-to-http-tp22938216p22938216.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
On Tue, Apr 07, 2009 at 04:49:06PM -0400, Christopher Schultz wrote: > > I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). > > Question 1: What is "Tomcat's proxy server"? Apache Tomcat to act like a proxy server so other PCs, on the LAN, can go through it to access the I

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Mark Thomas
André Warnier wrote: > Mark Thomas wrote: >> André Warnier wrote: >>> Despite what you may wish and what you may have found in Google, I >>> believe that if you want to send a file, you have to do it with a >>> "multipart/form-data" content type. >> >> Nope. That is just plain wrong. >> >>> http://

Re: Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashid, On 4/7/2009 4:45 PM, Rashid Malik wrote: > To give you an example, the URL to get to the application in 4.1 is: > > http://localhost/MyWebAPP/ > > However, after shutting down tomcat 4.1, installing and configuring > tomcat 6.0, I can use th

RE: Tomcats stops on Apache restart

2009-04-07 Thread Leon Brouwers
Hello, Yes we do logrotation for the tomcat catalina.out but that happens once a night at 4 en doesn't include a kill -SOMESIGNAL command. (We use 'copytruncate' in a logrotate.d config). I have never seen tomcat's go down around this time. Groeten Leon -- Leon Brouwers System Engineer GX o

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread André Warnier
Mark Thomas wrote: André Warnier wrote: Despite what you may wish and what you may have found in Google, I believe that if you want to send a file, you have to do it with a "multipart/form-data" content type. Nope. That is just plain wrong. http://www.faqs.org/rfcs/rfc2616.html Sections 9.5

Re: Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip, On 4/7/2009 4:34 PM, Phillip Pi wrote: > I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). Question 1: What is "Tomcat's proxy server"? Are you talking about using another web server out in front of Tomcat? That woul

Migration from Tomcat 4.1 to 6.0 <<>>

2009-04-07 Thread Rashid Malik
To whom it may concern: I am new to Tomcat and anyone's help will be greatly appreciated. I have recently deployed an application in Tomcat 6.0 that works flawlessly. However, previous version of this same application was running on Tomcat 4.1. My issue is that I want to basically replace th

[SECURITY] CVE-2008-5519: Apache Tomcat mod_jk information disclosure vulnerability

2009-04-07 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vulnerability announcement: CVE-2008-5519: Apache Tomcat mod_jk information disclosure vulnerability Severity: important Vendor: The Apache Software Foundation Versions Affected: mod_jk 1.2.0 to 1.2.26 Description: Situations where faulty clients s

Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 4:29 PM, André Warnier wrote: > I would have to disagree again. Sorry, I should have done the code in a haiku. > The Tomcat you describe above is totally deterministic : it is alive > (since it can receive your request), but as so

Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread André Warnier
timmy_ wrote: Ok I solved it Centos security settings by default are enforcing so port 8080 was not available then all requests were just ignored. Which is what a "telnet (ip_address) 8080" would have told you too, quickly. -

Newbie Question with Apache Tomcat v6.0.18 in Windows XP SP2.

2009-04-07 Thread Phillip Pi
Hello! I was asked to set up a Tomcat's proxy server in Windows (using XP SP2). I am a total newbie on this and had never done this type of Web server setup before. Here is what I did so far based on reading documentations and searching (e.g., http://tomcat.apache.org/tomcat-6.0-doc/setup.html,

Re: Truststore and keystore per application

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, So, my original code was missing some important stuff (the ??? parts) and was incorrect in one place (the first two arguments to SSLContext.init() are arrays, not scalars). The following code compiles and executes on my machine. You'll need t

Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 7:57 AM, André Warnier wrote: A Schrödinger Tomcat would be one that exists multiple times, in quantum superposition. Which would probably create problems with all of them trying to listen on the same T

Re: Sun Webserver connector problem - nsapi_redirector

2009-04-07 Thread dmitriz
Rainer, That did the trick. Thanks a lot. Dmitri Rainer Jung-3 wrote: > > On 07.04.2009 01:34, dmitriz wrote: >> No, it did not help. NameTrans does not seem to work here. WebServer >> still >> looks for subfolder examples under its docroot. > > I could reproduce the problem and th reason was

Re: Truststore and keystore per application

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, On 4/7/2009 9:49 AM, Marcus Carlson wrote: > I've developed an application that sets up an encrypted socket in a > separate thread when running init() on my servlet. However, I have no > idea how to set up the truststore and keystore just for

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Mark Thomas
André Warnier wrote: > Despite what you may wish and what you may have found in Google, I > believe that if you want to send a file, you have to do it with a > "multipart/form-data" content type. Nope. That is just plain wrong. > http://www.faqs.org/rfcs/rfc2616.html > Sections 9.5 (POST) and 9.6

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread André Warnier
Andrey Razumovsky wrote: Well, I've been looking through those 15 lines last two days.. I tried Apache's HttpClient with same effect (I used FileEntity for body, not multipart). I've seen many examples in Google which send post request.. My code is just the same.. Hi. I did some research, becaus

RE: java.util.logging in tomcat 6

2009-04-07 Thread Caldarale, Charles R
> From: Mikael Brännström [mailto:mikael.brannst...@gmail.com] > Subject: java.util.logging in tomcat 6 > > I have based my tomcat/conf/logging.properties on the > examples in > http://tomcat.apache.org/tomcat-6.0-doc/logging.html The above refers primarily to Tomcat's logging rather than indiv

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrey, On 4/7/2009 10:12 AM, Andrey Razumovsky wrote: > HttpURLConnection connect = (HttpURLConnection) > url.openConnection(); > connect.setRequestMethod("POST"); > connect.setDoInput(true)

Re: Sun Webserver connector problem - nsapi_redirector

2009-04-07 Thread Rainer Jung
On 07.04.2009 21:21, Rainer Jung wrote: > Will add to the docs. Done. Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: advantages using tomcat + mod_jk

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 4/6/2009 7:41 PM, Tomas Rodriguez wrote: > > thanks for the answer about advantages of tomcat + mod_jk, ok. > I want to have a different directory for my examples of java, or web > pages, wherever, but I will don't like to have the defaul

Re:

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MT, On 4/5/2009 10:24 PM, Mighty Tornado wrote: > I have an index.jsp page with 3 links to other JSP's. > These links don't seem to work. I get the 404 error. If you're getting a 404, then your URLs are incorrect. > Do I have to register the JSP's s

Re: Sun Webserver connector problem - nsapi_redirector

2009-04-07 Thread Rainer Jung
On 07.04.2009 01:34, dmitriz wrote: > No, it did not help. NameTrans does not seem to work here. WebServer still > looks for subfolder examples under its docroot. I could reproduce the problem and th reason was a sillyness in the config file parsing of the web server (not the plugin). Remove the l

Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/7/2009 7:57 AM, André Warnier wrote: > A Schrödinger Tomcat would be one that exists multiple times, in quantum > superposition. Which would probably create problems with all of them > trying to listen on the same TCP ports. Unless of cour

java.util.logging in tomcat 6

2009-04-07 Thread Mikael Brännström
Hi, I'm trying to configure logging for my web app but the logging output is sent to 'catalina.-mm-dd.log' and 'catalina.out' instead of 'myapp.-mm-dd.log'. How can I control that? I use java.util.logging in my web app. I have based my tomcat/conf/logging.properties on the examples in htt

Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread timmy_
Ok I think VMware is not a problem anymore I have hamachi installed and its interface was interfering when I had it in bridged form that is why I initially had it on NAT. Now that I disabled hamachi's interface I am able to have bridged mode again and all of my network pcs are able to ping back

Re: Tomcats stops on Apache restart

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 4/7/2009 3:10 AM, Leon Brouwers wrote: > For instance we have a scripts which rotates the apache logfiles once a > month. I think we have about 50 tomcats (distributed across a number of > servers) of which 3 went down last month after the

Re: confiugure Lang in Tomcat

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, On 4/7/2009 11:13 AM, brunobau wrote: > I found the solution. > just configured the jsp with: text/html; charset=iso-8859-1 Note that the default content type is "text/html; charset=it0-8859-1", so you haven't actually changed anything, unless

Re: Help with a Tomcat issue???

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 4/6/2009 6:33 PM, Jason Smith wrote: > Sun's implementation of HttpURLConnector apparently creates a new > ChunkedOutputStream every time you call .getOutputStream(). That's obnoxious and completely unexpected. Latest version of Java, huh?

Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread timmy_
Ok I solved it Centos security settings by default are enforcing so port 8080 was not available then all requests were just ignored. Changing this did the job thank you all. timmy_ wrote: > > Ok I think VMware is not a problem anymore > > I have hamachi installed and its interface was i

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrey, On 4/6/2009 11:47 AM, Andrey Razumovsky wrote: > //connect.setRequestProperty("Content-Type", "text/plain"); One more thing: you should /definitely/ set the charset in the Content-Type. - -chris -BEGIN PGP SIGNATURE- Version:

Re: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread newToMina
Thanks Mark... I will try this and update the post. -- View this message in context: http://www.nabble.com/Jsp-working-fine-from-tomcat%2C-but-displaying-source-when-accessed-through-apache-%28Only-on-Firefox%29-tp22931646p22934602.html Sent from the Tomcat - User mailing list archive at Nabble.

Re: ajp_read_header: ajp_ilink_receive failed

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/6/2009 6:50 PM, John Oliver wrote: > On Mon, Apr 06, 2009 at 06:08:54PM -0400, Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> John, >> >> On 4/6/2009 5:51 PM, John Oliver wrote: >>> RHEL 5.2, httpd-2.2.

Re: ajp_read_header: ajp_ilink_receive failed

2009-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 4/6/2009 6:30 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: ajp_read_header: ajp_ilink_receive failed >> >>> [r...@mda-services ~]# rpm -qa | grep java >>> java-1.4.2-gcj-c

Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread Hassan Schroeder
On Tue, Apr 7, 2009 at 9:36 AM, timmy_ wrote: > Anyway I'll try reinstalling everything on Virtual Box...VMWare is making me > have > a lot of trouble when it shouldn't be supposed to... VMWare isn't causing you any trouble -- your *configuration* of the networking for the virtual host is causin

Re: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread Mark Thomas
newToMina wrote: > Mark, could you please explain it a little more detail and provide an example > of the proper JKmount entries. Thanks in advance ... Replace what you have previously with: JkMount /appname/* tomcat5 JkMount /appname tomcat5 Note this means you do not use the Alias or Directo

Re: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread newToMina
Mark, could you please explain it a little more detail and provide an example of the proper JKmount entries. Thanks in advance ... -- View this message in context: http://www.nabble.com/Jsp-working-fine-from-tomcat%2C-but-displaying-source-when-accessed-through-apache-%28Only-on-Firefox%29-tp229

Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread timmy_
Hey all, First of all sry if this was no the forum to ask...I wouldn't have expected VMware to be the problem since I may access internet from the virtual machine and I may also ping both ways (host-VM-Host) However I may not ping from any other pc...this might be the problem. Yes I have the

Re: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread Mark Thomas
newToMina wrote: > Thanks for the reply. The JK mount is difined as follows. The wired thing is > that first couple of page of the application is working fine. Only a > purticular page is giving this problem. (the response headers were for this > page). I have no clue on why is it happening. For s

RE: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread newToMina
Thanks for the reply. The JK mount is difined as follows. The wired thing is that first couple of page of the application is working fine. Only a purticular page is giving this problem. (the response headers were for this page). I have no clue on why is it happening. For some reason the firefox r

RE: Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread Peter Crowther
> From: newToMina [mailto:askme...@yahoo.com] > I have jsp page which displays fine when I access it directly > from tomcat. > But when the page is access through apache (mod_jk) it > displays the source code. Do you have a JkMount for the directory with the .jsp in *and* the same directory expos

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Andrey Razumovsky
Well, I've been looking through those 15 lines last two days.. I tried Apache's HttpClient with same effect (I used FileEntity for body, not multipart). I've seen many examples in Google which send post request.. My code is just the same.. And I found a nasty thing - when I run my request against G

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread David Smith
This smells like tomcat is behaving absolutely correct, but your client code isn't. Can you verify your client code is properly making the request and handling the response? It could be you aren't using HttpURLConnection correctly to upload a file. As much as you are trying to avoid it, you are

Jsp working fine from tomcat, but displaying source when accessed through apache (Only on Firefox)

2009-04-07 Thread newToMina
I have jsp page which displays fine when I access it directly from tomcat. But when the page is access through apache (mod_jk) it displays the source code. This is happening only on Firefox and on IE it works fine. Firefox is rendering the page in quirk mode when accessed through apache and render

Re: [OT] Tomcat 5.5 embedded vs Tomcat 6.0.18 embedded

2009-04-07 Thread János Löbb
On Apr 7, 2009, at 7:57 AM, André Warnier wrote: János Löbb wrote: On Apr 6, 2009, at 4:10 AM, André Warnier wrote: Caldarale, Charles R wrote: [...] The metaphysical implications of existing without a trace are rather intriguing... I am surprised that you would not have heard of stealth t

RE: confiugure Lang in Tomcat

2009-04-07 Thread Caldarale, Charles R
> From: brunobau [mailto:barbalall...@yahoo.it] > Subject: confiugure Lang in Tomcat > > I'm trying to set the Lang It (italian), in order so view the special > character (like ò,à,è) correctly in the jsp. Try looking at this: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding If that doesn't a

Re: confiugure Lang in Tomcat

2009-04-07 Thread brunobau
I found the solution. just configured the jsp with: text/html; charset=iso-8859-1 brunobau wrote: > > Hi all, > I've installed and configured tomcat under xampp with os Win. > I'm trying to set the Lang It (italian), in order so view the special > character (like ò,à,è) correctly in the jsp.

confiugure Lang in Tomcat

2009-04-07 Thread brunobau
Hi all, I've installed and configured tomcat under xampp with os Win. I'm trying to set the Lang It (italian), in order so view the special character (like ò,à,è) correctly in the jsp. I don't konw how to do do. Please could you help me? Thanks in advance. -- View this message in context: http:

RE: Help with a Tomcat issue???

2009-04-07 Thread Jason Smith
Will do. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, April 07, 2009 8:15 AM To: Tomcat Users List Subject: Re: Help with a Tomcat issue??? Jason Smith wrote: > As follow-up, I guess I would have to count this as a core Java API bug, > since the high-l

Re: Help with a Tomcat issue???

2009-04-07 Thread Mark Thomas
Jason Smith wrote: > As follow-up, I guess I would have to count this as a core Java API bug, > since the high-level functions (HttpURLConnection) allow you to routinely > emit bad markup. > > However, wouldn't it be prudent in Tomcat to recognize that something has > gone wrong with the method

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Andrey Razumovsky
I ran Tomcat on localhost and everything's the same. I don't have firewall and I disabled antivirus, so there's nothing between client and tomcat. So the problem is either in client code (or JDK?) or in Tomcat. I'm posting full client code once again to show how I'm connecting to server Thanks, An

RE: NOT AN EAGAIN STATUS

2009-04-07 Thread Tuncer Tunçer
Thanks for the response. As far as I see in log files, this error occurs on pages used for ajax. I mean I post data(and that is a few parameters, not large files) to some jsp pages, used for ajax, and they reply back. I use prototype javascript library for sending ajax requests and JSON for proces

RE: Help with a Tomcat issue???

2009-04-07 Thread Jason Smith
As follow-up, I guess I would have to count this as a core Java API bug, since the high-level functions (HttpURLConnection) allow you to routinely emit bad markup. However, wouldn't it be prudent in Tomcat to recognize that something has gone wrong with the method name earlier? Should method n

RE: Cannot read httpservlet's inputstream

2009-04-07 Thread Caldarale, Charles R
> From: Andrey Razumovsky [mailto:razumovsky.and...@gmail.com] > Subject: Re: Cannot read httpservlet's inputstream > > I'm sending POST request from Java (see code in my first message) > to Tomcat 6. But, somehow, the request comes there is GET (!) Also > Content-Length, Content-Type and other he

Truststore and keystore per application

2009-04-07 Thread Marcus Carlson
Hi, I've developed an application that sets up an encrypted socket in a separate thread when running init() on my servlet. However, I have no idea how to set up the truststore and keystore just for this application. Is this possible at all? TIA, Marcus --

RE: NOT AN EAGAIN STATUS

2009-04-07 Thread Jason Smith
First of all, I recommend you don't use 5.5.26. There was a known buffering issue with that version that is fixed in 5.5.27. If I remember correctly, the input stream of the request in a servlet was truncated at 8192 bytes. As for your original question, are you posting streaming data (large

Re: Cannot read httpservlet's inputstream

2009-04-07 Thread Andrey Razumovsky
Sure. That's where my investigations lead me to: I'm sending POST request from Java (see code in my first message) to Tomcat 6. But, somehow, the request comes there is GET (!) Also Content-Length, Content-Type and other header parameters are reset to default values (see valve trace in my second me

  1   2   >