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
  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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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.
  5. 0

    how to get object into jsp from arraylist which is added into modelAndView inside controller

    Stack Overflow | 2 years ago | user2409128
    org.apache.jasper.JasperException: /WEB-INF/ConfigureApplication.jsp(45,86) The function get must be used with a prefix when a default namespace is not specified

  1. Justin 2 times, last 4 months ago
  2. Andreas Häber 1 times, last 1 month ago
  3. abrazeneb 4 times, last 5 months ago
  4. andyglick 12 times, last 3 months ago
  5. Plato2000 6 times, last 7 months ago
71 unregistered visitors
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