JBoss Community

httprouter issues with GET/POST WADL Services and Web Routing

reply from jack lista in JBoss ESB Development - View the full discussion

Hi Dave, thanks for the info.  I'm trying to build the stuff now, but I'm getting an error on the HTTPClient:

 

[javac] /home/jack/java/jboss/jboss-soa-p.5.0.0/jboss-as/samples/quickstarts/simple_cbr/src/org/jboss/soa/esb/samples/quickstart/simplecbr/JerseyClientSingleton.java:9: package com.sun.jersey.client.apache does not exist
[javac] import com.sun.jersey.client.apache.ApacheHttpClient;

 

from this import in JerseyClientSingleton.java (line 9):

 

import com.sun.jersey.client.apache.ApacheHttpClient;

 

I took your advice (perhaps incorrectly) and put these 3 jars in my project lib folder but am still getting the compilation error:

 

asm-3.1.jar

jersey-bundle-1.3.jar

jsr311-api-1.1.jar

 

I put these in the lib directory of the project, which is the "simple_cbr" jboss quickstart which I'm using to test this stuff.  Am I missing a jar?  Or does it need to go in a different lib dir?  I was looking at this link for dependencies, I'm using ant (the quickstarts all use ant), so I'm following the instructions for non-maven developers:

 

https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html#chapter_deps

 

 

Whoops, I looked through the zip file for jersey (I'm using 1.3, hope that's ok) and found the apache client jar and threw it in my project lib dir and now it built...  wooo!

 

OK, no need to respond here, I'm mostly posting this to help the next poor sap to come along :)

 

So the jars needed are:

 

asm-3.1.jar

jersey-bundle-1.3.jar

jsr311-api-1.1.jar

jersey-apache-client-1.3.jar

 

I'm sure I'll have more to say but thanks loads Dave, really appreciate your help!!

 

-=j=-

 

 

--j

Reply to this message by going to Community

Start a new discussion in JBoss ESB Development at Community