Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp precompile

 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will jboss server support jsp precompilation?.please reply..

Thanks,
Priya.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JBoss forum.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your application contains jsps that are already compiled, then yes JBoss will use those precompiled jsps. But precompiling the jsps will be part of your application and not JBoss. Have a look at:

Pre compile jsps
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I understand..I've also written the JSPC task in ant script to do precompilation.I need to run this script using the following command.

$ANT_HOME/bin/ant -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>


In the above command,what i have to set it as tomcat_home?.I'm using jboss server..which path should be taken as tomcat_home from jboss setup?.Kindly reply me if you know..

Thanks in advance,

Priya.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat comes bundled as part of JBoss and it can be found in: %JBOSS_HOME%\server\default\deploy\jbossweb-tomcatxx.sar (depending on which version of JBoss you are using). However the contents of jbossweb-tomcatxx.sar are not the same as that you will find in a standalone tomcat. This folder will not contain any bin or lib directories. All the necessary jars are directly placed inside this folder. You will have to change the build script accordingly.
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok..Thanks Jaikiran for your reply..it really helped a lot..now it is working!!

Thanks,
Priya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic