tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: vhost - servlets not available
Date Thu, 13 Jan 2011 16:27:38 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johannes,

On 1/13/2011 10:44 AM, Johannes Stein wrote:
> 2011/1/13 Christopher Schultz <chris@christopherschultz.net>:
>> What is your default host? It's specified in the <Engine> "defaultHost"
>> attribute.
> 
> As default host is set:
> 
> <Engine name="Catalina" defaultHost="localhost">

Okay, that can certainly cause problems if you introduce a new vhost and
don't use it properly. I'm not saying that's the problem, here... just
mentioning that if all you did was introduce another vhost, that's the
only thing I can think of.

>> Aren't those the same URL?
> 
> Oh, i made a mistake. When im changing the url-pattern in the
> servlet-mapping to <url-pattern>/StartService</url-pattern> the
> servlet will be avaible.
> If i use the default config of gwt which sets:
> <url-pattern>/tudom.start.Start/StartService</url-pattern> the Servlet
> will not be available.
> 
>> What is the full URL that GWT is trying to access -- including server
>> name? I suspect that the introduction of the VHOST has exposed a flaw in
>> the URL building in your GWT interface's URLs.
> 
> The files are on the same hast. I call directly the same vhost.
> Try it by yourself: http://srv2.tudom.de/Start.html

Here's the conversation as my web browser sees it (beware: it's long):

http://srv2.tudom.de/Start.html

GET /Start.html HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"7758-1293708879000"
Last-Modified: Thu, 30 Dec 2010 11:34:39 GMT
Content-Type: text/html
Content-Length: 7758
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/style.css

GET /style.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"8475-1294758302000"
Last-Modified: Tue, 11 Jan 2011 15:05:02 GMT
Content-Type: text/css
Content-Length: 8475
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/tudom.start.Start.nocache.js

GET /tudom.start.Start/tudom.start.Start.nocache.js HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"5833-1294928014000"
Last-Modified: Thu, 13 Jan 2011 14:13:34 GMT
Content-Type: text/javascript
Content-Length: 5833
Date: Thu, 13 Jan 2011 16:03:41 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/E42B631CE3333C5C735AF15B86EBDC85.cache.html

GET /tudom.start.Start/E42B631CE3333C5C735AF15B86EBDC85.cache.html HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"101720-1294928014000"
Last-Modified: Thu, 13 Jan 2011 14:13:34 GMT
Content-Type: text/html
Content-Length: 101720
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/gwt/standard/standard.css

GET /tudom.start.Start/gwt/standard/standard.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
Etag: W/"26804-1288100650000"
Last-Modified: Tue, 26 Oct 2010 13:44:10 GMT
Content-Type: text/css
Content-Length: 26804
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/Tudomde.css

GET /tudom.start.Start/Tudomde.css HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://srv2.tudom.de/Start.html

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1042
Date: Thu, 13 Jan 2011 16:03:42 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/StartService

POST /tudom.start.Start/StartService HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: text/x-gwt-rpc; charset=utf-8
X-GWT-Permutation: E42B631CE3333C5C735AF15B86EBDC85
X-GWT-Module-Base: http://srv2.tudom.de/tudom.start.Start/
Referer: http://srv2.tudom.de/Start.html
Content-Length: 140
Pragma: no-cache
Cache-Control: no-cache
6|0|4|http://srv2.tudom.de/tudom.start.Start/|77F7A9C4DE1B7D8F905266A054AE883D|tudom.start.client.rpc.StartService|getNewQuizList|1|2|3|4|0|
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1045
Date: Thu, 13 Jan 2011 16:03:44 GMT
- ----------------------------------------------------------
http://srv2.tudom.de/tudom.start.Start/StartService

POST /tudom.start.Start/StartService HTTP/1.1
Host: srv2.tudom.de
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0C)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: text/x-gwt-rpc; charset=utf-8
X-GWT-Permutation: E42B631CE3333C5C735AF15B86EBDC85
X-GWT-Module-Base: http://srv2.tudom.de/tudom.start.Start/
Referer: http://srv2.tudom.de/Start.html
Content-Length: 140
Pragma: no-cache
Cache-Control: no-cache
6|0|4|http://srv2.tudom.de/tudom.start.Start/|77F7A9C4DE1B7D8F905266A054AE883D|tudom.start.client.rpc.StartService|getTopQuizList|1|2|3|4|0|
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 1045
Date: Thu, 13 Jan 2011 16:03:44 GMT
- ----------------------------------------------------------

****************
****************
****************

It looks like the problematic request is for this URL:
http://srv2.tudom.de/tudom.start.Start/StartService

This will match your "srv2.tudom.de" domain, but probably will not match
your webapp's deployment path, which is /tudom. I would have expected
the URL to be:

http://srv2.tudom.de/tudom/tudom.start.Start/StartService

I even get a 404 when I access this. Can you verify your configuration
again? Post as much of your config as you can.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0vJ/kACgkQ9CaO5/Lv0PBJIQCgkkb5WwoSEJfY8X+GfJXl2l6G
U24AoJdpl/rMsKY3YNtGOXKjKYiVnloH
=fdFz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message