• 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

Struts 2 custom ClassLoader

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, ranchers!
I'm working on a big java web project, which is based on Struts 2 framework. Now we are going to do some refactoring and split the project up in some parts: core and other auxillary functionality modules. Core classes located under classpath, but all the auxillary functionality classes will be moved to database and loaded via our custom ClassLoader. Among these classes there are some Stuts actions and part of the struts.xml file with appropriate mapping.
How can I make Struts 2 aware of my custom ClassLoader in order to load these auxillary action classes from DB. Currently Struts cannot find and instantinate any of them
Any suggestions would be very appreciated!

Thank you in advance for any useful answer.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic