Wrox Programmer Forums
|
BOOK: Professional Java for Web Applications
This is the forum to discuss the Wrox book Professional Java for Web Applications by Nicholas S. Williams; ISBN: 978-1-118-65646-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Java for Web Applications section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2016, 12:29 PM
Registered User
 
Join Date: Jan 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 20 EntityMappings does not work

I did all what had to be done ... create db, put resource in conf/context.xml and it doesnot work ....
When I run on server, it keeps saying http-status 404 mappings ....

What do I have to do, did I forgot something?

Well, let's try it again.
I used Tomcat 8.0.30 and installed the latest version 8.0.32. In persistence.xml I filled in all the necessary things for the Connection, instead of putting it in the context.xml from tomcat.
Also in the persistence.xml, I filled in the Managed classes used, Author, Book and Publisher. I run it and it worked, one day later I tried it again and it did not work again until now.

I tried to clean Tomcat, clean workdirectory, delete and install tomcat server again, but still it doesn't work .....

Last edited by rolandlensink; February 21st, 2016 at 04:25 PM.. Reason: tried some 'new' things ...
 
Old February 21st, 2016, 04:38 PM
Registered User
 
Join Date: Jan 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default hoping for an answer

I want to update my post ....
 
Old June 14th, 2016, 12:16 PM
Registered User
 
Join Date: Jun 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default My Solution to chap20 problem

Given:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

I changed it to (Just remove the last two spring taglibs, because they are redundant).

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>


I also added the following to pom.xml.

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>

This is so the application can connect to the database.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 20 Clever BOOK: Professional Application Lifecycle Management with Visual Studio 2010 2 January 9th, 2013 07:39 AM
Chapter 20 -- getting started OG BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 0 July 21st, 2012 03:59 PM
Need Solution to Chapter 20 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 1 January 26th, 2008 08:12 AM
Control button to print 20 reports - doesn't work chacquard Access VBA 5 December 14th, 2006 01:11 PM
Chapter 20 masegui JSP Basics 0 April 1st, 2004 07:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.