Hi Tomcat Users,

I'm struggling with a Java Web Start application. My application and the jnlp file are both correct. Everything works fine if I use a different server. But if I use Tomcat, I'll get the following error:

JNLParseException[ Could not parse launch file. Error at line 0.]

and

java.io.EOFException: encoding.error.not.xml

It seems to be the case that the file gets delivered, but not recognized as an valid xml-file for JWS. I use Tomcat 6 and the mime-type has already been set properly. I created therefore a servlet which generates exactly the same output and made it available as a *.jnlp file via the web.xml:

        PrintWriter output = null;
        response.setContentType("application/x-java-jnlp-file");
        response.setCharacterEncoding(UTF8);
        ...

And now everything works fine! But it shouldn't be neccessary to write a servlet for such a simple task. The fault must be somewhere in my config files for the Tomcat. Does anybody know where the problem may be?

Andreas




------------------------------------------------
Andreas Junius, Computer Specialist (Dipl.-Inf.)

8 Laurence Street
Rostrevor SA 5073
P: +61 (0) 8 7226 6430
M: +61 (0) 4 3543 9521
www.java-nerd.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to