Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 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 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?


Reply With Quote
  #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
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
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



All times are GMT -4. The time now is 10:44 AM.


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