web.xml

War deployment exception

无人久伴 提交于 2019-12-11 18:23:20
问题 I try to deploy a War on tomcat, but am getting exception as SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DataProvider]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache

webapp version 2.4 to 2.5 out of memory

孤人 提交于 2019-12-11 18:07:55
问题 I have a requirement to update the EJB version of an application which has a schema version of 2.4, the ejb version being upgraded to is 3.0 which uses annotations, in order for the annotations to be read I need to upgrade the web app version to 2.5. When I do that and go to redeploy the app I see a out of memory error. Can anyone push me in the right direction as to what is happening here? 00000034 annotations I ArchiveInputStreamData mapData Collision on [ .class ] in [ Demo.war ] 00000034

Resteasy: java.lang.NoClassDefFoundError: javax/servlet/ServletContext

青春壹個敷衍的年華 提交于 2019-12-11 18:07:33
问题 I have Resteasy servlet and listener configured in web.xml <servlet-mapping> <servlet-name>resteasy-servlet</servlet-name> <url-pattern>/rest/*</url-pattern> </servlet-mapping> <!-- Auto scan REST service --> <context-param> <param-name>resteasy.scan</param-name> <param-value>true</param-value> </context-param> <!-- this should be the same URL pattern as the servlet-mapping property --> <context-param> <param-name>resteasy.servlet.mapping.prefix</param-name> <param-value>/rest</param-value> <

Setting X Frame Options on Weblogic

不羁岁月 提交于 2019-12-11 17:23:54
问题 I need to configure X- Frame Options for my Angular.js Application which runs on Weblogic Server but I can,t seem to find an example. My preference would be to do it in web.xml file similar to this example for Tomcat : How do I set X-Frame-Options as response header in angularJS? 回答1: We also faced the same issue. One of the approach is suggested by 'user1107888'. You don't have to create another project explicitly the other approach is, Update the web.xml with the filter details. Add the

JSF ServletFilter Restriction on index page when logged in

只愿长相守 提交于 2019-12-11 16:49:11
问题 I've this servlet filter servlet called everytime a file from "Restricted" folder is called. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.shadibandhan.ControllerLayer; import java.io.IOException; import java.util.ArrayList; import java.util.StringTokenizer; import javax.servlet.*; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax

Servlet web.xml servlet-mapping

谁都会走 提交于 2019-12-11 13:40:43
问题 On my web.xml I have the following code <servlet> <servlet-name>controller</servlet-name> <servlet-class>ControllerServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>controller</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>controller</servlet-name> <url-pattern>/url/*</url-pattern> </servlet-mapping> To enter into the servlet the url has to be like : htp://ee:8080/ER/index.do or htp://ee

Java : Intercept all requests before they go to login authentication

不羁的心 提交于 2019-12-11 12:27:03
问题 I want to intercept ALL the requests in a filter first. I also have a login authentication which is applied to ALL the requests i.e. both the filter and login authentication are configured to intercept ALL the requests. However, when any request is made, it is first intercepted by login authentication which tries to render login page. I would like the request to be intercepted by the filter first and then by the login authentication. Following is the relevant code. web.xml <?xml version="1.0"

Using Facelets as <error-page><location> causes IllegalStateException: getWriter() has already been called for this response

狂风中的少年 提交于 2019-12-11 10:03:21
问题 I'm trying to setup the Omniface's FaceExceptionFilter on my Glassfish 4.0 server, using Mojarra 2.2.8, Primefaces 4.0 and Omnifaces 1.8.1. The filters and error pages in web.xml are defined as follow: <filter> <filter-name>facesExceptionFilter</filter-name> <filter-class>org.omnifaces.filter.FacesExceptionFilter</filter-class> </filter> <filter-mapping> <filter-name>facesExceptionFilter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> <filter> <filter-name

welcome-file-list not working in jetty + spring

折月煮酒 提交于 2019-12-11 08:06:52
问题 I'm using Jetty 8.1.4 with Spring 3.2.4. Following is my web.xml file. I have an index.html file under WEB-INF and I want that page to be hit when I do http://myapp.com/ or simple http://myapp.com but I'm getting 404. If I do http://myapp.com/index.html it works. I'm not sure what I'm missing. Also, I'm bit confused if I must use / or /* in the url-pattern below, I tried both. <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org

web.xml configuration based on Maven profile

£可爱£侵袭症+ 提交于 2019-12-11 03:11:12
问题 What maven plugin can be used to have the appengine-web.xml application generated based on the maven profile run, for example -Pdev or -Pprod Example: <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>myapp-dev</application> <version>1</version> <static-files/> <threadsafe>true</threadsafe> <precompilation-enabled>false</precompilation-enabled> </appengine-web-app> For a -Pdev , and when the profile is -Pprod The application name would be: <application>myapp-prod<