[MAGNOLIA-2278] Accssing the magnolia Repositroy Created: 18/Jul/08  Updated: 02/Dec/13  Resolved: 02/Dec/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.5.6
Fix Version/s: None

Type: Task Priority: Major
Reporter: Krishna LVR Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

Hi
i am facing the problem to access the repository of magnoliawhile integrating the magnolia with other web application the following is the code which i have written to acess the repository can please suggest the right way to access the repositroy to other web application

String configFile = "/home/opt/java/apache-tomcat-5.5.26/webapps/magnolia/WEB-INF/config/repo-conf/jackrabbit-derby-search.xml";
//modified repHomeDir in repository.xml & magnolia.properties
String repHomeDir = "/home/msr/opt/repositories/magnolia";
//modified ProviderURL in repository.xml
env.put(Context.PROVIDER_URL, "http://localhost:8080/magnolia/jcr");
Context ctx = new InitialContext(env);
RegistryHelper.registerRepository(ctx, "magnolia",
configFile,
repHomeDir,
true);
Repository r = (Repository) ctx.lookup("magnolia");
SimpleCredentials credentials = new SimpleCredentials(
"superuser", "superuser".toCharArray());
Session session = r.login(credentials);
while accessing the repsitory getting the error
can you please suggest


Generated at Mon Feb 12 03:35:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.