web.xml

WARNING: JSF1091: No mime type could be found for file QcFormDean.jsp, but wait its a jsf file

自古美人都是妖i 提交于 2019-12-10 16:05:30
问题 I just added jstl-1.2.jar, JSF api, and impl jars to my library so that this could work on my jsf xhtml file. <h:selectOneMenu value="#{qcFormBean.dliStickerValue}"> <f:selectItem itemValue="P" itemLabel="Pass or Not applicable" /> <f:selectItem itemValue="M" itemLabel="FAIL-Mechanical" /> <f:selectItem itemValue="E" itemLabel="FAIL-Electrical" /> <f:selectItem itemValue="C" itemLabel="FAIL-Cosmetic" /> <f:selectItem itemValue="S" itemLabel="FAIL-Software" /> <f:ajax event="change" execute="

references to SystemProperties in web.xml and jboss-web.xml works in JBoss5 but not in JBoss7

吃可爱长大的小学妹 提交于 2019-12-10 15:39:03
问题 Under JBoss 5.1 we used to "stage" values in the web.xml and the jboss-web.xml by using SystemProperties. In the web.xml that looked like this: <web-app [...]> [...] <auth-constraint> <role-name>${myRole}</role-name> </auth-constraint> [...] <login-config> <auth-method>${myAuthMethod}</auth-method> </login-config> <security-role> <role-name>${myRole}</role-name> </security-role> </web-app> Additionally we did the same thing for the jboss-web.xml and the security-domain. Not adding the

Spring security - org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined

孤街浪徒 提交于 2019-12-10 15:18:44
问题 I have read most of the similar issues that already posted but still I couldn't find a solution. Please note that regular CRUD application is working fine. I'm getting this error when I try to add login functionality via spring-security. My working environment is as follows; 1.Tomcat 7.0.35 2.Spring 3.2.0 3.Spring security spring-security-config-3.1.3.RELEASE.jar spring-security-core-3.1.3.RELEASE.jar spring-security-taglibs-3.1.3.RELEASE.jar spring-security-web-3.1.3.RELEASE.jar 4.My web.xml

How to include other configuration files in web.xml

蹲街弑〆低调 提交于 2019-12-10 13:28:49
问题 I need to define many servlets, but I don't want to write the configuration all in the web.xml. Can I define some servlet configuration files, and include them in web.xml? Or is there any other way to split a web.xml to multi files? 回答1: The Servlet 3.0 specification provides a new annotation, @WebServlet , that may be used to declare servlets in the code without the need for the web.xml. See Section 8.1.1 of the Servlet 3.0 specification and review the javadoc for more details. @WebServlet("

What are steps followed in the look-up? what is looked first web.xml or context.xml?

寵の児 提交于 2019-12-10 12:35:22
问题 How does a look-up like : Context envContext = (Context)initContext.lookup("java:comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/MyDatasource"); proceed ? I mean to say how is the name MyDataSource searched and in the end what is returned ? There are two entries added to connect to the database. One in the WEB-INF/web.xml which is : <resource-ref> <description>my connection</description> <res-ref-name>jdbc/MyDatasource</res-ref-name> <res-type>javax.sql.DataSource</res-type>

How to map a servlet filter on /* in Jetty?

吃可爱长大的小学妹 提交于 2019-12-10 11:47:47
问题 I have a servlet filter which I want to map to http://127.0.0.1:8888/ in Jetty. I have put a servlet filter mapping with url pattern /* . However, the filter is not called. I also tried with / mapping. It does not work either. How is this caused and how can I solve it? 回答1: If you name your war root.war it will be deployed to the root / context. http://wiki.eclipse.org/Jetty/Howto/Deploy_Web_Applications 回答2: You can redirect requests from "/" to "/urlToRedirect" and handle "/urlToRedirect"

Using web.xml with WebAppContext in Jetty

谁说我不能喝 提交于 2019-12-10 11:43:28
问题 This is my first web application, I am just trying to follow guides and launch my server with servlets specified at web.xml , but it seems that my actions don't change functionality of the server and the result is 404 error. But if I programmatically specify servlets its OK. Could anyone figure it out how this all should work? Here is my code for server public class Launcher { public static void main(String[] args) throws Exception { Server server = new Server(8080); WebAppContext web = new

Taglib inside Maven dependency jar. How do I configure this taglib inside the web.xml?

风格不统一 提交于 2019-12-10 10:59:25
问题 So I used to configure my taglib like that: <jsp-config> <taglib> <taglib-uri>myTags</taglib-uri> <taglib-location>/WEB-INF/lib/mylib-2.0.1.jar</taglib-location> </taglib> </jsp-config> But now mylib-2.0.1.jar is a maven dependency, so of course it is NOT on /WEB-INF/lib. How do I do to configure my taglib so I can do that in my JSPs: <%@ taglib uri="myTags" prefix="mt" %> EDIT1: To clafiry, the taglib.tld is inside the META-INF inside the jar so you can access the tld by referencing the jar

Hibernate Error java.lang.NoSuchMethodError

匆匆过客 提交于 2019-12-09 19:57:50
问题 I'm using Jersey as Rest web service and Hibernate entity manager to persist JPA models. and I'm using Tomcat 8 as container. Here is the content of the persistence.xml file : <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="manager1" transaction-type="JTA"> <properties> <!

Deactivate Jetty's default 404 error handler

自作多情 提交于 2019-12-09 16:39:05
问题 I want to provide a custom 404 error page in my Spring 3.1 web application, but I cannot deactivate Jetty 8's default 404 error page. Jetty 8, out of the box, provides a default 404 error page: when visiting a Jetty-hosted website, and providing a URL path that is not handled by any servlet (e.g. by visiting http://www.example.com/nonexisting ), Jetty responses with its own default HTML error page : HTTP ERROR 404 Problem accessing /nonexisting. Reason: Not Found Powered by Jetty:// To