Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343470 - Only a type can be imported. org.semanticweb.skosapibinding.SKOSManager resolves to a package
Summary: Only a type can be imported. org.semanticweb.skosapibinding.SKOSManager resol...
Status: RESOLVED INVALID
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: jst.jsp CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 21:49 EDT by Ashwini CLA
Modified: 2012-01-03 07:54 EST (History)
2 users (show)

See Also:


Attachments
The jsp file in which error found (1.75 KB, text/plain)
2011-04-20 21:50 EDT, Ashwini CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashwini CLA 2011-04-20 21:49:25 EDT
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
Comment 1 Ashwini CLA 2011-04-20 21:50:30 EDT
Created attachment 193771 [details]
The jsp file in which error found
Comment 2 Carl Anderson CLA 2011-04-21 09:16:28 EDT
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?
Comment 3 Nitin Dahyabhai CLA 2012-01-03 07:54:45 EST
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.