Hi,

apparently there's an issue with a Click-based app running in the Winstone embedded serverlet container.

If application mode is set to production, the URLs of click resources get the version number (e.g. "_2.3.0-M1") appended.

Now when I set compression-enabled to true, the browser gets only a 10 Byte response when accessing f.e. control.css (see winstone debug log [1]). Accessing /test/click/control_2.3.0-M1.css in Tomcat works. Accessing /test/click/control.css works in both containers (winstone log see [2]).

Has anyone an idea what could be wrong?

Greetings

Axel

[1] Debug log accessing /test/click/control_2.3.0-M1.css:

[Winstone 2011/01/25 14:47:39] - URI Line: GET /test/click/control_2.3.0-M1.css HTTP/1.1
[Winstone 2011/01/25 14:47:39] - Header: Host: localhost:8888
[Winstone 2011/01/25 14:47:39] - Header: Connection: keep-alive
[Winstone 2011/01/25 14:47:39] - Header: Referer: http://localhost:8888/test/login.htm
[Winstone 2011/01/25 14:47:39] - Header: Cache-Control: no-cache
[Winstone 2011/01/25 14:47:39] - RHPool: Using pooled handler thread - used: 2 unused: 3
[Winstone 2011/01/25 14:47:39] - Thread leaving wait state
[Winstone 2011/01/25 14:47:39] - Header: Pragma: no-cache
[Winstone 2011/01/25 14:47:39] - Allocating request/response: RequestHandlerThread[#3] [Winstone 2011/01/25 14:47:39] - ReqPool: Using pooled request - available: 8 [Winstone 2011/01/25 14:47:39] - RspPool: Using pooled response - available: 8
[Winstone 2011/01/25 14:47:39] - Parsing socket info
[Winstone 2011/01/25 14:47:39] - Waiting for a URI line
[Winstone 2011/01/25 14:47:39] - Header: Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 [Winstone 2011/01/25 14:47:39] - Header: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Ubuntu/10.10 Chromium/8.0.552.237 Chrome/8.0.552.237 Safari/534.10
[Winstone 2011/01/25 14:47:39] - Header: Accept-Encoding: gzip,deflate,sdch
[Winstone 2011/01/25 14:47:39] - Header: Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 [Winstone 2011/01/25 14:47:39] - Header: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 [Winstone 2011/01/25 14:47:39] - Header: Cookie: JSESSIONID=8ecca1c56f60bedfebd20f9af6bf5cc6 [Winstone 2011/01/25 14:47:39] - Found cookie: [Cookie: name=JSESSIONID value=8ecca1c56f60bedfebd20f9af6bf5cc6 version=0 path=null domain=null comment=null maxAge=-1 secure=false] [Winstone 2011/01/25 14:47:39] - Found session cookie: 8ecca1c56f60bedfebd20f9af6bf5cc6 prefix:/t5s [Winstone 2011/01/25 14:47:39] - Starting request on host:[default] with id: 1295963252442 [Winstone 2011/01/25 14:47:39] - URL Match - path: /click/control_2.3.0-M1.css [Winstone 2011/01/25 14:47:39] - Cached filter chain available for cacheKey=REQUEST:URI:/click/control_2.3.0-M1.css
[Winstone 2011/01/25 14:47:39] - Processing with RD: default
[Winstone 2011/01/25 14:47:39] - FORWARD: servlet=default, path=/click/control_2.3.0-M1.css
[Winstone 2011/01/25 14:47:39] - Resetting buffer - discarding 0 bytes
[Winstone 2011/01/25 14:47:39] - Executing Filter: PerformanceFilter
[Winstone 2011/01/25 14:47:39] - Setting the request encoding from (null) to UTF-8
[Winstone 2011/01/25 14:47:39] - URL Match - path: /click/control.css
[Winstone 2011/01/25 14:47:39] - FORWARD: servlet=default, path=/click/control.css
[Winstone 2011/01/25 14:47:39] - Resetting buffer - discarding 0 bytes
[Winstone 2011/01/25 14:47:39] - Cached filter chain available for cacheKey=FORWARD:URI:/click/control.css
[Winstone 2011/01/25 14:47:39] - default: path=/click/control.css
[Winstone 2011/01/25 14:47:39] - Called ServletResponse.getOutputStream()
[Winstone 2011/01/25 14:47:39] - Called ServletResponse.getOutputStream()
[Winstone 2011/01/25 14:47:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:47:39] - Headers prepared for writing: [Server: Winstone Servlet Engine v0.9.10, Expires: Sun, 24 Jan 2016 13:47:39 GMT, Cache-Control: max-age=157680000, Content-Type: text/css;charset=UTF-8, Last-Modified: Tue, 25 Jan 2011 13:29:57 GMT, Content-Encoding: gzip, Vary: Accept-Encoding, Connection: Close, Date: Tue, 25 Jan 2011 13:47:39 GMT, X-Powered-By: Servlet/2.5 (Winstone/0.9.10)]
[Winstone 2011/01/25 14:47:39] - Committing response body
[Winstone 2011/01/25 14:47:39] - Response: HTTP/1.1 200 OK
[Winstone 2011/01/25 14:47:39] - Header: Server: Winstone Servlet Engine v0.9.10 [Winstone 2011/01/25 14:47:39] - Header: Expires: Sun, 24 Jan 2016 13:47:39 GMT
[Winstone 2011/01/25 14:47:39] - Header: Cache-Control: max-age=157680000
[Winstone 2011/01/25 14:47:39] - Header: Content-Type: text/css;charset=UTF-8 [Winstone 2011/01/25 14:47:39] - Header: Last-Modified: Tue, 25 Jan 2011 13:29:57 GMT
[Winstone 2011/01/25 14:47:39] - Header: Content-Encoding: gzip
[Winstone 2011/01/25 14:47:39] - Header: Vary: Accept-Encoding
[Winstone 2011/01/25 14:47:39] - Header: Connection: Close
[Winstone 2011/01/25 14:47:39] - Header: Date: Tue, 25 Jan 2011 13:47:39 GMT
[Winstone 2011/01/25 14:47:39] - Header: X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
[Winstone 2011/01/25 14:47:39] - Written 10 bytes to response body
[Winstone 2011/01/25 14:47:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:47:39] - Written 10 bytes to response body
[Winstone 2011/01/25 14:47:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:47:39] - Written 10 bytes to response body
[Winstone 2011/01/25 14:47:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:47:39] - Written 10 bytes to response body
[Winstone 2011/01/25 14:47:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:47:39] - Written 10 bytes to response body
[Winstone 2011/01/25 14:47:39] - Finishing request id:  1295963252442
[Winstone 2011/01/25 14:47:39] - ReqPool: Request released - available: 9
[Winstone 2011/01/25 14:47:39] - RspPool: Response released - available: 9
[Winstone 2011/01/25 14:47:39] - Processed complete request: headerParseTime=2ms totalTime=4ms path=/test/click/control_2.3.0-M1.css [Winstone 2011/01/25 14:47:39] - RHPool: Releasing handler thread - used: 1 unused: 4
[Winstone 2011/01/25 14:47:39] - Thread entering wait state

[2] Debug log accessing /test/click/control.css:

[Winstone 2011/01/25 14:50:39] - URI Line: GET /test/click/control.css HTTP/1.1
[Winstone 2011/01/25 14:50:39] - Header: Host: localhost:8888
[Winstone 2011/01/25 14:50:39] - Header: Connection: keep-alive
[Winstone 2011/01/25 14:50:39] - Header: Cache-Control: no-cache
[Winstone 2011/01/25 14:50:39] - Header: Pragma: no-cache
[Winstone 2011/01/25 14:50:39] - Header: Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 [Winstone 2011/01/25 14:50:39] - Header: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Ubuntu/10.10 Chromium/8.0.552.237 Chrome/8.0.552.237 Safari/534.10
[Winstone 2011/01/25 14:50:39] - Header: Accept-Encoding: gzip,deflate,sdch
[Winstone 2011/01/25 14:50:39] - Header: Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4 [Winstone 2011/01/25 14:50:39] - Header: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 [Winstone 2011/01/25 14:50:39] - Header: Cookie: JSESSIONID=8ecca1c56f60bedfebd20f9af6bf5cc6 [Winstone 2011/01/25 14:50:39] - Found cookie: [Cookie: name=JSESSIONID value=8ecca1c56f60bedfebd20f9af6bf5cc6 version=0 path=null domain=null comment=null maxAge=-1 secure=false] [Winstone 2011/01/25 14:50:39] - Found session cookie: 8ecca1c56f60bedfebd20f9af6bf5cc6 prefix:/test [Winstone 2011/01/25 14:50:39] - Starting request on host:[default] with id: 1295963431946
[Winstone 2011/01/25 14:50:39] - URL Match - path: /click/control.css
[Winstone 2011/01/25 14:50:39] - Cached filter chain available for cacheKey=REQUEST:URI:/click/control.css
[Winstone 2011/01/25 14:50:39] - Processing with RD: default
[Winstone 2011/01/25 14:50:39] - FORWARD: servlet=default, path=/click/control.css
[Winstone 2011/01/25 14:50:39] - Resetting buffer - discarding 0 bytes
[Winstone 2011/01/25 14:50:39] - Executing Filter: PerformanceFilter
[Winstone 2011/01/25 14:50:39] - Setting the request encoding from (null) to UTF-8
[Winstone 2011/01/25 14:50:39] - Executing Filter: UrlRewriteFilter
[Winstone 2011/01/25 14:50:39] - default: path=/click/control.css
[Winstone 2011/01/25 14:50:39] - Called ServletResponse.getOutputStream()
[Winstone 2011/01/25 14:50:39] - Called ServletResponse.getOutputStream()
[Winstone 2011/01/25 14:50:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:50:39] - Headers prepared for writing: [Server: Winstone Servlet Engine v0.9.10, Expires: Wed, 25 Jan 2012 13:50:39 GMT, Cache-Control: max-age=31536000, Content-Type: text/css;charset=UTF-8, Last-Modified: Tue, 25 Jan 2011 13:29:57 GMT, Content-Encoding: gzip, Vary: Accept-Encoding, Content-Length: 743, Connection: Keep-Alive, Date: Tue, 25 Jan 2011 13:50:39 GMT, X-Powered-By: Servlet/2.5 (Winstone/0.9.10)]
[Winstone 2011/01/25 14:50:39] - Committing response body
[Winstone 2011/01/25 14:50:39] - Response: HTTP/1.1 200 OK
[Winstone 2011/01/25 14:50:39] - Header: Server: Winstone Servlet Engine v0.9.10 [Winstone 2011/01/25 14:50:39] - Header: Expires: Wed, 25 Jan 2012 13:50:39 GMT
[Winstone 2011/01/25 14:50:39] - Header: Cache-Control: max-age=31536000
[Winstone 2011/01/25 14:50:39] - Header: Content-Type: text/css;charset=UTF-8 [Winstone 2011/01/25 14:50:39] - Header: Last-Modified: Tue, 25 Jan 2011 13:29:57 GMT
[Winstone 2011/01/25 14:50:39] - Header: Content-Encoding: gzip
[Winstone 2011/01/25 14:50:39] - Header: Vary: Accept-Encoding
[Winstone 2011/01/25 14:50:39] - Header: Content-Length: 743
[Winstone 2011/01/25 14:50:39] - Header: Connection: Keep-Alive
[Winstone 2011/01/25 14:50:39] - Header: Date: Tue, 25 Jan 2011 13:50:39 GMT
[Winstone 2011/01/25 14:50:39] - Header: X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
[Winstone 2011/01/25 14:50:39] - Written 743 bytes to response body
[Winstone 2011/01/25 14:50:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:50:39] - Written 743 bytes to response body
[Winstone 2011/01/25 14:50:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:50:39] - Written 743 bytes to response body
[Winstone 2011/01/25 14:50:39] - ServletOutputStream flushed
[Winstone 2011/01/25 14:50:39] - Written 743 bytes to response body
[Winstone 2011/01/25 14:50:39] - Finishing request id:  1295963431946
[Winstone 2011/01/25 14:50:39] - ReqPool: Request released - available: 9
[Winstone 2011/01/25 14:50:39] - RspPool: Response released - available: 9
[Winstone 2011/01/25 14:50:39] - Processed complete request: headerParseTime=1ms totalTime=3ms path=/test/click/control.css [Winstone 2011/01/25 14:50:39] - Allocating request/response: RequestHandlerThread[#3] [Winstone 2011/01/25 14:50:39] - ReqPool: Using pooled request - available: 8 [Winstone 2011/01/25 14:50:39] - RspPool: Using pooled response - available: 8
[Winstone 2011/01/25 14:50:39] - Parsing socket info
[Winstone 2011/01/25 14:50:39] - Waiting for a URI line


Reply via email to