Meaningless Drivel is fun!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Chapter 3 - MalformedByteSequenceException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Chapter 3 - MalformedByteSequenceException " Watch "Chapter 3 - MalformedByteSequenceException " New topic

Chapter 3 - MalformedByteSequenceException

Santiago Bravo
Ranch Hand

Joined: Jul 25, 2008
Posts: 226

Im trying to complete the HFJS Chapter 3 exercise but getting a 404 error. I have the same structure exactly as detailed in the chaper - called the app Juice-v1 instead of beer.

The tomcat session indicates there is a parse error in web.xml which has resulted in a MalformedByteSequenceException - screenshot and web.xml atached.

Can anyone give some pointers? My web.xml looks fine

I've also had a look at previous posts with similar problems but still unable to resolve this error.



[Thumbnail for error.jpg]

Paul Clapham

Joined: Oct 14, 2005
Posts: 19747

I don't like the look of the quotes around your attribute values. Are they ordinary quote characters or did you make this document in Microsoft Word and paste it somewhere? If you did that then you probably have the so-called "smart quotes", which aren't acceptable for delimiting attribute values in XML.
Santiago Bravo
Ranch Hand

Joined: Jul 25, 2008
Posts: 226
spot on!

I have the ebook and copied & pasted if direct from the pdf. I didn't even think of that

Thanks alot Paul

I agree. Here's the link:
subject: Chapter 3 - MalformedByteSequenceException
It's not a secret anymore!