Starting Tomcat 7 with Cargo generates warnings on not existing folders in classloader path

Description

When starting a Tomcat 7 container in Cargo a warnings [1] are shown as Cargo configures classloaders in catalina.properties with folders that do not exist. Either those folders must not be configured or Cargo must create empty folders as Tomcat 7 expects

Steps to reproduce:
1) Create the cargo-archetype-webapp-single-module archetype [3]
2) Update the tomcat6x profile to tomcat7x and use as zip URL
http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.zip
3) run mvn clean verify -P tomcat7x

[1] Warning:
[WARNING] [talledLocalContainer] WARNING: Problem with directory /cargo/cargo-webapp/target/cargo/configurations/tomcat7x/common/classes, exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] May 07, 2014 11:49:45 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory /cargo/cargo-webapp/target/cargo/configurations/tomcat7x/common/lib, exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] May 07, 2014 11:49:45 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory /cargo/cargo-webapp/target/cargo/configurations/tomcat7x/shared/classes, exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] May 07, 2014 11:49:45 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory /cargo/cargo-webapp/target/cargo/configurations/tomcat7x/shared/lib, exists: [false], isDirectory: [false], canRead: [false]

[2] In catalina.properties:
common.loader=${catalina.base}/common/classes,${catalina.base}/common/lib/*.jar ...
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

[3] mvn archetype:generate -DarchetypeGroupId=org.codehaus.cargo-DarchetypeArtifactId=cargo-archetype-webapp-single-module -DarchetypeVersion=1.4.8
0

Status

Assignee

Savas Ali Tokmen

Reporter

AJ Banck

Components

Fix versions

Affects versions

1.4.8

Priority

Major