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