on 04-26-2005 7:31 AM
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.