I'm looking for some information I haven't found anywhere else, as title says: I cannot find where glassfish is storing JSP pages upon runtime compilation, I already looked in the following directories:
Any other hint?
Do I have to setup Glassfish in some way? Setup some properties? (I set jspCachingEnabled=true in the web-container only)
Thanks in advance.
GlassFish does not keep the generated java sources for a jsp after they have been compiled by default. You can change that by adding the following snippet into your sun-web.xml file...
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
If your jsp (mypage.jsp) is in a war file (mywebapp.war), then the java file will be under
%GLASSFISH_HOME%\domains\domain1\generated\jsp\j2ee-modules\mywebapp_war\org\apache\jsp\mypage_jsp.java
If your jsp (mypage.jsp) is in a war file (mywebapp.war) that is part of an EAR (myentapp.ear) then the java file will be under
%GLASSFISH_HOME%\domains\domain1\generated\jsp\j2ee-apps\myentapp\mywebapp_war\org\apache\jsp\mypage_jsp.java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With