jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McIntyre, Kevin" <Kevin_McInt...@intuit.com>
Subject Spring Boot Pointers for 1.8.2 - RootNode not created.
Date Mon, 05 Mar 2018 23:27:56 GMT
Hello – I’m trying to get up and running with Spring Boot.  I’m getting stuck seemingly
after everything launches correctly.

Steps to getting going:

  1.  Copy org.apache.jackrabbit.j2ee classes from oak-examples/webapp/ into my project
  2.  Add @WebServlet annotations to following:
     *   RepositoryStartupServlet
     *   RepositoryAccessServlet
     *   JCRWebdavServerServlet
     *   SimpleWebdavServlet
  3.  Create Spring Boot Class

@SpringBootApplication(exclude = { DispatcherServletAutoConfiguration.class })



public class OakBoot {

       public static void main(String[] args) throws Exception {

              SpringApplication.run(OakBoot.class, args);



       public ServletListenerRegistrationBean<ServletContextListener> listenerRegistrationBean()

              log.info("Start felix proxy listener");

              ServletListenerRegistrationBean<ServletContextListener> bean = new ServletListenerRegistrationBean<ServletContextListener>();

              bean.setListener(new ProxyListener());

              return bean;



       public ServletRegistrationBean rmiRegistrationBean() {

              log.info("Start rmi servlet");

              ServletRegistrationBean bean = new ServletRegistrationBean(new RemoteBindingServlet(),

              return bean;



       public ServletRegistrationBean proxyRegistrationBean() {

              log.info("Start osgi servlet");

              ServletRegistrationBean bean = new ServletRegistrationBean(new ProxyServlet(),

              return bean;



These are the steps to mimic web.xml from oak-examples/webapp.  Everything starts fine…but
(there’s always a but), when I try to

getRootNode via webdav client I get the following exception.

org.apache.jackrabbit.webdav.DavException: Unable to retrieve NodeInfo for http://localhost:8081/server/default/jcr%3aroot/

Is there some servlet or listener I’m missing to that creates the jcr:root?

Thanks in advance,

Kevin McIntyre | Software Developer | SBG – WWSUI

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message