GlassFish does not save the generated java sources for jsp after compiling them by default. You can change this by adding the following snippet to your sun-web.xml ...
<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 the military 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 the military file (mywebapp.war), which is part of the 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
vkraemer
source share