* @throws ServletException
*/
private boolean processJspFile(File jspFile, String virtualPath,
Bundle targetBundle) throws Exception {
IWebApplication webApp = FwkRuntime.getInstance().getAppliction(
targetBundle);
// Check and make sure this web application actived
if (!FwkRuntime.getInstance().makeSureWabActive(webApp))
throw new IllegalStateException(
"Web bundle not be actived to handle dymamic resource at this time and wait timeout.");
// here should not remove the bundle prefix before the virtual path.
// if servlet path is the same, the jasper may not compile the jsp just
// use the form class
// file. here set the servlet name to virtual name to hint that
// these are different. The
// BundleServletContext will remove the prefix for us.
// get the target bundle's servlet config.
/*
* if (newResPath.startsWith("/" + activator.getServiceNSPrefix() +
* "/")) newResPath = newResPath.replaceFirst("/" +
* activator.getServiceNSPrefix() + "/", "/");
*/
// Get a poolled servlet to process jsp file.
JasperServletWrapper jspServlet = JspServletPool.getInstance(webApp
.getBundleServletContext());
// ClassLoader c = jspServlet.getClass().getClassLoader();
// if newResPath is the same, the jasper may not compile the jsp
// just use the form class
// file. here set the servlet name to virtual name to hint that