Troubleshooting
Problem
The java service code works well in 8.2, but in 9.6, it cannot be compiled.
In 8.2, the filename is opensaml-2.5.1.jar(1321KB) and in 9.6, it is opensaml-2.5.1-2.jar (5460KB).
The code can be compiled when removing the opensaml-2.5.1-2.jar file.
The error message seen is the following:
"The source was saved, but was not compiled due to the following errors:
/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/xml/util/IDIndex.java):23: error: package net.jcip.annotations does not exist
import net.jcip.annotations.NotThreadSafe;
^
/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/xml/util/IDIndex.java):30: error: cannot find symbol
@NotThreadSafe
^
symbol: class NotThreadSafe
/dev/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/xml/util/AttributeMap.java):26: error: package net.jcip.annotations does not exist
import net.jcip.annotations.NotThreadSafe;
^
/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/xml/util/AttributeMap.java):40: error: cannot find symbol
@NotThreadSafe
^
symbol: class NotThreadSafe
/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/saml2/core/Attribute.java):32: error: duplicate class: org.opensaml.saml2.core.Attribute
public interface Attribute extends SAMLObject, AttributeExtensibleXMLObject {
^
/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/saml1/core/AttributeStatement.java):45: error: cannot access Attribute
public List <Attribute> getAttributes();
^
bad source file: /dsk01/bcgov/dev/SoftwareAG/WS-Stack/lib/shared/opensaml-2.5.1-2.jar(org/opensaml/saml1/core/Attribute.java)
file does not contain class org.opensaml.saml1.core.Attribute"
Document Location
Worldwide
Log InLog in to view more of this document
Historical Number
Product Build 9.6
Was this topic helpful?
Document Information
Modified date:
19 March 2025
UID
ibm17191267