Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics 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
  #1 (permalink)  
Old June 5th, 2008, 11:37 PM
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning Javaservpages Exercise in Ch 22

WROX books do not tell you whether you must have all your web files under your Apache Tomcat root directory. For deploys out of the ... localhost directory I am for now choosing to store them in a different root directory. The book does say you must put the chapter22.xml in the ... localhost directory for Tomcat to see - and I am doing that.

The error that is occuring:

2008-06-05 20:17:16 StandardWrapperValve[FormProcServlet]: Allocate exception for servlet FormProcServlet
javax.servlet.ServletException: Wrapper cannot find servlet class com.wrox.begjsp.ch22.name.FormProc or a class it depends on.

The exercise is to execute 'FormProc.java'.
I didn't think a container would compile java code. I am reading it will compile a jsp file into java code. I would have thought I needed to store a 'FormProc.class' file.

There are import operators in said code, but I assume the JVM/Container can locate them in the java root directory.

Any ideas what is happening?


  #2 (permalink)  
Old June 12th, 2008, 07:30 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

The class file should be in the correct package directory, if you've this compile .class file in your WEB-INF/classes directory it should in "WEB-INF/classes/com/wrox/begjsp/ch22/name" directory.

- Rakesh


Similar Threads
Thread Thread Starter Forum Replies Last Post
My solution to exercise 6, on ch.2 - help rjm BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 July 28th, 2010 05:50 PM
Ch 11 Pg459 Exercise 5 C# brivad BOOK: Beginning ASP.NET 1.0 0 September 10th, 2007 08:59 AM
Binding Navigator in Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 01:39 PM
SQL Express OK in Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 01:34 PM
Highlighted code; Page 1113, Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 10:13 AM





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