Unexpected Annotatedclassnotfoundexception When Loading Metric Collector Class
(Doc ID 376530.1)
Last updated on OCTOBER 12, 2020
Applies to:Oracle Containers for J2EE - Version 10.1.3.0.0 and later
Information in this document applies to any platform.
You have implemented a custom metric collector for the Oracle Containers For J2EE (OC4J) component of
Oracle Application Server 10g version 10.1.3.0.0
- packaged the implementation of your custom metric in a JAR file, for example MyCustomDMSMetric.jar
- placed that JAR file in the "applib" directory of the OC4J instance where you will be using it
- added an appropriate <metric-collector> tag to the config/server.xml configuration file:
You may have also tried adding the JAR file location as a "code-source" for a <shared-library> definition in sever.xml:
and added an "import" for the shared library in the <imported-shared-libraries> section of system-application.xml:
However, at startup time you receive an AnnotatedClassNotFoundException exception, similar to the following:
It is possible that you encounter this issue while migrating an application from Oracle Application Server 10.1.2 to the 10.1.3.0.0 release.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document