aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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
ManagedServer1
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.
Anup.
sukie
Greenhorn

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
Sukie,
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.
Thanks
Anup
anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
Sukie,
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?
Thanks,
Anup
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSPs compiling each time in a cluster
 
Similar Threads
Session values are lost when request switched from one manged server to other in weblogic 10.3
Node Manager fails to restart one of the two instances on OS reboot
Error caused by persistence.xml
please answer this 128 questions for WLS. Urgently!
Weblogic Cluster - Config