Ik ben voor een project op school een webservice aan het schrijven.
Deze wilt niet meer builden en ik vind de fout niet.
De fout die ik krijg :
wsgen-Gamma:
Exception in thread "main" javax.xml.ws.WebServiceException: 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.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:116)
at com.sun.tools.ws.WsGen.main(WsGen.java:52)
Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.List is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
java.util.List does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:144)
... 10 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.List is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
java.util.List does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:146)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:145)
... 12 more
Command invoked: wsgen "C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe" "-Djava.endorsed.dirs=C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api" -classpath "C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar;C:\Documents and Settings\student\WebApplication1\build\web\WEB-INF\classes;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\activation.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\FastInfoset.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\http.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jaxb-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxb-impl.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxb-xjc.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jaxws-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxws-rt.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\saaj-impl.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\sjsxp.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\resolver.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\stax-ex.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\streambuffer.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxws-tools.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr173_api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr181-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr250-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\saaj-api.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-appsforyourdomain-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-client-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-core-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-client-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-calendar-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-calendar-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-appsforyourdomain-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-base-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-media-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-codesearch-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-codesearch-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-docs-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-spreadsheet-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-spreadsheet-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-docs-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-photos-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-photos-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-youtube-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-youtube-meta-1.0.jar" com.sun.tools.ws.WsGen -d "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\binaries" -keep -wsdl -r "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\service" -s "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\service" be.xios.project.Gamma
C:\Documents and Settings\student\WebApplication1\nbproject\jaxws-build.xml:17: wsgen failed
BUILD FAILED (total time: 3 seconds)
zou iemand mij hiermee kunnen willen helpen ? of wat meer uitleg geven?
Alvast bedankt !
Deze wilt niet meer builden en ik vind de fout niet.
De fout die ik krijg :
wsgen-Gamma:
Exception in thread "main" javax.xml.ws.WebServiceException: 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.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:116)
at com.sun.tools.ws.WsGen.main(WsGen.java:52)
Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.List is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
java.util.List does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:144)
... 10 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.List is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
java.util.List does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.List
at private java.util.Map be.xios.project.jaxws.ServiceExceptionBean.httpHeaders
at be.xios.project.jaxws.ServiceExceptionBean
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:146)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:145)
... 12 more
Command invoked: wsgen "C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe" "-Djava.endorsed.dirs=C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api" -classpath "C:\Program Files\Java\jdk1.6.0_01\lib\tools.jar;C:\Documents and Settings\student\WebApplication1\build\web\WEB-INF\classes;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\activation.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\FastInfoset.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\http.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jaxb-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxb-impl.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxb-xjc.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jaxws-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxws-rt.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\saaj-impl.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\sjsxp.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\resolver.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\stax-ex.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\streambuffer.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\jaxws-tools.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr173_api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr181-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\jsr250-api.jar;C:\Program Files\NetBeans 6.0\java1\modules\ext\jaxws21\api\saaj-api.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-appsforyourdomain-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-client-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-core-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-client-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-calendar-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-calendar-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-appsforyourdomain-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-base-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-media-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-codesearch-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-codesearch-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-docs-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-spreadsheet-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-spreadsheet-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-docs-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-photos-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-photos-meta-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-youtube-1.0.jar;C:\Documents and Settings\student\Desktop\JARS\gdata\gdata\java\lib\gdata-youtube-meta-1.0.jar" com.sun.tools.ws.WsGen -d "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\binaries" -keep -wsdl -r "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\service" -s "C:\Documents and Settings\student\WebApplication1\build\generated\wsgen\service" be.xios.project.Gamma
C:\Documents and Settings\student\WebApplication1\nbproject\jaxws-build.xml:17: wsgen failed
BUILD FAILED (total time: 3 seconds)
zou iemand mij hiermee kunnen willen helpen ? of wat meer uitleg geven?
Alvast bedankt !