querying owl model under tomat

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

querying owl model under tomat

philippe-free
Hi everybody,

my hosted tomcat is version 4 ....
I had to give the path to protege 3.1 protege and protege-owl.jar
(because of compilation complains)

Which XML parsers do i have to give to the path ?
(i get errors with jar from 3.1 and 3.2)

thanks in advance

philippe

here is the error message

java.lang.NoSuchMethodError:
org.apache.xerces.parsers.SAXParser.(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V at com.hp.hpl.jena.rdf.arp.SingleThreadedParser$MySAXParser.(SingleThreadedParser.java:63) at com.hp.hpl.jena.rdf.arp.SingleThreadedParser.create(SingleThreadedParser.java:92) at com.hp.hpl.jena.rdf.arp.ARP.(ARP.java:98) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.createARP(ProtegeOWLParser.java:169) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLParser.java:463) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLParser.java:442) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLParser.java:437) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLParser.java:629) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(JenaOWLModel.java:196) at edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(ProtegeOWL.java:55) at org.apache.jsp.owlModelQuery_jsp!
 ._jspService(owlModelQuery_jsp.java:91) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org!
 .apache.catalina.core.StandardContextValve.invoke(StandardCont!
 extValve
.
ne.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(!
 StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:409) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:528) at java.lang.Thread.run(Thread.java:534)

-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

Re: querying owl model under tomat

Ronnie Valkky
Hi  Philippe

As my own experience I can only say that it's worth checking ALL software
versions.
The following Tomcat servlet environment works for me:
- j2sdk-1_5
- Protege_3.2_beta
- Jena-2.3
- apache-tomcat-5.5.15
The following settings work for me: :
SET ICEJ=F:\sw\j2sdk-1_5
SET ICEH=m:\icejai\classes
SET JAVA_HOME=F:\sw\j2sdk-1_5
SET ICEHBLIB=I:\dbxml\lib
SET DB_HOME=I:\dbxml\icewaves
SET ICECAT=F:\sw\apache-tomcat-5.5.15
SET CATLIB=F:\sw\apache-tomcat-5.5.15\common\lib
SET ICEA=F:\sw\apache-ant-1.6.5
....
echo Tomcat
set
CLASSPATH=%classpath%;%CATLIB%\servlet-api.jar;%CATLIB%\naming-resources.jar
;%CATLIB%\naming-factory.jar;%CATLIB%\naming-factory-dbcp.jar;%CATLIB%\jsp-a
pi.jar;%CATLIB%\jasper-runtime.jar;%CATLIB%\jasper-compiler.jar;%CATLIB%\jas
per-compiler-jdt.jar;%CATLIB%\commons-el.jar;%ICEJ%\lib\tools.jar

I needed to change Java servlet programs which worked with
jakarta-tomcat-4.1.24
& with older java version. New java servlets call Java classes instead of
Apache classes.
see
http://java.sun.com/webservices/docs/1.5/api/javax/servlet/http/HttpServlet.
html

Might be similar kind of challenges with *.JSP ?
Let me know if you happen to see any depency tables about versions,

Cheers,
Ronnie


----- Original Message -----
From: "philippe haas" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, February 11, 2006 8:32 PM
Subject: [protege-owl] querying owl model under tomat


> Hi everybody,
>
> my hosted tomcat is version 4 ....
> I had to give the path to protege 3.1 protege and protege-owl.jar
> (because of compilation complains)
>
> Which XML parsers do i have to give to the path ?
> (i get errors with jar from 3.1 and 3.2)
>
> thanks in advance
>
> philippe
>
> here is the error message
>
> java.lang.NoSuchMethodError:
>
org.apache.xerces.parsers.SAXParser.(Lorg/apache/xerces/xni/parser/XMLParser
Configuration;)V at
com.hp.hpl.jena.rdf.arp.SingleThreadedParser$MySAXParser.(SingleThreadedPars
er.java:63) at
com.hp.hpl.jena.rdf.arp.SingleThreadedParser.create(SingleThreadedParser.jav
a:92) at com.hp.hpl.jena.rdf.arp.ARP.(ARP.java:98) at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.createARP(Protege
OWLParser.java:169) at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
ser.java:463) at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
ser.java:442) at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
ser.java:437) at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
ser.java:629) at
edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(JenaOWLModel.java:196)
at
edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(ProtegeOW
L.java:55) at org.apache.jsp.owlModelQuery_jsp!
>  ._jspService(owlModelQuery_jsp.java:91) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
62) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org!
>  .apache.catalina.core.StandardContextValve.invoke(StandardCont!
>  extValve
> .
> ne.invokeNext(StandardPipeline.java:566) at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) at org.apache.catalina.core.StandardPipeline.invoke(!
>  StandardPipeline.java:472) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:409) at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:528) at
java.lang.Thread.run(Thread.java:534)
>
> -------------------------------------------------------------------------
> To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
>
>


-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

Re: querying owl model under tomat

philippe-free
Hi Ronnie,

i 'll check all my softaware versions,
and let you know

thanks
cheers

philippe

Le dimanche 12 février 2006 à 14:18 +0200, Ronnie Valkky a écrit :

> Hi  Philippe
>
> As my own experience I can only say that it's worth checking ALL software
> versions.
> The following Tomcat servlet environment works for me:
> - j2sdk-1_5
> - Protege_3.2_beta
> - Jena-2.3
> - apache-tomcat-5.5.15
> The following settings work for me: :
> SET ICEJ=F:\sw\j2sdk-1_5
> SET ICEH=m:\icejai\classes
> SET JAVA_HOME=F:\sw\j2sdk-1_5
> SET ICEHBLIB=I:\dbxml\lib
> SET DB_HOME=I:\dbxml\icewaves
> SET ICECAT=F:\sw\apache-tomcat-5.5.15
> SET CATLIB=F:\sw\apache-tomcat-5.5.15\common\lib
> SET ICEA=F:\sw\apache-ant-1.6.5
> ....
> echo Tomcat
> set
> CLASSPATH=%classpath%;%CATLIB%\servlet-api.jar;%CATLIB%\naming-resources.jar
> ;%CATLIB%\naming-factory.jar;%CATLIB%\naming-factory-dbcp.jar;%CATLIB%\jsp-a
> pi.jar;%CATLIB%\jasper-runtime.jar;%CATLIB%\jasper-compiler.jar;%CATLIB%\jas
> per-compiler-jdt.jar;%CATLIB%\commons-el.jar;%ICEJ%\lib\tools.jar
>
> I needed to change Java servlet programs which worked with
> jakarta-tomcat-4.1.24
> & with older java version. New java servlets call Java classes instead of
> Apache classes.
> see
> http://java.sun.com/webservices/docs/1.5/api/javax/servlet/http/HttpServlet.
> html
>
> Might be similar kind of challenges with *.JSP ?
> Let me know if you happen to see any depency tables about versions,
>
> Cheers,
> Ronnie
>
>
> ----- Original Message -----
> From: "philippe haas" <[hidden email]>
> To: <[hidden email]>
> Sent: Saturday, February 11, 2006 8:32 PM
> Subject: [protege-owl] querying owl model under tomat
>
>
> > Hi everybody,
> >
> > my hosted tomcat is version 4 ....
> > I had to give the path to protege 3.1 protege and protege-owl.jar
> > (because of compilation complains)
> >
> > Which XML parsers do i have to give to the path ?
> > (i get errors with jar from 3.1 and 3.2)
> >
> > thanks in advance
> >
> > philippe
> >
> > here is the error message
> >
> > java.lang.NoSuchMethodError:
> >
> org.apache.xerces.parsers.SAXParser.(Lorg/apache/xerces/xni/parser/XMLParser
> Configuration;)V at
> com.hp.hpl.jena.rdf.arp.SingleThreadedParser$MySAXParser.(SingleThreadedPars
> er.java:63) at
> com.hp.hpl.jena.rdf.arp.SingleThreadedParser.create(SingleThreadedParser.jav
> a:92) at com.hp.hpl.jena.rdf.arp.ARP.(ARP.java:98) at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.createARP(Protege
> OWLParser.java:169) at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
> ser.java:463) at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
> ser.java:442) at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
> ser.java:437) at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(ProtegeOWLPar
> ser.java:629) at
> edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(JenaOWLModel.java:196)
> at
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(ProtegeOW
> L.java:55) at org.apache.jsp.owlModelQuery_jsp!
> >  ._jspService(owlModelQuery_jsp.java:91) at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
> 62) at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> org!
> >  .apache.catalina.core.StandardContextValve.invoke(StandardCont!
> >  extValve
> > .
> > ne.invokeNext(StandardPipeline.java:566) at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> ) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66) at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> ) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64) at org.apache.catalina.core.StandardPipeline.invoke(!
> >  StandardPipeline.java:472) at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:409) at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:528) at
> java.lang.Thread.run(Thread.java:534)
> >
> > -------------------------------------------------------------------------
> > To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
> >
> >
>
>
> -------------------------------------------------------------------------
> To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
>
>

-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html