[MAGNOLIA-1268] Spaces in installation path make init fail with tomcat 5.5 Created: 13/Dec/06  Updated: 23/Jan/13  Resolved: 13/Dec/06

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

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:
relation
is related to MAGNOLIA-1075 startup problems: application path wi... 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   

From Cristina Belderrain
I've observed this error happening on December 11. Unfortunately, I haven't kept a copy of the logs and they've been wiped out when I reinstalled Tomcat. So I'll try to leave here the config data you need:

Which version of Magnolia: 3.0.1 CE
Your operating system: XP Pro (localized to Brazilian Portuguese)
Memory size: 1 GB
Amount of memory allocated to java: 512 MB
Tomcat version: 5.5.20
Tomcat folder before: C:\Tomcat 5.5
Tomcat folder after: C:\Tomcat-5.5.20
JVM used by Tomcat is in folder: jre1.5.0_09/bin/client
JAVA_HOME points to folder: jdk1.5.0_09/bin

The space character was replaced by %20 in the logs... This gave me the first hint to what could be happening.

Hope this helps,

Cristina

Here's an interesting bit of logs:
WARN info.magnolia.cms.util.ClasspathResourcesUtil ClasspathResourcesUtil.java(collectFiles:131) 12.12.2006 15:45:23 missing file: C:\tomcat%205.5.20\webapps
\magnoliaPublic\WEB-INF\lib\magnolia-module-workflow-3.0.1.jar
WARN info.magnolia.cms.util.ClasspathResourcesUtil ClasspathResourcesUtil.java(collectFiles:131) 12.12.2006 15:45:23 missing file: C:\tomcat%205.5.20\webapps
\magnoliaPublic\WEB-INF\lib\magnolia-taglib-cms-3.0.1.jar
WARN info.magnolia.cms.util.ClasspathResourcesUtil ClasspathResourcesUtil.java(collectFiles:131) 12.12.2006 15:45:23 missing file: C:\tomcat%205.5.20\webapps
\magnoliaPublic\WEB-INF\lib\magnolia-taglib-utility-3.0.1.jar
WARN info.magnolia.cms.util.ClasspathResourcesUtil ClasspathResourcesUtil.java(collectFiles:131) 12.12.2006 15:45:23 missing file: C:\tomcat%205.5.20\webapps
\magnoliaPublic\WEB-INF\lib\mail-1.4.jar



 Comments   
Comment by Magnolia International [ 13/Dec/06 ]

This issue was first described and fixed in MAGNOLIA-1075. Creating a new one, since there have been multiple fixes. This will be fixed and released with the next release, post 3.0.1

Comment by Magnolia International [ 13/Dec/06 ]

Note that this specific issue is related to URLClassLoader returning encoded URLs, and URL.getFile() not decoding the paths. So we do the decoding manually.
Tomcat 5.0 doesnt seem to trigger this problem, while Tomcat5.5 does.

Tomcat 5.5 and Tomcat 5.0 both use a org.apache.catalina.loader.WebappClassLoader which is subclass of java.net.URLClassLoader, so I can only assume the implementation of the former somehow changed between those versions.

See MAGNOLIA-1075 for initial report.

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