org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 82 in the jsp file: /saml2/jsp/spSingleLogoutInit.jsp The constructor SAML2Auditor(Debug, AuditEventPublisher, AuditEventFactory, HttpServletRequest) is undefined 79: <% 80: AuditEventPublisher aep = InjectorHolder.getInstance(AuditEventPublisher.class); 81: AuditEventFactory aef = InjectorHolder.getInstance(AuditEventFactory.class); 82: SAML2Auditor saml2Auditor = new SAML2Auditor(SAML2Utils.debug, aep, aef, request); 83: 84: saml2Auditor.setMethod("spSingleLogoutInit"); 85: saml2Auditor.setRealm(SAML2Utils.getRealm(request.getParameterMap())); Stacktrace:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via ForgeRock JIRA by Filip Kubáň, 1 year ago
Unable to compile class for JSP: An error occurred at line: 82 in the jsp file: /saml2/jsp/spSingleLogoutInit.jsp The constructor SAML2Auditor(Debug, AuditEventPublisher, AuditEventFactory, HttpServletRequest) is undefined 79: <% 80
via Stack Overflow by Lev
, 10 months ago
No se puede compilar la clase para JSP: Ha tenido lugar un error en la línea: [16] en el fichero java generado: [C:\Proyecto\tomcat\apache-tomcat-9.0.0.M15-windows-x64\apache-tomcat-9.0.0.M15\work\Catalina\localhost\Gest1\org\apache\jsp\Test_jsp.java] Only a type can be imported. oracle.jdbc.OracleDriver resolves to a package Stacktrace:
via Stack Overflow by surya kant Bansal
, 2 years ago
Unable to compile class for JSP: An error occurred at line: [42] in the generated java file: [/home/tomgenso/tomcat/work/Catalina/tomgensoft.com/ROOT/org/apache/jsp/home_jsp.java] The method getDispatcherType() is undefined for the type HttpServletRequest Stacktrace:
via GitHub by liuhuan543539666
, 1 year ago
Unable to compile class for JSP: An error occurred at line: [14] in the generated java file: [E:\work\workspace\common-insurance\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\admin\org\apache\jsp\static_\plugins
via Stack Overflow by user2130951
, 2 years ago
Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stacktrace:
via Coderanch by Ramna Reddy, 11 months ago
Unable to compile class for JSP Generated servlet error: The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit..
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 82 in the jsp file: /saml2/jsp/spSingleLogoutInit.jsp The constructor SAML2Auditor(Debug, AuditEventPublisher, AuditEventFactory, HttpServletRequest) is undefined 79: <% 80: AuditEventPublisher aep = InjectorHolder.getInstance(AuditEventPublisher.class); 81: AuditEventFactory aef = InjectorHolder.getInstance(AuditEventFactory.class); 82: SAML2Auditor saml2Auditor = new SAML2Auditor(SAML2Utils.debug, aep, aef, request); 83: 84: saml2Auditor.setMethod("spSingleLogoutInit"); 85: saml2Auditor.setRealm(SAML2Utils.getRealm(request.getParameterMap())); Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
35 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.