How to use the activation library on SAP J2EE Engine
Hi my friends:
This post is referent to a note and their solution, but the solution is not clearly:
One wants to use the activation library provided together with the j2ee engine from an own library.
Reason and Prerequisites:
One wants to use the activation library from an own library but a ClassNotFound Exception or a NoClassDefFoundError keeps showing up.
For J2EE Engine 6.30/6.40:
To avoid the above mentioned exceptions one has to specify circular references between the activation library and the specific resource. When the engine's classloading system sees such references it creates a common loader for these resources and avoids the issue.
Some one knows how to do circular references in my program????,
i can use web applications or web dynpro with SAP Developer Studio Kit.
Java code needs jar (class files) during
1. Compile (build) time
2. Run Time.
In the scenario you have mentioned the activation jar need to be made available on the NWDS for build reference and the j2ee activation jar should be reference during runtime.
Incase of webdynpro project you can add the activation jar to the project as an external jar file on Java Build Path.
For more info on 'Circular Reference' refer
Hope that helps.