Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
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
 
Old March 18th, 2004, 09:54 PM
Authorized User
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error with Struts example -Chpter 15 -Please help

Hi am am tryng to run the strus example from chapter 15 and i am receivning the following error that the package does not exist, even though i have set it up in directory ...Shopping-3\WEB-INF\classes\com\wrox\shop


Can you pleasse advise???????

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 5 in the jsp file: /Shopping-3/index.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\jsp-examples\org\apache\jsp\Shopping_002d3\index_jsp.j ava:54: package com.wrox.shop does not exist
      com.wrox.shop.Catalog catalog = null;
                   ^



An error occurred at line: 5 in the jsp file: /Shopping-3/index.jsp

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\jsp-examples\org\apache\jsp\Shopping_002d3\index_jsp.j ava:56: package com.wrox.shop does not exist
        catalog = (com.wrox.shop.Catalog) pageContext.getAttribute("catalog", PageContext.APPLICATION_SCOPE);
                                ^



An error occurred at line: 5 in the jsp file: /Shopping-3/index.jsp

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\jsp-examples\org\apache\jsp\Shopping_002d3\index_jsp.j ava:58: package com.wrox.shop does not exist
          catalog = new com.wrox.shop.Catalog();
                                     ^
3 errors


    org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:127)
    org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:351)
    org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:415)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:458)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
    org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:552)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)


note The full stack trace of the root cause is available in the Tomcat logs.



PW
__________________
PW





Similar Threads
Thread Thread Starter Forum Replies Last Post
error while debugging in chapter 15 great.early805 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 April 12th, 2008 02:27 AM
Paginate function with thumbnails, chpter 7 and 16 dragon_rouge Beginning PHP 0 March 10th, 2008 06:26 AM
Chapter 15 Code Error - HELP! peterjstorey BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 January 24th, 2008 05:33 PM
Are there any struts generated error messages? ojasrege Struts 0 August 8th, 2007 08:46 AM





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