Index: src/main/java/org/modeshape/web/jcr/rest/client/json/IJsonConstants.java =================================================================== --- src/main/java/org/modeshape/web/jcr/rest/client/json/IJsonConstants.java (revision 1888) +++ src/main/java/org/modeshape/web/jcr/rest/client/json/IJsonConstants.java (working copy) @@ -65,11 +65,6 @@ String PROPERTIES_KEY = "properties"; /** - * The server context added to URLs. - */ - String SERVER_CONTEXT = "/resources"; - - /** * The workspace context added to the URLs. */ String WORKSPACE_CONTEXT = "/items"; Index: src/main/java/org/modeshape/web/jcr/rest/client/json/ServerNode.java =================================================================== --- src/main/java/org/modeshape/web/jcr/rest/client/json/ServerNode.java (revision 1888) +++ src/main/java/org/modeshape/web/jcr/rest/client/json/ServerNode.java (working copy) @@ -85,10 +85,6 @@ if (url.lastIndexOf("/") == (url.length() - 1)) { url.delete((url.length() - 1), (url.length() - 1)); } - - // append server context - url.append(IJsonConstants.SERVER_CONTEXT); - return new URL(url.toString()); } Index: src/test/java/org/modeshape/web/jcr/rest/client/json/JsonRestClientTest.java =================================================================== --- src/test/java/org/modeshape/web/jcr/rest/client/json/JsonRestClientTest.java (revision 1888) +++ src/test/java/org/modeshape/web/jcr/rest/client/json/JsonRestClientTest.java (working copy) @@ -55,7 +55,7 @@ private static final String PSWD = "password"; private static final String USER = "dnauser"; - private static final Server SERVER = new Server("http://localhost:8090", USER, PSWD); + private static final Server SERVER = new Server("http://localhost:8090/resources", USER, PSWD); private static final String REPOSITORY_NAME = "mode:repository"; private static final Repository REPOSITORY1 = new Repository(REPOSITORY_NAME, SERVER); private static final String WORKSPACE_NAME = "default";