jnan77 / jsonrpc4j

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

Can't use JsonRpcServer method handle(HttpServletRequest request, HttpServletResponse response) #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add maven dependencies for jsonrpc4j and jackson-mapper-asl to project 
pom.xml.
2. Input jsonRpcServer.handle(req, resp); in Eclipse editor.
3. Editor display error: The type javax.portlet.ResourceRequest cannot be 
resolved. It is indirectly referenced from required .class files.

What is the expected output? What do you see instead?
No errors expected. Error about javax.portlet.ResourceRequest instead. I do not 
need portlets and don't use them.

What version of the product are you using? On what operating system?
jsonrpc4j 0.23. Ubuntu 10.10.

Please provide any additional information below.
I fix this by include to my pom.xml

    <dependency>
        <groupId>javax.portlet</groupId>
        <artifactId>portlet-api</artifactId>
        <version>2.0</version>
        <scope>provided</scope>
    </dependency>

Maybe you need to include that dependency to jsonrpc4j pom.xml.

Original issue reported on code.google.com by xak2...@gmail.com on 23 Mar 2012 at 1:23

GoogleCodeExporter commented 8 years ago
The portlet-api is marked as optional by the jsonrpc4j pom.  If you are using 
the portlet stuff then you'll need to add the dependency to your pom.

Original comment by brian.di...@gmail.com on 21 May 2012 at 8:17

GoogleCodeExporter commented 8 years ago
No, I am not using the portlet stuff. But still have error without portlet 
dependecy.
So I am forced to add that dependency to my POM even though I don't need it. 
Just for compile without errors.

Original comment by xak2...@gmail.com on 22 May 2012 at 12:23

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 26 May 2012 at 2:42