So, for completeness sake, I will let future Googlers know how I got around this problem. No matter which way I changed the Context Listener to and from the Jetty to Sun's and back again, I couldn't get the java advanced image library and RPCs working at the same time. So, I tried something a bit more drastic.
I created a standalone java program that takes in the request of the image that needs to be loaded via a Socket and returns a proprietary VERSION of that image. The object returned doesn't need JAI. So, I no longer switch contexts but on the server side I create a Client that creates a socket connection, and requests the image and hten returns the image as before to the website.
Since the JAI is only accessed on a standalone process that gets kicked off in the regular JVM, it works great! Super huge work around, but the good thing is it WORKS. I get my imagery and RPC functionality. I can move on.
The best thing would to remove JAI entirely from the server, but I can't do that right now.
On Tue, Nov 19, 2013 at 1:53 PM, Sean Loughran <sloughran@gmail.com> wrote:
Hi Jens,So I tried putting it back after calling the ImageIO library and that didn't help the ImageIO problem. And I just confirmed even copying and pasting your code (thank you for providing that by the way) also cause the ImageIO stuff not to work. I get my usual error.Grrrrrrrrrrrrrrr. This stuff is pretty frustrating.-SeanOn Mon, Nov 18, 2013 at 3:04 PM, Jens <jens.nehlmeier@gmail.com> wrote:
Maybe you missed copying it, but you never set tcl back. I never had the issue you are describing.
Thats how I do it normally: https://gist.github.com/jnehlmeier/7534390-- J.--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/QvduX97Swfg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment