On 8 March 2015 at 12:30, Navin Pai <[email protected]> wrote:

> Hey Michele,
> I'm done with the warmup task for JSONpedia, but serving data from the
> generated jar seems to be giving me some problems.
>
> My console output is shown below:
>
> ====
>
> $ java -cp build/libs/jsonpedia-full-1.2-SNAPSHOT.jar
> com.machinelinking.cli.server -c /tmp/conf.properties
>
> Mar 08, 2015 3:30:53 PM com.sun.jersey.api.core.PackagesResourceConfig init
> INFO: Scanning for root resource and provider classes in the packages:
>   com.machinelinking.service
> Mar 08, 2015 3:30:54 PM com.sun.jersey.api.core.ScanningResourceConfig
> logClasses
> INFO: Root resource classes found:
>   class com.machinelinking.service.DefaultAnnotationService
>   class com.machinelinking.service.DefaultStorageService
> Mar 08, 2015 3:30:54 PM com.sun.jersey.api.core.ScanningResourceConfig init
> INFO: No provider classes found.
> Error while running com.machinelinking.service.BasicServer
> java.lang.IllegalArgumentException: No container provider supports the
> type class org.glassfish.grizzly.http.server.HttpHandler
>     at
> com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:196)
>     at
> com.sun.jersey.api.container.ContainerFactory.createContainer(ContainerFactory.java:134)
>     at
> com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:243)
>     at com.machinelinking.service.BasicServer.setUp(BasicServer.java:79)
>     at com.machinelinking.cli.server.main(server.java:49)
>
> ====
>
> I found a couple of links online that seem to suggest that this implies an
> issue with the jar creation [1] [2]
>
> Have you come across this before? Any idea on how to resolve this?
>
> Thanks
>
> [1]
> https://stackoverflow.com/questions/9787265/grizzly-and-jersey-standalone-jar
> [2]
> https://stackoverflow.com/questions/11887321/running-jersey-on-grizzly-on-linux-and-windows
>
> ----
> Note to self: Don't reply to digests :(
>
> Hi Navin, right catch.
   Fat JARs and Jersey don't coexist very well. With Maven we fixed this
issue with an assembly building a JAR of JARs.
After migration to Gradle we introduced this regression, the fat jar is
messed up and we didn't allocate effort to find a stable fix.

The simple workaround we use to run the server io to launch the JVM with
full classpath including all library deps and
the sonpedia-full-1.2-SNAPSHOT.jar .

Please feel free to fix it and submit a patch, I suggest two possible
solutions:
S1- build a JAR of JARs like the Maven assembly did with options unzip
false;
S2- revert back to maven (a POM is is already present in Git history but
needs to be updated with the features introduced in the latest gradle).

Let me know if you need any help.
For realtime communication you can write on skype: michele.mostarda

Best
Michele

>
>
>
> Haha... completely understandable! :D
>>
>> I'm almost done with the task... The task is thankfully very
>> straightforward! :)
>>
>> Had a slightly offtopic question though... Is there any reason JSONpedia
>> is
>> on BitBucket rather than on Github like the other DBpedia projects? Just
>> curious...
>>
>> Thanks
>>
>> Navin
>>
>> On Fri, Mar 6, 2015 at 5:05 PM, Michele Mostarda <
>> [email protected]
>> > wrote:
>>
>> > Sorry, I meant Navin, copy-paste is evil :)
>> > Best
>> > Michele
>> >
>> >
>> > On 6 March 2015 at 12:28, Michele Mostarda <[email protected]>
>> > wrote:
>> >
>> >> Dear Harsh,
>> >>   I'm glad to notice your interest in applying to project 5.2 "New
>> >> Dynamic Extractors from Wikipedia Content with JSONpedia Faceted
>> Browsing"
>> >> [1].
>> >>
>> >> Please have a look to the related warmup tasks [2]. Let me know if you
>> >> have any issue on that.
>> >>
>> >> Best
>> >> Michele
>> >>
>> >> [1] http://wiki.dbpedia.org/gsoc2015/ideas#h460-8
>> >> [2] https://github.com/dbpedia/extraction-framework/issues/356
>> >>
>> >> --
>> >> Michele Mostarda
>> >> Senior Software Engineer
>> >> skype: michele.mostarda
>> >> twitter: micmos
>> >> mail: [email protected]
>> >>
>> >
>> >
>> >
>> > --
>> > Michele Mostarda
>> > Senior Software Engineer
>> > skype: michele.mostarda
>> > twitter: micmos
>> > mail: [email protected]
>> >
>>
>>
>
>


-- 
Michele Mostarda
Senior Software Engineer
skype: michele.mostarda
twitter: micmos
mail: [email protected]
site: http://michelemostarda.it
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Dbpedia-gsoc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-gsoc

Reply via email to