Hi Johannes, the magic command is calling
mvn -o clean install -P installBundle \ -Dsling.url=http://localhost:8080/system/console for the module you have changed. This assumes that stanbol is running on localhost:8080 with the default usr:pwd Just make sure to disconnect the debugger before calling this, as updating a bundle while debugging can (will most likely) cause problems. best Rupert On Thu, Dec 19, 2013 at 1:30 PM, Antonio David Perez Morales <ape...@zaizi.com> wrote: > Hi Johannes. > > You can do hot code reloading because Stanbol works in an OSGI environment. > So if you put a bundle in the fileinstall folder or install it via admin > interface, the code is directly executed by the OSGI environment with no > need to stop and restart Stanbol to see or debug the changes. > > Regards > > > On Thu, Dec 19, 2013 at 1:21 PM, Johannes Goslar > <johannes.gos...@dkd.de>wrote: > >> Thanks a lot, breakpoints are working now. >> Is there a way to get starting via eclipse and hot code reloading? >> >> I tried to Debug as Java-Application and set the sling.home and working >> directory as on the console but I will crash in ModelWriterTracker.java: >> >> public Object addingService(ServiceReference reference) { >> Object service = super.addingService(reference); << service will >> be null, thus second line fails >> Set<MediaType> mediaTypes = >> parseMediaTypes(((ModelWriter)service).supportedMediaTypes()); >> Class<? extends Representation> nativeType = >> ((ModelWriter)service).getNativeType(); >> if(!mediaTypes.isEmpty()){ >> lock.writeLock().lock(); >> try { >> for(MediaType mediaType : mediaTypes){ >> addModelWriter(nativeType, mediaType, reference); >> } >> } finally { >> lock.writeLock().unlock(); >> } >> return service; >> } else { //else no MediaTypes registered >> return null; //ignore this service >> } >> } >> >> Kind Regards >> Johannes >> -- >> Johannes Goslar >> >> dkd Internet Service GmbH >> development // kommunikation // design >> Kaiserstraße 73 >> 60329 Frankfurt am Main >> >> Kontakt: >> - email: johannes.gos...@dkd.de >> - fon: +49 69 2475218-0 >> - fax: +49 69 2475218-99 >> - web: http://www.dkd.de >> - social media: http://social.dkd.de >> >> Aktuelle Projekte: >> - http://j.mp/SehBiS-App – iPhone-App Sehbehinderungssimulator >> - http://www.ellen-wille.de - Launch Website (TYPO3) >> - http://www.vgf-ffm.de - Relaunch Website (TYPO3) >> >> Geschäftsführer: O. Dobberkau, S. Schaffstein, G. Wegenast, C. Zabanski >> Registergericht: Amtsgericht Frankfurt am Main >> Registernummer: HRB 45590 >> >> >> >> On 19.12.2013, at 11:14, Dileepa Jayakody <dileepajayak...@gmail.com> >> wrote: >> >> > Hi Johannes, >> > >> > You can start Stanbol in debug mode and start debugging as a Remote >> > Application in Eclipse. >> > >> > To Start Stanbol in debug mode: >> > eg: >> > java -Xdebug >> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n >> > -Xmx1g -XX:MaxPermSize=512m -jar >> > org.apache.stanbol.launchers.full-0.10.0-SNAPSHOT.jar -p 8080 >> > >> > >> > Now in Eclipse >> > Debug Configurations > New Remote Java Application >> > Host: localhost >> > Port: 8787 >> > >> > >> > Regards, >> > Dileepa >> > >> > >> > On Thu, Dec 19, 2013 at 3:07 PM, Johannes Goslar <johannes.gos...@dkd.de >> >wrote: >> > >> >> Hello, >> >> is there any updated howto to setup Eclipse for debugging? >> >> I found the iks blog post at >> >> >> http://blog.iks-project.eu/getting-started-with-apache-stanbol-enhancement-engine/andthe >> old readme on github, but I cannot get debugging running. >> >> >> >> Unexpectedly mvn eclipse:eclipse will download a lot of stanbol jars >> from >> >> apache servers, I thought it will use local compiled ones. >> >> The eclipse projects are generated and seem to include all needed stuff, >> >> and I can set breakpoints, but they will not trigger at all. >> >> Remote debugging with tomcat works as far, that I can connect Eclipse to >> >> tomcat and see the threads. >> >> >> >> If there is a way to avoid eclipse (emacs-user here), I would be >> >> interested as well. >> >> >> >> Kind Regards >> >> Johannes >> >> -- >> >> Johannes Goslar >> >> >> >> dkd Internet Service GmbH >> >> development // kommunikation // design >> >> Kaiserstraße 73 >> >> 60329 Frankfurt am Main >> >> >> >> Kontakt: >> >> - email: johannes.gos...@dkd.de >> >> - fon: +49 69 2475218-0 >> >> - fax: +49 69 2475218-99 >> >> - web: http://www.dkd.de >> >> - social media: http://social.dkd.de >> >> >> >> Aktuelle Projekte: >> >> - http://j.mp/SehBiS-App – iPhone-App Sehbehinderungssimulator >> >> - http://www.ellen-wille.de - Launch Website (TYPO3) >> >> - http://www.vgf-ffm.de - Relaunch Website (TYPO3) >> >> >> >> Geschäftsführer: O. Dobberkau, S. Schaffstein, G. Wegenast, C. Zabanski >> >> Registergericht: Amtsgericht Frankfurt am Main >> >> Registernummer: HRB 45590 >> >> >> >> >> >> >> >> >> >> > > -- > > ------------------------------ > This message should be regarded as confidential. If you have received this > email in error please notify the sender and destroy it immediately. > Statements of intent shall only become binding when confirmed in hard copy > by an authorised signatory. > > Zaizi Ltd is registered in England and Wales with the registration number > 6440931. The Registered Office is Brook House, 229 Shepherds Bush Road, > London W6 7AN. -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen