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
  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

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:
For additional commands, e-mail:

Reply via email to