You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by gonzalomp87 <go...@gmail.com> on 2012/10/06 18:40:57 UTC

Re: BufferedImage in Tapestry

I look the headers that tomcat return. 

[18:05:12.747] GET
http://localhost:8080/dicom-1.0.0/mostrarimagenpage/1.3.6.1.4.1.9328.50.3.10887
[HTTP/1.1 500 Error Interno del Servidor 424ms]

and inside show 2 fields where I think is the problem

x-Tapestry-ErrorMessage:
org.apache.tapestry5.ioc.internal.OperationException
Content-Type: text/html;charset=UTF-8

In my code I tried change the content-type with this lines:

@Meta("tapestry.response-content-type=image/JPEG")
@AuthenticationPolicy(AuthenticationPolicyType.AUTHENTICATED_USERS)
public class MostrarImagenPage 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/BufferedImage-in-Tapestry-tp5714465p5716694.html
Sent from the Tapestry - User 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: BufferedImage in Tapestry

Posted by gonzalomp87 <go...@gmail.com>.
Solved!!!!! 

I solved it adding a few lines to the server.xml file in tomcat / conf
Add appContextProtection="false" inside the tag
 <Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>



<Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" 
		appContextProtection="false"/>





--
View this message in context: http://tapestry.1045711.n5.nabble.com/BufferedImage-in-Tapestry-tp5714465p5716734.html
Sent from the Tapestry - User 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