Mailing List dev-list@magnolia.info Message #14454
From: "JIRA (on behalf of Fabrizio Giustina)" <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:33: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=17166#action_17166 ]

Fabrizio Giustina commented on MAGNOLIA-2270:
---------------------------------------------


> it is not correct to give false impression that you can't run as a war file in general.

the check here is clean and simple:
- 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.



> 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