We're updating the issue view to help you get more done. 

The shared.loader property replacement creates wrong entries

Description

When starting Tomcat Standalone Local in the file catalina.properties the value for shared.loader is always replaced with the following values:

1 ${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

It is not possible to change this. This is done without respect if already is a value in catalina.properties. For example:

1 shared.loader=${catalina.home}/shared/lib/*.jar

is changed to:

1 shared.loader=${catalina.base}/shared/classes,${catalina.base}/share/lib/*.*+jar${cata*ina.home}/shared/lib/*.jar

The delimiter is missing!!!

The cause for this is the way the properties file is changed. This is done in DefaultFileHandler.java and is a simple String.replace:

1 replace("shared.loader=", "shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar")

Status

Assignee

S. Ali Tokmen

Reporter

Wolfgang Klaus

Components

Fix versions

Affects versions

1.4.16

Priority

High