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 weblogic compiles already compiled JSP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic compiles already compiled JSP Watch "weblogic compiles already compiled JSP New topic

weblogic compiles already compiled JSP's

Monmohan Singh
Ranch Hand

Joined: Aug 02, 2002
Posts: 82
We are precompiling JSP's via Ant and pack them into a EAR .Stil when we deploy the EAR on weblogic 7.0 , it recompiles the JSP's on first request
What could be possible reason
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moving to the Weblogic Forum.

[Asking smart questions] [About Bear] [Books by Bear]
Ashish Pagare
Ranch Hand

Joined: Oct 14, 2003
Posts: 101
I am thinking about your issue and having this questions for others: When the client access the JSP, how will WebLogic know where the corresponding compiled Servlet class is? So all it will do is again compile the jsp in its own package structure and then keep a reference of it for future requests.
If you precompile your jsp's then in web.xml you need to map the url's to the generated servelt's instead on jsp's.
I read on some other websites that precompiling JSP is mainly used to validate the jsp's for syntax errors at the same time I also heard that precompiling jsps will improve the response for the first request in production environment. I am a bit with the advantage/usage of the pre-compiling jsp.
On a separate note: Here's 2 properties that can do the trick.
Default Value = 1
Desc = Sets the interval, in seconds, at which WebLogic Server checks to
see if JSP files have changed and need recompiling. Dependencies are also checked and recursively reloaded if changed.
If set to 0, pages are checked on every request. If set to -1,page
checking and recompiling is disabled.
Default Value = false
Desc = When set to true, WebLogic Server automatically precompiles all modified JSPs when the Web Application is deployed or re-deployed or when starting WebLogic Server.
I agree. Here's the link:
subject: weblogic compiles already compiled JSP's
It's not a secret anymore!