> webapp --> filename --> WEB-INF--> filename.htm + web.xml + META-INF
> + classes + lib
If I read this right, 'filename.htm' is being stored in
webapp/filename/WEB-INF/filename.htm inside your .war file. FWIW,
WEB-INF has no special meaning except in the top level of your .war
archive A .war archive built like this will most likely deploy as a
static html folder and everything in it will be available as static files.
> HTTP status 404
> description the requested resource (/filename/)is not available
If you wanted to get filename.htm with the structure I think you are
describing, you should be requesting
/$WEBAPP/webapp/filename/WEB-INF/filename.htm where $WEBAPP is the
context your war file is deployed under. Usually $WEBAPP is the name of
the war file. For instance if the .war file is myapp.war, the request
path to filename.htm under tomcat would most likely be
myapp/webapp/filename/WEB-INF/filename.htm
To fix a *lot* of problems right off the bat, your war archive should
look more like:
filename.htm
WEB-INF
web.xml
classes
lib
META-INF
(what ever lives under here)
Then the request path (again assuming the war file is named myapp.war)
would be /myapp/filename.htm
--David
On 12/8/2010 2:39 PM, Lava Saleem wrote:
> 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: [email protected]
For additional commands, e-mail: [email protected]