Type Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [19] in the generated java file: [/opt/tomcat/apache-tomcat-9.0.26/work/Catalina/localhost/argosarts/org/apache/jsp/medialibrary_jsp.java] Only a type can be imported. com.encima.project.ArgosDatabaseUtil resolves to a package An error occurred at line: [14] in the jsp file: [/medialibrary.jsp] Agent cannot be resolved to a type 11: <jsp:param name="window_title" value="Media Library"></jsp:param> 12: </jsp:include> 13: <% 14: List<Agent> agents =ArgosDatabaseUtil.currentSession().createQuery("SELECT DISTINCT relation.agent FROM com.encima.comp.works.WorkAgent AS relation WHERE relation.role.name='creator' AND relation.work IN (SELECT work FROM com.encima.comp.works.Work as work WHERE work.status='1' AND work.argos='1' AND work.checked='1' AND work.nieuw='1' AND work.selected='1') ORDER BY relation.agent.name").list(); 15: %> 16: <div class="inside2 clearfix"> 17: <div class="col123"> An error occurred at line: [14] in the jsp file: [/medialibrary.jsp] ArgosDatabaseUtil cannot be resolved 11: <jsp:param name="window_title" value="Media Library"></jsp:param> 12: </jsp:include> 13: <% 14: List<Agent> agents =ArgosDatabaseUtil.currentSession().createQuery("SELECT DISTINCT relation.agent FROM com.encima.comp.works.WorkAgent AS relation WHERE relation.role.name='creator' AND relation.work IN (SELECT work FROM com.encima.comp.works.Work as work WHERE work.status='1' AND work.argos='1' AND work.checked='1' AND work.nieuw='1' AND work.selected='1') ORDER BY relation.agent.name").list(); 15: %> 16: <div class="inside2 clearfix"> 17: <div class="col123"> An error occurred at line: [37] in the jsp file: [/medialibrary.jsp] Agent cannot be resolved to a type 34: <select name="agent" id="select" style="width:200px" onchange="document.agents.submit();"> 35: <option value="%">--- All Artists ---</option> 36: <% 37: for(Agent agent:agents){ 38: %><option value="<%=agent.getId()%>" <%=Util.isNotNullOrEmpty(request.getParameter("agent")) && agent.getId().equals(request.getParameter("agent")) ? "selected=\"selected\"" : ""%>><%=agent.getName()%></option><% 39: } 40: %> An error occurred at line: [69] in the jsp file: [/medialibrary.jsp] ArgosDatabaseUtil cannot be resolved 66: ssp.add("work IN(SELECT relation.work FROM com.encima.comp.works.WorkAgent AS relation WHERE relation.role.name='creator' AND relation.agent.id='"+agentid+"')"); 67: } 68: 69: List<Object> workids=ssp.execQuery(ArgosDatabaseUtil.currentSession()); 70: List<String> selected=new ArrayList<String>(); 71: if(Util.isNullOrEmpty(agentid)){ 72: int items=0; An error occurred at line: [82] in the jsp file: [/medialibrary.jsp] Work cannot be resolved to a type 79: } 80: 81: } 82: List<Work> works = ArgosDatabaseUtil.currentSession().createQuery("SELECT DISTINCT work FROM com.encima.comp.works.Work AS work WHERE work.id IN(:workids)").setParameterList("workids",Util.isNotNullOrEmpty(agentid) ? workids : selected).list(); 83: int i=0; 84: for(Work work:works){ 85: i++; An error occurred at line: [82] in the jsp file: [/medialibrary.jsp] ArgosDatabaseUtil cannot be resolved 79: } 80: 81: } 82: List<Work> works = ArgosDatabaseUtil.currentSession().createQuery("SELECT DISTINCT work FROM com.encima.comp.works.Work AS work WHERE work.id IN(:workids)").setParameterList("workids",Util.isNotNullOrEmpty(agentid) ? workids : selected).list(); 83: int i=0; 84: for(Work work:works){ 85: i++; An error occurred at line: [84] in the jsp file: [/medialibrary.jsp] Work cannot be resolved to a type 81: } 82: List<Work> works = ArgosDatabaseUtil.currentSession().createQuery("SELECT DISTINCT work FROM com.encima.comp.works.Work AS work WHERE work.id IN(:workids)").setParameterList("workids",Util.isNotNullOrEmpty(agentid) ? workids : selected).list(); 83: int i=0; 84: for(Work work:works){ 85: i++; 86: int fcol=i%2==0 ? 3:1; 87: int scol=i%2==0 ? 4:2; An error occurred at line: [103] in the jsp file: [/medialibrary.jsp] WorkMedia cannot be resolved to a type 100: <div class="col<%=fcol%>"> 101: <% 102: if(work.getMedia().size() > 0){ 103: WorkMedia media=work.getMedia().iterator().next(); 104: String path= FSImageManipulator.getInstance().getThumbnailUrl(media.getId(),work.getId(), "http://www.argosarts.org/db_images/works/upload/" + media.getFilename(), 205, -1, FSImageManipulator.CROP_NO); 105: if(path.contains("transparant")){ 106: path = FSImageManipulator.getInstance().getThumbnailUrl(media.getId(),work.getId(), "http://www.argosarts.org/db_images/works/large/" + media.getFilename(), 205, -1, FSImageManipulator.CROP_NO); An error occurred at line: [120] in the jsp file: [/medialibrary.jsp] ArgosDatabaseUtil cannot be resolved 117: <div class="col<%=scol%>"> 118: <h3><a href="work.jsp?workid=<%=work.getId()%>"><%=work.getTitle().toUpperCase()%></a></h3> 119: <% 120: List<String> agentnames = ArgosDatabaseUtil.currentSession().createQuery("SELECT relation.agent.name FROM com.encima.comp.works.WorkAgent as relation WHERE relation.work=? and relation.role.name='creator'").setParameter(0,work).list(); 121: %> 122: <b><% 123: if(Util.isNotNullOrEmpty(agentnames)){ Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:522) org.apache.jasper.compiler.Compiler.compile(Compiler.java:392) org.apache.jasper.compiler.Compiler.compile(Compiler.java:362) org.apache.jasper.compiler.Compiler.compile(Compiler.java:346) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) com.encima.fw.filters.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:55) com.encima.fw.filters.WebLangFilter.doFilter(WebLangFilter.java:46) com.encima.fw.filters.RequestLoggingFilter.doFilter(RequestLoggingFilter.java:70) com.encima.fw.filters.UTF8Filter.doFilter(UTF8Filter.java:53)
Note The full stack trace of the root cause is available in the server logs.