The classpath for javac is passed by web container to Jasper, and it
contains javax.javaee-10.0-SNAPSHOT.jar, which does not contain the
necessary servlet and jsp API's. Hence the error. (Not sure why it
work for JDK 5).
Not sure if this a prbolem with javax.javaee-10.0-SNAPSHOT.jar, or with
the way this calcuated in the container.
-Kin-man
Bhakti Mehta wrote:
> FYI This seems to be happening with just jdk6.
> Regards,
> Bhakti
>
> Bhakti Mehta wrote:
>> Hong,
>> I agree. My build was still going on so I downloaded
>> http://hudson.sfbay/view/GFv3/job/glassfish-v3/ last successful build
>> and can get 4 errors
>> org.apache.jasper.JasperException: PWC6033: Unable to compile class
>> for JSP
>>
>> PWC6199: Generated servlet error:
>> string:///hello_jsp.java:3: package javax.servlet does not exist
>>
>> PWC6199: Generated servlet error:
>> string:///hello_jsp.java:4: package javax.servlet.http does not exist
>>
>> PWC6199: Generated servlet error:
>> string:///hello_jsp.java:5: package javax.servlet.jsp does not exist
>>
>> PWC6199: Generated servlet error:
>> string:///hello_jsp.java:7: cannot access javax.servlet.jsp.HttpJspPage
>> class file for javax.servlet.jsp.HttpJspPage not found
>> Kinman pls can you look if you can reproduce.
>> Why is hudson still passing? Even the devbuilds seem to pass
>> Regards,
>> Bhakti
>>
>> Hong Zhang wrote:
>>> Hi, Bhkati
>>> (Adding Kin-man as this seems JSP related).
>>> As we talked on the phone, 4 out of the 15 QL tests failed for me (I
>>> tried both JDK 5 and JDK6). This is with a freshly updated workspace
>>> this morning (svn update; mvn clean; mvn -U install). The error
>>> message from the client side seems to indicate it could not access
>>> the jsp pages, and the error message from the server side seems to
>>> indicate the jsp compilation failed.
>>> I have attached the QL client side output and also copy/paste some
>>> of the error messages in the server.log below.
>>>
>>> #|2008-07-10T13:02:25.530-0400|SEVERE|GlassFish10.0|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=Thread-4;|StandardWrapperValve[Faces
>>> Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw
>>> exception
>>> org.apache.jasper.JasperException: PWC6033: Unable to compile class
>>> for JSP
>>>
>>> PWC6199: Generated servlet error:
>>> string:///jsfHello_jsp.java:3: package javax.servlet does not exist
>>>
>>> PWC6199: Generated servlet error:
>>> string:///jsfHello_jsp.java:4: package javax.servlet.http does not exist
>>>
>>> PWC6199: Generated servlet error:
>>> string:///jsfHello_jsp.java:5: package javax.servlet.jsp does not exist
>>>
>>> PWC6199: Generated servlet error:
>>> string:///jsfHello_jsp.java:7: cannot access
>>> javax.servlet.jsp.HttpJspPage
>>> class file for javax.servlet.jsp.HttpJspPage not found
>>>
>>> PWC6199: Generated servlet error:
>>> string:///jsfHello_jsp.java:10: cannot find symbol
>>> symbol : class JspFactory
>>> location: class org.apache.jsp.jsfHello_jsp
>>>
>>> at
>>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:123)
>>>
>>> at
>>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:296)
>>>
>>> at
>>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:367)
>>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:428)
>>> at
>>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
>>>
>>> at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:361)
>>>
>>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspS
>>>
>>> Thanks,
>>>
>>> - Hong
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>