Add
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
line of code in the domain.xml file at glassfish4\glassfish\domains\domain1\config\domain.xml folder
inside <java-config> </java-config> tag as :-
<java-config>
.
.
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
</java-config>
Allow 4848 port or stop the firewall and selinux.
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
line of code in the domain.xml file at glassfish4\glassfish\domains\domain1\config\domain.xml folder
inside <java-config> </java-config> tag as :-
<java-config>
.
.
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
</java-config>
Allow 4848 port or stop the firewall and selinux.