Okay so I decided to try to upgrade to karaf 4, using pax exam and
karaf I get an wierd error:

java.io.FileNotFoundException:
C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
(The filename, directory name, or volume label syntax is incorrect)

Im wondering what "file:\" are doing in my path.. This is on windows..

On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
<[email protected]> wrote:
> Ah my fault that one is for Karaf 4,
> for Karaf 3.0.4 you'll need to register a Runnable class
> As can be seen from the activator [1].
>
> regards, Achim
>
> [1] -
> https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>
> 2015-08-12 11:27 GMT+02:00 nino martinez wael
> <[email protected]>:
>>
>> Quick question, in which maven artifact for karaf 3.0.4 are
>>
>> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>> (the job) present?
>>
>> And thanks for the Karaf 4/exam tip :)
>> regards Nino
>>
>> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck <[email protected]>
>> wrote:
>> > Hi,
>> >
>> > you need to make sure your job is of type
>> > org.apache.karaf.scheduler.Job
>> > as this is the type the service tracker is looking for.
>> > This is the type you need to declare in the blueprint.xml.
>> >
>> > regarding Karaf 4 and Pax Exam, take a look at the integration tests of
>> > Pax
>> > Web.
>> > We are using it very successfully. [1]
>> >
>> > regards, Achim
>> >
>> > [1] -
>> >
>> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>> >
>> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>> > <[email protected]>:
>> >>
>> >> Im having a hard time getting this to work, I've tried both with the
>> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>> >> services) but none of them seems to pickup the jobs. Im using karaf
>> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>> >>
>> >> I've been looking in source files of
>> >> https://github.com/apache/karaf/tree/master/scheduler/src/main but no
>> >> tests are available. My bundle does boot up but are never scheduled.
>> >>
>> >> My job are here:
>> >> https://paste.apache.org/1dQi
>> >> Blueprint:
>> >> https://paste.apache.org/mmTV
>> >> Pax exam test:
>> >> https://paste.apache.org/gsaN
>> >>
>> >> Any pointers are very much apreciated..
>> >>
>> >>
>> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>> >> <[email protected]> wrote:
>> >> > Ok, because of Decanter I did take a look at the current scheduler
>> >> > embedded
>> >> > in Karaf.
>> >> > It's much more sophisticated then I previously thought.
>> >> >
>> >> > First it's already Quarz based, second if you install it via the
>> >> > scheduler
>> >> > feature you have commands to
>> >> > 1/ list
>> >> > 2/ schedule
>> >> > 3/ unschedule
>> >> >
>> >> > Programmatically one can add a new scheduler via a Service
>> >> > (whiteboard-pattern)
>> >> >
>> >> > regards, Achim
>> >> >
>> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <[email protected]>:
>> >> >>
>> >> >> yeah, a big +1 on the release :-)
>> >> >>
>> >> >>
>> >> >> regards, Achim
>> >> >>
>> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <[email protected]>:
>> >> >>>
>> >> >>> Yup, it would be great ;)
>> >> >>>
>> >> >>> Regards
>> >> >>> JB
>> >> >>>
>> >> >>>
>> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>> >> >>>>
>> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>> >> >>>>>
>> >> >>>>> By included, I thought about just refering Sling feature XML in
>> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>> >> >>>>> projects
>> >> >>>>> like
>> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to
>> >> >>>>> Sling
>> >> >>>>> feature XML.
>> >> >>>>
>> >> >>>>
>> >> >>>> Then we only need a release, fine.
>> >> >>>>
>> >> >>>> Regards,
>> >> >>>> O.
>> >> >>>>
>> >> >>>>> Regards
>> >> >>>>> JB
>> >> >>>>>
>> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>> >> >>>>>>
>> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>> >> >>>>>>>
>> >> >>>>>>> Good point, I think so. That's why it would make sense to
>> >> >>>>>>> provide
>> >> >>>>>>> sling
>> >> >>>>>>> feature repo in Karaf.
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>> ak, ok - included in Karaf. What options do we have? Copying the
>> >> >>>>>> file,
>> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
>> >> >>>>>> Karaf...
>> >> >>>>>> what
>> >> >>>>>> else?
>> >> >>>>>>
>> >> >>>>>> O.
>> >> >>>>>>
>> >> >>>>>>> Regards
>> >> >>>>>>> JB
>> >> >>>>>>>
>> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>> >> >>>>>>>>
>> >> >>>>>>>> nice,
>> >> >>>>>>>>
>> >> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>> >> >>>>>>>>
>> >> >>>>>>>> regards, Achim
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>> --
>> >> >>> Jean-Baptiste Onofré
>> >> >>> [email protected]
>> >> >>> http://blog.nanthrax.net
>> >> >>> Talend - http://www.talend.com
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Apache Member
>> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> Committer
>> >> >> &
>> >> >> Project Lead
>> >> >> blog <http://notizblog.nierbeck.de/>
>> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >>
>> >> >> Software Architect / Project Manager / Scrum Master
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Apache Member
>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> > Committer
>> >> > &
>> >> > Project Lead
>> >> > blog <http://notizblog.nierbeck.de/>
>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >
>> >> > Software Architect / Project Manager / Scrum Master
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards / Med venlig hilsen
>> >> Nino Martinez
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Reply via email to