[MAGNOLIA-122] double period '../webapps/magnolia/' in web.xml causes startup failure Created: 29/Sep/04  Updated: 23/Jan/13  Resolved: 22/Oct/04

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.0 Final
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Andy Assignee: Sameer Charles
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 2000 Professional (all available updates applied)


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The 'webapps\magnolia\WEB-INF\web.xml' as currently provided for download contains a double period preceeding all relative path names, for example:

<init-param>
<param-name>magnolia.cache.startdir</param-name>
<param-value>../webapps/magnolia/cache</param-value>
</init-param>

This produces the following error upon startup:

log4j:ERROR Could not read configuration file [../webapps/magnolia/WEB-INF/config/log4j.properties].
java.io.FileNotFoundException: ..\webapps\magnolia\WEB-INF\config\log4j.properties

The resolution is simply to replace the double periods with a single period, for example search for '../webapps/magnolia' and replace with './webapps/magnolia' in the web.xml:

<init-param>
<param-name>magnolia.cache.startdir</param-name>
<param-value>./webapps/magnolia/cache</param-value>
</init-param>



 Comments   
Comment by Andy [ 29/Sep/04 ]

I think it has already been mentioned here, but when run as a service full paths must be specified or the same error occurs

Comment by Pascal Mangold [ 22/Oct/04 ]

Invalid

Generated at Mon Feb 12 03:14:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.