[MAGNOLIA-1233] RootPath not correctly initialized under jetty/resin - leading to jndi issues Created: 28/Nov/06  Updated: 23/Jan/13  Resolved: 28/Nov/06

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.0 Final
Fix Version/s: 3.0.1

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-958 Magnolia 3.0 RC2 does not deploy prop... Closed
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

 Description   

... because the ServletContext.getRealPath("") returns a path with a trailing slash, we can't correctly determine the webapp name: since the default repos config xml uses ${magnolia.webapp} to configure the bindName, we try to lookup the Repository on jndi with an empty name, which resulted in the ClassCastException found in the logs attached to MANGNOLIA-958.



 Comments   
Comment by Magnolia International [ 28/Nov/06 ]

fixed on svn

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