jes中的jena包

时间:2010-07-09 07:03:03

标签: jsp jena

我将Jena包导入我的JSP页面。

<%@ page import="com.hp.hpl.jena.datatypes.xsd.XSDDatatype" %>
<%@ page import="com.hp.hpl.jena.ontology.DatatypeProperty" %>
<%@ page import="com.hp.hpl.jena.ontology.Individual" %>
<%@ page import="com.hp.hpl.jena.ontology.OntClass" %>
<%@ page import="com.hp.hpl.jena.ontology.OntModel" %>
<%@ page import="com.hp.hpl.jena.ontology.OntModelSpec" %>
<%@ page import="com.hp.hpl.jena.rdf.model.Literal" %>
<%@ page import="com.hp.hpl.jena.rdf.model.ModelFactory" %>
<%@ page import="com.hp.hpl.jena.rdf.model.Statement" %>
<%@ page import="com.hp.hpl.jena.util.FileManager" %>

当我运行它时,错误会提示:

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

An error occurred at line: 9 in the generated java file
Only a type can be imported. com.hp.hpl.jena.datatypes.xsd.XSDDatatype resolves to a package

An error occurred at line: 10 in the generated java file
Only a type can be imported. com.hp.hpl.jena.ontology.DatatypeProperty resolves to a package

An error occurred at line: 11 in the generated java file
Only a type can be imported. com.hp.hpl.jena.ontology.Individual resolves to a package

An error occurred at line: 12 in the generated java file
Only a type can be imported. com.hp.hpl.jena.ontology.OntClass resolves to a package

我该如何纠正?

0 个答案:

没有答案