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 November 1st, 2006, 04:42 AM
Registered User
 
Join Date: Oct 2006
Location: beautiful village, beautiful Island, Malaysia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default unable to compile class file

Can anyone tell what happens to my jsp code? Why after compile, it show ou this problems? i'm very confuse because the original program can work on my supervisor's computer, but after i copy to my computer. Then it show this error? i'm a new in jsp and this is a sample page from my supervisor? so i have no idea to solve it!

Thanks in advance!

Good Luck to all of you!
----------------------------------------------------------------------

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

Generated servlet error:
The type bgoc.webaccs.UserInfo cannot be resolved. It is indirectly referenced from required .class files

Generated servlet error:
Only a type can be imported. bgoc.webaccs.UserInfo resolves to a package


    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


root cause

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

Generated servlet error:
The type bgoc.webaccs.UserInfo cannot be resolved. It is indirectly referenced from required .class files

Generated servlet error:
Only a type can be imported. bgoc.webaccs.UserInfo resolves to a package


    org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:328)
    org.apache.jasper.compiler.JDTCompiler.generateCla ss(JDTCompiler.java:414)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:297)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:264)
    org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
---------------------------------------------------------------------------



===========================
Derrick
all the best!!


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to compile my Action class vivekkumar_23 Struts 2 May 4th, 2006 09:09 AM
Unable to load tag handler class nithya123 BOOK: Professional Jakarta Struts 0 September 1st, 2005 10:02 AM
Compile method (Compiler class) stalker C# 2 November 11th, 2004 01:19 PM
URGENT - Unable to compile class for jsp Black Balloon Apache Tomcat 6 August 27th, 2004 06:38 PM
Unable to Compile - page 17 JDGuardia BOOK: Beginning Java 2 1 July 13th, 2003 08:30 AM





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