On Saturday, August 20, 2016, Brent Shambaugh <brent.shamba...@gmail.com> wrote:
> Hello all, > > Sometimes I do a GET Request and get a 500 error (at the same time I > get 404 not found errors for other ldp containers with the browser > interface). Any ideas about troubleshooting? Thanks. > > ------------------------------------------------------------ > ----------------------------------------------------- > <snip> > > HTTP Status 500 - > org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not > find MessageBodyWriter for response object of type: > org.apache.marmotta.platform.core.jaxrs.exceptionmappers.ErrorResponse > of media type: text/turtle</h1><HR size="1" > noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> > <u>org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not > find MessageBodyWriter for response object of type: > org.apache.marmotta.platform.core.jaxrs.exceptionmappers.ErrorResponse > of media type: text/turtle</u></p><p><b>description</b> <u>The server > encountered an internal error that prevented it from fulfilling this > request.</u></p><p><b>exception</b> > <pre>org.jboss.resteasy.spi.UnhandledException: > org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not > find MessageBodyWriter for response object of type: > org.apache.marmotta.platform.core.jaxrs.exceptionmappers.ErrorResponse > of media type: text/turtle > org.jboss.resteasy.core.SynchronousDispatcher.writeException( > SynchronousDispatcher.java:157) > org.jboss.resteasy.core.SynchronousDispatcher.invoke( > SynchronousDispatcher.java:372) > org.jboss.resteasy.core.SynchronousDispatcher. > invokePropagateNotFound( <snip> > </pre></p><p><b>note</b> <u>The full stack trace of the root cause is > available in the Apache Tomcat/7.0.52 (Ubuntu) logs.</u></p><HR > size="1" noshade="noshade"><h3>Apache Tomcat/7.0.52 > (Ubuntu)</h3></body></html>" > > ------------------------------------------------------------ > ---------------------------------------------- > > Perhaps it is this: > > Problem with Resteasy: NoMessageBodyWriterFoundFailure > > https://developer.jboss.org/thread/191022?start=0&_sscc=t > ------------------------------------------------------------ -------------------------------------------- I'm working with Brent on this issue. Neither of us knows tea from toyotas WRT Java, we are just trying to get and keep Marmotta running on a remote server. It used to work and only recently had any complaints about resteasy, we don't know why. Starting about a month ago we started getting a different error - as I recall it was Class Not Found for resteasy-jamb. I did not look into this until yesterday. Yesterday I downloaded resteasy-jaxb-[version].jar into the lib directory, and that ClassNotFound error went away. For a while, or maybe intermittently - we are not sure which - things worked or seemed to. But now the error described by Brent is happening all he time or close to it. This morning I compared version information from the Marmotta website dependencies lists (both compile and runtime) and the jar files in the Catalina WEB-INF lib directory. All appeared to be correct. Seeing suggestions like the jboss one above, I tried also putting resteasy-jaxb-provider.jar (no version) in the lib in addition to the one I put in there yesterday, and tomcat7 refused to start, spewing messages. So I removed that, and we are back at square two. So, is there something in a configuration file that we are missing? I can provide diff comparisons of the lib directory if that would help. Sorry for what may be a newbie question, the rest of our application is in other languages, and we are building scripts to access via HTTP. But this error also occurs from the Marmotta web interface. Thanks for any advice. GB -- Sent from Gmail Mobile