Torsten, do you know what this means? org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] use: jikes [options] [@files] file.java... [javac] For more help, try -help or -version. [javac] Error: The option "-encoding" is unsupported in this build. <snip> I've unzipped the file jikes-1.18-windows.zip to C:\jikes-1.18 I've created the environment variables: BOOTCLASSPATH=C:\j2sdk1.4.1_01\jre\lib\rt.jar JIKESPATH=C:\jikes-1.18 CATALINA_OPTS="-Dbuild.compiler.emacs=true" I've added C:\jikes-1.18\bin to my PATH variable. I've edited conf/web.xml, adding the init-param "compiler" = "jikes" as shown below: <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>compiler</param-name> <param-value>jikes</param-value> </init-param> <init-param> <param-name>javaEncoding</param-name> <param-value>UTF8</param-value> </init-param> <init-param> <param-name>logVerbosityLevel</param-name> <param-value>WARNING</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> Am I missing anything? I came across something about having to install IBM's ICU4J. Is this correct? Thanks -Dan -----Original Message----- From: Torsten Fohrer [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 12:02 PM To: Tomcat Users List Subject: Re: javac Memory Leak: STATUS request a simply way. don't set CATALINA_OPTS="-Dbuild.compiler.emacs=true" restart tomcat and request a jsp page with a syntax error like following BEGIN ----------------------- <% x = 10 %> END ------------------------ jikes produce this error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac] Found 1 syntax error in "/home/tfohrer/develop/Tomcat/4.1.17/jakarta-tomcat-4.0/dist/work/Standalone /localhost/_/jikes_jsp.java": [javac] 43. x = 0 [javac] ^---^ [javac] *** Syntax: ";" inserted to complete ExpressionStatement javac produce this error: Generated servlet error: [javac] Compiling 1 source file /home/tfohrer/develop/Tomcat/4.1.17/jakarta-tomcat-4.0/dist/work/Standalone/ localhost/_/jikes_jsp.java:43: ';' expected x = 0 ^ /home/tfohrer/develop/Tomcat/4.1.17/jakarta-tomcat-4.0/dist/work/Standalone/ localhost/_/jikes_jsp.java:43: cannot resolve symbol symbol : variable x location: class org.apache.jsp.jikes_jsp x = 0 ^ 2 errors On Thursday 19 December 2002 18:40, you wrote: > Torsten, > > It looks like everything is working, I have set the logVerbosity level to > debug, but I still can find out if it is actually using jikes or javac. Is > there any way to check for sure? > > Here's all the log shows... > > JspEngine --> /index.jsp > ServletPath: /index.jsp > PathInfo: null > RealPath: /pathtohost/httpdocs/index.jsp > RequestURI: /index.jsp > QueryString: null > Request Params: > > > > Brandon > > -----Original Message----- > From: Torsten Fohrer [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 6:13 PM > To: Tomcat Users List > Subject: Re: javac Memory Leak: STATUS request > > > > one question? > > your tomcat does run more than a day, so i assume that he is a production > system. > > memory leak in javac is only affected, if you compile a jsp page. > so? > how many times, you change your jsp pages? > if you don't change them, and memory usage increase. > it is possible a memory leak in your application. > > here a simply howto to use jikes. > > 1. Install jikes > 2. Changing conf/web.xml to following: > <!-- If you wish to use Jikes to compile JSP > --> > <!-- Set the init parameter "compiler" to "jikes". > --> > <!-- the property "-Dbuild.compiler.emacs=true" when starting > cat -- > <!-- by adding the above to your CATALINA_OPTS environment > iable. -- > <!-- If you get an error reporting that jikes can't use UTF8 > encoding, --> > <!-- try setting the init parameter "javaEncoding" to > O-8859-1". --> > > <servlet> > <servlet-name>jsp</servlet-name> > <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> > <init-param> > <param-name>compiler</param-name> > <param-value>jikes</param-value> > </init-param> > <init-param> > <param-name>logVerbosityLevel</param-name> > <param-value>WARNING</param-value> > </init-param> > <load-on-startup>3</load-on-startup> > </servlet> > 3. Define build.compiler as above noted > 4. Setting a env variable named BOOTCLASSPATH to jre/lib/rt.jar > > cu Torsten fohrer > > On Tuesday 17 December 2002 01:06, you wrote: > > Does anyone know how I can confirm that I am actually using jikes? I > > have entered all the configuration required, but sometimes when I get > > errors compiling, the output refers to javac still. > > > > It also seems like tomcat slowly takes more and more memory. > > > > Brandon > > > > -----Original Message----- > > From: Jeremy Joslin [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 16, 2002 4:56 PM > > To: 'Tomcat Users List' > > Subject: RE: javac Memory Leak: STATUS request > > > > > > I don't know where you can get more information about this but have you > > considered using jikes instead of javac? I don't know of any issues with > > jikes and its soooo much faster than javac :-) > > > > Jeremy > > > > > -----Original Message----- > > > From: Dan Payne [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, December 16, 2002 2:32 PM > > > To: [EMAIL PROTECTED] > > > Subject: javac Memory Leak: STATUS request > > > > > > According to the Tomcat 4.1.12 release notes there is a javac memory > > > leak. I've searched the bug watch database at sun and have searched the > > > web as well but am having trouble finding the latest info on this. Has > > it > > > > been fixed? If so, what version of the JDK? I'm using 1.4.0_01 and my > > > productin server is crashing every 4 days with out of memory > > > exceptions. > > > > > > Does anyone know where I can track this at/get more info at? > > > > > > Thanks a million. Ya'll have been great. > > > > > > -Dan > > > > > > > > > -- > > > To unsubscribe, e-mail: <mailto:tomcat-user- > > > [EMAIL PROTECTED]> > > > For additional commands, e-mail: <mailto:tomcat-user- > > > [EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> For additional > > commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> For additional > commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>