This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 149642 - JNLP file doesn't declare DOCTYPE
Summary: JNLP file doesn't declare DOCTYPE
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Java Webstart (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 172749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-09 14:57 UTC by Chris Webster
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2008-10-09 14:57:13 UTC
When I attempt to validate a JNLP file, I get the following message in the output window:

XML validation started.

Checking file:/C:/test/test.jnlp...
cvc-elt.1: Cannot find the declaration of element 'jnlp'. [2] 
XML validation finished.

which seems to indicates a missing schema.
Comment 1 Milan Kubec 2008-10-10 08:19:32 UTC
Well even the JNLP spec is not very strict about the DTD (part of JNLP spec):

"It is expected that future versions of this specification will introduce new elements and attributes that would be
backwards-compatible with the current DTD. Thus, a JNLP Client should not reject a JNLP file that has extra attributes
or elements. This means that the JNLP Client's XML parser must not validate the JNLP XML file against any fixed version
of the JNLP DTD. However, like any XML parser, if the JNLP XML file contains a DOCTYPE declaration that specifies which
DTD it uses, the parser may choose to validate the JNLP file against that specified DTD. If the JNLP file does not
contain a DOCTYPE declaration, the parser may not validate the file against any DTD."

Workaround is simple, if you want to validate just following line to the JNLP file:

<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
Comment 2 Milan Kubec 2009-05-18 13:01:54 UTC
Lowering priority since it's not required by JNLP spec.
Comment 3 Milan Kubec 2009-09-22 11:39:56 UTC
*** Issue 172749 has been marked as a duplicate of this issue. ***
Comment 4 Antonin Nebuzelsky 2010-01-11 04:29:17 UTC
Changing the default component owner to tzezula.
Comment 5 Martin Balin 2016-07-07 08:38:47 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss