tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] [Created] (MTOMCAT-194) Odd error message in switching from Codehaus to Maven Tomcat6 plugin
Date Sat, 08 Dec 2012 23:43:21 GMT
Glen Mazza created MTOMCAT-194:

             Summary: Odd error message in switching from Codehaus to Maven Tomcat6 plugin
                 Key: MTOMCAT-194
             Project: Apache Tomcat Maven Plugin
          Issue Type: Bug
          Components: tomcat6
    Affects Versions: 2.0
         Environment: Ubuntu, JDK 7, CXF 2.6.x branch.
            Reporter: Glen Mazza
            Assignee: Olivier Lamy (*$^¨%`£)
            Priority: Minor

Hi, in the CXF JAX-RS (REST) plugin, if I switch from the Codehaus Tomcat plugin to the Tomcat6
plugin (not Tomcat7 because this 2.6.x branch of CXF needs to be Java 5 compatible) and run
"mvn clean install" on a project generated from the archetype it fails with a strange error
of "Document base /media/work1/opensource/testrest/target/${" not being
available.  Note there's no ending "}" in that error message; also my generated project make
no reference to a anywhere.

Exact error message w/"mvn clean install":

[INFO] Building war: /media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] <<< tomcat6-maven-plugin:2.0:run-war (start-tomcat) @ testrest <<<
[INFO] --- tomcat6-maven-plugin:2.0:run-war (start-tomcat) @ testrest ---
[INFO] Running war on http://localhost:43769/jaxrs-service
[INFO] Creating Tomcat server configuration at /media/work1/opensource/testrest/target/tomcat
Dec 08, 2012 3:22:25 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Dec 08, 2012 3:22:25 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Dec 08, 2012 3:22:25 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /media/work1/opensource/testrest/target/${
does not exist or is not a readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase(
	at org.apache.catalina.core.StandardContext.resourcesStart(
	at org.apache.catalina.core.StandardContext.start(
	at org.apache.catalina.core.ContainerBase.start(
	at org.apache.catalina.core.StandardHost.start(
	at org.apache.catalina.core.ContainerBase.start(
	at org.apache.catalina.core.StandardEngine.start(
	at org.apache.catalina.startup.Embedded.start(
	at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(
	at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
	at org.apache.maven.DefaultMaven.doExecute(
	at org.apache.maven.DefaultMaven.execute(
	at org.apache.maven.cli.MavenCli.execute(
	at org.apache.maven.cli.MavenCli.doMain(
	at org.apache.maven.cli.MavenCli.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(

The code will work with the Tomcat 7 plugin, albeit with the minor problem described in MTOMCAT-193.

Steps to reproduce:
1.) Update the CXF 2.6.x branch of the archetype's pom resource (,
changing the two references there of org.codehaus.mojo:tomcat-maven-plugin to org.apache.tomcat.maven:tomcat6-maven-plugin:2.0.
 mvn clean install from the archetype folder to install the new archetype in your local repository.

2.) Create a new project using this archetype.  Run "mvn clean install" on the new project
and you'll see the above error.  

Note I see either of two potential errors occurring here:
1.) My archetype pom is incorrect as a result of switching to the new Apache plugin, there's
something else I must now configure within the pom.  (Please inform me if you know what.)
 If so, the error message given "${ does not exist or is not a readable
directory" should be make more relevant and informative, if possible, about what I'm doing


2.) There's just an internal bug within the Tomcat6 plugin that needs fixing for this error
to go away.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message