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:

Coderanch | Siddhesh Khedekar | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Tomcat Server Error

    Coderanch | 7 years ago | Siddhesh Khedekar
    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:
  2. 0

    Tomcat server error

    Oracle Community | 7 years ago | 843798
    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:
  3. 0

    [javasf] h:commandLink erro

    Google Groups | 7 years ago | Sérgio Fantin
    javax.servlet.ServletException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RequestDispatcher unable to fetch me to JSP page

    Stack Overflow | 2 years ago | user3900009
    org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: source value 1.5 is obsolete and will be removed in a future release PWC6199: Generated servlet error: target value 1.5 is obsolete and will be removed in a future release PWC6199: Generated servlet error: To suppress warnings about obsolete options, use -Xlint:-options. PWC6197: An error occurred at line: 20 in the jsp file: /MemberAccess/PurchaseCreateM.jsp PWC6199: Generated servlet error: incompatible types: java.lang.Object cannot be converted to double PWC6199: Generated servlet error: /PurchaseCreateM_jsp.java uses unchecked or unsafe operations. PWC6199: Generated servlet error: Recompile with -Xlint:unchecked for details.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    1 frame
  4. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    6 frames
  5. Unknown
    ProcessServlets.doPost
    1. ProcessServlets.doPost(ProcessServlets.java:45)
    1 frame
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    2 frames
  7. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    8 frames
  8. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    4 frames
  9. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame