org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist

Java.net JIRA | arjan tijms | 3 years ago
  1. 0

    When using the embedded container from GlassFish 4.0 compilation for JSP pages fails. This seems to be the exact same issue as GLASSFISH-9511. When I change the container to the one from GlassFish 3.1.2.2 everything works correctly. E.g. when using Maven having the following in {{pom.xml}} when using Arquillian and Drone will cause the error: {code:xml} <dependency> <groupId>org.glassfish.main.extras</groupId> <artifactId>glassfish-embedded-all</artifactId> <version>4.0</version> <scope>provided</scope> </dependency> {code} changing this to 3.1.2.2 will not cause an error: {code:xml} <dependency> <groupId>org.glassfish.main.extras</groupId> <artifactId>glassfish-embedded-all</artifactId> <version>3.1.2.2</version> <scope>provided</scope> </dependency> {code} Relevant entries in log including exception stack trace: {noformat} INFO: Loading application [register-session-simple] at [/register-session-simple] Jul 23, 2013 12:13:21 AM org.glassfish.deployment.admin.DeployCommand execute INFO: register-session-simple was successfully deployed in 1,399 milliseconds. Jul 23, 2013 12:13:22 AM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /var/folders/lb/tt__r4nd2ldgfvhwkfqrzyh00000gn/T/gfembed2742910557672872056tmp/generated/jsp/register-session-simple/org/apache/jsp/index_jsp.java Jul 23, 2013 12:13:22 AM org.apache.catalina.core.StandardWrapperValve log WARNING: StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: package javax.servlet does not exist PWC6199: Generated servlet error: package javax.servlet.http does not exist PWC6199: Generated servlet error: package javax.servlet.jsp does not exist PWC6199: Generated servlet error: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: package org.apache.jasper.runtime does not exist PWC6199: Generated servlet error: cannot find symbol symbol: class JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: cannot find symbol symbol: class HttpServletRequest location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class HttpServletResponse location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class ServletException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: variable JspFactory location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class HttpSession location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class ServletContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class ServletConfig location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: incompatible types required: java.lang.Object found: org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class JspWriter location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class PageContext location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: package org.glassfish.jsp.api does not exist PWC6199: Generated servlet error: cannot find symbol symbol: class SkipPageException location: class org.apache.jsp.index_jsp PWC6199: Generated servlet error: cannot find symbol symbol: class ServletException location: class org.apache.jsp.index_jsp at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:678) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544) at java.lang.Thread.run(Thread.java:722) {noformat}

    Java.net JIRA | 3 years ago | arjan tijms
    org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist
  2. 0

    [cas-user] CAS 3.5.2.1 and JBOSS 5.1.2

    Google Groups | 2 years ago | Julien Huon
    org.apache.jasper.JasperException: /WEB-INF/view/jsp/default/ui/casLoginView.jsp(21,0) Exception lors de linitialisation de TldLocationsCache: {0}
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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. treefolk 1 times, last 1 week ago
  3. Andreas Häber 1 times, last 1 month ago
  4. abrazeneb 4 times, last 5 months ago
  5. andyglick 12 times, last 3 months ago
1 more registered users
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

    PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist PWC6197: An error occurred at line: 5 in the jsp file: /WEB-INF/inc/redirector.jsp PWC6199: Generated servlet error: package mycom.mypackage does not exist

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)
    3. org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
    5. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
    6. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    7. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
    8. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
    8 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  4. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
    2. org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:739)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:575)
    5. org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:546)
    6. org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:428)
    7. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:378)
    7 frames
  5. Spring MVC
    AbstractView.render
    1. org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
    2. org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
    2 frames
  6. Spring Web Flow
    FlowHandlerAdapter.handle
    1. org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:50)
    2. org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:187)
    3. org.springframework.webflow.engine.ViewState.render(ViewState.java:296)
    4. org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:186)
    5. org.springframework.webflow.engine.State.enter(State.java:194)
    6. org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    7. org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
    8. org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
    9. org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
    10. org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
    11. org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
    12. org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
    13. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
    14. org.springframework.webflow.engine.State.enter(State.java:194)
    15. org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    16. org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
    17. org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
    18. org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
    19. org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
    20. org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
    21. org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
    22. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
    23. org.springframework.webflow.engine.State.enter(State.java:194)
    24. org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    25. org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
    26. org.springframework.webflow.engine.State.enter(State.java:194)
    27. org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    28. org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
    29. org.springframework.webflow.engine.State.enter(State.java:194)
    30. org.springframework.webflow.engine.Flow.start(Flow.java:535)
    31. org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)
    32. org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)
    33. org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
    34. org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
    34 frames
  7. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    2. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    3. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    4. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    4 frames
  8. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    2 frames
  9. Jasig CAS Core
    SafeDispatcherServlet.service
    1. org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)
    2. org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:57)
    3. org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)
    3 frames
  10. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
    2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
    3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    3 frames
  11. Inspektr - Common API
    ClientInfoThreadLocalFilter.doFilter
    1. com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)
    1 frame
  12. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    2 frames
  13. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    3. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    4. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    4 frames
  14. Glassfish Core
    StandardPipeline.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
    5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
    6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
    6 frames
  15. Glassfish
    WebPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
    1 frame
  16. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
    3. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
    4. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:354)
    5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
    5 frames
  17. Kernel Classes
    ContainerMapper.service
    1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
    1 frame
  18. Grizzly Server
    HttpServerFilter.handleRead
    1. org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
    2. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
    3. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
    3 frames
  19. Grizzly
    AbstractThreadPool$Worker.run
    1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
    3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
    4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
    5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
    6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
    8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
    9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
    10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
    11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
    12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
    13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
    13 frames
  20. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:722)
    1 frame