web.xml

Tomcat 6 - The requested resource … is not available

我与影子孤独终老i 提交于 2019-12-22 07:02:53
问题 I am trying to start developing with Java and the Stripes Framework. I have the following in my web.xml file <?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > <filter> <filter-name>StripesFilter</filter-name> <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter

How to configure the log4j output file path in web.xml and log4j.properties?

怎甘沉沦 提交于 2019-12-22 04:49:12
问题 I have developed a web application where i can register a employee. My web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>Employee Registration</display-name> <welcome-file-list>

JBoss 7.0.1 running without jsessionid in the URL is not working

风流意气都作罢 提交于 2019-12-22 04:05:25
问题 Because of some security reasons I deceided to disable session tracking by jsessionid in URL. Before I changed my web.xml to the one below, I had on the first time I visited the page a jsessionid in the url, after clicking the first link, it never appeared again. My web.xml looks like <session-config> <session-timeout>10</session-timeout> <cookie-config> <secure>true</secure> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> Now I have the jsessionid in the URL, if I

JSF 2.0 view file name extension other than xhtml

只愿长相守 提交于 2019-12-21 20:57:49
问题 How can I use view files with a different extension, other than XHTML, still map to the Faces Servlet in a JSF 2.0 application ? I am migrating a JSF 1.2 app to 2.0, and I use file name extensions jspx. I dont want to change them to xhtml. Thanks in advance for any help. Here is my web.xml as of now <?xml version="1.0" encoding="UTF-8"?> <web-app id="JSF2Sample" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=

How do web.xml filters work? Can you have two filters map to all pages (/*) and specify the order?

陌路散爱 提交于 2019-12-21 07:05:04
问题 I want to use Spring Security, and it says to map the filter to /***. But I already have a filter mapped to /*, which is the Tuckee URLRewrite filter. Is it possible to map two filters to the same thing, and also is there a way to specify the order that the filters get called? 回答1: Yes, you can: The servlet 2.5 xsd: The order in which filters are invoked is the order in which filter-mapping declarations that match a request URI for a servlet appear in the list of filter-mapping elements i.e.

web app web.xml error [duplicate]

谁说胖子不能爱 提交于 2019-12-21 05:33:04
问题 This question already has answers here : Getting error: The content of element type “web-app” must match, (3 answers) Closed 2 years ago . I am getting an error in my GWT application being developed in Eclipse. It's in the web.xml file. Here's the error: The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome- file-list?,error-page*

javax.faces.DEFAULT_SUFFIX not working

依然范特西╮ 提交于 2019-12-20 14:37:36
问题 Ive been reading some posts about javax.faces.default_suffix but without success when trying to implement it. Using : jsf 2.0, jboss 7.1, Mojarra 2.1.5 I need to show in URL the following : localhost:8080/myproject/index.jsf when navigating also need show the xxx.jsf web.xml <welcome-file-list> <welcome-file>/comum/inicio/index.xhtml</welcome-file> </welcome-file-list> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet

Security constraint in web.xml not getting applied to URL patterns having file extension

不打扰是莪最后的温柔 提交于 2019-12-20 10:35:15
问题 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 not seem to work. Any ideas ? <security-constraint> <web-resource-collection> <web-resource-name>Public Area</web-resource-name> <url-pattern>/xyz</url-pattern> <url-pattern>/images/*</url-pattern> <url-pattern>/yyz/*</url-pattern> <url-pattern>*.xml</url-pattern> </web-resource-collection> <

<security-constraint> <url-pattern> and the * character within web.xml

不羁岁月 提交于 2019-12-20 05:10:26
问题 Useing Spring for Security, I can get the program running using the following code. <intercept-url pattern="/web/admin**/**" access="ROLE_ADMIN" requires-channel="https"/> <intercept-url pattern="/web/**/" access="ROLE_USER,ROLE_ADMIN" requires-channel="https"/> I am trying to do this within a web.xml currently. Using JBOSS to deploy a .war file. Below is what I have, The url-pattern is what is causing me the problems in the first security-constraint. The pages are located at, and named /web

Why request which start with “/WEB-INF” cannot be mapped to a servlet/filter

一个人想着一个人 提交于 2019-12-20 02:28:36
问题 [context] tomcat 7 - java 1.7 Hey everyone; I'm facing with stranges working. In my web.xml file, I mapped request like this : web.xml <web-app> <filter> <filter-name>filter</filter-name> <filter-class>demo.DemoFilter</filter-class> </filter> <filter-mapping> <filter-name>filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>Servlet</servlet-name> <servlet-class>demo.DemoServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Servlet</servlet