Troubleshooting XWS-Security Applications

This section lists some possible errors and the possible causes for these errors. For more troubleshooting information, read the online release notes at http://java.sun.com/webservices/docs/1.6/xws-security/ReleaseNotes.html.

Error: at XMLCipher.getInstance (Unknown Source)
[java] Exception in thread "main" 
java.lang.NullPointerException
[java] at 
com.sun.org.apache.xml.security.encryption.XMLCipher.getInstan
ce(Unknown Source)  

Solution: Configure a JCE provider as described in Configuring a JCE Provider.

Error: UnsupportedClassVersionError
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/
Main (Unsupported major.minor version 49.0) 

Solution: Install version 1.4.2_04 or higher of Java 2 Standard Edition (J2SE). If you had an older version of the JDK, you will also have to reinstall the Application Server so that it recognizes this as the default version of the JDK.

Error: DeployTask not found

Solution: Verify that the jwsdp.home property in the build.properties file for the sample is set correctly to the location where you installed the Java WSDP version 1.6, as described in Setting Build Properties. A common error is to not escape the backslash character when running on the Microsoft Windows platform.

Compiler Errors

If you use a version of the Application Server prior to 2005Q1 for the container, you may get compiler errors because this version of the Application Server has an earlier version of XWS-Security bundled into it. The compilation errors that you see are because these classes do not exist in the earlier version of XWS-Security shipped in these earlier versions of the Application Server.