Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

classloading with prefer-web-inf-classes

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
Posts: 67463
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mirocon conect", please check your private messages for an important administrative matter.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic