Add the jars to the META-INF/Manifest of the .ear file. Be doubly sure have "Classpath: " in there.
Thanks for your answer, but it doesn't help. The same error.
Is there no standard way to do that?
Are there other ideas?
Somebody who knows if the relative pathes of libs must be included in the classpath entry of the manifest? f.e.
Meta-inf of the service-jar
Classpath /lib/lib1.jar /lib/lib2.jar ... or
Classpath ../lib/lib1.jar ../lib/lib2.jar ...
or something else?
Is the classpath entry generally necessary? If yes; why is this not handelt by the <library-directory>lib</library-directory> entry of the applciation.xml?
Found it by myself. thanks. The libs should not be declared in a <library-directory>. The should seperatly defined in such a way:
Seems to be a simple answer, but now I'm running in a classloader conflict, which I describe in a separate task.