[ http://jira.magnolia.info/browse/MAGNOLIA-1287?page=all ]
Philipp Bracher resolved MAGNOLIA-1287.
---------------------------------------
Resolution: Fixed
Assignee: Philipp Bracher (was: Boris Kraft)
I do now first initialize the servername, rootpath, and webapp property. I
changed the code so that all properties are imediately set in the magnolia
SystemProperty
> weblogic: properties loading fails
> ----------------------------------
>
> Key: MAGNOLIA-1287
> URL: http://jira.magnolia.info/browse/MAGNOLIA-1287
> Project: Magnolia
> Issue Type: Bug
> Affects Versions: 3.0.1
> Reporter: Philipp Bracher
> Assigned To: Philipp Bracher
> Fix For: 3.0.2
>
>
> From the dev list:
> I think I finally figured out what was happening here.
>
> If we take a look at the contextInitialized method of the PropertyInitializer
> class we'll start to see...
>
> public void contextInitialized(ServletContextEvent sce) {
> final ServletContext context = sce.getServletContext();
>
> loadBeanProperties();
>
> loadModuleProperties();
> ....
>
> When we call loadModuleProperties, we end up call
> ModuleRegistration.getInstance.getModuleDefinitions, and this calls
> ModuleRegistration.init() which calls readModuleDefinitions.
>
> Now readModuleDefinitions calls ClasspathResourceUtils.findResources.
>
> Here we check to see if we have a URLClassLoader. Apparently with WLS 9.2, we
> do not.
>
> So, we call Path.getAbsoluteFileSystemPath which eventually tries to get this
> property:
>
> SystemProperty.getProperty(SystemProperty.MAGNOLIA_APP_ROOTDIR);
>
> However, I found that this property has not been set.
>
> So, I tweaked the PropertyInitializer class to update the contextInitialized
> method to call initRootPath.
>
> However, this only sets the MAGNOLIA_APP_ROOTDIR property in the local
> instance, so I also added to the SystemPropety static instance while I was
> there.
>
> I see there is also a overloadWithSystemProperties method I could have used
> too. I'm not sure if this is the best way to fix it, or if I'm looking at all
> this right. However, the magnolia application now deploys successfully for me.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------