Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to configure IAS to use precompiled JSP classes instead of original JSP files?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I m using IAS 6.5. I want to use the precompiled JSP classes instead of the original JSP files. I used the jspc tools from 6.5 to create the classes. However, when I take away the original JSP files and just put the precompiled jspc classes there. IAS still looks for the original JSP files and give me 404 error. How do I notify IAS to look at the precompiled JPS classes instead of the original JSP files? There must be some settings that I have missed. Please give me light if you know anything.
Thanks in advance.
Ken
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
'ken_need_rest',
Welcome to the Javaranch, but please take a moment to review our naming policy and change your display name so that it is two names. Thanks.

As for your question, David Ogren's book has a short blurb on precompiled JSP's. It actually refers to a situation where there is no compiling allowed on production boxes, but might apply in your case...

A short paraphrase is: "You must compile your JSPs on a different server, and move both the *.java and *.class files to the compiled_jsp directory of the production server."

the compiled_jsp is maybe a bit skimpy.. the directory is probably:
WEB-INF/compiled_jsp/jsp/APPS/web-module
 
Kenneth Tang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike,

Thanks for your reply. That's what I did. I used jspc command tools from IAS to create precompiled JSP classes in "WEB-INF/compiled_jsp/jsp/APPS/web-module" in another machine (not productive machine). I followed the processes in the document in "iPlanet Application Server 6.5 Developer's Guide" - "http://docs.sun.com/source/816-5786-10/jpgjsp.htm#36857". I also checked the precompiled java files, the package setting is correct. My problem is that IAS does not try to read from "WEB-INF/compiled_jsp/jsp/APPS/web-module" at all. It only tried to read the .jsp files which I already took away, which of course, give me 404 error page. I think there are some IAS settings in Windows registry that I should set to tell IAS to load the precompiled JSP classes directoy instead. However, I cannot find anything about that in sun/iplanet documentation website "http://docs.sun.com/db?p=coll/S1_ipappsrvree65_en" .
Can you tell me more information about David Ogren's book? Or any idea is good to me.
Thanks,
Ken
 
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic