WEB-INF is the name of a folder found in Java web applications. It is used to store deployment information such as the web.xml, required library files and compiled class files. It is normally not accessible from web. Any files which you want to put on war but do not want to make to public then web-inf is the place where you can keep those files.
Questions tagged [web-inf]
185 questions
1
vote
0 answers
I have no WEB-INF folder in my Maven project
I`m a newbie in Java. Trying to run a web-app connecting with mysql DB. I know how to add mysql jdbc driver into my bulid-path and I have done it, but I get runtime:
Exception java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
it doesn`t…
user9069498
1
vote
1 answer
Difference between tomcat exploding war in startup/catalina script and manually exploding war?
I've copied my .war into the webapps folder of my local tomcat server. When I start tomcat, the .war gets exploded to a different structure than when I manually explode it with jar -xf. When I manually explode the .war, I get the WEB-INF folder as a…

David Streid
- 685
- 3
- 12
- 24
1
vote
1 answer
3rd party jars at WEB-INF/lib are considered static or dynamic lib
I have a Web project (Tomcat) on Eclipse and I have add some 3rd party JARs into the WEB-INF/lib folder.
Due to some license retrictions I cant use libraries as static libraries. But how can I check if libs at WEB-INF/lib folder are static or…

aldi
- 31
- 2
1
vote
1 answer
Can you have WEB-INF outside the webapp?
An externally provided war-file includes its configuration inside the WEB-INF directory. I'm trying to make Tomcat provide the web-app with an alternate WEB-INF directory, so I can put the configuration under version control and not have to modify…

Kristoffer From
- 21
- 6
1
vote
0 answers
How to load jar files from web-inf/lib in desired order
I have 2 java files with same name and package structure. One file is from framework team and second file is from customization team. There are 2 jar files framework.jar and customization.jar. In my web application i want to search class file first…

sorab
- 321
- 1
- 4
- 15
1
vote
1 answer
Spring MVC can not find proper jsp in WEB-INF/views/ package
I am learning Spring MVC from a book called "Spring in Action". However. I am getting 404 error when I hit the correct controller. I am using annotations rather than xml configurations, so it is hard to find from web. You can see the very simple…

quartaela
- 2,579
- 16
- 63
- 99
1
vote
0 answers
Jetty: accessing classes under WEB-INF/ before
I'm trying a self-executable WAR package with Jetty. It is configured with web.xml by default, but with some options, it would be configured with my own Java code like:
if (configureWithWebXml) {
webapp.setConfigurationClasses(
…

Dai MIKURUBE
- 125
- 1
- 1
- 13
1
vote
3 answers
Using property files in Web Applications
I'm developing a web application(this is my first time) and pretty confused about using property files. I don't know where to put the property files.
The problem is that i have put it under the WEB_INF folder. And when i test run it as a Java…

k9yosh
- 858
- 1
- 11
- 31
1
vote
1 answer
In which XML do I insert the RemoteAddrValve filter?
I would like to restrict one of my web services running under Tomcat 7. That is, I have one instance of Tomcat 7 hosting several web services. Some of these web services need not be restricted to a specific IP-address, so this restriction must be…

Withheld
- 4,603
- 10
- 45
- 76
1
vote
0 answers
how to load an image from WEB-INF?
This works fine so long as the image is in web; how do I load the image when it's in WEB-INF?
NetBeansProjects/WebApplication/
├── build.xml
├── nbproject
│ ├── ant-deploy.xml
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ …

Thufir
- 8,216
- 28
- 125
- 273
1
vote
1 answer
Missing WEB-INF file in Eclipse Dynamic Web Project
I'm collaborating via Git to create a Dynamic Web Project that uses JSPs.
Since some arbitrary point a couple of days ago, I found that the project would refuse to run on the server, because Tomcat wasn't recognising the imports at the top of the…

Barble
- 11
- 2
1
vote
3 answers
Spring not accessing JSP inside /WEB-INF/jsp/ folder
I am new to Spring MVC and developing an application. I developed a project with the help of Spring MVC Tutorial.Initially, it was working. But as soon as I upgraded my project with Hibernate 4 and Spring 4. It stopped working. Whenever, I am…

Ashish
- 341
- 2
- 7
- 17
1
vote
0 answers
debug java web application packaged as war file in eclipse
I am new to web applications in java and need a bit of help with this. I have a multi module project set up in eclipse, which also contains WEB-INF/lib directory of the WAR.
In the non-web version i can debug though it fine however when i deploy it…

Rory Lester
- 2,858
- 11
- 49
- 66
1
vote
0 answers
How to give web-inf folder path to fsdirectory for full text search using apache lucene
I am very new to apache Lucene.here I am trying to develop sample full text search application which will search in html files with given input query,if given string found in any file then index's are created
My results jsp page look like this :
if…

user3354457
- 69
- 2
- 17
1
vote
1 answer
Java WebApp: Loading resource from .jar located in WEB-INF
There are a lot of similar questions, but, probably, mine is a little bit different:
What is the right way to load resource from inside of .jar file located in WEB-INF/lib folder (if I know the jar file name and the name of the class it resource…

shaman.sir
- 3,198
- 3
- 28
- 36