This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Nested Folders in webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Nested Folders in webapps" Watch "Nested Folders in webapps" New topic

Nested Folders in webapps

Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340

I am facing a small problem, hopefully anyone of you could help me.
Whenever i create a nested dir structure in webapps and put WEB-INF in it like this :

The container does not finds my webapp. On the other hand whenever I make in like this :
It works fine.

So just wanted to confirm if there is some limitation that WEB-INF should be under immediate sub-folder of webapps.

Thanks for your kind help.

Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39543
You're right, WEB-INF needs to be a top-level directory inside the web application directory.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: Nested Folders in webapps
Similar Threads
web.xml within tomcat
everything dandy except servlet
HTTP Status 404 - /Ch03/
http error 500 ServletException: Cannot allocate servlet instance...