• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebLogic JSP Class Loading

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my web application deployed in WL8.1 sp2 I tried to create a java bean under web-inf\classes folder and accessed it using the useBean tag in my JSP. the JSP compiler threw cannot resolve symbol Class XYZBean error. But when i bundled that in a package( pack.XYZBean ), JSP was compiled Succesfully. Can any one throw some light on why this is happening??? My assumption is the web-app class loader will be the parent of the JSP class loader, in which case this error shouldnt occur. Also pls provide some links on WL8.1 class loader hierarchy.

Thanks
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is actually a problem with the JSP Specification. It does not specify how classes in the default package should be treated... (ie. should they be made available to the JSP Page or not). In reality this hardly matters because your classes should always be in some package.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

you can find information on weblogic classloading at:
http://e-docs.bea.com/wls/docs81/programming/classloading.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic