Hi Sergio, Thank you, this was indeed the problem, I should've tested it better.
However, the server log messages did not point to ldpath program being wrong. Deducing from this server error message, I suppose that something may be wrong with logging Exeptions: Aug 9, 2012 6:02:53 PM com.sun.jersey.spi.container.ContainerResponse > logException > SEVERE: Mapped exception to response: 500 (Internal Server Error) > javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: > A message body writer for Java class org.apache.stanbol.contenthub. > servicesapi.ldpath.LDPathException, and Java type class > org.apache.stanbol.contenthub.servicesapi.ldpath.LDPathException, and > MIME media type application/octet-stream was not found > at com.sun.jersey.spi.container.ContainerResponse.write( > ContainerResponse.java:285) > Thanks, Maciek On Thu, Sep 6, 2012 at 8:51 AM, Sergio Fernández < sergio.fernan...@salzburgresearch.at> wrote: > Hi, > > On 09/05/2012 08:00 PM, Maciek Sykulski wrote: > >> *3.* I cannot submit any *ldpath program* to contenthub. Any submit >> request >> >> directed at POST:/contenthub/ldpath/**program yields: >> >> curl -i -X POST -d "name=universities&program= \ >> @prefix dbp-ont : ; \ >> city = dbp-ont:city / rdfs:label :: xsd:string; \ >> country = dbp-ont:country / rdfs:label :: >> xsd:string; \ >> president = dbp-ont:president / rdfs:label :: >> xsd:string; \ >> numberOfStudent = dbp-ont:numberOfStudents :: >> xsd:int;" >> >> "http://localhost:8080/**contenthub/ldpath/program<http://localhost:8080/contenthub/ldpath/program> >> " >> HTTP/1.1 500 Internal Server Error >> > > Looks that the prefix declaration uses a wrong LDPath syntax, the > namespace is missing. You'd need to use something like: > > @prefix dbp-ont : <http://dbpedia.org/ontology/> ; > > and it should work. > > For further details, please check the path language specification: > > http://code.google.com/p/**ldpath/wiki/PathLanguage#** > Namespace_Definitions<http://code.google.com/p/ldpath/wiki/PathLanguage#Namespace_Definitions> > > Kind regards, > > -- > Sergio Fernández > Salzburg Research > +43 662 2288 318 > Jakob-Haringer Strasse 5/II > A-5020 Salzburg (Austria) > http://www.salzburgresearch.at > > > ...and our Stanbol server logs as follows: > Aug 9, 2012 6:02:53 PM com.sun.jersey.spi.container.servlet.WebComponent > filterFormParameters > WARNING: A servlet POST request, to the URI > http://localhost:8080/contenthub/ldpath/program, contains form parameters > in the request body but the request body has be > en consumed by the servlet or a servlet filter accessing the request > parameters. Only resource methods using @FormParam will work as expected. > Resource methods consu > ming the request body by other means will not work as expected. > Aug 9, 2012 6:02:53 PM com.sun.jersey.spi.container.ContainerResponse > write > SEVERE: A message body writer for Java class org.apache.stanbol.contenthub. > servicesapi.ldpath.LDPathException, and Java type class > org.apache.stanbol.contenthub.serv > icesapi.ldpath.LDPathException, and MIME media type > application/octet-stream was not found > Aug 9, 2012 6:02:53 PM com.sun.jersey.spi.container.ContainerResponse > write > SEVERE: The registered message body writers compatible with the MIME media > type are: > */* -> > com.sun.jersey.core.impl.provider.entity.FormProvider > com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider > com.sun.jersey.core.impl.provider.entity.StringProvider > com.sun.jersey.core.impl.provider.entity.ByteArrayProvider > com.sun.jersey.core.impl.provider.entity.FileProvider > com.sun.jersey.core.impl.provider.entity.InputStreamProvider > com.sun.jersey.core.impl.provider.entity.DataSourceProvider > com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General > com.sun.jersey.core.impl.provider.entity.ReaderProvider > com.sun.jersey.core.impl.provider.entity.DocumentProvider > com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider > com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter > com.sun.jersey.server.impl.template.ViewableMessageBodyWriter > com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General > com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General > application/octet-stream -> > com.sun.jersey.core.impl.provider.entity.ByteArrayProvider > com.sun.jersey.core.impl.provider.entity.FileProvider > com.sun.jersey.core.impl.provider.entity.InputStreamProvider > com.sun.jersey.core.impl.provider.entity.DataSourceProvider > com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider > Aug 9, 2012 6:02:53 PM com.sun.jersey.spi.container.ContainerResponse > logException > SEVERE: Mapped exception to response: 500 (Internal Server Error) > javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: > A message body writer for Java class org.apache.stanbol.contenthub. > servicesapi.ldpath.LDPathException, and Java type class > org.apache.stanbol.contenthub.servicesapi.ldpath.LDPathException, and > MIME media type application/octet-stream was not found > at com.sun.jersey.spi.container.ContainerResponse.write( > ContainerResponse.java:285) > at com.sun.jersey.server.impl.application.WebApplicationImpl._ > handleRequest(WebApplicationImpl.java:1451) > at com.sun.jersey.server.impl.application.WebApplicationImpl. > handleRequest(WebApplicationImpl.java:1363) > at com.sun.jersey.server.impl.application.WebApplicationImpl. > handleRequest(WebApplicationImpl.java:1353) > at com.sun.jersey.spi.container.servlet.WebComponent.service( > WebComponent.java:414) > at com.sun.jersey.spi.container.servlet.ServletContainer. > service(ServletContainer.java:537) > at com.sun.jersey.spi.container.servlet.ServletContainer. > service(ServletContainer.java:708) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.apache.felix.http.base.internal.handler. > ServletHandler.doHandle(ServletHandler.java:96) > at org.apache.felix.http.base.internal.handler. > ServletHandler.handle(ServletHandler.java:79) > at org.apache.felix.http.base.internal.dispatch. > ServletPipeline.handle(ServletPipeline.java:42) > at org.apache.felix.http.base.internal.dispatch. > InvocationFilterChain.doFilter(InvocationFilterChain.java:49) > at org.apache.felix.http.base.internal.dispatch. > HttpFilterChain.doFilter(HttpFilterChain.java:33) > at org.apache.stanbol.commons.httpqueryheaders.impl. > QueryHeadersFilter.doFilter(QueryHeadersFilter.java:75) > at org.apache.felix.http.base.internal.handler. > FilterHandler.doHandle(FilterHandler.java:88) > at org.apache.felix.http.base.internal.handler. > FilterHandler.handle(FilterHandler.java:76) > at org.apache.felix.http.base.internal.dispatch. > InvocationFilterChain.doFilter(InvocationFilterChain.java:47) > at org.apache.felix.http.base.internal.dispatch. > HttpFilterChain.doFilter(HttpFilterChain.java:33) > at org.apache.felix.http.base.internal.handler. > FilterHandler.handle(FilterHandler.java:78) > at org.apache.felix.http.base.internal.dispatch. > InvocationFilterChain.doFilter(InvocationFilterChain.java:47) > at org.apache.felix.http.base.internal.dispatch. > HttpFilterChain.doFilter(HttpFilterChain.java:33) > at org.apache.felix.http.base.internal.dispatch. > FilterPipeline.dispatch(FilterPipeline.java:48) > at org.apache.felix.http.base.internal.dispatch.Dispatcher. > dispatch(Dispatcher.java:39) > at org.apache.felix.http.base.internal.DispatcherServlet. > service(DispatcherServlet.java:67) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at org.mortbay.jetty.servlet.ServletHolder.handle( > ServletHolder.java:511) > at org.mortbay.jetty.servlet.ServletHandler.handle( > ServletHandler.java:390) > at org.mortbay.jetty.servlet.SessionHandler.handle( > SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle( > ContextHandler.java:765) > at org.mortbay.jetty.handler.HandlerWrapper.handle( > HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest( > HttpConnection.java:542) > at org.mortbay.jetty.HttpConnection$RequestHandler. > content(HttpConnection.java:943) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser. > java:218) > at org.mortbay.jetty.HttpConnection.handle( > HttpConnection.java:404) > at org.mortbay.io.nio.SelectChannelEndPoint.run( > SelectChannelEndPoint.java:410) > at org.mortbay.thread.QueuedThreadPool$PoolThread. > run(QueuedThreadPool.java:582) > Caused by: com.sun.jersey.api.MessageException: A message body writer for > Java class org.apache.stanbol.contenthub.servicesapi.ldpath.LDPathException, > and Java type class > org.apache.stanbol.contenthub.servicesapi.ldpath.LDPathException, > and MIME media type application/octet-stream was not found > ... 38 more > >