You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/03/05 01:39:40 UTC

[jira] Created: (CXF-1463) java2ws produces mystifying error

java2ws produces mystifying error 
----------------------------------

                 Key: CXF-1463
                 URL: https://issues.apache.org/jira/browse/CXF-1463
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1
            Reporter: Benson Margulies


Step 1: build the current tip, including the distribution directory.

Step 2: apply the current build to itself, as follows.

I don't know what this error is trying to tell me.



bim-1330% $CXF_HOME/bin/java2ws -cp /home/benson/cxf/trunk/systests/target/test-classes org.apache.cxf.systest.aegis.AegisJaxWs
Error: org.apache.cxf.service.factory.ServiceConstructionException

JavaToWS Error: org.apache.cxf.service.factory.ServiceConstructionException



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1463) java2ws produces mystifying error

Posted by "Sean O'Callaghan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586440#action_12586440 ] 

Sean O'Callaghan commented on CXF-1463:
---------------------------------------

Looks to be an issue with IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.Map is an interface, and JAXB can't handle interfaces.

Need to add the -verbose switch to get a full stacktrace:


C:\ApacheCXF\trunk\systests\target\test-classes>java2ws -verbose org.apache.cxf.systest.aegis.AegisJaxWs
java2ws -verbose org.apache.cxf.systest.aegis.AegisJaxWs
java2ws - Apache CXF (incubator) 2.1-incubator-SNAPSHOT

Error: org.apache.cxf.service.factory.ServiceConstructionException

java.lang.RuntimeException: org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:41)
        at org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor.process(JavaToWSDLProcessor.java:128)
        at org.apache.cxf.tools.java2ws.JavaToWSContainer.processWSDL(JavaToWSContainer.java:101)
        at org.apache.cxf.tools.java2ws.JavaToWSContainer.execute(JavaToWSContainer.java:75)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
        at org.apache.cxf.tools.java2ws.JavaToWS.run(JavaToWS.java:74)
        at org.apache.cxf.tools.java2ws.JavaToWS.main(JavaToWS.java:42)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:306)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:343)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:512)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:392)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:180)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:163)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:79)
        at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:39)
        ... 8 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
java.util.Map is an interface, and JAXB can't handle interfaces.
        this problem is related to the following location:
                at java.util.Map
                at private java.util.Map org.apache.cxf.systest.aegis.jaxws_asm.GetItemsAsMapSpecifiedResponse._return
                at org.apache.cxf.systest.aegis.jaxws_asm.GetItemsAsMapSpecifiedResponse
java.util.Map does not have a no-arg default constructor.        this problem is related to the following location:
                at java.util.Map
                at private java.util.Map org.apache.cxf.systest.aegis.jaxws_asm.GetItemsAsMapSpecifiedResponse._return
                at org.apache.cxf.systest.aegis.jaxws_asm.GetItemsAsMapSpecifiedResponse

        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.v2.ContextFactory.createContext(ContextFactory.java:117)
        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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:523)
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:286)
        ... 15 more
JavaToWS Error: org.apache.cxf.service.factory.ServiceConstructionException


> java2ws produces mystifying error 
> ----------------------------------
>
>                 Key: CXF-1463
>                 URL: https://issues.apache.org/jira/browse/CXF-1463
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>
> Step 1: build the current tip, including the distribution directory.
> Step 2: apply the current build to itself, as follows.
> I don't know what this error is trying to tell me.
> bim-1330% $CXF_HOME/bin/java2ws -cp /home/benson/cxf/trunk/systests/target/test-classes org.apache.cxf.systest.aegis.AegisJaxWs
> Error: org.apache.cxf.service.factory.ServiceConstructionException
> JavaToWS Error: org.apache.cxf.service.factory.ServiceConstructionException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.