tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blaise Gervais <gervai...@gmail.com>
Subject [Apache Tomcat Maven plugin] Howto specify the Document base ?
Date Wed, 01 Feb 2012 11:00:40 GMT
Dear tomcat users,

I try to use the Tomcat Maven
plugin<http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/index.html>'s
"run" goal on a webapp. The webapp is generated by
Enunciate<http://enunciate.codehaus.org/> into
the "*target\${artifactId}-${version}*" folder. So the tomcat plugin
complains because it can't found the expected document base.

How can I change the document base ?

Thanks.

GRAVE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> C:\Dev\Sources\xyz\sample\src\main\webapp does not exist or is not a
> readable directory
>         at
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
>         at
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
>         at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)


-- 
Gervais Blaise

Mail  : gervais.b@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message