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 Coderanch by Siddhesh Khedekar, 1 year ago
Unable to compile class for JSP: An error occurred at line: 7 in the generated java file Only a type can be imported. com.sun.xml.internal.txw2.Document resolves to a package An error occurred at line: 8 in the generated java file Only a type can
via Oracle Community by 843798, 1 year ago
Unable to compile class for JSP: An error occurred at line: 7 in the generated java file Only a type can be imported. com.sun.xml.internal.txw2.Document resolves to a package An error occurred at line: 8 in the generated java file Only a type can be
via osdir.com by Unknown author, 2 years ago
Unable to compile class for JSP An error occurred at line: 21 in the jsp file: /bookList.jsp Generated servlet error: inventory.books cannot be resolved to a type
via JDK Bug System by Webbug Group, 1 year ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via roseindia.net by Unknown author, 1 year ago
Unable to compile class for JSP: An error occurred at line: 18 in the jsp file: /result_count.jsp sumcount cannot be resolved to a variable 15: 16: <td width="100%" style="font-size:14pt;color:blue;padding-left:70px;" align="left"> <b
via Stack Overflow by Sergii
, 6 months ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files An error occurred at line: 1 in the generated java file The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.sun.xml.internal.txw2.Document resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.sun.xml.internal.ws.transport.http.server.EndpointDocInfo resolves to a package
An error occurred at line: 12 in the generated java file
Only a type can be imported. javax.xml.stream.events.EndElement resolves to a package
Stacktrace:	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)	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:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)	at undefined.ProcessServlets.doPost(ProcessServlets.java:45)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)	at java.lang.Thread.run(Unknown Source)