Henri,

I found a bug at the last minute (while constructing the "m3" distribution
bundles) that Tomcat 4.0 croaks (with the error you quote below) if you place a
WAR file of the application into the webapps directory, *and* you mention this
application in a <Context> element in server.xml.  This combination can easily
happen with the examples application.

The workaround for now is to leave the application unpacked in the distribution
-- that's what I had to do with m3, which is why the downloads were so much
bigger.  The underlying bug will be fixed before the next milestone.

Craig



GOMEZ Henri wrote:

> Hi,
>
> Just finished RPM for TC 4.0 m3 (http://rpmized.free.fr/rpms/tomcat4/)
>
> The only remaining problem is :
>
> Using CLASSPATH:
> /var/tomcat4/bin/bootstrap.jar:/var/tomcat4/bin/servlet.jar:/opt/IBMJava2-13
> /lib/tools.jar
> Apache Tomcat/4.0-dev
> java.lang.IllegalArgumentException: Document base examples does not exist or
> is not a readable directory
>         at java.lang.Throwable.<init>(Throwable.java:96)
>         at java.lang.Exception.<init>(Exception.java:44)
>         at java.lang.RuntimeException.<init>(RuntimeException.java:49)
>         at
> java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:45)
>         at
> org.apache.catalina.resources.FileResources.setDocBase(FileResources.java:15
> 1)
>         at
> org.apache.catalina.resources.ResourcesBase.setContainer(ResourcesBase.java:
> 310)
>         at
> org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:770)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:2564)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1160)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:217)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:323)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:454)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:639)
>         at org.apache.catalina.startup.Catalina.execute(Catalina.java:596)
>         at org.apache.catalina.startup.Catalina.process(Catalina.java:169)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:133)
>
> All the webapps are in .war format but examples.war must be uncompressed
> before in webapps directory
> server.xml is the one from distro (m3).
>
> Here is the standard layout
>
> /var/tomcat4/:
> total 28
>    4 drwxr-xr-x   2 nobody   nobody       4096 Oct 26 13:02 bin
>    4 drwxr-xr-x   2 root     root         4096 Oct 26 13:02 conf
>    4 drwxr-xr-x   2 root     root         4096 Oct 26 13:02 lib
>    4 drwxr-xr-x   2 nobody   nobody       4096 Oct 26 11:39 logs
>    4 drwxr-xr-x   2 nobody   nobody       4096 Oct 26 13:02 server
>    4 drwxr-xr-x   2 root     root         4096 Oct 26 13:02 webapps
>    4 drwxr-xr-x   2 nobody   nobody       4096 Oct 26 11:39 work
>
> /var/tomcat4/bin:
> total 80
>   32 -rw-r--r--   1 root     root        32197 Oct 26 11:39 bootstrap.jar
>   48 -rw-r--r--   1 root     root        48143 Oct 26 11:39 servlet.jar
>
> /var/tomcat4/conf:
> total 96
>    8 -rwxr-xr-x   1 root     root         4861 Oct 26 11:39 catalina.policy
>    8 -rwxr-xr-x   1 root     root         6705 Oct 26 11:39 server.xml
>    8 -rwxr-xr-x   1 root     root         4669 Oct 26 11:39 tld_11.dtd
>   12 -rwxr-xr-x   1 root     root        10083 Oct 26 11:39 tld_12.dtd
>    4 -rwxr-xr-x   1 root     root          211 Oct 26 11:39 tomcat-users.xml
>    4 -rwxr-xr-x   1 root     root          112 Oct 26 11:39
> tomcat4.logrotate
>   16 -rwxr-xr-x   1 root     root        12708 Oct 26 11:39 web.xml
>   16 -rwxr-xr-x   1 root     root        15472 Oct 26 11:39 web_22.dtd
>   20 -rwxr-xr-x   1 root     root        17832 Oct 26 11:39 web_23.dtd
>
> /var/tomcat4/lib:
> total 460
>  188 -rw-r--r--   1 root     root       188406 Oct 26 11:39 crimson.jar
>  260 -rw-r--r--   1 root     root       261240 Oct 26 11:39 jasper.jar
>   12 -rw-r--r--   1 root     root        11809 Oct 26 11:39 jaxp.jar
>
> /var/tomcat4/logs:
> total 4
>    4 -rw-r--r--   1 root     root          210 Oct 25 13:07 catalina.out
>
> /var/tomcat4/server:
> total 836
>  440 -rw-r--r--   1 root     root       446035 Oct 26 11:39 catalina.jar
>    8 -rw-r--r--   1 root     root         5618 Oct 26 11:39 jaxp.jar
>  224 -rw-r--r--   1 root     root       223212 Oct 26 11:39 jmxri.jar
>  140 -rw-r--r--   1 root     root       136133 Oct 26 11:39 parser.jar
>   24 -rw-r--r--   1 root     root        24539 Oct 26 11:39 regexp.jar
>
> /var/tomcat4/webapps:
> total 304
>  152 -rw-r--r--   1 root     root       149108 Oct 26 11:39 ROOT.war
>  140 -rw-r--r--   1 root     root       136339 Oct 26 11:39 examples.war
>    4 -rw-r--r--   1 root     root         1041 Oct 26 11:39 manager.war
>    8 -rw-r--r--   1 root     root         7520 Oct 26 11:39 webdav.war
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to