Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2368

JAX-WS Deployments Fail For AOP Instrumented Endpoints

XMLWordPrintable

    • Workaround Exists
    • Hide

      Annotate all web methods with @WebMethod, this stops JBossWS from processing all of the methods on the class.

      Show
      Annotate all web methods with @WebMethod, this stops JBossWS from processing all of the methods on the class.

      A message similar to the following is logged as JBossWS attempts to process the methods added by JBoss AOP: -

      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
      org.jboss.aop.InstanceAdvisor is an interface, and JAXB can't handle interfaces.
      this problem is related to the following location:
      at org.jboss.aop.InstanceAdvisor
      at private org.jboss.aop.InstanceAdvisor org.jboss.test.support.ws.phonebook.jaxws._getInstanceAdvisorResponse._return
      at org.jboss.test.support.ws.phonebook.jaxws._getInstanceAdvisorResponse
      org.jboss.aop.InstanceAdvisor does not have a no-arg default constructor.
      this problem is related to the following location:
      at org.jboss.aop.InstanceAdvisor
      at private org.jboss.aop.InstanceAdvisor org.jboss.test.support.ws.phonebook.jaxws._getInstanceAdvisorResponse._return
      at org.jboss.test.support.ws.phonebook.jaxws._getInstanceAdvisorResponse
      org.jboss.aop.Advisor does not have a no-arg default constructor.
      this problem is related to the following location:
      at org.jboss.aop.Advisor
      at private org.jboss.aop.Advisor org.jboss.test.support.ws.phonebook.jaxws._getAdvisorResponse._return
      at org.jboss.test.support.ws.phonebook.jaxws._getAdvisorResponse

      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 org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:110)
      ... 82 more

        1. JAXWSAop.aop
          2 kB
          Darran Lofthouse

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: