Nick
Nick

Reputation: 2845

What is the correct doctype for glassfish-application-client.xml?

I get an error deploying an application to GlassFish Open Source Edition 3.1.2 (build 23). GlassFish complains that I've made a typo in my DOCTYPE tag, but I copied the DOCTYPE verbatim from the Oracle documentation! I used the following doctype:

<!DOCTYPE glassfish-application-client PUBLIC ""-//GlassFish.org//DTD 
GlassFish Application Server 3.1 Application Client 6.0//EN"" 
"http://glassfish.org/dtds/glassfish-application-client_6_0-1.dtd">

What is the correct one?

Upvotes: 1

Views: 419

Answers (1)

Nick
Nick

Reputation: 2845

The correct doctype has a "Java EE" before the "Application Client" (on the second line) and does not have the weird quadruple quotes. I have informed Oracle about this error in their documentation.

<!DOCTYPE glassfish-application-client PUBLIC "-//GlassFish.org//DTD 
GlassFish Application Server 3.1 Java EE Application Client 6.0//EN" 
"http://glassfish.org/dtds/glassfish-application-client_6_0-1.dtd">

Upvotes: 3

Related Questions