hacksong / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

Instatiating a new JsonRpcServer causes java.lang.ClassNotFoundException: javax.servlet.ServletInputStream #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Create a new JsonRpcServer :

            JsonRpcServer jsonRpcServer = new JsonRpcServer(new MstServiceImpl());

What version of the product are you using? On what operating system?

Using jsonrpc4j 0.28 on Mac OSX Lion

Please provide any additional information below.

Original issue reported on code.google.com by ruipfer...@gmail.com on 7 Sep 2013 at 4:29

GoogleCodeExporter commented 9 years ago
Forgot to mention i am trying to setup a simple StreamServer. I do not want 
Servlets or HTTP or anything like that.

Original comment by ruipfer...@gmail.com on 7 Sep 2013 at 4:30

GoogleCodeExporter commented 9 years ago
After some troubleshooting i realized this has to do with servelet-api having 
scope=provided in the project pom. 

Because i do not want to run my project under any sort of container and only to 
generate an executable jar, had to make sure the project servlet dependency was 
included in my jar by setting the scope to compile for the servlet-api 
dependency.

Not sure how to solve this without modifying the jsonrpc4j pom.

Original comment by ruipfer...@gmail.com on 7 Sep 2013 at 5:12

GoogleCodeExporter commented 9 years ago
Actually all i needed was to add servelet-api dependency with scope compiled to 
my own project pom, so no need to modify the jsonrpc4j pom.

Original comment by ruipfer...@gmail.com on 12 Sep 2013 at 10:57

GoogleCodeExporter commented 9 years ago

Original comment by brian.di...@gmail.com on 18 Oct 2013 at 11:11