[Pellet-users] Returning ResulSet on a WebService
Evren Sirin
evren at clarkparsia.com
Fri Mar 14 12:38:44 UTC 2008
This looks like a versioning problem with Jena/ARQ libraries. Which
version of Pellet and Jena are you using? For reference, Pellet 1.5.0 is
shipped with Jena 2.5.3 and Pellet 1.5.1 works with Jena 2.5.4.
Cheers,
Evren
On 3/13/08 3:25 PM, jpaulo at ipb.pt wrote:
> Hi all,
>
> I have a web service that runs a SPARQL query fine. But when I try to return the ResultSet the Glassfish give to me the fowling error:
>
> Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Errorjava.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
> com.hp.hpl.jena.query.ResultSet is an interface, and JAXB can't handle interfaces.
> this problem is related to the following location:
> at com.hp.hpl.jena.query.ResultSet
> at private com.hp.hpl.jena.query.ResultSet icaswebproject.contextEngine.webservices.jaxws.GetResultResponse._return
> at icaswebproject.contextEngine.webservices.jaxws.GetResultResponse
> com.hp.hpl.jena.query.ResultSet does not have a no-arg default constructor.
> this problem is related to the following location:
> at com.hp.hpl.jena.query.ResultSet
> at private com.hp.hpl.jena.query.ResultSet icaswebproject.contextEngine.webservices.jaxws.GetResultResponse._return
> at icaswebproject.contextEngine.webservices.jaxws.GetResultResponse
> -- Unable to create JAXBContext due to the security restriction
> at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:151)
> at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:83)
> at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:260)
> at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:218)
> at com.sun.to......
>
> It seems that Glassfish can't handle Interfaces. There are other away to resolve this problem?
>
> Any ideas?
>
> Thanks,
>
> Cheers,
>
>
> João Paulo
>
>
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
More information about the Pellet-users
mailing list