From: James M. <jma...@ps...> - 2003-04-30 13:46:49
|
At 02:01 PM 4/30/2003 +0200, Richard didier wrote: >Le Mercredi 30 Avril 2003 11:02, Martin Desruisseaux a =E9crit : > > >To good news is that wmsserver runs perfectly now ! I have put back the >original wmsserver-0.1.jar, shut down and start tomcat engine (instead of >reloading the wepapp from the tomcat manager app) and the getOutputStream() >problem has disappeared ! That's good news, though looking at the following it is hard to work out=20 why.... >To resume what I did since the problem appeared is : >1.- add CATALINA_OPTS=3D'-Djava.awt.headless=3Dtrue' (this has corrected X= server >problem after restart tomcat engine) OK >2.- add &format=3Djpeg to the above url (this has made wmsservlet working= after >reloading webapp) OK, so that narrows it to the PNG code. >3.- check writability of $CATALINA_HOME/temp (was OK) So, it had nothing to do with that. >4.- add imagedatasource-0.1.jar to WEB-INF/lib and remove &format=3Djpeg= (still >getOutputStream() problem, after reloading webapp) imagedatasource is unrelated to this problem (its for reading images) so it= =20 should have no effect on anything. >5.- add System.out.println(image) at line 495 of WMSServlet.java (see= above), >recompile, add the wmsserver-0.1.jar to WEB-INF/lib (reload webapp, result >OK) >6.- put back the orignal wmsserver-0.1.jar to WEB-INF/lib (and restart= tomcat >engine cause tomcat instead of reloading webapp, result is now good with= png) Its hard to see that anything at all has changed, you have gone back to the= =20 original jar file and none of the other steps change anything... >I don't what thinking of that, hope it gives you hints ? Its a little hard to say what the problem might have been, I'm glad that it= =20 is working for you now though. If the problem comes back please don't hesitate to let us know, the more=20 feedback we get the better :) James |