IBM Support

webMethods Knowlegebase : "bad source file: /SoftwareAG/WSStack/lib/shared/opensaml-2.5.1-2.jar" message when trying to compile code in v 9.6 (1763154)

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

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"Web Services Stack (WSS)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

Product Build 9.6

Document Information

Modified date:
19 March 2025

UID

ibm17191267