users@glassfish.java.net

JAXBContext security restriction problem

From: David Harrigan <dharrigan_at_gmail.com>
Date: Thu, 1 Mar 2007 08:04:03 -0800 (PST)

Hi,

Glassfish v2 B37

Trying to deploy a webmethod. It takes 3 parameters:

public Result search(final Type type, final int sequence, final QueryOptions
options)

Type and QueryOptions are concrete classes that implement several
interfaces. When I try to deploy, I get this stack:

[#|2007-03-01T15:59:46.596+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Timer-4;_RequestID=c90825f1-0a62-44e4-84eb-9cbf50281c52;|Exception
occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment
Error -- Unable to create JAXBContext due to the security restriction
        at
com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:131)
        at
com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:63)
        at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:229)
        at
com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:199)
        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:102)
        at
com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:47)
        at
com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:93)
        at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1817)
        at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2116)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:406)
        at
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:144)
        at
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:163)
        at
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:174)

Reading the JAXB docs, I believe I can't use interfaces - which I believe
I'm not, as Type and QueryOptions are concreate classes....

Help!

-=david=-
-- 
View this message in context: http://www.nabble.com/JAXBContext-security-restriction-problem-tf3327818.html#a9252495
Sent from the java.net - glassfish users mailing list archive at Nabble.com.