Community
Participate
Working Groups
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 17 in the generated java file Only a type can be imported. org.semanticweb.skosapibinding.SKOSManager resolves to a package An error occurred at line: 19 in the generated java file Only a type can be imported. org.semanticweb.skos.SKOSDataset resolves to a package An error occurred at line: 20 in the generated java file Only a type can be imported. org.semanticweb.skos.SKOSCreationException resolves to a package An error occurred at line: 26 in the jsp file: /SKOS.jsp SKOSManager cannot be resolved to a type 23: final String filename="thesaurus.csv"; 24: { 25: try{ 26: SKOSManager manager=new SKOSManager(); 27: SKOSDataset data=manager.createSKOSDataset(URI.create(baseURI)); 28: } 29: catch(SKOSCreationException e){ An error occurred at line: 26 in the jsp file: /SKOS.jsp SKOSManager cannot be resolved to a type 23: final String filename="thesaurus.csv"; 24: { 25: try{ 26: SKOSManager manager=new SKOSManager(); 27: SKOSDataset data=manager.createSKOSDataset(URI.create(baseURI)); 28: } 29: catch(SKOSCreationException e){ An error occurred at line: 27 in the jsp file: /SKOS.jsp SKOSDataset cannot be resolved to a type 24: { 25: try{ 26: SKOSManager manager=new SKOSManager(); 27: SKOSDataset data=manager.createSKOSDataset(URI.create(baseURI)); 28: } 29: catch(SKOSCreationException e){ 30: e.printStackTrace(); An error occurred at line: 29 in the jsp file: /SKOS.jsp SKOSCreationException cannot be resolved to a type 26: SKOSManager manager=new SKOSManager(); 27: SKOSDataset data=manager.createSKOSDataset(URI.create(baseURI)); 28: } 29: catch(SKOSCreationException e){ 30: e.printStackTrace(); 31: } 32: } An error occurred at line: 30 in the jsp file: /SKOS.jsp e cannot be resolved 27: SKOSDataset data=manager.createSKOSDataset(URI.create(baseURI)); 28: } 29: catch(SKOSCreationException e){ 30: e.printStackTrace(); 31: } 32: } 33: //Vector<SKOSConcept> con=new Vector<SKOSConcept>(); Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:328) org.apache.jasper.compiler.Compiler.compile(Compiler.java:307) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) -- Configuration Details -- Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product) Installed Features: org.eclipse.jdt 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
Created attachment 193771 [details] The jsp file in which error found
Ashwini, I assume you are opening this because you do not believe the JSP compile error should happen. I am moving this over to the JSP team. Also, judging by the version you provided for the JDT feature, I am assuming that you are using Helios SR1, which corresponds to Eclipse 3.6.1 and WTP 3.2.2. Have you tried this with the Helios SR2 bundle?
Your attached file contains these two lines: <%@page import="org.semanticweb.skosapibinding.SKOSManager.*" %> <%@page import="org.semanticweb.skosapibinding.SKOSManager" %> As written, I don't believe that's allowed. See http://java.sun.com/docs/books/jls/third_edition/html/packages.html 7.5.6 for something that might help you continue.