Hi List,

Within my applcation I am currently using Jena 2.1 which is packaged in a jar 
file of size 2,564Kb, I add this to my webapp /lib directory. I encounter a 
problem when I attempt to search and recieve the following exception


exception

org.apache.jasper.JasperException: javax.servlet.ServletException: 
java.lang.NoClassDefFoundError: Could not initialize class 
com.hp.hpl.jena.ontology.OntModelSpec
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not 
initialize class com.hp.hpl.jena.ontology.OntModelSpec
        
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
        
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
        org.apache.jsp.search_jsp._jspService(search_jsp.java:885)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


>From past experience, and from reading the excption report I am aware that the 
>class OntModelSpec is not on my classpath so my thoughts are the following:

Possibly the Jena jar file I currently have is not a fully packaged 2.1 dist 
(as size is pretty small to cover all classes).

Would it be advisable to package current version 2.6.4 into a jar file, then 
add this to my webapp /lib directory?

Thank you

Lewis

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 
2009 and Herald Society's Education Initiative of the Year 2009
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Reply via email to