Please note that OSGi is POJO-based: http://www.osgi.org/blog/2006/03/pojos.html
(TL;DR: You don't need to implement a specific interface to create an OSGi service). Your issue seems more related to the classpath and I'm sure there is a simple workaround. S. On Apr 27, 2011, at 5:03 PM, Alessandro Adamou wrote: > Hi, > > there seem to be some early adopters who are interested in using Stanbol, yet > would like to run it in non-OSGi environments. > > There is of course an issue about making sure there are alternative > constructors for all SCR services, BundleActivator#start() methods called etc. > > However now I am mostly concerned about working dir management. By simply > adding all JARs to the classpath and instantiating Stanbol clases, I get > missing Jena resource files such as > > com.hp.hpl.jena.reasoner.ReasonerException: Can't load rules file: > etc/rdfs-fb-tgc-noresource.rules > > We are wondering whether this could be due to the centralized working > directory management in POJO as opposed to distributed (?) working directory > management in OSGi. > > Do you know if compiling with a goal other than bundle would help? mvn > assembly:assembly doesnt seem to work on Stanbol root. > > Thanks > > Alessandro > > -- > M.Sc. Alessandro Adamou > > Alma Mater Studiorum - Università di Bologna > Department of Computer Science > Mura Anteo Zamboni 7, Bologna - Italy > > Semantic Technology Laboratory (STLab) > Institute for Cognitive Science and Technology (ISTC) > National Research Council (CNR) > Via Nomentana 56, 00161 Rome - Italy > > > "As for the charges against me, I am unconcerned. I am beyond their timid, > lying morality, and so I am beyond caring." > (Col. Walter E. Kurtz) > -- Stefane Fermigier, Founder and Chairman, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com/ - +33 1 40 33 79 87 - http://twitter.com/sfermigier Join the Nuxeo Group on LinkedIn: http://linkedin.com/groups?gid=43314 New Nuxeo release: http://nuxeo.com/dm54 "There's no such thing as can't. You always have a choice."
