posted 9 years ago
understanding prefer-web-inf-classes .I have my ear with one ejb-jar and one war file.My ejb just needs jars for logging and rest all my jars are needed by war. prior to prefer-web-inf-classes I placed my logging jars in ear root and specified in ejb-manifest so that ejb classloader loads finds these classes and as war classloader is a child of ejb it will find them in parent. Now I am using prefer-web-inf-classes , this makes war classloader as parent and ejb classloader as child of war classloader is this right ?
Assuming this I placed logging jars inside web-inf and removed classpath entry from ejb manifest, because war classloader gets called first and loads are the jar files and when my ejb classloader starts it will find logging jars in parent classloader war , but I am still getting class not found for my logging jars , Please help me understand prefer-web-inf-classes how does it change classloading
Assuming this I placed logging jars inside web-inf and removed classpath entry from ejb manifest, because war classloader gets called first and loads are the jar files and when my ejb classloader starts it will find logging jars in parent classloader war , but I am still getting class not found for my logging jars , Please help me understand prefer-web-inf-classes how does it change classloading
