RE: specifying the content-type

2011-06-28 Thread Lentes, Bernd
> > > Andre Warnier wrote: > > > > > On 6/1/2011 1:04 PM, Lentes, Bernd wrote: > >>> Okay. Can you post your servlet code, then? > >> I have to ask our developers. > > > > Okay. > > > >>> There is no default Content-Type for HTTP responses, so > >>> getting a response directly from Tomcat might cau

Re: specifying the content-type

2011-06-11 Thread Rainer Jung
On 07.06.2011 21:29, Christopher Schultz wrote: > Bernd, > > On 6/7/2011 2:23 PM, Lentes, Bernd wrote: >> Christopher Schultz wrote: >>> >>> How did you do it? If you use >> CONTENT="text/html" />, it should override any Content-Type >>> sent in the HTTP response headers > >> Yes, we used this. B

Re: specifying the content-type

2011-06-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/7/2011 2:23 PM, Lentes, Bernd wrote: Christopher Schultz wrote: How did you do it? If you use , it should override any Content-Type sent in the HTTP response headers Yes, we used this. But http://de.selfhtm

Re: specifying the content-type

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/7/2011 2:23 PM, Lentes, Bernd wrote: > Christopher Schultz wrote: >> >> How did you do it? If you use > CONTENT="text/html" />, it should override any Content-Type >> sent in the HTTP response headers > > Yes, we used this. But > http://

RE: specifying the content-type

2011-06-07 Thread Lentes, Bernd
Christopher Schultz wrote: > > Lentes, > > On 6/7/2011 11:36 AM, Lentes, Bernd wrote: > > first we tried to set the content-type in the ... > > section in the html file. That didn't work. > > How did you do it? If you use CONTENT="text/html" />, it should override any Content-Type > sent in the

Re: specifying the content-type

2011-06-03 Thread Pid
On 03/06/2011 10:22, André Warnier wrote: > Pid wrote: >> On 01/06/2011 13:13, Lentes, Bernd wrote: >>> Andre Warnier wrote: >>> Your configuration of mod_jk below looks correct (except a small detail, see JkMount). But I must say that it is difficult to believe that the request

RE: specifying the content-type

2011-06-03 Thread Lentes, Bernd
Pid wrote: > > > >> > >> Your configuration of mod_jk below looks correct (except a small > >> detail, see JkMount). > >> But I must say that it is difficult to believe that the request is > >> actually forwarded to Tomcat, and that Tomcat then fails > to recognise > >> the file as a JSP page, and

Re: specifying the content-type

2011-06-03 Thread André Warnier
Pid wrote: On 01/06/2011 13:13, Lentes, Bernd wrote: Andre Warnier wrote: Your configuration of mod_jk below looks correct (except a small detail, see JkMount). But I must say that it is difficult to believe that the request is actually forwarded to Tomcat, and that Tomcat then fails to recogn

Re: specifying the content-type

2011-06-03 Thread Pid
On 01/06/2011 13:13, Lentes, Bernd wrote: > Andre Warnier wrote: > >> >> Your configuration of mod_jk below looks correct (except a >> small detail, see JkMount). >> But I must say that it is difficult to believe that the >> request is actually forwarded to Tomcat, and that Tomcat then >> fails to

Re: specifying the content-type

2011-06-01 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 1:04 PM, Lentes, Bernd wrote: Okay. Can you post your servlet code, then? I have to ask our developers. Okay. There is no default Content-Type for HTTP responses, so getting a response directly fro

Re: specifying the content-type

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 1:04 PM, Lentes, Bernd wrote: >> >> Okay. Can you post your servlet code, then? > > I have to ask our developers. Okay. >> There is no default Content-Type for HTTP responses, so >> getting a response directly from Tomcat might c

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Martin Kuen wrote: > > Hi Bernd, > > I think your colleagues forgot/didn't want to set the > content-type in the servlet(-code)? Yes, i also think they forgot. They are Bioinformatics and don't know much about protocols and web servers. > > text/plain is apache default for anything it doesn't kn

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Christopher Schulz wrote: > > On 6/1/2011 5:18 AM, Lentes, Bernd wrote: > > I use JKMount, and DocumentRoot of httpd and webapps of > tomcat are not > > overlapping. > > > > [snip] > > > > We don't use jsp, we have servlets. > > Okay. Can you post your servlet code, then? I have to ask our devel

Re: specifying the content-type

2011-06-01 Thread Martin Kuen
Hi Bernd, I think your colleagues forgot/didn't want to set the content-type in the servlet(-code)? text/plain is apache default for anything it doesn't know (if I recall correctly) If no content-type is set by the servlet, no content-type is delivered. No content-type set by the servlet causes *

Re: specifying the content-type

2011-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/1/2011 5:18 AM, Lentes, Bernd wrote: > I use JKMount, and DocumentRoot of httpd and webapps of tomcat are > not overlapping. > > [snip] > > We don't use jsp, we have servlets. Okay. Can you post your servlet code, then? There is no def

RE: RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Igor Cimicov wrote: > > Are you using virtual host maybe? If so, the JkMount > directive has to be inside VirtualHost and not in the global > apache conf file. > > Igor No. Bernd Helmholtz Zentrum München Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH) Ingolstädter Landstr. 1 85764

Re: RE: specifying the content-type

2011-06-01 Thread Igor Cicimov
Are you using virtual host maybe? If so, the JkMount directive has to be inside VirtualHost and not in the global apache conf file. Igor On Jun 1, 2011 10:14 PM, "Lentes, Bernd" wrote: Andre Warnier wrote: > > Your configuration of mod_jk below looks correct (except a > small detail,... The con

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Andre Warnier wrote: > > Your configuration of mod_jk below looks correct (except a > small detail, see JkMount). > But I must say that it is difficult to believe that the > request is actually forwarded to Tomcat, and that Tomcat then > fails to recognise the file as a JSP page, and returns it as

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Pid wrote: > > On 01/06/2011 10:55, Lentes, Bernd wrote: > > lrwxrwxrwx 1 root root 20 Apr 18 16:33 webapps -> > /srv/tomcat6/webapps/ > > What is in the webapps dir? A directory called 'mouseidgenes'? > Yes. > If so, what is the file tree in that directory? > vm53200-12:~ # l /srv/tomcat

Re: specifying the content-type

2011-06-01 Thread Pid
On 01/06/2011 10:55, Lentes, Bernd wrote: > lrwxrwxrwx 1 root root 20 Apr 18 16:33 webapps -> /srv/tomcat6/webapps/ What is in the webapps dir? A directory called 'mouseidgenes'? If so, what is the file tree in that directory? What is "/mouseidgenes/InputData"? Is it a servlet or a JSP? p

Re: specifying the content-type

2011-06-01 Thread Pid
On 01/06/2011 11:04, André Warnier wrote: >> JkMount /mouseidgenes/* appl01 > > This will forward a request like "/mouseidgenes/index.jsp", but will not > forward the URL "/mouseidgenes". You may want to add > JkMount /mouseidgenes appl01 There is a syntax method to address this situat

Re: specifying the content-type

2011-06-01 Thread André Warnier
Lentes, Bernd wrote: Charles Caldarale wrote: when talking with a web browser directly to tomcat (port 8080), the web page is shown correctly. Are you sure the original request on port 80 is actually making it through httpd all the way to Tomcat? The symptoms you're reporting are characterist

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Andre Warnier wrote: > Lentes, Bernd wrote: > > Hi, > > > > first, i'm new to tomcat and i'm not a java developer. > > You have all my sympathy. > > > My collegues developed a web application i have to deploy > now. I'm using tomcat6 on a sles 11 sp1 box. > > I configured a httpd (apache 2.2.10) i

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Christopher Schultz wrote: > > On 5/31/2011 2:09 PM, Lentes, Bernd wrote: > > box. I configured a httpd (apache > > 2.2.10) in front of the tomcat, which communicates with > tomcat using > > AJP. > > Do you actually require httpd for your setup? If Tomcat works > fine on it's own, maybe that's ho

RE: specifying the content-type

2011-06-01 Thread Lentes, Bernd
Charles Caldarale wrote: > > > when talking with a web browser directly to tomcat (port 8080), the > > web page is shown correctly. > > Are you sure the original request on port 80 is actually > making it through httpd all the way to Tomcat? The symptoms > you're reporting are characteristic of

Re: specifying the content-type

2011-05-31 Thread André Warnier
Lentes, Bernd wrote: Hi, first, i'm new to tomcat and i'm not a java developer. You have all my sympathy. My collegues developed a web application i have to deploy now. I'm using tomcat6 on a sles 11 sp1 box. I configured a httpd (apache 2.2.10) in front of the tomcat, which communicates w

Re: specifying the content-type

2011-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 5/31/2011 2:09 PM, Lentes, Bernd wrote: > box. I configured a httpd (apache > 2.2.10) in front of the tomcat, which communicates with tomcat using > AJP. Do you actually require httpd for your setup? If Tomcat works fine on it's own, maybe

RE: specifying the content-type

2011-05-31 Thread Caldarale, Charles R
> From: Lentes, Bernd [mailto:bernd.len...@helmholtz-muenchen.de] > Subject: RE: specifying the content-type > when talking with a web browser directly to tomcat (port 8080), > the web page is shown correctly. Are you sure the original request on port 80 is actually making it th

RE: specifying the content-type

2011-05-31 Thread Lentes, Bernd
> > Hi, > > first, i'm new to tomcat and i'm not a java developer. > My collegues developed a web application i have to deploy > now. I'm using tomcat6 on a sles 11 sp1 box. > I configured a httpd (apache 2.2.10) in front of the tomcat, > which communicates with tomcat using AJP. > When i open on