Skip to content

Instantly share code, notes, and snippets.

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.co.inbrand.testproject;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache -->
26-Oct-2011 15:44:30 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/login_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
at org.apache.jsp.login_jsp._jspInit(login_jsp.java:31)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:171)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page language="java" %>
<%@taglib uri="/struts-tags" prefix="html" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<!-- Application Context for Spring -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<context-param>
<param-name>tilesDefinitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<constant name="struts.action.excludePattern" value="*/login,/dashboard,/jsp/*" />
<constant name="struts.devMode" value="true"/>
INFO: Deploying configuration descriptor InBrand-2.xml
log4j:ERROR Could not find value for key log4j.appender.jgroups
log4j:ERROR Could not instantiate appender named "jgroups".
28-Oct-2011 11:27:58 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
28-Oct-2011 11:27:58 org.apache.catalina.core.StandardContext start
SEVERE: Context [/InBrand-2] startup failed due to previous errors
28-Oct-2011 11:27:58 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
lrwxrwxrwx 1 root root 47 Jul 20 16:55 [commons-collections-tomcat5].jar -> /usr/share/java/commons-collections-tomcat5.jar
lrwxrwxrwx 1 root root 40 Jul 20 16:55 [commons-dbcp-tomcat5].jar -> /usr/share/java/commons-dbcp-tomcat5.jar
lrwxrwxrwx 1 root root 40 Jul 20 16:55 [commons-pool-tomcat5].jar -> /usr/share/java/commons-pool-tomcat5.jar
lrwxrwxrwx 1 root root 23 Jul 20 16:55 [ecj].jar -> /usr/share/java/ecj.jar
-rw-r--r-- 1 root root 15118 Feb 11 2011 annotations-api-6.0.24.jar
lrwxrwxrwx 1 root root 26 Jul 20 16:55 annotations-api.jar -> annotations-api-6.0.24.jar
-rw-r--r-- 1 root root 1180826 Feb 11 2011 catalina-6.0.24.jar
-rw-r--r-- 1 root root 53458 Feb 11 2011 catalina-ant-6.0.24.jar
lrwxrwxrwx 1 root root 23 Jul 20 16:55 catalina-ant.jar -> catalina-ant-6.0.24.jar
-rw-r--r-- 1 root root 128411 Feb 11 2011 catalina-ha-6.0.24.jar
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.co.inbrand.actions;
import com.opensymphony.xwork2.ActionSupport;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;