If WEB-INF folder is missing?
What do I do if my WEB-INF folder is missing?
First make sure the folder is missing.
Steps:
1] Go to your web folder and do ls -al
2] You should see some files and folders, one of them should be WEB-INF, if it is missing
then proceed to step 3
3] Only do, if you found that WEB-INF folder is missing.
a)As the mainuser of that domain, in the web folder create the WEB-INF folder
# mkdir WEB-INF
b)Now go into WEB-INF folder
c)Create a file called web.xml by doing: vi web.xml
The editor will open and you will see an empty file, if the file is not empty, get out of vi by
issueing :q! command (not you have to put the colon then q and then !)and hit enter.
If the file is empty, then copy and paste the following lines in web.xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
d)You should write the changes to the file now and quit by doing :wq! (Note again the
colon has to be there, also the !)
4] After all this, you have to restart tomcat. Ask your server admin to do it!
|