users@glassfish.java.net

Re: not generating myjspname_jsp.java file

From: emiddio-verizon <emiddio_at_verizon.net>
Date: Fri, 22 Jan 2010 11:19:07 -0800

i had similliar question/answer

emiddio-verizon wrote:
> i cannot find any class for java files for the deployed jsp pages for
> a web app in
> domains/domain1 -- anywhere;
>
> they used to appear in some earlier Sun App Servers in
> domain1/generated/j2ee-modules/jsp
>
> how can i config the deployment to keep the generated jsp java files
> for use in debugging?
>
> thanks
>
> gary
>
>
>
In sun-web.xml (done by default in NetBeans and Eclipse):
  <jsp-config>
    <property name="keepgenerated" value="true">
      <description>Keep a copy of the generated servlet class java
code.</description>
    </property>
  </jsp-config>



  ----- Original Message -----
  From: Bhaarat Sharma
  To: users_at_glassfish.dev.java.net
  Sent: Friday, January 22, 2010 10:55 AM
  Subject: not generating myjspname_jsp.java file


  If I get an error like the following in a JSP it creates a _jsp.java file.


  java.lang.NullPointerException
  at org.apache.jsp.somepackage.myjspname_jsp._jspService(myjspname_jsp.java from :303)


  Nowhere am i able to find this file. I am on a windows environment and checked everything under C:\GF


  Is this file generated on the fly? Can I change some setting to actually generate this file? Usually it would be in the generated folder but I am not able to find it!


  I am using GlassFish V2