tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: How to accommodate the webapps directory structure change
Date Wed, 20 Dec 2000 10:07:04 GMT
Hi Steven,

The problem you have with your new directory structure is that the
WEB-INF directory isn't immediately below the webapp root.

In the first case, you have a webapp root of "execution", and WEB-INF
is directly below that directory, so this is OK.

In the second case, you need WEB-INF to be off the "is" directory,
not the "execution" directory. Because it is in the wrong place, it is
regarded as a plain old content directory, not a special directory.
Tomcat will therefore not find the web.xml file, *or* any of the servlet
classes. As a result, any /servlet/... url won't work - tomcat won't
find any corresponding class file.

Cheers,

Simon

> -----Original Message-----
> From:	Steven Liu [SMTP:Steven.Liu@veritas.com]
> Sent:	Tuesday, December 19, 2000 7:13 PM
> To:	'tomcat-user@jakarta.apache.org'
> Subject:	How to accommodate the webapps directory structure change
> 
> Following is my directory/file structure for a servlet, it works fine.
> the index.html has the statement:
> "<td WIDTH="30%"><a href="../execution/servlet/ABC"><img
> SRC="../images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a
> href="../execution/servlet/ABC">Execute</a></td>
>  
> webapps
>    |
> execution
>    |----------------|
> servlets          WEB-INF
>    |                   |
> index.html      classes
>                        |------------------------|
>                      abc.class      LocalStrings.properties
>  
>  
> However, after I change the structure into following(add one more
> level of directory, ie "is"), it won't work any more !
> How should I change the statement in index.html like above to 
> accommodate the directory structure change ?
> Or I should do something else to accommodate ?
>  
> webapps
>    |
>   is
> execution
>    |----------------|
> servlets          WEB-INF
>    |                   |
> index.html      classes
>                        |------------------------|
>                      abc.class      LocalStrings.properties
>  
> 
>         steven.liu@veritas.com 
>                                  _____ 
>                                    | 
>     \_____________________________/o\_____________________________/ 
>                                   \_/ 
> 
>           Every once in a while, the boundaries get redefined. 
> 

Mime
View raw message