This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic compiles already compiled JSP Watch "weblogic compiles already compiled JSP New topic
Author

weblogic compiles already compiled JSP's

Monmohan Singh
Ranch Hand

Joined: Aug 02, 2002
Posts: 82
Hi,
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
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Moving to the Weblogic Forum.
bear


[Asking smart questions] [Bear's FrontMan] [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.
pageCheckSeconds
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.
precompile
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: http://aspose.com/file-tools
 
subject: weblogic compiles already compiled JSP's