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/and >> the 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 >> >> >> >>
signature.asc
Description: Message signed with OpenPGP using GPGMail