[Pellet-users] Returning ResulSet on a WebService
jpaulo at ipb.pt
jpaulo at ipb.pt
Thu Mar 13 19:25:47 UTC 2008
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
More information about the Pellet-users
mailing list