Hi everyone,
I have a problem running application with precompiled JSPs sitting in WEB-INF/lib/some.jar file on WS 7.0 update 2. It seems like I'm forgetting to do something essential for WS to check for class files instead of trying to locate the original JSPs.
This app runs fine if I put the JSPs in the doc root directory and let the server to compile them, but not if they're already compiled. I used jspc.bat provided with the WS 7.0 installation to compile those files. The result looks like "org\apache\jsp\JSPFileName_jsp.class". I placed them just like that in the jar together with the rest of the servlets.
The servlet runs when I hit mapped url (it updates the log file and there are no errors in servlet initialization, aka it found the jsp classes all right) but the web server itself can't seem to locate them. It prints
Not Found.
The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it.
Here's the error from the web server configuration log (doc root is "c:/sunone7_local_instances/productionmode"):
11/Jun/2008:18:24:42 failure for host xx.xx.xx.xx trying to GET /servlet/data/, service-j2ee reports: PWC6117: File "c:/sunone7_local_instances/productionmode/LoginComponent.jsp" not found
The url "/servlet/data/" is mapped to a servlet class that calls LoginComponent after initializing.
This file is in the c:/sunone7_local_instances/productionmode/WEB-INF/lib/some.jar (together with the servlet that gets loaded) under "org/apache/jsp/LoginComponent_jsp.class" name, so it should be available to the WS.
WEB-INF/sun-web.xml file has <property name="reload-interval" value="-1"> to tell WS not to re-load the JSPs.
Is there anything else to it? What am I missing? Please let me know if I can put anything else here to help figuring this out.
Any help is appreciated.