Chans
52
2016-08-15 19:02:08
2
809

JSP class not found 문제


안녕하세요. 계속 시도해봤는데 계속 에러가 떠서 질문 합니다.

커넥션부분은 따로 선언했구요,

gson은 web-inf/lib 에 넣었어요


$.ajax({			type:'post',
			url : 'queryManager.jsp',
			//contentType: "application/json",
			data : {qType:'getStat',
					},
			success : function(data) {
				console.log(data);
			}
			
		});


<%@ page contentType="text/html;charset=UTF-8" import="com.google.gson.*"%>
<%@ page import="java.util.*">
<%@ page import = "java.sql.*" %>   
<%@include file="dbConnection.jsp" %> 

<%
	String qType= request.getParameter("qType"); 	//query type

	if(qType.equals("getStat")){
		String query="SELECT time,Count(*) count FROM login_history WHERE time>='2016-08-14' and time<='2016-08-15' GROUP by time";

		PreparedStatement pstmt = conn.prepareStatement(query);
		ResultSet rs = pstmt.executeQuery();
		List<Map<String,String>> list=new ArrayList();
	
		while(rs.next()){
			Map<String,String> map=new HashMap();
			map.put("time",rs.getString("time"));
			map.put("count",String.valueOf(rs.getInt("count")));
			list.add(map);
			
			
		}		
		String json=new Gson().toJson(list);
		out.println(json);
		
		conn.close(); 
	}    
%>
8월 15, 2016 6:56:46 오후 org.apache.catalina.core.StandardWrapperValve invoke
심각: Servlet.service() for servlet [jsp] in context with path [/home] threw exception [java.lang.ClassNotFoundException: org.apache.jsp.user.queryManager_jsp] with root cause
java.lang.ClassNotFoundException: org.apache.jsp.user.queryManager_jsp
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:121)
	at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:376)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at com.util.TomcatValve.invoke(TomcatValve.java:43)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
0
  • 답변 2

  • 뚜벅초
    658
    2016-08-15 19:18:42

    jsp파일을 찾지못한것 같아요

    queryManager_jsp] with root cause
  • ghkdwls30
    2k
    2016-08-16 08:31:32

    이클립스에서 실행이라면 빌드패스에서 웹앱라이브러리 추가해주세요

  • 로그인을 하시면 답변 을 등록할 수 있습니다.