<copyfiles files="${file.reference.log4j-core-2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-codec-1.10.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${libs.MySQLDriver.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
+ <copyfiles files="${file.reference.log4j-web-2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target>
<copyfiles files="${file.reference.log4j-core-2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-codec-1.10.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.MySQLDriver.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
+ <copyfiles files="${file.reference.log4j-web-2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/>
-build.xml.data.CRC32=04817f3c
+build.xml.data.CRC32=9e7a0782
build.xml.script.CRC32=a6f5a733
build.xml.stylesheet.CRC32=651128d4@1.68.1.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=04817f3c
-nbproject/build-impl.xml.script.CRC32=7f4d7ef9
+nbproject/build-impl.xml.data.CRC32=9e7a0782
+nbproject/build-impl.xml.script.CRC32=221b1210
nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1
file.reference.log4j-api-2.3.jar=lib/log4j-api-2.3.jar
file.reference.log4j-core-2.3.jar=lib/log4j-core-2.3.jar
file.reference.jcore.jar=lib/jcore.jar
+file.reference.log4j-web-2.3.jar=lib\\log4j-web-2.3.jar
includes=**
j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true
${file.reference.log4j-api-2.3.jar}:\
${file.reference.log4j-core-2.3.jar}:\
${file.reference.commons-codec-1.10.jar}:\
- ${libs.MySQLDriver.classpath}
+ ${libs.MySQLDriver.classpath}:\
+ ${file.reference.log4j-web-2.3.jar}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked
javac.debug=true
javadoc.preview=true
javadoc.private=true
javadoc.reference.commons-codec-1.10.jar=/home/quix0r/public_html/JARs/commons-codec-1.10-javadoc.jar
+javadoc.reference.log4j-web-2.3.jar=../../../JARs/log4j-web-2.3-javadoc.jar
javadoc.splitindex=true
javadoc.use=true
javadoc.version=true
source.encoding=UTF-8
source.reference.commons-codec-1.10.jar=/home/quix0r/public_html/JARs/commons-codec-1.10-sources.jar
source.reference.jcore.jar=../jcore/src
+source.reference.log4j-web-2.3.jar=../../../JARs/log4j-web-2.3-sources.jar
source.root=src
src.dir=${source.root}/java
test.src.dir=test
<file>${libs.MySQLDriver.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
+ <library dirs="200">
+ <file>${file.reference.log4j-web-2.3.jar}</file>
+ <path-in-war>WEB-INF/lib</path-in-war>
+ </library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>
*/
package org.mxchange.pizzaapplication.basket;
+import java.io.Serializable;
import java.sql.SQLException;
import java.text.MessageFormat;
import java.util.LinkedHashMap;
*
* @author Roland Haeder
*/
-public class BaseBasket extends BaseFrameworkSystem implements Basket<AddableBasketItem> {
+public class BaseBasket extends BaseFrameworkSystem implements Basket<AddableBasketItem>, Serializable {
+ // Serial number
+ private static final long serialVersionUID = 784396762230845717L;
+
/**
* Item map
*/
<filter-name>Utf8ServletFilter</filter-name>
<filter-class>org.mxchange.pizzaapplication.filter.servlet.utf8.Utf8ServletFilter</filter-class>
</filter>
+ <filter>
+ <description>A servlet filter for logging</description>
+ <filter-name>Log4jServletFilter</filter-name>
+ <filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
+ </filter>
<filter>
<description>A filter for handling added basket items</description>
<filter-name>BasketItemAddedFilter</filter-name>
<filter-name>BasketItemAddedFilter</filter-name>
<url-pattern>/form_handler/add_item.jsp</url-pattern>
</filter-mapping>
+ <filter-mapping>
+ <filter-name>Log4jServletFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
<filter-mapping>
<filter-name>Utf8ServletFilter</filter-name>
<url-pattern>/*</url-pattern>