https://bz.apache.org/bugzilla/show_bug.cgi?id=62118

            Bug ID: 62118
           Summary: NamingContextListener creates ServiceRef objects with
                    wrong parameter?
           Product: Tomcat 8
           Version: 8.5.27
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: angel.alvarez.pas...@gmail.com
  Target Milestone: ----

The class NamingContextListener creates new ServiceRef objects this way

        Reference ref = new ServiceRef
            (service.getName(), service.getType(), service.getServiceqname(),
             service.getWsdlfile(), service.getJaxrpcmappingfile());

However, the constructor of the class ServiceRef is

    public ServiceRef(String refname, String serviceInterface, String[]
serviceQname, String wsdl, String jaxrpcmapping) {


It seems the class is passing the type from the service when it should be the
interface.

In my tests, the application fails with a ClassCastException because it's
unable to use the interface (the type attribute of the object service is null),
but if I change the service.getType by service.getInterface() ... it all works
perfectly fine!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to