• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modeshape web service

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


i want to use the modeshape api which is supposed to give the list of repositories

i use the maven web project. i include the modeshape-web-jcr-rest-war in the depedency. and i use the url in a httpget Angular function.


var Modeshape = angular.module('Modeshape', []);
Modeshape.controller('Ltworksp',function($scope, $http) {
$http.get('http://localhost:8080/modeshape-rest/Persisted_Repository').success(function(data)
{$scope.lwspace = data;
});
});



i dont get the result so i pasted the url in the browser it shows error 404.
http://localhost:8080/modeshape-rest/Persisted_Repository


i have verified my database ; the nodes ares stored in database.


this is my config file :
{
"name" : "Persisted_Repository",
"workspaces" : {
"predefined" : ["otherWorkspace"],
"default" : "default",
"allowCreation" : true
},

"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
"useOnFailedLogin" : false
}
},

"storage" : {
"cacheConfiguration" : "infinispan_configuration.xml",
"cacheName" : "Persisted_Repository",
"binaryStorage" : {
"type" : "file",
"directory": "target/content/binaries",
"minimumBinarySizeInBytes" : 4096
}
},

"query" : {
"enabled":true,
"rebuildUponStartup":"if_missing",
"indexStorage": {
"type":"filesystem",
"location":"target/content/index",
"lockingStrategy":"simple",
"fileSystemAccessType":"auto"
}
},
}

i miss something ???


cordialement

 
reply
    Bookmark Topic Watch Topic
  • New Topic