users@glassfish.java.net

Re: keepgenerated...not generating! :)

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 13 Dec 2006 10:19:31 -0800

David Harrigan wrote On 12/13/06 00:32,:

>Hi,
>
>Duly entered :-)
>
>https://glassfish.dev.java.net/issues/show_bug.cgi?id=1733
>
>

Thanks, David!

Notice that "keepgenerated" is set to TRUE by default. However,
having to write the generated Java sources to disk by default would
completely defeat in-memory compilation.

Therefore, we are thinking of making the default of "keepgenerated"
dependent on the JDK version: in JDK 1.5 and earlier releases, the
default will remain "true", but starting with JDK 1.6, where in-memory
compilation is enabled by default, the default will be "false".

Of course, if "keepgenerated" is set to "true" (in default-web.xml or
sun-web.xml) in a JDK 1.6 environment, it must be honored, which
is what the issue you've filed is about.


Jan

>-=david=-
>
>
>Jan Luehe wrote:
>
>
>>Hi David,
>>
>>
>>
>>>Hi,
>>>
>>>So, I've enabled keepgenerated in my default-web.xml and also in my
>>>sun-web.xml on GF v2 B27, and no JSP's are being kept around in the
>>>
>>>domains/domain1/generated/jsp/j2ee-modules/search//org/apache/jsp......
>>>directory
>>>
>>>
>>>
>>>
>>Your config (in default-web.xml and sun-web.xml) looks right.
>>(Notice that you should have to add the config to only one of
>>default-web.xml (for global visibility) or sun-web.xml (for local
>>visibility).
>>
>>I assume you've seen this issue only with in-memory compilation
>>(turned on by default on JDK 1.6), right?
>>
>>Please file an issue in Issue Tracker.
>>
>>Thanks!
>>
>>
>>Jan
>>
>>
>>
>>
>>>search = name of my webapp
>>>the double // comes from GF, not me ;)
>>>
>>>My default-web.xml under the jsp servlet looks like this:
>>>
>>><init-param>
>>><param-name>keepgenerated</param-name>
>>><param-value>true</param-value>
>>></init-param>
>>>
>>>and in my sun-web.xml
>>>
>>><jsp-config>
>>><property name="keepgenerated" value="true"/>
>>></jsp-config>
>>>
>>>A little bug perhaps? I've had a look at issuetracker with keyword of
>>>keepgenerated and against 9.1 - nothing is found.
>>>
>>>-=david=-
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>>
>>
>
>
>