Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Professional Java for Web Applications
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 28th, 2016, 12:29 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 ...
Reply With Quote
  #2 (permalink)  
Old February 21st, 2016, 04:38 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 ....
Reply With Quote
  #3 (permalink)  
Old June 14th, 2016, 12:16 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.