owlim-discussion  

Re: [Owlim-discussion] Custom rulesets in swoftowlim 3.3

Barry Bishop
Sun, 15 Aug 2010 14:50:03 -0700

Hi John,

The absolute path should work fine, so I guess it is likely to do with
file permissions. You will have to consider both the tomcat user/group
id as well as the user/group id of the owner of the external rule file.

Also, please check the tomcat security settings. These are by default
very restrictive and usually will not allow tomcat hosted web-apps to
access files outside of the .../webapps directory. The easiest way to
see if this is a problem is to simply disable tomcat security.

Good luck,
barry

On 14/08/2010 23:39, John Madden wrote:
> I'm having a problem getting my Sesame 2.3.2+swiftowlim 3.3 setup to
> recognize custom ruleset filepaths entered from the Sesame console. 
> 
> I've tried entering the path to the custom ruleset as an absolute
> (system) filepath, and as a filepath relative to the location of my
> openrdf-sesame folder. Neither works. I can create and manipulate
> repositories just fine provided I use the built-in rulesets -- that's
> not problem.
> 
> I have configured my opennrdf-sesame folder to be at /var/openrdf-sesame
> using the /info.aduna.platform.appdata.basedir/ JAVA_OPT parameter,
> because I found it to be a pain in the nack having it in the default
> hidden directory at ~/.aduna -- just my preference. I don't know if this
> is screwing me up somehow.
> 
> Setup: Sesame 2.3.2, swiftowim 3.3, Tomcat 6.0.24, Ubuntu 10.04
> server, Java 1.6.0_18
> 
> I'm sure I'm just doing something stupid, but can someone help me figure
> it out? Thanks!!
> 
> John
> 
> 
> 
> 
> Details:
> 
> Here's an example of my Sesame console session. Here I'm trying to point
> at an entirely unmodified copy of Rules_builtin.pie from the
> distribution, just to prove it isn't anything wrong in my rules file):
> 
>     SLF4J: Class path contains multiple SLF4J bindings.
>     SLF4J: Found binding in
>     
> [jar:file:/opt/openrdf-sesame-2.3.2/lib/logback-classic-0.9.18.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>     SLF4J: Found binding in
>     
> [jar:file:/opt/openrdf-sesame-2.3.2/lib/slf4j-jdk14-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>     SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>     explanation.
>     16:03:49.999 [main] DEBUG info.aduna.platform.PlatformFactory -
>     os.name <http://os.name> = linux
>     16:03:50.005 [main] DEBUG info.aduna.platform.PlatformFactory -
>     Detected Gnome window manager on Posix platform
>     Connected to default data directory
> 
>     Commands end with '.' at the end of a line
>     Type 'help.' for help
>     > connect http://localhost:8080/openrdf-sesame.
>     Disconnecting from default data directory
>     Connected to http://localhost:8080/openrdf-sesame
>     > create swiftowlim.
>     Please specify values for the following variables:
>     Repository ID [swiftowlimTest]: 
>     Repository title [SwiftOWLIM Test store]: 
>     Set of rules [owl-max-optimized]: /var/owlim/Rules_builtin.pie
>     No Persistence (true|false) [true]: 
>     Storage folder [swiftowlimTest-storage]: 
>     entity index size [200000]: 
>     imports(';' delimited) [./ontology/owl.rdfs]: 
>     defaultNS(';' delimited) [ http://www.w3.org/2002/07/owl#]: 
>     Repository created
>     > quit.
> 
> The repository gets created, I can se it from the console and from the
> Workbench, and I can see its newly created folder inside my
> /var/openrdf-sesame/repositories folder. But here's the error message I
> get back in Sesame Workbench when I try to do any action (here,
> GetNamespaces) on the repository:
> 
>     HTTP Status 500 -
>     type Exception report
>     message
>     description The server encountered an internal error () that
>     prevented it from fulfilling this request.
>     exception
>     javax.servlet.ServletException:
>     org.openrdf.repository.RepositoryException:
>     org.openrdf.repository.RepositoryException: Unknown rule set:
>     /var/owlim/Rules_builtin
>     
> org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:80)
> 
>     org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
>     
> org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
> 
>     
> org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
> 
>     
> org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
>     
> org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
>     org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
>     
> org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
>     root cause
>     org.openrdf.repository.RepositoryException:
>     org.openrdf.repository.RepositoryException: Unknown rule set:
>     /var/owlim/Rules_builtin
>     
> org.openrdf.http.client.HTTPClient.getTupleQueryResult(HTTPClient.java:992)
>     org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:768)
>     org.openrdf.http.client.HTTPClient.getNamespaces(HTTPClient.java:750)
>     
> org.openrdf.repository.http.HTTPRepositoryConnection.getNamespaces(HTTPRepositoryConnection.java:324)
>     
> org.openrdf.workbench.commands.NamespacesServlet.service(NamespacesServlet.java:48)
>     
> org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:94)
>     
> org.openrdf.workbench.base.TransformationServlet.service(TransformationServlet.java:73)
>     org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
>     
> org.openrdf.workbench.proxy.ProxyRepositoryServlet.service(ProxyRepositoryServlet.java:93)
>     
> org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:131)
>     
> org.openrdf.workbench.proxy.WorkbenchServlet.service(WorkbenchServlet.java:90)
>     
> org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:97)
>     org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
>     
> org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
> 
> 
> 
> 
> 
> 
> _______________________________________________
> OWLIM-discussion mailing list
> OWLIM-discussion@ontotext.com
> http://ontotext.com/mailman/listinfo/owlim-discussion
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion