• Post Reply Bookmark Topic Watch Topic
  • New Topic

classloading with prefer-web-inf-classes  RSS feed

 
miro swartch
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66259
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mirocon conect", please check your private messages for an important administrative matter.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!