File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes JSPs compiling each time in a cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JSPs compiling each time in a cluster" Watch "JSPs compiling each time in a cluster" New topic

JSPs compiling each time in a cluster

anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
Fellow Ranchers:
When I try to access my jsps in a cluster, they get compiled each time I hit it. This does not happen when they are not clustered.
Has anyone else had this problem?
This is how I have my setup:
M/C 1 (Solaris) M/C 2 (Solaris)
AdminServer ManagedServer2
I have my jsps under the MyWebApp directory in both the managed servers and the weblogic.xml and web.xml under the WEB-INF directory of both managed servers. The WebApp is targeted to the cluster and not to the individual servers.
I have also tried pre-compiling the jsps and then setting the pageCheckSeconds in the weblogic.xml to -1 which should prevent weblogic from recompiling but that doesnt work either.
Again, this happens only when deploying the jsps in a cluster.
Please let me know if anyone else has had a similar problem or if anyone knows that this is a bug in the weblogic server.
Thanks for any help.

Joined: Sep 15, 2001
Posts: 1
I deployed an ear consisting of EJBs and JSP in a Weblogic 6.0sp1 clustered environment. I encountered the same problem of JSP recompilation with each deployment.
I have tried using the option of pageCheckSeconds= -1 and this failed. I have also tried doing a JSP precompilation to circumvent the recompilation. The last alternative also failed. In fact, Weblogic reported that it overrides the user-specifed value provided.
anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
Thanks for ur reply. I have this problem when I deploy the jsps in exploded format. I havent tried deploying it as an ear but from ur post it appears as if that wouldnt help either.
Please do let me know if u think of anything.
anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
Did u get the information about Weblogic overriding the userspecified value from weblogic support or is this documented somewhere?
And do u know what the server looks for if it overrides the userspecified value?
I agree. Here's the link:
subject: JSPs compiling each time in a cluster
It's not a secret anymore!