Hi, My problem occured during the creation of a site using java webscript . I can create a site with this code.
protected Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {
String siteID = "site_test";
SiteInfo siteinfo = null;
try {
siteinfo = createSite(siteID);
System.out.println(siteinfo);
}
catch (SiteServiceException e2 ) {
//e2.printStackTrace();
System.out.println("SITE: " + siteID + " already exists!");
}
Map<String, Object> model = new HashMap<String, Object>();
model.put("result", "true");
//System.out.println("end");
return model;
}After the execution of the webscript, using above code, site is created but only in repo.
Problem is that when I sign in into alfresco share this error occures in command line:
and this appers in share:
and the site I created in repo did not show up in share.
I am using Alfresco 6.2. Can somebody help me fix this error and create a functional site in share as well as in repo ?
Do I need to add some code to different files?
Or is there any other way to create a site in java that will appear in alfresco share?