-
15. Re: JspC for JBoss 6 M4
rjanapala May 15, 2012 3:10 AM (in response to jfclere)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 May 16, 2012 4:12 AM (in response to rjanapala)The JSP compiler has been optimized so you don't need Jspc any more.
-
17. Re: JspC for JBoss 6 M4
rjanapala May 16, 2012 11:06 AM (in response to jfclere)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 May 16, 2012 11:30 AM (in response to rjanapala)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 May 18, 2012 3:53 PM (in response to jfclere)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 May 21, 2012 9:24 AM (in response to herbet99)yes that is no longer possible.
-
21. Re: JspC for JBoss 6 M4
herbet99 May 22, 2012 2:09 PM (in response to jfclere)Well that blows.. anyone using struts and tomcat with precompiled jsp files?
-
22. Re: JspC for JBoss 6 M4
herbet99 May 22, 2012 5:11 PM (in response to 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 May 23, 2012 4:13 AM (in response to herbet99)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 May 23, 2012 8:31 AM (in response to jfclere)annotations in a jsp? heck no.
-
25. Re: JspC for JBoss 6 M4
fred.vogt Jun 11, 2012 12:47 AM (in response to herbet99)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 Jun 11, 2012 1:04 AM (in response to fred.vogt)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 Jun 11, 2012 1:08 PM (in response to jaikiran)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 Oct 18, 2012 11:02 AM (in response to jaikiran)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 Oct 28, 2012 10:35 PM (in response to jfclere)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.