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
2
votes
0 answers

Tomcat 7 common WEB-INF for global UrlRewriteFilter

I have a Tomcat7 webserver running with a few apps and an UrlRewriteFilter (org.tuckey.web.filters.urlrewrite.UrlRewriteFilter) which needs to be configured with an xml-file. This xml file must live within the WEB-INF directory of an app (because…
Max 23
  • 183
  • 9
2
votes
1 answer

Spring Boot - deploy .properties file to a folder different than 'WEB-INF/classes'

I'm trying to convert a traditional Tomcat Spring MVC webapp to Spring Boot. The new application should still use .war deployment. For various reasons I have the obligatory requirement that the application.properties file resides inside a…
Bragolgirith
  • 2,167
  • 2
  • 24
  • 44
2
votes
0 answers

How to exclude WEB-INF/libs from being deployed in wildfly

I am installing a war file in a Wildfly. The package contains EJB and WS. The dependencies are located in myWar.war/WEB-INF/lib. My EJBs (annotated with @Stateless) located in myWar.war/WEB-INF/classes are correctly scanned by wildfly and…
loonis
  • 1,317
  • 16
  • 19
2
votes
2 answers

Can't display html page from WEB-INF

please help me to solve this problem. After login user will refer to the Search home page, which in a WEB-INF folder. I have no web.xml file and here is my code: please help me to correct it. $("#login").click(function(){ var hashPassword =…
Mary
  • 59
  • 3
  • 8
2
votes
1 answer

Eclipse reports web.xml file does not exist, even though it does exist

I have a GWT project. I have the web.xml created and placed in webapp/WEB-INF, war/WEB-INF as well as war/. But Eclipse keeps throwing me the error that The web.xml file does not exist When I right click on the error and look into Properties, I…
somesh
  • 2,509
  • 3
  • 16
  • 24
2
votes
1 answer

Classes folder shows up in Build Path but not Project Explorer

I need to put a compiled class into WEB-INF/classes. My WEB-INF folder didn't have a classes folder so I created one according the directions here. Even after restarting my computer, however, the classes folder won't show up in the project explorer…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
2
votes
2 answers

web-inf and jsp page directives

i have a number of jsp files under web-inf folder. Inside my web.xml i specify an errorppage for 404 amd 403 and java.lang.exception. Do i need to include a page directive for each of my jsp's or will they automatically get forwarded to the…
luckoftheirish
1
vote
0 answers

How to get the jar filename of web-fragment

In servlet 3, web-fragments are jars deployed under WAR's WEB-INF/libs. The resources of web-fragments will be merged and be traded as they are resources of WAR. But that's not suitable for every situation. For example when I want to get some…
cn1h
  • 1,188
  • 4
  • 16
  • 24
1
vote
1 answer

How get WEB-INF folder path in java JAX-WS app

I have a java webservice application with java bean's. How i can determine full path to file in WEB-INF directory.
Tirex
  • 23
  • 5
1
vote
1 answer

Access to web-inf from deployed jar

I'm currently facing a problem any time i try to access to WEB-INF/classes folder. Basically if I run the whole project on a local server it works and find the given file, but when i try to access to the same file after all the jar files have been…
Maxuel
  • 127
  • 10
1
vote
0 answers

URL-Redirecting on host_name in browser in tomcat9 using classes/project/servlet

I would like to redirect to particular servlet doGet() when hostname.com hits in browser. I have been going around in this basic issue. Please guide. I have a folder structure of my legacy application in windows…
1
vote
1 answer

Error Caused by: java.io.FileNotFoundException for file under src/main/resources/config/env/dev2 in SpringBoot 2.0 application

BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(propertyFile)))); Here I have tried giving propertyFile as both "/envsettings/xdev2/env.properties" and "envsettings/xdev2/env.properties" but still getting…
Arijit
  • 47
  • 1
  • 8
1
vote
2 answers

Accessing JSP in subfolder within WEB-INF folder?

I just started working with JSPs and came across one problem. As I understand, JSP pages under WEB-INF can be accessed via a browser with the URL in localhost: localhost:8080/MyProject/MyJSP.jsp However, if I create another sub-folder within the…
Jae Bin
  • 49
  • 1
  • 2
  • 10
1
vote
1 answer

How to access a jsp page inside a folder under WEB-INF?

I'm learning about servlets and JSP and I try to make an app. The app is from this page This is the structure of the app: And I put all the JSP in WEB-INF: When I try to run any jsp it's not working, I get this error: HTTP Status 404 – Not…
user9608350
1
vote
2 answers

Spring/Resin configuration problem

I am wiring up a servlet thru spring running inside resin.. When the web app starts up i get [11-02-22 12:12:36.259] {main} org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern…
MeBigFatGuy
  • 28,272
  • 7
  • 61
  • 66