Hi,
I have an issue about nuxeo initial start and repository initialization. When 
nuxeo starts, my application needs to do some work with repository - to create 
some folders, users,groups, to change some permissions etc... By now I'm 
creating FrameworkListener which sniffs for FrameworkEvent.STARTED and does its 
work. Everything is fine except the way I'm getting system core session. I have 
to change classloader to be Framework.class.getClassLoader(), instead the class 
loader of current thread and after finishing the work the class loader is 
restored. I'm not sure this is regular way to do such job. I prefer to use 
UnrestrictedSessionRunner class, but the issue with classloaders persists - an 
exception is thrown - javax.security.auth.login.LoginException. message: unable 
to find LoginModule class: No ClassLoaders found for: 
org.nuxeo.runtime.api.login.SystemLoginModule. I'm not sure that changing of 
classloaders is a good idea, but on this event this is the only way to make 
everything working fine. Can you point me a better way to do such 
initialization job without "knowledge"  of internal implementation and loading 
mechanism. May be I have to sniff for a different Event?
The rest modules of application are expecting these data to be configured and 
are working on well known repository structure.
Regards,
Stefan
--
Posted by "[email protected]" at Nuxeo Discussions 
<http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2485#6780>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to