Last week, I think, someone wrote in with a problem they were having
with WebWork in WebLogic with configuration, and I didn't understand
what the problem was. Now I do. 

The problem I'm having is this:

We've now got 2 war files which use WebWork which are deployed as part
of a single ear file. I've also got some base classes and utils which
are in a util jar file which is in the ear file and referenced from the
war files via the manifest classpath. WebWork is also deployed as a jar
file in the ear file and referenced in the manifest of the war files. If
WebWork is deployed in the WEB-INF/lib of the war files, then the ear
classloader can't find the WebWork classes when it loads the files from
the util jar file, and I get NoClassDefFoundErrors.

The problem here is that Configuration keeps a static reference to the
ConfigurationImpl, so if you have multiple web apps using WebWork,
whichever one gets loaded first will load its configuration, and the
other web apps will be unable to find their configuration. 

My suggestion is to make the Configuration storage pluggable, with a
default StaticConfigurationStore, and store the Configuration in the
ServletContext somehow... Still working that part out.... 

Thoughts? Suggestions?

Jason

--
Jason Carreira
Technical Architect, Notiva Corp.
phone:  585.240.2793
  fax:  585.272.8118
email:  [EMAIL PROTECTED]
---
Notiva - optimizing trade relationships (tm)
 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to