glassfish
  1. glassfish
  2. GLASSFISH-20721

[embedded] JSP compilation fails in embedded

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
      None

      Description

      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:

      <dependency>
          <groupId>org.glassfish.main.extras</groupId>
          <artifactId>glassfish-embedded-all</artifactId>
          <version>4.0</version>
          <scope>provided</scope>
      </dependency>
      

      changing this to 3.1.2.2 will not cause an error:

      <dependency>
          <groupId>org.glassfish.main.extras</groupId>
          <artifactId>glassfish-embedded-all</artifactId>
          <version>3.1.2.2</version>
          <scope>provided</scope>
      </dependency>
      

      Relevant entries in log including exception stack trace:

      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)
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            arjan tijms
          • Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: