Web Services application running on Web Server
7.0 throws “NAMESPACE_ERR: Unable to create envelope from given source”
exception.
This issue is with the Java API for XML Processing JAR file, primarily
the xerces.jar file part of JDK version 1.5.0_08 or later.
Because Web Server 7.0 uses JAXP JAR files of JDK version 1.5.0_09, the issue
is seen on Web Server. Latest JAXP JAR files of Web Services 2.0 pack has
the fix for this issue but the fixed JAR files are not yet part of JDK software.
Workaround
Use the JAXP 1.3.1 JAR files instead of JAXP JAR files co-packaged with
JDK software.
Follow the steps below:
-
Create endorsed directory if it does not
exist under <JRE>/lib directory.
-
Place the JAXP 1.3.1 JAR files in the endorsed directory.
Or,
Pass the java.endorsed.dirs system
property as a JVM option in <instance_dir>/config/server.xml file.
-
Set the property to the directory containing the JAXP 1.3.1
JAR files. For Example:
<jvm>
<jvm-options>-Djava.endorsed.dirs=/opt/SUNWjax/share/lib</jvm-options>
</jvm>
|