5 Replies Latest reply on Apr 1, 2008 3:24 PM by 666705

    How to keep the generated java classes for compiled jsp in WL9.2 Workshop

    666705
      Hi all,
                <p>
                It should be a very simple question for most of you, however, it seems a bit tricky to me: how to configure the Weblogic 9.2 workshop so that we could keep the generated java files for the compiled jsp when we ran the application within WL 9.2 workshop?
                <p>
                I try some configurations, but not working. Also, where are the generated java files stored?
                <p>
                Thanks for the help!
                <p>
                Agnes
                
                --
                Edited by wingagnes at 03/21/2008 7:51 AM
        • 1. Re: How to keep the generated java classes for compiled jsp in WL9.2 Worksh
          666705
          Agnes,
                    
                    By default, WLS does not keep the generated source code of JSPs.
                    
                    Could you add a "keepgenerated" property into your weblogic.xml and try it out?
                    For more detail, please refer to
                    http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html#wp1038491
                    
                    Thanks,
                    -Fred.
          • 2. Re: How to keep the generated java classes for compiled jsp in WL9.2 Worksh
            666705
            Thanks a lot for the help! Fred. Will try and let you know if it works.
                      
                      Best,
                      Agnes
            • 3. Re: How to keep the generated java classes for compiled jsp in WL9.2 Worksh
              666705
              I change the weblogic.xml file to replace the jsp-descriptor section with the following, then it works:
                        <p>
                        <jsp-descriptor>
                        <p>
                        <keepgenerated>true</keepgenerated>
                        <p>
                        <working-dir>D:\temp\golGenerated</working-dir>
                        <p>
                        <debug>true</debug>
                        <p>
                        </jsp-descriptor>
                        <p>
                        The only issue is that, it seems if we add other jsp descriptors (e.g. precompile, etc), the weblogic.xml is showing errors on WL92 workshop. How that happens?
                        <p>
                        Thanks, Agnes
              • 4. Re: How to keep the generated java classes for compiled jsp in WL9.2 Worksh
                666705
                Agnes, could you paste the error message here?
                • 5. Re: How to keep the generated java classes for compiled jsp in WL9.2 Worksh
                  666705
                  Hi yzeng,
                            <p>
                            
                            Thanks for the reply. If I change the jsp-descriptor into the following:
                            
                            <p>
                            <jsp-descriptor>
                            <p>
                            <keepgenerated>true</keepgenerated>
                            <p>
                            <working-dir>D:\temp\golGenerated</working-dir>
                            <p>
                            <debug>true</debug>
                            <p>
                            </jsp-descriptor>
                            <p>
                            I will get the following error message:
                            <p>
                            
                            cvs-complex-type.2.3.d:Invalid content was found starting with element 'precompile'. No child element is expected at this point.
                            
                            <p>
                            Thanks,
                            <p>
                            Agnes