Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via eclipse.org by Unknown author, 2 years ago
Unable to compile class for JSP: An error occurred at line: 3 in the generated java file [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp
via eclipse.org by Unknown author, 1 year ago
Unable to compile class for JSP: An error occurred at line: 3 in the generated java file [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp
via Stack Overflow by Sanchit
, 2 years ago
Unable to compile class for JSP: An error occurred at line: -1 in the generated java file [javac] C:\Users\Astrea\AppData\Local\Temp\appcfg54831.tmp\WEB-INF\classes\org\apache\jsp\accounts_jsp.java:6: package com.sforce.soap.partner.sobject
via Oracle Community by jsun106, 9 months ago
PWC6033: Unable to compile class for JSP PWC6199: Generated servlet error: [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 1 error note The full stack traces of the exception and its root causes are available in the Sun
via devshed.com by Unknown author, 2 years ago
Unable to compile class for JSP An error occurred at line: 74 in the jsp file: /jsp/shop.jsp Generated servlet error: [javac] Compiling 1 source file C:\jakarta-tomcat-4.1.27\temp\jsp\shop_jsp.java:7: package com.ecom.shop does not exist import
via Stack Overflow by Sree
, 2 years ago
Unable to compile class for JSP Generated servlet error: 2016/01/07 14:30:51:128 IST [ERROR] Compiler - Javac exception <Compile failed; see the compiler error output for details.>Compile failed; see the compiler error output for details.
org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 3 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:3: package javax.servlet does not exist
    [javac] import javax.servlet.*;
    [javac] ^
An error occurred at line: 4 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:4: package javax.servlet.http does not exist
    [javac] import javax.servlet.http.*;
    [javac] ^
An error occurred at line: 5 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:5: package javax.servlet.jsp does not exist
    [javac] import javax.servlet.jsp.*;
    [javac] ^
An error occurred at line: 6 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:6: package org.eclipse.help.internal.webapp.data does not exist
    [javac] import org.eclipse.help.internal.webapp.data.*;
    [javac] ^
An error occurred at line: 8 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:8: package org.apache.jasper.runtime does not exist
    [javac] public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    [javac]                                                               ^
An error occurred at line: 9 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:9: package org.apache.jasper.runtime does not exist
    [javac]     implements org.apache.jasper.runtime.JspSourceDependent {
    [javac]                                         ^
An error occurred at line: 17 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:17: cannot find symbol
    [javac] symbol  : class HttpServletRequest
    [javac] location: class org.apache.jsp.index_jsp
    [javac]   public void _jspService(HttpServletRequest request, HttpServletResponse response)
    [javac]                           ^
An error occurred at line: 17 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:17: cannot find symbol
    [javac] symbol  : class HttpServletResponse
    [javac] location: class org.apache.jsp.index_jsp
    [javac]   public void _jspService(HttpServletRequest request, HttpServletResponse response)
    [javac]                                                       ^
An error occurred at line: 18 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:18: cannot find symbol
    [javac] symbol  : class ServletException
    [javac] location: class org.apache.jsp.index_jsp
    [javac]         throws java.io.IOException, ServletException {
    [javac]                                     ^
An error occurred at line: 20 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:20: cannot find symbol
    [javac] symbol  : class JspFactory
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     JspFactory _jspxFactory = null;
    [javac]     ^
An error occurred at line: 21 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:21: cannot find symbol
    [javac] symbol  : class PageContext
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     PageContext pageContext = null;
    [javac]     ^
An error occurred at line: 22 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:22: cannot find symbol
    [javac] symbol  : class HttpSession
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     HttpSession session = null;
    [javac]     ^
An error occurred at line: 23 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:23: cannot find symbol
    [javac] symbol  : class ServletContext
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     ServletContext application = null;
    [javac]     ^
An error occurred at line: 24 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:24: cannot find symbol
    [javac] symbol  : class ServletConfig
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     ServletConfig config = null;
    [javac]     ^
An error occurred at line: 25 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:25: cannot find symbol
    [javac] symbol  : class JspWriter
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     JspWriter out = null;
    [javac]     ^
An error occurred at line: 26 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:26: incompatible types
    [javac] found   : org.apache.jsp.index_jsp
    [javac] required: java.lang.Object
    [javac]     Object page = this;
    [javac]                   ^
An error occurred at line: 27 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:27: cannot find symbol
    [javac] symbol  : class JspWriter
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     JspWriter _jspx_out = null;
    [javac]     ^
An error occurred at line: 28 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:28: cannot find symbol
    [javac] symbol  : class PageContext
    [javac] location: class org.apache.jsp.index_jsp
    [javac]     PageContext _jspx_page_context = null;
    [javac]     ^
An error occurred at line: 32 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:32: cannot find symbol
    [javac] symbol  : variable JspFactory
    [javac] location: class org.apache.jsp.index_jsp
    [javac]       _jspxFactory = JspFactory.getDefaultFactory();
    [javac]                      ^
An error occurred at line: 14 in the jsp file: /index.jsp
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:47: cannot find symbol
    [javac] symbol  : class LayoutData
    [javac] location: class org.apache.jsp.index_jsp
    [javac] 	LayoutData data = new LayoutData(application,request, response);
    [javac] 	^
null
An error occurred at line: 14 in the jsp file: /index.jsp
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:47: cannot find symbol
    [javac] symbol  : class LayoutData
    [javac] location: class org.apache.jsp.index_jsp
    [javac] 	LayoutData data = new LayoutData(application,request, response);
    [javac] 	                      ^
null
An error occurred at line: 15 in the jsp file: /index.jsp
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:48: cannot find symbol
    [javac] symbol  : variable ServerState
    [javac] location: class org.apache.jsp.index_jsp
    [javac] 	ServerState.webappStarted(application,request, response);
    [javac] 	^
null
An error occurred at line: 23 in the jsp file: /index.jsp
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:56: cannot find symbol
    [javac] symbol  : class TocData
    [javac] location: class org.apache.jsp.index_jsp
    [javac] 		TocData tData = new TocData(application,request, response);
    [javac] 		^
null
An error occurred at line: 23 in the jsp file: /index.jsp
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:56: cannot find symbol
    [javac] symbol  : class TocData
    [javac] location: class org.apache.jsp.index_jsp
    [javac] 		TocData tData = new TocData(application,request, response);
    [javac] 		                    ^
null
An error occurred at line: 81 in the generated java file
    [javac] /home/hamed/.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/org.eclipse.osgi/bundles/55/data/jettywork/pid_2070971114/proxytemp/hc_28705465/org/apache/jsp/index_jsp.java:81: cannot find symbol
    [javac] symbol  : class SkipPageException
    [javac] location: class org.apache.jsp.index_jsp
    [javac]       if (!(t instanceof SkipPageException)){
    [javac]                          ^
    [javac] 25 errors
An error occurred at line: 25 in the generated java file
May 26, 2010 4:25:02 PM org.apache.jasper.compiler.AntCompiler generateClass
SEVERE: Javac exception 
Compile failed; see the compiler error output for details.	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1079)	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)	at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:217)	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:112)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)	at org.mortbay.jetty.Server.handle(Server.java:326)	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)