web.xml Questions
5
Solved
Is there any way to make a filtermapping not include subdirectories?
For example.
I have .xhtml files in my context root, and I also have a subfolder named "test" with files with the same extensi...
Bearce asked 12/8, 2010 at 11:0
5
Solved
The familiar code:
<servlet-mapping>
<servlet-name>main</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet...
Sansen asked 10/11, 2010 at 1:28
3
Solved
I have an application integrated with keycloak. THe application runs on wildfly server. I use web.xml to authenticate keycloak(as Login config). Apart from that i use keycloak.json file, where i de...
5
Solved
I am building a Spring 4 MVC app. And it is completely configured using Java Annotations. There is no web.xml. The app is configured by using instance of AbstractAnnotationConfigDispatcherServletIn...
Misteach asked 30/6, 2014 at 20:46
3
Solved
I would like to control the settings in web.xml and using different once for different environments.
Is it possible to use a property, from a property file on classpath, in web.xml? Something like...
Albright asked 1/6, 2010 at 10:35
4
trying to make some spring example program - constantly getting the error - it happens that my controller cannot handle /hello request. Here is debug info from log4j.
13:50:58,502 {TRACE} Dispatc...
Vivienne asked 27/7, 2014 at 11:15
1
I can't start Tomcat when I use web.xml as the configuration file for the servlets in an application, this is the content of the file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app
id=...
1
Solved
I'm getting the following error when building my maven-project with the command mvn clean install
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war
(default-war) on ...
Potage asked 19/4, 2016 at 18:46
2
Solved
Could someone explain the main differences (or provide a link to) between glassfish-web.xml, sun-web.xml and web.xml?
Can I use just glassfish-web.xml in my webapp and skip the others?
12
I am trying to understand the real purpose of session configuration in Web.xml for session timeout.
<!-- Session Configuration -->
<session-config>
<session-timeout>60</sessi...
Peel asked 13/3, 2013 at 10:36
8
Solved
The web.xml Deployment Descriptor Elements in Oracle's BEA WebLogic Server 8.1 Documentation pretty much sums up each element in a web.xml file. But I am also curious about points below:
Is there...
Housewarming asked 22/2, 2010 at 13:20
4
Solved
I have included <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> in one jsp page and it displayed french characters properly.
But i want to include the page encoding to ...
6
Solved
I want to upload a file to a server, for which I am writing a servlet program.The location of the directory where the document would be uploaded should be fetched from a parameter in web.xml. I hav...
Redistrict asked 11/10, 2013 at 11:47
1
Solved
What is purpose of 'mappedfile' init-param in JspServlet in web.xml?
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</ser...
3
Solved
I am not sure if I understand:
<session-config>
<session-timeout>30</session-timeout> <!-- 30 minutes! -->
<cookie-config>
<http-only>true</http-only>
...
Scrupulous asked 30/1, 2016 at 18:26
2
Solved
I'm trying to create a simple Spring 3 application and have the following files. Please tell me the reason for this error
Below is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-...
Gynecology asked 19/1, 2012 at 10:49
2
Solved
I have the following security constraints entered in the web.xml. My objective is that the XML files are in the Public area. This works for the /images/* folder. However the url-pattern *.xml does ...
Bosporus asked 18/10, 2013 at 4:16
2
Solved
I need to map the same servlet on two different url. I used netbeans 7.0.1 for managing my whole project, so I used its friendly interface to modify the web.xml file. What netbeans created is this:...
Criseyde asked 24/1, 2012 at 22:42
4
Solved
Being somewhat lazy, I was rather happy to find that I could create a new servlet source code by going New -> Servlet, instead of going New -> Class and then editing the class into a servlet.
Howe...
Werbel asked 24/10, 2010 at 11:30
3
I'm setting up a simple REST service with Jersey and Maven. For Jersey's versions greater than 1.8 the web.xml in IntelliJ throws this error:
'com.sun.jersey.spi.container.servlet.ServletContainer...
Methodius asked 16/4, 2013 at 9:40
3
Solved
In a java web application, there is a file called web.xml and it has a versioning.
What exactly is this? What is it used for?
Here is the SO wiki for web.xml. But it does not really explain me much...
Archean asked 13/4, 2013 at 7:25
5
I've got a regular java file that I use to update and query a mysql database but I need to take configurable options in that file (like host name, password, etc) and put it in the web.xml file (or ...
1
Solved
I am developing a java web-app (v3.0) for a TomCat 7.0 server and I am having troubles loading the log4j2.xml file.
I have defined the log4j2.xml file outside my project and defined the path for t...
3
Solved
I'm trying to convert my project to Spring Boot project (executable jar file with Jetty embedded).
All works with a standard example but I want migrate my old web.xml to Spring Boot.
I migrated Se...
Molnar asked 17/2, 2015 at 16:33
4
Solved
How can I load an arbitrary class on startup in Tomcat?
I saw load-on-startup tag for web.xml file, but can I use it and how should I implement my class?
<servlet-name>??</servlet-name>...
Durr asked 20/7, 2010 at 12:11
© 2022 - 2024 — McMap. All rights reserved.