Wednesday, April 5, 2017

Including Members still says that the type cannot be resolved

Changed:

<%@ page import="java.util.*, 
poweraqua.powermap.triplePhase.TripleSimilarityService,
poweraqua.LinguisticComponent.LinguisticComponent,
poweraqua.powermap.mappingModel.MappingSession,
TrustEngine.userSession.*,
java.net.URLDecoder, java.net.URLEncoder;" 
 session="false"%>

to:

<%@ page import="java.util.*, 
poweraqua.powermap.triplePhase.TripleSimilarityService.*,
poweraqua.LinguisticComponent.LinguisticComponent.*,
poweraqua.powermap.mappingModel.MappingSession.*,
TrustEngine.userSession.*,
java.net.URLDecoder, java.net.URLEncoder;" 
 session="false"%>
following: http://stackoverflow.com/questions/17518049/org-apache-jasper-jasperexception-unable-to-compile-class-for-jsp

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 25 in the jsp file: /jsp/index.jsp
MappingSession cannot be resolved to a type
22:     // We need to initialize here because of the login mechanism?
23:     System.out.println ("--> get real path " + root_path);      
24:     HttpSession session = request.getSession(false);
25:     MappingSession mappingSession;    
26:      if (session == null)   {
27:          session = request.getSession(true);
28:          System.out.println ("Creating session ................................... ");


An error occurred at line: 29 in the jsp file: /jsp/index.jsp
LinguisticComponent cannot be resolved to a type
26:      if (session == null)   {
27:          session = request.getSession(true);
28:          System.out.println ("Creating session ................................... ");
29:          LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
30:          mappingSession = new MappingSession (root_path);
31:          TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
32:          TSS.getMapSession().setSerqlCalls(0);


An error occurred at line: 29 in the jsp file: /jsp/index.jsp
LinguisticComponent cannot be resolved to a type
26:      if (session == null)   {
27:          session = request.getSession(true);
28:          System.out.println ("Creating session ................................... ");
29:          LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
30:          mappingSession = new MappingSession (root_path);
31:          TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
32:          TSS.getMapSession().setSerqlCalls(0);


An error occurred at line: 30 in the jsp file: /jsp/index.jsp
MappingSession cannot be resolved to a type
27:          session = request.getSession(true);
28:          System.out.println ("Creating session ................................... ");
29:          LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
30:          mappingSession = new MappingSession (root_path);
31:          TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
32:          TSS.getMapSession().setSerqlCalls(0);
33:          session.setAttribute("chunk", chunk);


An error occurred at line: 31 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
28:          System.out.println ("Creating session ................................... ");
29:          LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
30:          mappingSession = new MappingSession (root_path);
31:          TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
32:          TSS.getMapSession().setSerqlCalls(0);
33:          session.setAttribute("chunk", chunk);
34:          session.setAttribute("TSS", TSS);


An error occurred at line: 31 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
28:          System.out.println ("Creating session ................................... ");
29:          LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
30:          mappingSession = new MappingSession (root_path);
31:          TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
32:          TSS.getMapSession().setSerqlCalls(0);
33:          session.setAttribute("chunk", chunk);
34:          session.setAttribute("TSS", TSS);


An error occurred at line: 39 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
36:      else {
37:          System.out.println ("Obtaining session .................................... ");
38:          try{
39:          TripleSimilarityService TSS = (TripleSimilarityService) session.getAttribute("TSS");
40:          mappingSession = TSS.getMapSession();
41:          }catch(Exception e){
42:              System.out.println ("Creating session ................................... ");


An error occurred at line: 39 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
36:      else {
37:          System.out.println ("Obtaining session .................................... ");
38:          try{
39:          TripleSimilarityService TSS = (TripleSimilarityService) session.getAttribute("TSS");
40:          mappingSession = TSS.getMapSession();
41:          }catch(Exception e){
42:              System.out.println ("Creating session ................................... ");


An error occurred at line: 43 in the jsp file: /jsp/index.jsp
LinguisticComponent cannot be resolved to a type
40:          mappingSession = TSS.getMapSession();
41:          }catch(Exception e){
42:              System.out.println ("Creating session ................................... ");
43:              LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
44:              mappingSession = new MappingSession (root_path);
45:              TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
46:              TSS.getMapSession().setSerqlCalls(0);


An error occurred at line: 43 in the jsp file: /jsp/index.jsp
LinguisticComponent cannot be resolved to a type
40:          mappingSession = TSS.getMapSession();
41:          }catch(Exception e){
42:              System.out.println ("Creating session ................................... ");
43:              LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
44:              mappingSession = new MappingSession (root_path);
45:              TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
46:              TSS.getMapSession().setSerqlCalls(0);


An error occurred at line: 44 in the jsp file: /jsp/index.jsp
MappingSession cannot be resolved to a type
41:          }catch(Exception e){
42:              System.out.println ("Creating session ................................... ");
43:              LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
44:              mappingSession = new MappingSession (root_path);
45:              TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
46:              TSS.getMapSession().setSerqlCalls(0);
47:              session.setAttribute("chunk", chunk);


An error occurred at line: 45 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
42:              System.out.println ("Creating session ................................... ");
43:              LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
44:              mappingSession = new MappingSession (root_path);
45:              TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
46:              TSS.getMapSession().setSerqlCalls(0);
47:              session.setAttribute("chunk", chunk);
48:              session.setAttribute("TSS", TSS);


An error occurred at line: 45 in the jsp file: /jsp/index.jsp
TripleSimilarityService cannot be resolved to a type
42:              System.out.println ("Creating session ................................... ");
43:              LinguisticComponent chunk = new LinguisticComponent(application.getRealPath("/WEB-INF"));
44:              mappingSession = new MappingSession (root_path);
45:              TripleSimilarityService TSS = new TripleSimilarityService(mappingSession);
46:              TSS.getMapSession().setSerqlCalls(0);
47:              session.setAttribute("chunk", chunk);
48:              session.setAttribute("TSS", TSS);


Stacktrace:
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
 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:657)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 (Ubuntu) logs.

No comments:

Post a Comment