[ 
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

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to