Mailing List dev-list@magnolia.info Message #14455
From: "JIRA (on behalf of Jan Haderka)" <dev-list@magnolia.info>
Subject: [JIRA] Commented: (MAGNOLIA-2270) Better logs and avoid NPEs when magnolia is started from an unexpanded war
Date: Thu, 17 Jul 2008 12:59:13 +0200 (CEST)
To: dev-list@magnolia.info


    [ http://jira.magnolia.info/browse/MAGNOLIA-2270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167#action_17167 ]

Jan Haderka commented on MAGNOLIA-2270:
---------------------------------------

{quote}
    * if servletContext.getRealPath() returns null you are using an unexpanded war in a container where magnolia will not run unexpanded.
    * If you are using a expanded war or a unexpanded war in a server where magnolia can run you will never see this message. If servletContext.getRealPath() returns null it means that you are running a unexpanded war in a server where this is not supported and the log clearly helps you in fixing your configuration.
{quote}
My take on this is as follows:
* if {{servletContext.getRealPath()}} returns null, either server is not configured properly or magnolia is not configured properly (if it still relies on the value). And configuration change doesn't necessarily mean that you have to expand the war file. It can be many different things, for example Weblogic 10 has a flag that can be put in deployment descriptors specifying if you want to get real value or not.

So the statement in the error message ??Magnolia needs to be run from an expanded webapp?? is not correct. The correct message in this case would be "_Real path can't be obtained. Magnolia is not configured properly and therefore unable to start. Please refer to Magnolia documentation for installation instructions specific for your environment (OS, app server)._"

> Better logs and avoid NPEs when magnolia is started from an unexpanded war
> --------------------------------------------------------------------------
>
> Key: MAGNOLIA-2270
> URL: http://jira.magnolia.info/browse/MAGNOLIA-2270
> Project: Magnolia
> Issue Type: Improvement
> Affects Versions: 3.6 RC1
> Reporter: Fabrizio Giustina
> Assignee: Fabrizio Giustina
> Fix For: 3.6
>
>
> Magnolia doesn't work with if started from an unexpanded war, as we know, but we also should give a better output.
> 3.6-rc1 dies with an unhelpful NPE in MgnlServletContextListener

--
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

        
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster