> I might be wrong but maybe you need to set something in your web.xml to
> deliver static files. (basically Tomcat is not designed to run static html
> files, you can use a combination of Apache serveur + tomcat serveur to do
> that).

Sorry but that's just not correct.  Any file in the webapp, but outside
of the WEB-INF folder can be delivered by the default servlet without
any special settings in web.xml or anywhere else for that matter.

--David

On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
> I might be wrong but maybe you need to set something in your web.xml to
> deliver static files. (basically Tomcat is not designed to run static html
> files, you can use a combination of Apache serveur + tomcat serveur to do
> that).
>
> I strongely recommand you to use an IDE such as Netbeans, create a new Java
> Web Application project, put your html file in the project build it.
> Netbeans will generate a correct [YourProjectName].war, that you can deploy
> or extract to see exactly how it was build, what you need to set etc...
>
> Victor
> http://www.voxnucleus.fr
>
> 2010/12/8 Lava Saleem <lnsal...@ualr.edu>
>
>> Hi everyone,
>> I have  a single page html file with java script embadded in it, I have
>> created a war file for it and deployed it successfully but when I click on
>> the page I get the below error, the structure of my war file is the
>> following
>>
>> webapp --> filename --> WEB-INF--> filename.htm  + web.xml + META-INF
>> +  classes + lib
>>
>> I did not modify the web.xml since I don't need the servlets do I need to
>> modify anything?
>>
>> HTTP status 404
>> description the requested resource (/filename/)is not available
>>
>> Thanks for the feedback
>> Lava
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to