This question about Configuration, Using an extension, Issue in browser: Asked

JHotDrawPlugin with IcedTea-Web (RHEL6)

We are having trouble using the JHotDrawPlugin on SL6 (based on RHEL6), while we have no problems with SL5 or SL4. I believe the main issue is that RHEL6 provides OpenJDK (and IcedTea-web) instead of Oracle's JDK.

On SL5 and SL4, everything works fine.

If I try to run jhotdraw.jar using javaws on SL6 (provided by IcedTea-web), however, I recieve a "Fatal: Read Error: Could not read or parse the JNLP file." The details of the error are as follows:

net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file.
        at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:491)
        at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:199)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:51)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:165)
Caused by: net.sourceforge.jnlp.ParseException: Invalid XML document syntax.
        at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1251)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:177)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:162)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:148)
        at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
        ... 5 more
Caused by: net.sourceforge.nanoxml.XMLParseException: XML Parse Exception during parsing of the XML definition at line 1: Expected: '<' but got: 'P'
        at net.sourceforge.nanoxml.XMLElement.expectedInput(XMLElement.java:1143)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:503)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:464)
        at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1247)
        ... 9 more
Caused by: 
net.sourceforge.jnlp.ParseException: Invalid XML document syntax.
        at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1251)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:177)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:162)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:148)
        at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
        at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:199)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:51)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:165)
Caused by: net.sourceforge.nanoxml.XMLParseException: XML Parse Exception during parsing of the XML definition at line 1: Expected: '<' but got: 'P'
        at net.sourceforge.nanoxml.XMLElement.expectedInput(XMLElement.java:1143)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:503)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:464)
        at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1247)
        ... 9 more
Caused by: 
net.sourceforge.nanoxml.XMLParseException: XML Parse Exception during parsing of the XML definition at line 1: Expected: '<' but got: 'P'
        at net.sourceforge.nanoxml.XMLElement.expectedInput(XMLElement.java:1143)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:503)
        at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:464)
        at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1247)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:177)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:162)
        at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:148)
        at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
        at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:199)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:51)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:165)

Any suggestions for using the JHotDrawPlugin with IcedTea-web would be greatly appreciated.

-- DevinBougie - 28 Feb 2012

Looks like the problem is that the JNLP is not valid XML:

http://icedtea.classpath.org/wiki/IcedTea-Web#Invalid_XML

-- DevinBougie - 28 Feb 2012
 

QuestionForm edit

Subject Configuration, Using an extension, Issue in browser
Extension JHotDrawPlugin
Version Foswiki 1.1.3
Status Asked
Related Topics
Topic revision: r1 - 28 Feb 2012, DevinBougie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy