Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Precompiling jsps in a .war file in weblogic 5.9

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
Hey there,
I have a war file in whose web.xml I have set the 'weblogic.jsp.precompile' option to 'true'. So when I start the server, the jsp compiler attempts to compile all jsps in the war file. However, the compiler fails because of the fact that there are variables that are used in many pages that are only declared in one jsp file which is included in the others. There are also jsps that use variables declared in other jsps and are never referenced on their own, but only as part of a larger jsp page. The compiler falls over when it meets any of these undeclared variables, while the behaviour I want is for the compiler to ignore jsps it can't compile, dynamically include any included jsp pages first and then attempt to compile each page. Is there a way of doing this? Thanks
 
It doesn't look like there is a solution to your problem. I have a similar problem getting WebLogic to precompile JSP pages that use a Custom Tag Library. Essentially it bombs out because it can't figure out the Custom Tags during the pre-compilation phase of start-up but it is fine after everything is booted. My guess is that it has something to do with the order of class loading. Go figure.

Sorry, I don't have a solution to your problem. Just writing to let you know that I feel the pain :) .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top