Updated 2011 - 2013 R2: error unable to load class for jsp

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

Updated 2011 - 2013 R2: error unable to load class for jsp

Postby Hofi » Tue Jul 01, 2014 1:00 pm

Hello community,
I have upgraded openemm version 2011 to 2013 r2.
Followed strictly the install admin guide from the website. After the update and the sql updates, i could enter openemm 2013 r2, saw all my previous data (so the upgrade seemed to be perfectly).

But when I now want to show content of a new mail or of an existing mail I get always the error:
An error occurred
Cause: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/mailing/mailing-content-list.jsp': Unable to load class for JSP

I have googeld that and found a bug and a solution to this problem:
bugs-bug-fixes-releases-f5/topic2408.html
So I also checked my database, but my database has not this "Null instead of Zero" bug. So the solution wasn`t helpfull for me.

Hope anybody can help me, to get this system working again.

Information about this system:
GNU/Linux 2.6.18-92.1.10.e15
Java SE Runtime Environemnt built 1.7.0_60-b19

The error log from tomcat is throwing a huge amount of errors X/

Jul 01, 2014 10:01:09 AM org.apache.jasper.compiler.JDTCompiler$1 findType
SEVERE: Compilation error
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:342)
at org.apache.jasper.compiler.JDTCompiler$1.findType(JDTCompiler.java:206)
at org.apache.jasper.compiler.JDTCompiler$1.findType(JDTCompiler.java:163)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:96)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:97)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getMemberType(BinaryTypeBinding.java:752)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findMemberType(Scope.java:935)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getMemberType(Scope.java:2033)
at org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.findNextTypeBinding(QualifiedTypeReference.java:43)
at org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.getTypeBinding(QualifiedTypeReference.java:77)
at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:134)
at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:138)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
at org.eclipse.jdt.internal.compiler.ast.DoStatement.resolve(DoStatement.java:189)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Block.java:115)
at org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(TryStatement.java:799)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:429)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:196)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:400)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1085)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1164)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:366)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:623)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:392)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:429)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:653)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:647)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152)
at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764)
at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896)
at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
at org.apache.jsp.template_jsp._jspx_meth_tiles_005finsert_005f7(template_jsp.java:833)
at org.apache.jsp.template_jsp._jspService(template_jsp.java:347)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.struts.tiles.commands.TilesPreProcessor.doForward(TilesPreProcessor.java:260)
at org.apache.struts.tiles.commands.TilesPreProcessor.execute(TilesPreProcessor.java:217)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.agnitas.web.filter.SerializeRequestFilter.doFilter(SerializeRequestFilter.java:28)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.agnitas.web.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.agnitas.web.filter.SessionHijackingPreventionFilter.doFilter(SessionHijackingPreventionFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)

Jul 01, 2014 10:01:10 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 111 in the jsp file: /mailing/mailing-content-list.jsp
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
108:
109: <% int prev_group = -1; %>
110: <logic:iterate id="dyntag" name="mailingContentForm" property="tags">
111: <% Map.Entry ent = (Map.Entry) pageContext.getAttribute("dyntag");
112: dynTag = (DynamicTag) ent.getValue();
113: newTag = true;
114: if (dynTag.getGroup() != prev_group) {


An error occurred at line: 111 in the jsp file: /mailing/mailing-content-list.jsp
Map$Entry cannot be resolved to a type
108:
109: <% int prev_group = -1; %>
110: <logic:iterate id="dyntag" name="mailingContentForm" property="tags">
111: <% Map.Entry ent = (Map.Entry) pageContext.getAttribute("dyntag");
112: dynTag = (DynamicTag) ent.getValue();
113: newTag = true;
114: if (dynTag.getGroup() != prev_group) {
... and so on...

if somebody interested in the completely changelog I will prepare a downloadlink in a few minutes
http://www.hofburg.com/jart/prj3/hofburg/data/uploads/OnlyForIT/catalina.2014-07-01.log
Hofi
 
Posts: 4
Joined: Tue Jul 01, 2014 12:38 pm

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby maschoff » Wed Jul 02, 2014 9:59 pm

Which version of Java do you use (java -version)?
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2129
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby Hofi » Thu Jul 03, 2014 8:44 am

As I mentioned in my first post:
java version "1.7.0_60"
Java SE Runtime Environemnt built 1.7.0_60-b19

I have tested it with Java 1.8.0_05 as well, also not working
Hofi
 
Posts: 4
Joined: Tue Jul 01, 2014 12:38 pm

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby maschoff » Thu Jul 03, 2014 8:52 am

And the version of Tomcat you use?
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2129
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby Hofi » Thu Jul 03, 2014 11:31 am

Tomcat Version : Apache Tomcat/6.0.33
Servlet Specification Version : 2.5
JSP version : 2.1
Hofi
 
Posts: 4
Joined: Tue Jul 01, 2014 12:38 pm

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby maschoff » Thu Jul 03, 2014 11:46 am

We have tested R2 only with Tomcat 7.
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2129
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby Hofi » Thu Jul 03, 2014 1:26 pm

okay, i will install Tomcat 7, but is it possible to run Openemm also on the newest version of tomcat (version 8?)
Because then I will upgrade to the latest version

I am also a little bit nerved, because before I upgraded to the newest Openemm version I read the Install-AdminGuide2013 and also the requirements and there is Tomcat version 6.0.32 listed.
Maybe you should update the requirements in the AdminGuide.pdf
Hofi
 
Posts: 4
Joined: Tue Jul 01, 2014 12:38 pm

Re: Updated 2011 - 2013 R2: error unable to load class for j

Postby maschoff » Fri Jul 04, 2014 1:01 pm

Yes, you are right. However, I was wrong anyway, because R2 was only tested with Tomcat 6 (OpenEMM 2014 will need Tomcat 7).
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2129
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany


Return to Bugs, bug fixes & releases

Who is online

Users browsing this forum: No registered users and 2 guests

cron