Discussion:
Anything changed with Tomcat 9.0.11 and JSPs?
Francesco Chicchiriccò
2018-08-22 09:13:07 UTC
Permalink
Hi all,
after upgrading from Tomcat 9.0.10 to Tomcat 9.0.11, my application's startup fails with error:

GRAVE: Servlet.service() for servlet [jsp] in context with path [/XXX] threw exception [java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/RequiresStatement] with root cause
java.io.EOFException: Detect premature EOF
at sun.misc.Resource.getBytes(Resource.java:131)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
[...]

Did anything relevant changed from 9.0.10 WRT JSPs?

TIA
Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Thomas
2018-08-22 09:48:36 UTC
Permalink
Post by Francesco Chicchiriccò
Hi all,
GRAVE: Servlet.service() for servlet [jsp] in context with path [/XXX] threw exception [java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/RequiresStatement] with root cause
java.io.EOFException: Detect premature EOF
at sun.misc.Resource.getBytes(Resource.java:131)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
[...]
Full stack trace please.
Post by Francesco Chicchiriccò
Did anything relevant changed from 9.0.10 WRT JSPs?
See the change log.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Francesco Chicchiriccò
2018-08-22 10:35:56 UTC
Permalink
Post by Mark Thomas
Post by Francesco Chicchiriccò
Hi all,
GRAVE: Servlet.service() for servlet [jsp] in context with path [/XXX] threw exception [java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/RequiresStatement] with root cause
java.io.EOFException: Detect premature EOF
at sun.misc.Resource.getBytes(Resource.java:131)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
[...]
Full stack trace please.
Here you go: https://paste.apache.org/EA4A
Post by Mark Thomas
Post by Francesco Chicchiriccò
Did anything relevant changed from 9.0.10 WRT JSPs?
See the change log.
Sorry, could not derive anything related to above from

http://tomcat.apache.org/tomcat-9.0-doc/changelog.html#Tomcat_9.0.11_(markt)

Any hint? Thanks.

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Mark Thomas
2018-08-22 11:56:42 UTC
Permalink
Post by Francesco Chicchiriccò
Post by Mark Thomas
Post by Francesco Chicchiriccò
Hi all,
GRAVE: Servlet.service() for servlet [jsp] in context with path [/XXX] threw exception [java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/RequiresStatement] with root cause
java.io.EOFException: Detect premature EOF
at sun.misc.Resource.getBytes(Resource.java:131)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
[...]
Full stack trace please.
Here you go: https://paste.apache.org/EA4A
Hmm. Nothing unusual there - apart from the Exception itself.
Post by Francesco Chicchiriccò
Post by Mark Thomas
Post by Francesco Chicchiriccò
Did anything relevant changed from 9.0.10 WRT JSPs?
See the change log.
Sorry, could not derive anything related to above from
http://tomcat.apache.org/tomcat-9.0-doc/changelog.html#Tomcat_9.0.11_(markt)
Any hint? Thanks.
Nothing that jumped out at me either.

Maybe a corrupt ecj.jar file?

Multiple ecj.jar files on the class path?

Does the RequiresStatement exist in the JAR?

Something in the JSP? Is it always the same JSP that has the issue? If
so, can you reduce it down to a minimal JSP that recreates it?

Some sort of conflict with the JVM you are using?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Francesco Chicchiriccò
2018-08-22 12:23:52 UTC
Permalink
Post by Mark Thomas
Post by Francesco Chicchiriccò
Post by Mark Thomas
Post by Francesco Chicchiriccò
Hi all,
GRAVE: Servlet.service() for servlet [jsp] in context with path [/XXX] threw exception [java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ast/RequiresStatement] with root cause
java.io.EOFException: Detect premature EOF
at sun.misc.Resource.getBytes(Resource.java:131)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
[...]
Full stack trace please.
Here you go: https://paste.apache.org/EA4A
Hmm. Nothing unusual there - apart from the Exception itself.
Post by Francesco Chicchiriccò
Post by Mark Thomas
Post by Francesco Chicchiriccò
Did anything relevant changed from 9.0.10 WRT JSPs?
See the change log.
Sorry, could not derive anything related to above from
http://tomcat.apache.org/tomcat-9.0-doc/changelog.html#Tomcat_9.0.11_(markt)
Any hint? Thanks.
Nothing that jumped out at me either.
Maybe a corrupt ecj.jar file?
That was!
I downloaded again from

http://central.maven.org/maven2/org/apache/tomcat/tomcat/9.0.11/tomcat-9.0.11.zip

and everything worked again.

Sorry for the noise... :-/
Post by Mark Thomas
Multiple ecj.jar files on the class path?
Does the RequiresStatement exist in the JAR?
Something in the JSP? Is it always the same JSP that has the issue? If
so, can you reduce it down to a minimal JSP that recreates it?
Some sort of conflict with the JVM you are using?
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Loading...