hi all Today I attempted to upgrade from tomcat 4.1.10 to 4.1.12LE which also involved moving from jdk1.3 to jdk1.4. Before porting across my application code, I thought I'd give the examples application a whirl, to sanity check the installation. While the servlets work ok, I have compiling the JSPs down into servlets. More specifically, jasper barfs with the following stack trace:
org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: Detected Java version: 1.4 in: c:\usr\local\lib\jdk1.4.1\jre Detected OS: Windows NT [javac] jsp\dates\date_jsp.java added as C: \Apache_Group\Tomcat-4.1.12\work\Standalone\localhost\examples\jsp\dates\date_jsp.class doesn't exist. [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [...] Setting the Jasper logging to default, I have found the following in $CATALINA_HOME/logs/localhost_log.2002-10-22.txt: 2002-10-22 16:30:03 StandardHost[localhost]: Mapping request URI '/examples/jsp/dates/date.jsp' 2002-10-22 16:30:03 StandardHost[localhost]: Mapped to context '/examples' 2002-10-22 16:30:03 JspEngine --> /jsp/dates/date.jsp 2002-10-22 16:30:03 ServletPath: /jsp/dates/date.jsp 2002-10-22 16:30:03 PathInfo: null 2002-10-22 16:30:03 RealPath: c: \apache_group\tomcat-4.1.12\webapps\examples\jsp\dates\date.jsp 2002-10-22 16:30:03 RequestURI: /examples/jsp/dates/date.jsp 2002-10-22 16:30:03 QueryString: null 2002-10-22 16:30:03 Request Params: 2002-10-22 16:30:05 HostConfig[localhost]: Deploying discovered web applications 2002-10-22 16:30:06 Error compiling file: C: \Apache_Group\Tomcat-4.1.12\work\Standalone\localhost\examples\jsp\dates\/date_jsp.java Detected Java version: 1.4 in: c:\usr\local\lib\jdk1.4.1\jre Detected OS: Windows NT [javac] jsp\dates\date_jsp.java added as C: \Apache_Group\Tomcat-4.1.12\work\Standalone\localhost\examples\jsp\dates\date_jsp.class doesn't exist. [javac] Compiling 1 source file On the line where the error is reported above , the absolute path to the java code is wrong, i.e. "dates\/date_jsp.java" should be "dates\date_jsp.java", shouldn't it??? I have been searching the archives all afternoon and am aware of bug 10036 which is to do with the JDK1.4 compiler now rejects import statements that import from an unnamed namespace. I dont think this is related.... As I see it, there must be many people who have got the JSPs in the Examples application compiling before now, so expect that there is a small config error somewhere on my part. (See my config details below) If you can spot the bug, i'll buy you a beer next time you're in London! TIA Nigel i am running the following: - apache 2.0.43 - mod_jk2 2.0.1 - tomcat 4.1.12 LE - jdk 1.4.1_01 ============================== workers2.properties [uri:/examples/*] worker=ajp13:localhost:8009 info=DirectLine context context=/examples debug=4 [uri:/examples/servlet/*] worker=ajp13:localhost:8009 info=Example webapp in the default context. context=/examples debug=0 ============================== jk2.properties # no application-specific stuff ============================== $CATALINA_HOME/conf/web.xml no changes from the default install,except changing the logging level ============================== $CATALINA_HOME/conf/server.xml no changes from the default install version ============================== $CATALINA_HOME/webapps/WEB-INF/web.xml no changes from the default install version -- Nigel Byrnes E-Commerce, Direct Line 0845 878 2922 Direct Line Group Services Limited, registered in England no.3001989, registered office 3 Edridge Road, Croydon, Surrey, CR9 1AG. The following are also members of the Direct Line group of companies: Direct Line Insurance plc, a member of the General Insurance Standards Council and Direct Line Life Insurance Company Limited and Direct Unit Trusts Limited, both regulated by the Financial Services Authority. Loans, Mortgages, Credit Cards and Savings provided by Direct Line Financial Services Limited, registered in England number 2372702, registered office 3 Edridge Road, Croydon, Surrey, CR9 1AG. All are members of the Royal Bank of Scotland Group. -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>