Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

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.5/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 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. If you've installed version 1.5 of the JDK, you must use version 1.4.2 as the target JDK for XWS-Security.

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.5, as described in Setting Build Properties.

Compiler Errors

If you use Application Server 2004Q4 Beta for the container, you will get compiler errors. This is because this version of the Application server has an earlier (pre-FCS) version of XWS-Security bundled into it. The compilation errors that you see are because these classes do not exist in the pre-FCS version of XWS-Security shipped in this version of the Application Server.

Divider
Download
FAQ
History
PrevHomeNext API
Search
Feedback
Divider

All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.