Access nodes from osgi bundle
Hi,
I'm trying to access some nodes from the OSGi bundle following this article but I'm getting this error
03.10.2013 07:29:50.290 *ERROR* [10.224.133.98 [1380778190289] POST /services/gallery/getimage HTTP/1.1] my.package.gallery.GetImages Error working with nodes! Unable to access a repository with the following settings: org.apache.jackrabbit.repository.uri: http://localhost:4503/crx/server The following RepositoryFactory classes were consulted: Perhaps the repository you are trying to access is not available at the moment.
and here is part of my code
@Override protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException { private Repository repository = null; private Session session = null; try{ repository = JcrUtils.getRepository("http://localhost:4503/crx/server"); session = repository.login(); javax.jcr.Node node = session.getNode("/content/TEST/302104/jcr:content"); log.info("property: "+node.getProperty("jcr:title").getString()); }catch(Exception e){ log.error("Error working with nodes! "+e.getMessage()); } }I've also tried http://localhost:4502/crx/server as the URI but the result was exactly the same. The
Thanks for any help