Questions tagged [web-inf]

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.

185 questions
213
votes
5 answers

What is WEB-INF used for in a Java EE web application?

I'm working on a Java EE web application with the following source code directory structure: src/main/java <-- multiple packages containing Java classes src/test/java <-- multiple packages containing JUnit…
Steve Chambers
  • 37,270
  • 24
  • 156
  • 208
71
votes
9 answers

Maven dependencies not visible in WEB-INF/lib

I'm having this weird problem making my project Maven-based. I created a new Maven project in Eclipse and enabled the Dynamic Web facets. But during runtime now it throws ClassNotFoundException because the Maven dependencies are not copied to…
Suraj Chandran
  • 24,433
  • 12
  • 63
  • 94
67
votes
1 answer

Which XHTML files do I need to put in /WEB-INF and which not?

After these questions: https://stackoverflow.com/questions/8589315/jsf2-dynamic-template Dynamic ui:include How can I retrieve an object on @WindowScoped? How can I check if an object stored with @WindowScoped is stored correctly? ICE Faces and…
Filippo1980
  • 2,745
  • 5
  • 30
  • 44
62
votes
5 answers

What does WEB-INF stand for in a Java EE web application?

Most of the places on the internet say it stands for WEB INFormation. I rather doubt it. The folder contains executables. Information is not a suitable name for it.
euphoria83
  • 14,768
  • 17
  • 63
  • 73
57
votes
2 answers

Is WEB-INF in the CLASSPATH?

Is the WEB-INF folder in the CLASSPATH of a Java Web application?
Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69
14
votes
2 answers

Referencing a resource placed in WEB-INF folder in JSP file returns HTTP 404 on resource

I have a dynamic web project called BookShopWeb which I created in eclipse, with the following directory structure /BookShopWeb/| |--src |---WebContent | |---META-INF |----WEB-INF---web.xml …
markjason72
  • 1,653
  • 8
  • 27
  • 47
13
votes
2 answers

What difference between app-inf and web-inf folders in JavaEE applications?

Can you give me understanding of main difference between APP-INF and WEB-INF folders in javaEE applications. Thanks
Ishikawa Yoshi
  • 1,779
  • 8
  • 22
  • 43
12
votes
2 answers

JSF files inside WEB-INF directory, how do I access them?

I want to put my JSF 2.0 xhtml files under WEB-INF\jsf. How do I access them then? I know that anything inside WEB-INF isn't exposed to the outside, so I need a controller to redirect me to the corresponding JSP, right? (This is also the model 2…
Tim
  • 733
  • 5
  • 12
  • 19
11
votes
5 answers

How to resolve BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]?

Error Stack trace: SEVERE: StandardWrapper.Throwable org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is…
sofs1
  • 3,834
  • 11
  • 51
  • 89
9
votes
2 answers

How do I make Weblogic 10 prefer the jars in myApp.war:/WEB-INF/lib/ without throwing VerifyErrors?

The Weblogic classloader seems to prefer system libraries over the libraries in my war's WEB-INF/lib/. I've tried setting the following in WEB-INF/weblogic.xml, without success:
neu242
  • 15,796
  • 20
  • 79
  • 114
9
votes
4 answers

JSP in /WEB-INF returns "HTTP Status 404 The requested resource is not available"

I created a JSP file. sample.jsp <%@ page pageEncoding="UTF-8"%> Insert title here This is jsp program I placed it here in the samplejsp project. samplejsp …
user246160
  • 1,389
  • 7
  • 18
  • 33
8
votes
1 answer

Facelets pages under WEB-INF directory

Every project example I've seen so far, in a book or a tutorial, have got the XHTML (Facelets) pages on the same level as WEB-INF directory. I've read also that in order to have the pages not direct accessible on the server, you need to hide them…
claudia b
  • 203
  • 3
  • 5
8
votes
2 answers

Tomcat 6 not loading jars from WEB-INF/lib

I'm trying to track down a configuration issue in my tomcat environment. Our production servers are running a tomcat installation and reading the war from a shared NFS mount. However, when I try the same war with a stand-alone box (with their…
liam
  • 3,830
  • 6
  • 32
  • 31
8
votes
4 answers

What's the correct procedure to add JARs into WEB-INF/lib directory in IntelliJ

Say I have a Java web project and I need to place a couple of JARs into the WEB-INF/lib directory. In Eclipse, if you simply place those JARs there, Eclipse picks them up as on the classpath. However, IntelliJ doesn't seem to. What is the correct…
user1902183
  • 3,203
  • 9
  • 31
  • 48
7
votes
2 answers

How can I hide the JSP file in WEB-INF folder?

In a simple Java web application, for example imagine you have a servlet TestServlet.java. In deployment description ( web.xml ) you can for example map the request coming to say /testpage to TestServlet so that when /testapplication/testpage is…
Koray Tugay
  • 22,894
  • 45
  • 188
  • 319
1
2 3
12 13