tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Löffelhardt <jul...@austria.fm>
Subject Re: How cai I tell if jikes is being used?
Date Tue, 07 Jan 2003 17:45:16 GMT
You are using jikes.
When using javac, compile errors always (as far as i know) include the line:

"org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated."

The phrase "Semantic Error" and the notation "varsess_jsp.java:69:3:69:13:"
is also unique to jikes


For example (same file compiled with javac & jikes):

JAVAC:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 5 in the jsp file: /inc5.jsp

Generated servlet error:
/appl/jakarta-tomcat-4.0.4/work/Standalone/localhost/klon/inc5$jsp.java:73:
Method ccurrentTimeMillis() not found in class java.lang.System.
                out.print( System.ccurrentTimeMillis() );
                                                    ^
1 error, 1 warning


JIKES:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 5 in the jsp file: /klon/inc5.jsp

Generated servlet error:
/appl/tomcat-ausgabe/work/Standalone/localhost/_/klon/inc5$jsp.java:73:28:73
:54: Semantic Error: No method named "ccurrentTimeMillis" was found in type
"java.lang.System". However, there is an accessible method
"currentTimeMillis" whose name closely matches the name
"ccurrentTimeMillis".




----- Original Message -----
From: "Marco Bucciarelli" <mbuc@edp-progetti.it>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, January 07, 2003 6:12 PM
Subject: How cai I tell if jikes is being used?


I found the same question in the mailing list but no answer yet.

I am trying jikes and everything works, but how can I tell if javac or jikes
is used to compile jsp?

I use Tomcat4.1.18 on RH Linux 7.0. I inserted the lines in web.xml and in
/usr/bin/dtomcat to instruct Tomcat to use jikes, as described in the
documentation.
If I compile a jsp with a syntactic error, I get two different answers (more
verbose using javac). With jikes (supposing it is used) I get this:

Generated servlet error:
    [javac] Compiling 1 source file
    [javac]
/var/tomcat4/work/Standalone/localhost/commesse/varsess_jsp.java:69:3:69:13:
Semantic Error: Type org.apache.jsp.CommesseAMa was not found.

There is allways written [javac], so how should I be sure I am using jikes?
With the same configuration on Windows (catalina.bat + web.xml) I get an
error saying jikes does not support the "encoding" option, so perhaps this
assures me that on Linux I am using jikes.

Thank you, bye.
Marco.




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message