1 2 3 Previous Next 31 Replies Latest reply on Oct 29, 2012 5:01 AM by jfclere Go to original post
      • 15. Re: JspC for JBoss 6 M4
        rjanapala

        Hi,

         

        If Jspc is not supported then what is the alternative to that. If have an idea, Could you please share the details

        • 16. Re: JspC for JBoss 6 M4
          jfclere

          The JSP compiler has been optimized so you don't need Jspc any  more.

          • 17. Re: JspC for JBoss 6 M4
            rjanapala

            Thanks for the reply Clere,


            I got you. Let me put a straight question to you. Supporting of precompiling the JSP pages in jboss AS 7.1 is totaly removed?

            • 18. Re: JspC for JBoss 6 M4
              jfclere

              yes it has been removed.

              If you need to validate a bunch of jsp I suggest you use Arquillian to write a test that tries all jsp in a war.

              • 19. Re: JspC for JBoss 6 M4
                herbet99

                I'm migrating from jboss 4 to 6.. I've normally precompiled and jarred all my jsp files before deployment. Is this no longer possible?

                • 20. Re: JspC for JBoss 6 M4
                  jfclere

                  yes that is no longer possible.

                  • 21. Re: JspC for JBoss 6 M4
                    herbet99

                    Well that blows.. anyone using struts and tomcat with precompiled jsp files?

                    • 22. Re: JspC for JBoss 6 M4
                      herbet99

                      I was able to compile and jar my jsp files using tomcat 7 and then using that jar in jboss 6. One issue I did run into was a dependency on org.apache.AnnotationProcessor but adding that class (and that class only) to the classpath seem to fix that issue.

                       

                       

                      • 23. Re: JspC for JBoss 6 M4
                        jfclere

                        the annotation is the part that should cause problems did you check if yours jsp are using annotations? (well I think they don't because they come from jboss-4.x).

                        • 24. Re: JspC for JBoss 6 M4
                          herbet99

                          annotations in a jsp? heck no.

                          • 25. Re: JspC for JBoss 6 M4
                            fred.vogt

                            I was able to do this by writing my own jspc ant task.

                             

                            I looked at the previous JSPC and ported it to JBossWeb 7.x.

                             

                            This took awhile.  The source code to this is too big to post here.  Also my implementation is pretty limited and happens to work with my JSPs.

                            The hardest part is populating the TagLibInfos needed by the JSP compilation context / JSP compiler.

                             

                            I needed this to confirm that the JSPs would still compile in JBoss 7.

                            • 26. Re: JspC for JBoss 6 M4
                              jaikiran

                              I'm really curious - Is it worth pre-compiling these JSPs? It's been some years now since I worked on a project that required pre-compiling JSPs and even during those days, the performance improvement by using pre-compiled JSPs for first access wasn't noticeable. So have you done some performance measurements to see if there's a noticeable performance improvement for first access to your JSPs when they are pre-compiled as against just letting the server handle the compilation at runtime?

                              • 27. Re: JspC for JBoss 6 M4
                                fred.vogt

                                In my case I didn't do it for performance reasons.  I did it to ensure that all the JSPs in our webapps could still compile in JBossWeb 7.x.

                                • 28. Re: JspC for JBoss 6 M4
                                  roqs

                                  We also don't do it for performance reasons.  We need to validate during build time to check if our JSPs have no compile errors before having them packaged and deployed - it is way better than seeing the jsp compile error during runtime.

                                  • 29. Re: JspC for JBoss 6 M4
                                    javatwo

                                    I am curious why it is difficult for AS7. When I access jsp pages at runtime, they are compiled before showing. The same code

                                    should be used to pre-compile jsp for ant task.