tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Junius" <andr...@junius.info>
Subject jnlp-file doesn't work
Date Mon, 17 Aug 2009 04:37:52 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message