com.webmethods.sc.LocalizedException error when using java service to get roles from MWS

Hi,

I am working with the CDS API on version 12 to get roles information from the MWS database and my java service is failing to compile with the below error.

class file for com.webmethods.sc.LocalizedException not found

A few posts on empower suggests that I add the commons-lang.jar file, and this is not working. Below are the jar files already on my project:

    wm-directory-components.jar
wm-directory-components.jar
wm-directory.jar
wm-scg-core.jar
commons-lang.jar
commons-lang.jar

Please can you assist.

Thanks,
Keneilwe

Is it failing to compile, or failing to run the service?

FYI: The com.webmethods.sc.LocalizedException class lives in the common/lib/wm-scg-core.jar file.

It looks to me that IntegrationServer has not included the common/lib/wm-scg-core.jar in the application classpath so that may explain why the class would not be found when you run the service.

This issue needs to be formally tracked. Could you please help by filing an SI (Support Incident) with GS (Global Support)? Please include all the necessary information so that GS may record and also review for any other issues that match. If GS needs to create an iTrac, then whichever R&D engineer handles this case will be expecting a clear description of the issue, logs and any other details in order to efficiently be able to help. Providing this info in the beginning will make the process go faster.

1 Like

Thanks Eric,

It is failing to compile.

I’ll do as you requested.

Regards,
Keneilwe

Hi,

I had a similar problem. See: http://tech.forums.softwareag.com/techjforum/posts/list/58057.page

Had to add (I am using 9.9 and needed to access calendar info):

  • to project classpath - basedir/Designer/eclipse/plugins/com.softwareag.sc.core_9.9.0.0000-0175.jar
  • to project classpath - basedir/common/lib/wm-calendar.jar
  • to code - import com.webmethods.sc.calendar.*;

Best Regards,