cancel
Showing results for 
Search instead for 
Did you mean: 

Missing library with Application Configuration Management

Former Member
0 Kudos

Hello,

I want to use the Application Configuration Management in a Servlet. I added in the context menu of the J2EE Web Project the additional library "configuration."

I copied the program code from the NWDS Documentation:

// get ApplicationConfigHandlerFactory instance from JNDI

ApplicationConfigHandlerFactory appCfgHdlFctry = (ApplicationConfigHandlerFactory)ctx.lookup("ApplicationConfiguration");

// request ApplicationConfigurationHandler instance from the factory

ApplicationConfigurationHandler cfgHandler = appCfgHdlFctry.getApplicationConfigurationHandler();

Then I got the error message:

This compilation unit indirectly references the missing type com.sap.engine.frame.core.configuration.ConfigurationException (typically some required class file is referencing a type outside the classpath)

Does anybody know, which further additional libraries I need to add?

Thanks,

Juergen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

the missing type is contained in the frame.jar that's located in \usr\sap\<SID>\<Instance>\j2ee\cluster\server0\bin\system directory of your Web AS. You can add this JAR to the build path of your project so that the dependence is resolved and your compilation (hopefully!) goes through (sorry, this is more of a workaround than a general solution, but at the moment I have no other in hand).

Later on, upon deployment on the Web AS I think you don't need to reference explicitly this JAR, as an implicit reference to the corresponding classloader should be defined.

Hope that helps!

Former Member
0 Kudos

Thanks,

as far as I understand this is a bug in the Library definition of the configuration lib. It should include frame.jar

Regards

Answers (0)