thank you Andy.

Not so easy for us to upgrade from jersey 1 to 2 (incompatibilities, etc.) - 
we'll have to work.

fps

Le 26 mai 2014 à 18:41, Andy Seaborne <[email protected]> a écrit :

> You have two dependencies on
> 
> org.apache.httpcomponents:httpclient
> 
> v4.1.1 and v4.2.6
> 
> You are using a v1 jersey (com.sun.jersey) not org.glassfish.jersey (v2...)
> 
> https://jersey.java.net/download.html
> 
>       Andy
> 
> On 26/05/14 14:13, Francois-Paul Servant wrote:
>> Hi,
>> 
>> wishing to output some RDF to JSON-LD, I changed the dependency in my 
>> project to:
>> 
>> <dependency>
>>      <groupId>org.apache.jena</groupId>
>>      <artifactId>apache-jena-libs</artifactId>
>>      <type>pom</type>
>>      <version>2.11.2-SNAPSHOT</version>
>> </dependency>
>> 
>> where I had:
>> 
>> <dependency>
>>      <groupId>org.apache.jena</groupId>
>>      <artifactId>jena-arq</artifactId>
>>      <version>2.11.0</version>
>> </dependency>
>> 
>> I also added the following repository to my pom.xml:
>> <repository>
>>      <id>apache-repo-snapshots</id>
>>      <url>https://repository.apache.org/content/repositories/snapshots/</url>
>>      <releases>
>>              <enabled>false</enabled>
>>      </releases>
>>      <snapshots>
>>              <enabled>true</enabled>
>>      </snapshots>
>> </repository>
>> 
>> I get an exception when trying to output to JSON-LD:
>> java.lang.ClassNotFoundException: 
>> org.apache.http.impl.client.SystemDefaultHttpClient
>>      at 
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
>>      at 
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
>>      at 
>> com.github.jsonldjava.core.JsonLdOptions.<init>(JsonLdOptions.java:128)
>>      at 
>> com.github.jsonldjava.core.JsonLdProcessor.fromRDF(JsonLdProcessor.java:325)
>>      at org.apache.jena.riot.out.JsonLDWriter.serialize(JsonLDWriter.java:87)
>>      at org.apache.jena.riot.out.JsonLDWriter.write(JsonLDWriter.java:67)
>>      at org.apache.jena.riot.out.JsonLDWriter.write(JsonLDWriter.java:77)
>>      at 
>> org.apache.jena.riot.system.RiotLib$WriterAdapter.write(RiotLib.java:313)
>>      at 
>> org.apache.jena.riot.adapters.RDFWriterRIOT.write(RDFWriterRIOT.java:101)
>>      at com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:354)
>> 
>> Here's the output of "mvn dependency:tree"
>> 
>> [snip]
>> [INFO] +- log4j:log4j:jar:1.2.17:compile
>> [INFO] +- com.sun.jersey:jersey-server:jar:1.18:compile
>> [INFO] |  +- asm:asm:jar:3.1:compile
>> [INFO] |  \- com.sun.jersey:jersey-core:jar:1.18:compile
>> [INFO] +- com.sun.jersey:jersey-client:jar:1.18:compile
>> [INFO] +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.18:compile
>> [INFO] |  \- org.apache.httpcomponents:httpclient:jar:4.1.1:compile
>> [INFO] |     +- org.apache.httpcomponents:httpcore:jar:4.1:compile
>> [INFO] |     +- commons-logging:commons-logging:jar:1.1.1:compile
>> [INFO] |     \- commons-codec:commons-codec:jar:1.4:compile
>> [INFO] +- com.sun.jersey:jersey-servlet:jar:1.18:compile
>> [INFO] +- com.sun.jersey:jersey-json:jar:1.18:compile
>> [INFO] |  +- org.codehaus.jettison:jettison:jar:1.1:compile
>> [INFO] |  +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
>> [INFO] |  |  \- javax.xml.bind:jaxb-api:jar:2.2.2:compile
>> [INFO] |  |     \- javax.xml.stream:stax-api:jar:1.0-2:compile
>> [INFO] |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile
>> [INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:compile
>> [INFO] |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.2:compile
>> [INFO] |  \- org.codehaus.jackson:jackson-xc:jar:1.9.2:compile
>> [INFO] +- org.apache.jena:apache-jena-libs:pom:2.11.2-SNAPSHOT:compile
>> [INFO] |  +- org.apache.jena:jena-tdb:jar:1.0.2-SNAPSHOT:compile
>> [INFO] |  |  +- org.apache.jena:jena-arq:jar:2.11.2-SNAPSHOT:compile
>> [INFO] |  |  |  +- com.github.jsonld-java:jsonld-java:jar:0.4:compile
>> [INFO] |  |  |  |  +- 
>> com.fasterxml.jackson.core:jackson-core:jar:2.3.3:compile
>> [INFO] |  |  |  |  \- 
>> com.fasterxml.jackson.core:jackson-databind:jar:2.3.3:compile
>> [INFO] |  |  |  |     \- 
>> com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
>> [INFO] |  |  |  +- 
>> org.apache.httpcomponents:httpclient-cache:jar:4.2.6:compile
>> [INFO] |  |  |  \- org.slf4j:jcl-over-slf4j:jar:1.7.6:compile
>> [INFO] |  |  \- org.apache.jena:jena-core:jar:2.11.2-SNAPSHOT:compile
>> [INFO] |  |     +- org.apache.jena:jena-iri:jar:1.0.2-SNAPSHOT:compile
>> [INFO] |  |     \- xerces:xercesImpl:jar:2.11.0:compile
>> [INFO] |  |        \- xml-apis:xml-apis:jar:1.4.01:compile
>> [INFO] |  +- org.slf4j:slf4j-api:jar:1.7.6:compile
>> [INFO] |  \- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
>> [INFO] +- junit:junit:jar:4.11:test
>> [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
>> [INFO] +- 
>> com.sun.jersey.jersey-test-framework:jersey-test-framework-grizzly2:jar:1.18:test
>> [INFO] |  +- 
>> com.sun.jersey.jersey-test-framework:jersey-test-framework-core:jar:1.18:test
>> [INFO] |  |  \- javax.servlet:javax.servlet-api:jar:3.0.1:test
>> [INFO] |  \- com.sun.jersey:jersey-grizzly2-servlet:jar:1.18:test
>> [INFO] |     +- org.glassfish.grizzly:grizzly-http-servlet:jar:2.2.16:test
>> [INFO] |     |  \- org.glassfish.grizzly:grizzly-http-server:jar:2.2.16:test
>> [INFO] |     |     \- org.glassfish.grizzly:grizzly-rcm:jar:2.2.16:test
>> [INFO] |     \- com.sun.jersey:jersey-grizzly2:jar:1.18:test
>> [INFO] |        \- org.glassfish.grizzly:grizzly-http:jar:2.2.16:test
>> [INFO] |           \- org.glassfish.grizzly:grizzly-framework:jar:2.2.16:test
>> [INFO] +- 
>> com.sun.jersey.jersey-test-framework:jersey-test-framework-external:jar:1.18:provided
>> [INFO] +- com.sun.grizzly:grizzly-servlet-webserver:jar:1.9.59:provided
>> [INFO] |  +- com.sun.grizzly:grizzly-http:jar:1.9.59:provided
>> [INFO] |  |  +- com.sun.grizzly:grizzly-framework:jar:1.9.59:provided
>> [INFO] |  |  +- com.sun.grizzly:grizzly-rcm:jar:1.9.59:provided
>> [INFO] |  |  +- com.sun.grizzly:grizzly-portunif:jar:1.9.59:provided
>> [INFO] |  |  \- com.sun.grizzly:grizzly-utils:jar:1.9.59:provided
>> [INFO] |  |     \- com.sun.grizzly:grizzly-lzma:jar:1.9.59:provided
>> [INFO] |  +- com.sun.grizzly:grizzly-http-servlet:jar:1.9.59:provided
>> [INFO] |  \- javax.servlet:servlet-api:jar:2.5:provided
>> [INFO] \- org.apache.ant:ant-compress:jar:1.3:test
>> [INFO]    +- org.apache.ant:ant:jar:1.9.4:test
>> [INFO]    |  \- org.apache.ant:ant-launcher:jar:1.9.4:test
>> [INFO]    +- org.apache.commons:commons-compress:jar:1.6:test
>> [INFO]    \- org.tukaani:xz:jar:1.4:test
>> 
>> Best,
>> 
>> fps
>> 
> 

Reply via email to