• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Precompile JSPs with JBOSS 4?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have any tips or good examples on how to precompile JSPs for JBOSS? Below is the code I have, and nothing happens. What is jasper2 supposed to do, anyways? Also, is there somewhere in web.xml that I need to point to where the jsps are?

Thanks!

<target name="jspc" depends="clean" description="Compile JSPs">
<taskdef classname="org.apache.jasper.JspC" name="jasper2"
classpathref="jsp.precompile.path" >
</taskdef>

<jasper2
validateXml="false"
uriroot="${web.dir}"
webXmlfragment="${web.dir}\WEB-INF\generated_web.xml"
outputDir="${jsp.precompile.destdir}"/>

<javac srcdir="${jsp.precompile.srcdir}" destdir="${jsp.precompile.classes}"
classpathref="jsp.precompile.path" debug="off" />
</target>
[ May 12, 2005: Message edited by: Kimberley Jones ]
 
Kimberley Jones
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I'm closer to my solution:

This was a good starting point:

http://cvs.sourceforge.net/viewcvs.py/jboss/website/content/build.xml.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h

I am making a sweet ANT task, so I'll try to post it soon.
[ May 12, 2005: Message edited by: Kimberley Jones ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kimberley,

Is your sweet ANT task ready ? I'm starting same thing in JBoss+Tomcat and was wondering if I can use the one you prepared.

Thanks
-Ami
 
Everybody's invited. Except this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic