It's not a secret anymore!
The moose likes Struts and the fly likes Struts 2 custom ClassLoader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 custom ClassLoader" Watch "Struts 2 custom ClassLoader" New topic

Struts 2 custom ClassLoader

Andriy Pererva
Ranch Hand

Joined: Jul 19, 2009
Posts: 73
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.

SCJP 6.0(95%), SCWCD 5(94%), SCJD (working on B&S v.2.3.1)
David Newton

Joined: Sep 29, 2008
Posts: 12617
I agree. Here's the link:
subject: Struts 2 custom ClassLoader
It's not a secret anymore!