Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] protege owl and webservices

tmg at uninova.pt tmg at uninova.pt
Tue Jul 13 15:43:41 PDT 2010


Yes, I set up the classpath just like I did before in my java project. The
errors I get when I run this function (open an owl file) are this:

edu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository update
WARNING: [Local Folder Repository] The specified file must be a directory.
(C:\Program Files\Apache Software Foundation\Apache Tomcat
6.0.20\bin\plugins\edu.stanford.smi.protegex.owl)
14/Jul/2010 0:33:29
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser loadTriples
INFO: Loading triples for: null
14/Jul/2010 0:33:29 com.sun.xml.ws.server.sei.EndpointMethodHandler invoke
SEVERE:
org.apache.xerces.parsers.SAXParser.<init>(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V
java.lang.NoSuchMethodError:
org.apache.xerces.parsers.SAXParser.<init>(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V

        at
com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser$MySAXParser.<init>(RDFXMLParser.java:55)
        at
com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
        at com.hp.hpl.jena.rdf.arp.ARP.<init>(ARP.java:101)
        at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.createARP(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.jena.creator.OwlProjectFromStreamCreator.create(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromInputStream(Unknown
Source)
        at org.me.terminologygathering.OWLLib.<init>(OWLLib.java:68)
        at
org.me.terminologygathering.ProjectLib.createNewProject(ProjectLib.java:216)
        at
org.me.terminologygathering.ProjectLib.newProject(ProjectLib.java:202)
        at
org.me.terminologygathering.MENTORWS.createNewProject(MENTORWS.java:221)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
        at
com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
        at
com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:95)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
        at
com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:295)
        at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:515)
        at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:285)
        at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:143)
        at
com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:155)
        at
com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:189)
        at
com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:76)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:619)


--------
Does your web service environment set up the classpath properly with
all of the required jar files for Protege OWL?

Are there any errors in the web service log file?

--------
On Jul 13, 2010, at 5:07 AM, tmg at uninova.pt wrote:

Dear all,

I have a library to work with owl projects. I have functions to open,
write and save owl projects. Everything goes fine if I just use this
library in a JAVA Class. But now I'm making a web service to give my
library functions to the "world" and I'm having problems when I want
to open an OWL File...

my code is:

File file = new File("C:/Program
Files/Protege_3.4.4/examples/collaborativePizza/
collaborativePizza.owl");

try {
   inputStream = new FileInputStream(file);
   owlModel = ProtegeOWL.createJenaOWLModelFromInputStream(inputStream); <--
   OWLOntology ow = owlModel.getDefaultOWLOntology();
   OntologyURI = ow.getURI().toString();
}...

the code line with "<--" it's the line where it stops running... and I
can't open the owl file...

_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing:
http://protege.stanford.edu/doc/faq.html#01a.03





More information about the protege-owl mailing list