dev@glassfish.java.net

heads up: upcoming name space change on Java EE 7 schemas in GlassFish workspace

From: Hong Zhang <hong.hz.zhang_at_oracle.com>
Date: Tue, 12 Feb 2013 12:03:03 -0500

Hi,
    Linda has recently updated the Java EE 7 schemas to use the new name
space (from "http://java.sun.com/xml/ns/javaee" to
"http://xmlns.jcp.org/xml/ns/javaee") in the master schema workspace.
And I plan to bring this set of the changes into GlassFish workspace in
the next day or two. With this change, any existing applications
containing deployment descriptors referencing Java EE 7 schemas will
need to be updated to use the new namespace, otherwise the deployment
would fail as the schema validation would fail for the deployment
descriptors. Note, this change does not affect any applications
containing deployment descriptors referencing earlier versions of the
Java EE schemas.

    The following are the updated or newly added Java EE 7 schemas with
new namespace.
application_7.xsd
application-client_7.xsd
connector_1_7.xsd
ejb-jar_3_2.xsd
javaee_7.xsd
jsp_2_3.xsd
javaee_web_services_1_4.xsd
javaee_web_services_client_1_4.xsd
web-app_3_1.xsd
web-common_3_1.xsd
web-fragment_3_1.xsd
web-facelettaglibrary_2_2.xsd
web-facesconfig_2_2.xsd

     The following is an example of what the required change will look
like for an application containing deployment descriptors referencing
Java EE 7 schemas (this is an ejb dev test that I have updated). The
test application uses an ejb-jar.xml referencing ejb-jar_3_2.xsd (one of
the Java EE 7 schemas), and the namespace needs to be changed from
"http://java.sun.com/xml/ns/javaee" to
"http://xmlns.jcp.org/xml/ns/javaee".

Index: ejb32/methodintf/descriptor/ejb-jar.xml
===================================================================
--- ejb32/methodintf/descriptor/ejb-jar.xml (revision 59303)
+++ ejb32/methodintf/descriptor/ejb-jar.xml (working copy)
@@ -1,5 +1,5 @@
  <?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.2"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_2.xsd">
+<ejb-jar xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.2"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/ejb-jar_3_2.xsd">
<display-name>ejb31_timer31_schedule_ann</display-name>
    <enterprise-beans>
      <session>

     Please let me know if you have any questions. I will send another
email when this changes is checked in.

    Thanks,

- Hong