2 Replies Latest reply on Jan 23, 2007 9:23 AM by heiko.braun

    @PortComponent replacement

    heiko.braun

      While working on config issues i realized that the PortComponentAnnotation needed refactoring. It's now split into @WebContext and @EndpointConfig.
      The main reason for this was the distinction between client and server side annotations.

        • 1. Re: @PortComponent replacement

           

          "heiko.braun@jboss.com" wrote:
          While working on config issues i realized that the PortComponentAnnotation needed refactoring. It's now split into @WebContext and @EndpointConfig.
          The main reason for this was the distinction between client and server side annotations.


          This change breaks the EJB3 testsuite

          [ejort@warjort ejb3]$ ./build.sh -f build-test.xml
          Buildfile: build-test.xml
          Overriding previous definition of reference to jboss.test.classpath
          
          init:
          
          compile-classes:
           [javac] Compiling 1124 source files to /home/ejort/jboss-head/ejb3/output/test-classes
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree440/model/MyResource.java:12: warning: unmappable character for encoding UTF8
           [javac] * @author Ortwin Gl?
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/EndpointEJB.java:36: package org.jboss.ws.annotation does not exist
           [javac] import org.jboss.ws.annotation.PortComponent;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java:37: package org.jboss.ws.metadata.wsdl does not exist
           [javac] import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java:38: package org.jboss.ws.tools.wsdl does not exist
           [javac] import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/jsr181/EJB3Bean.java:25: package org.jboss.ws.annotation does not exist
           [javac] import org.jboss.ws.annotation.PortComponent;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/jsr181/EndpointInterface.java:24: package org.jboss.ws.annotation does not exist
           [javac] import org.jboss.ws.annotation.PortComponent;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java:37: package org.jboss.ws.metadata.wsdl does not exist
           [javac] import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java:38: package org.jboss.ws.tools.wsdl does not exist
           [javac] import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/EndpointEJB.java:39: cannot find symbol
           [javac] symbol: class PortComponent
           [javac] @PortComponent(contextRoot = "/jaxws-context", urlPattern = "/*")
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/jsr181/EJB3Bean.java:38: cannot find symbol
           [javac] symbol: class PortComponent
           [javac] @PortComponent(contextRoot="/jsr181", urlPattern="/*")
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/dd/web/servlets/SubjectFilter.java:76: warning: [deprecation] getActiveSubject() in org.jboss.security.AuthenticationManager has been deprecated
           [javac] Subject s0 = mgr.getActiveSubject();
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java:63: cannot find symbol
           [javac] symbol : class WSDLDefinitionsFactory
           [javac] location: class org.jboss.ejb3.test.jaxws.unit.ContextEJBTestCase
           [javac] WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java:63: cannot find symbol
           [javac] symbol : variable WSDLDefinitionsFactory
           [javac] location: class org.jboss.ejb3.test.jaxws.unit.ContextEJBTestCase
           [javac] WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/jaxws/unit/ContextEJBTestCase.java:64: cannot find symbol
           [javac] symbol : class WSDLDefinitions
           [javac] location: class org.jboss.ejb3.test.jaxws.unit.ContextEJBTestCase
           [javac] WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/standalone/unit/StandardTestCase.java:167: warning: non-varargs call of varargs method with inexact argument type for last parameter;
           [javac] cast to java.lang.Object for a varargs call
           [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
           [javac] Object testCase = constructor.newInstance(constructorParams);
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/standalone/unit/StandardTestCase.java:192: warning: non-varargs call of varargs method with inexact argument type for last parameter;
           [javac] cast to java.lang.Object for a varargs call
           [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
           [javac] Object testCase = constructor.newInstance(constructorParams);
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java:106: cannot find symbol
           [javac] symbol : class WSDLDefinitionsFactory
           [javac] location: class org.jboss.ejb3.test.webservices.unit.JSR181TestCase
           [javac] WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java:106: cannot find symbol
           [javac] symbol : variable WSDLDefinitionsFactory
           [javac] location: class org.jboss.ejb3.test.webservices.unit.JSR181TestCase
           [javac] WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
           [javac] ^
           [javac] /home/ejort/jboss-head/ejb3/src/test/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java:107: cannot find symbol
           [javac] symbol : class WSDLDefinitions
           [javac] location: class org.jboss.ejb3.test.webservices.unit.JSR181TestCase
           [javac] WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
           [javac] ^
           [javac] Note: Some input files use unchecked or unsafe operations.
           [javac] Note: Recompile with -Xlint:unchecked for details.
           [javac] 15 errors
           [javac] 4 warnings
          
          BUILD FAILED
          /home/ejort/jboss-head/ejb3/build-test.xml:347: Compile failed; see the compiler error output for details.
          


          What is it with the webservices team that they can't resist refactoring code
          and consequentially continually breaking the JBossAS build? :-)

          • 2. Re: @PortComponent replacement
            heiko.braun

            I have removed all dependencies on proprietary JBossWS API. AS modules should solely rely on JAX-RPC or JAX-WS API.