• 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
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Pre Complilation of JSP files in Websphere 6

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to precompile my JSP files and then create the war files.
Also I would prefer not to have the generated java files in my war.
I tried with the "wsjspc" provided by websphere but it is not working.
Please note that there are static include in these jsp's which i am trying to compile.

I have reached a state where i am able to generate java files of the jsp.
But there as many errors as some of the jsps are static include.

The command that i give to excute this is
ant jspc2 -verbose
After this i get a error
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find the path specified)

Appreciate if any one could help in this.

Regards
Yogesh

[ May 07, 2007: Message edited by: Yogesh Wani ]
[ May 07, 2007: Message edited by: Yogesh Wani ]
 
author & internet detective
Posts: 42102
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yogesh,
To run any WebSphere tasks, you need to use IBM's runAnt.bat to set up the environment rather than running Ant directly.

Note that another option is to precompile the JSPs at deployment time rather than packaging time.
 
Yogesh Wani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would prefer the jsp to be precompiled at the packaging time.
Also being an enterprise application the deployment time will be very high as it will compile the jsp.
 
Jeanne Boyarsky
author & internet detective
Posts: 42102
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Yogesh Wani:
Also being an enterprise application the deployment time will be very high as it will compile the jsp.


You might want to time the difference. This only takes a few extra seconds for the application I deployed this morning. (about 25 JSPs.)
 
Yogesh Wani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you share the script.

And the application has around 900 jsp's in total. And we cannot have more than 1 hr of down time for deployment.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic