You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by olip <ol...@googlemail.com> on 2009/11/26 16:05:50 UTC

winstone-maven-plugin and Exception pages

Hi everyone!

I am using the winstone-maven-plugin to compile my tapestry5 webapp to an
executable jar file with integrated webserver.

Here is the instruction I followed:
http://blog.jayway.com/2008/11/28/executable-war-with-winstone-maven-plugin/

I am using T5: 5.1.0.5 

Everything works fine except the exception page which is not shown (only a
white page is shown instead) when running as winstone exectuable jar. When I
run the same webapp with the maven jetty plugin this works well too.

Has anyone had the same problem and found a solution to this?

Thanks 
Oliver
-- 
View this message in context: http://n2.nabble.com/winstone-maven-plugin-and-Exception-pages-tp4071580p4071580.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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


Re: winstone-maven-plugin and Exception pages

Posted by olip <ol...@googlemail.com>.
The response is a 500 Internal  Server Error (I think instead of the
exception page)

See winstone debug output: 

ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exception: Cannot create directory on the server to upload
files: /bla/jasdjkaksd/asasds.
org.apache.tapestry5.runtime.ComponentEventException: Cannot create
directory on the server to upload files: /bla/jasdjkaksd/asasds.
	at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
	at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:56)
	at
org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1943)
	at
$PageRenderRequestHandler_125311168e0.handle($PageRenderRequestHandler_125311168e0.java)
	at
$PageRenderRequestHandler_125311168ca.handle($PageRenderRequestHandler_125311168ca.java)
	at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
	at
$ComponentRequestHandler_125311168cf.handlePageRender($ComponentRequestHandler_125311168cf.java)
	at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
	at $Dispatcher_125311168d2.dispatch($Dispatcher_125311168d2.java)
	at $Dispatcher_125311168c8.dispatch($Dispatcher_125311168c8.java)
	at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245)
	at org.equanda.t5gui.services.T5guiModule$7.service(T5guiModule.java:188)
	at $RequestFilter_125311168c7.service($RequestFilter_125311168c7.java)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at cellHTS.services.AppModule$1.service(AppModule.java:113)
	at $RequestFilter_125311168c6.service($RequestFilter_125311168c6.java)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.equanda.tapestry5.services.EquandaModule$1.service(EquandaModule.java:84)
	at $RequestFilter_125311168c5.service($RequestFilter_125311168c5.java)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:778)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:767)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90)
	at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81)
	at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
	at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103)
	at $RequestHandler_125311168c9.service($RequestHandler_125311168c9.java)
	at $RequestHandler_125311168bc.service($RequestHandler_125311168bc.java)
	at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:197)
	at
org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
	at
$HttpServletRequestHandler_125311168be.service($HttpServletRequestHandler_125311168be.java)
	at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
	at
$HttpServletRequestHandler_125311168be.service($HttpServletRequestHandler_125311168be.java)
	at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
	at
$HttpServletRequestFilter_125311168ba.service($HttpServletRequestFilter_125311168ba.java)
	at
$HttpServletRequestHandler_125311168be.service($HttpServletRequestHandler_125311168be.java)
	at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:726)
	at
$HttpServletRequestHandler_125311168be.service($HttpServletRequestHandler_125311168be.java)
	at
$HttpServletRequestHandler_125311168b8.service($HttpServletRequestHandler_125311168b8.java)
	at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
	at
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
	at java.lang.Thread.run(Thread.java:613)
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Cannot
create directory on the server to upload files: /bla/jasdjkaksd/asasds.
	at cellHTS.pages.CellHTS2.checkAndCreateUploadDirectory(CellHTS2.java:3373)
	at cellHTS.pages.CellHTS2.onActivate(CellHTS2.java:319)
	at cellHTS.pages.CellHTS2.dispatchComponentEvent(CellHTS2.java)
	at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:902)
	at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
	... 51 more
[Winstone 2009/11/26 16:19:26] - Webapp classloader found class locally when
loading #0
[Winstone 2009/11/26 16:19:26] - Called ServletResponse.getOutputStream()
[Winstone 2009/11/26 16:19:26] - ServletOutputStream flushed
[Winstone 2009/11/26 16:19:26] - Keep-alive requested but no content length
set. Setting to 10 bytes
[Winstone 2009/11/26 16:19:26] - Headers prepared for writing: [Server:
Winstone Servlet Engine v0.9.10, X-Tapestry-ErrorMessage: Cannot create
directory on the server to upload files: /bla/jasdjkaksd/asasds ,
Content-Type: text/html;charset=UTF-8, Content-Encoding: gzip,
Content-Length: 10, Connection: Keep-Alive, Date: Thu, 26 Nov 2009 15:19:26
GMT, X-Powered-By: Servlet/2.5 (Winstone/0.9.10)]
[Winstone 2009/11/26 16:19:26] - Committing response body
[Winstone 2009/11/26 16:19:26] - Response: HTTP/1.1 500 Internal Server
Error
[Winstone 2009/11/26 16:19:26] - Header: Server: Winstone Servlet Engine
v0.9.10
[Winstone 2009/11/26 16:19:26] - Header: X-Tapestry-ErrorMessage: Cannot
create directory on the server to upload files: /bla/jasdjkaksd/asasds.





olip wrote:
> 
> Hi everyone!
> 
> I am using the winstone-maven-plugin to compile my tapestry5 webapp to an
> executable jar file with integrated webserver.
> 
> Here is the instruction I followed:
> http://blog.jayway.com/2008/11/28/executable-war-with-winstone-maven-plugin/
> 
> I am using T5: 5.1.0.5 
> 
> Everything works fine except the exception page which is not shown (only a
> white page is shown instead) when running as winstone exectuable jar. When
> I run the same webapp with the maven jetty plugin this works well too.
> 
> Has anyone had the same problem and found a solution to this?
> 
> Thanks 
> Oliver
> 

-- 
View this message in context: http://n2.nabble.com/winstone-maven-plugin-and-Exception-pages-tp4071580p4071655.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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