You are not logged in.

#1 2013-01-02 22:41:32

cmmps
Member
From: Portugal, Lisbon
Registered: 2012-04-26
Posts: 32

Tomcat7 not compiling JSP's after upgrade

Hi

Since last updates my Tomcat7 stopped compiling new or updated JSP files with this 500 server error message:

HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser

type Exception report

message java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jdt.internal.compiler.parser.Parser
	org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Unknown Source)
	org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source)
	org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:453)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.34 logs.

I already tried to install the JDK7 from Oracle and changed the TOMCAT_JAVA_HOME but the problem persists.

Is there any issue with the last package upgrade?

I read that sometime ago someone had a similar problem and had to install Tomcat7 from Apache.
I really prefer to stay with the pacman release so it will be easier to start|stop|restart with systemctl.

System Arch Linux x86_64 fully updated.

Kind regards,
Carlos


Carlos Santos

Offline

#2 2013-01-03 19:08:22

cmmps
Member
From: Portugal, Lisbon
Registered: 2012-04-26
Posts: 32

Re: Tomcat7 not compiling JSP's after upgrade

Well, I got it working by downloading and configuring the Tomcat7 distro from www.apache.org.

In the meantime, if the problem of this package is solved, please let me know.
It seems it has to do with the eclipse-ecj.jar file.

Kind regards,
Carlos Santos

Last edited by cmmps (2013-01-03 19:08:45)


Carlos Santos

Offline

#3 2013-01-03 21:05:54

xorr
Member
Registered: 2011-12-12
Posts: 2

Re: Tomcat7 not compiling JSP's after upgrade

same problem here

Offline

#4 2013-01-05 20:07:34

rgolubtsov
Member
From: Linköping, Sweden
Registered: 2012-07-27
Posts: 2
Website

Re: Tomcat7 not compiling JSP's after upgrade

Yes, me too.

Today I've tried to start Tomcat 7 (after a series of regular system upgrades) - got the same error. Perhaps Carlos, you are right, the root cause lie in the "eclipse-ecj" package. I have the last version installed (4.2.1-1).

And yes, that it - people had already reported about this issue, see: https://bugs.archlinux.org/task/33151

They've picked out that rolling back to the version 3.7.1-1 solves this issue.


Blade: Butterfly Defence Alpha DEF
Forehand: Butterfly Tackiness-C 1.7 (Black)
Backhand: Butterfly Feint Long II 1.1 (Red)

Offline

Board footer

Powered by FluxBB