Re: Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Markus Fömpe
On 28.04.20, 17:49, "Mark Thomas" wrote: > This has been fixed in: > - master for 10.0.0-M5 onwards > - 9.0.x for 9.0.35 onwards > - 8.5.x for 8.5.55 onwards > - 7.0.x for 7.0.104 onwards > > The private isPackage(String) method needed to be updated to correctly > identify that

Re: Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Mark Thomas
On 28/04/2020 10:57, Mark Thomas wrote: > I've made some progress with the debugging. JDT 4.15 makes an additional > call to INameEnvironment.findType() and passes > "org.apache.jsp.test_jsp$1InnerClass". JDT 4.13 does not make that call. > > I want to research a little more into why this has

Re: Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Mark Thomas
On 28/04/2020 10:25, Markus Fömpe wrote: > On 28.04.20, 10:06, "Mark Thomas" wrote: > > [...] >> >>> This is root cause: >>> >>> java.lang.ClassCastException: class >>> org.eclipse.jdt.internal.compiler.lookup.PlainPackageBinding cannot be cast >>> to class

Re: Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Markus Fömpe
On 28.04.20, 10:06, "Mark Thomas" wrote: [...] > >> This is root cause: >> >> java.lang.ClassCastException: class >> org.eclipse.jdt.internal.compiler.lookup.PlainPackageBinding cannot be cast >> to class org.eclipse.jdt.internal.compiler.lookup.TypeBinding >>

Re: Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Mark Thomas
On 28/04/2020 07:02, Markus Fömpe wrote: > Hi, > > With Tomcat 9.0.34 the JDT compiler was updated to 4.15. > Since then, there is an error when Tomcat compiles the JSP at runtime when > this construct is used in a JSP: Not good news but thanks for bring this up. We skipped 4.14 because there

Tomcat 9.0.34 / JDT 4.15 jsp compile error

2020-04-28 Thread Markus Fömpe
Hi, With Tomcat 9.0.34 the JDT compiler was updated to 4.15. Since then, there is an error when Tomcat compiles the JSP at runtime when this construct is used in a JSP: <%@ page import="java.util.List"%> <%@ page import="java.util.ArrayList"%> <% class InnerClass { // some class members }

jsp compile error(The primitive type int of does not have a field javax)

2011-04-06 Thread 文宝殷
Hi, Is there anyone met this kind of error. please see the error stack below. very tricky,it doesn't always happen, we met it seldom after our server run for a period. and the red section is not confused, i don't know what's the meaning exactly. i've looked into the generated java file, the

Re: jsp compile error(The primitive type int of does not have a field javax)

2011-04-06 Thread André Warnier
Hi, Honestly, I don't really know, and this is just a vague suspicion. But if the original JSP pages are on a Windows PC, and then you are copying them to a Unix/Linux server to run them, can the problem not be due to wrong line endings ? (Windows uses CR/LF, but Unix/Linux only LF). 文宝殷

Re: jsp compile error(The primitive type int of does not have a field javax)

2011-04-06 Thread 文宝殷
Hi André Warnier, thanks for your reply. it's a runtime error, jsp compiler generate the java file then compile it to class. i didn't the copy the java file between different systems.my system is linux. could the jsp compiler cause this error? the default one is the JDT. Best Regards Bryan

Re: jsp compile error(The primitive type int of does not have a field javax)

2011-04-06 Thread André Warnier
Hello 文宝殷, As I failed to mention before, I am not really a java or JSP expert, so I was just guessing. The error messages which you are getting seem to suggest that the generated Java code (before compilation) contains some line breaks or other confusing characters where the compiler is not

Re: jsp compile error(The primitive type int of does not have a field javax)

2011-04-06 Thread Mark Thomas
On 06/04/2011 10:47, André Warnier wrote: Hello 文宝殷, As I failed to mention before, I am not really a java or JSP expert, so I was just guessing. The error messages which you are getting seem to suggest that the generated Java code (before compilation) contains some line breaks or other

JSP compile error - required library in tomcat/shared/lib

2007-08-16 Thread Rainer Frey
Hi all, after moving a jar file from tomcat/common/lib to tomcat/shared/lib, JSPs that use that library don't compile anymore, it says package does not exist. It is a library from my company, used by all webapps in the server installation. It used to be in tomcat/common/lib as it was used by a

Re: JSP compile error - required library in tomcat/shared/lib

2007-08-16 Thread David Delbecq
As you guessed would be intuitive, yes, the JSP compiler include classes in shared/lib (and also classes in webapp itself). The shared/lib is the same as if you copy it's content to the WEB-INF/lib folder. As your compiler does not include the shared/lib in it's classpath, there can be various

Re: JSP compile error - required library in tomcat/shared/lib

2007-08-16 Thread Rainer Frey
Hi David, thanks for your answer. What I forgot to say is that I use Tomcat 5.0.28. I'll comment inline to your options. On Thursday 16 August 2007 10:41:30 David Delbecq wrote: As you guessed would be intuitive, yes, the JSP compiler include classes in shared/lib (and also classes in webapp

JSP Compile Error

2006-11-13 Thread michael
Hello, I am getting this error on deployment of a web app: org.apache.jasper.compiler.CompileException: /Trollope-l/trollope/index.jsp(44,12) /WEB-INF/jspf/appnav.jspf(13,54) Unterminated This happens when I deploy on Tomcat 4.0.6. However, the application was developed on and runs fine on

Re: JSP Compile Error

2006-11-13 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Can someone tell me what causes the error; and, can I fix it? I am not in a position to upgrade the old version. I googled it but didn't get anything useful. No idea without seeing the original JSP code. At a guess you are using some JSP 2.0 code which Tomcat 4.x