tyrus icon indicating copy to clipboard operation
tyrus copied to clipboard

Error in Deployment Algorithm description.

Open glassfishrobot opened this issue 9 years ago • 4 comments

public class MyApplicationConfigOne implements ServerApplicationConfig {
    public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> endpointClasses);
        Set<Class<? extends Endpoint>> s = new HashSet<Class<? extends Endpoint>>;
        s.add(ProgrammaticEndpointOne.class);
        return s;
    }

    public Set<Class> getAnnotatedEndpointClasses(Set<Class<?>> scanned);
       Set<Class<?>> s = new HashSet<Class<?>>;
        s.add(AnnotatedEndpointOne.class);
        return s;
    }
}

Set<Class<? extends Endpoint>> is returned instead of Set<ServerEndpointConfig> in getEndpointConfigs

Environment

Tyrus documentation 1.12 https://tyrus.java.net/documentation/1.12/index/deployment.html

Affected Versions

[1.12]

glassfishrobot avatar May 09 '16 18:05 glassfishrobot

  • Issue Imported From: https://github.com/tyrus-project/tyrus/issues/601
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @pavelbucek

glassfishrobot avatar Feb 10 '18 20:02 glassfishrobot

@glassfishrobot Commented Reported by pacuk.anton

glassfishrobot avatar May 09 '16 18:05 glassfishrobot

@glassfishrobot Commented pacuk.anton said: Wrong class name:

If one or more classes implementing ServerApplicationConfiguration are present in the WAR file, Tyrus deploys endpoints provided by all of these classes. Tyrus doesn't deploy any other classes present in the WAR (annotated by javax.websocket.server.ServerEndpoint or extending javax.websocket.Endpoint). If no class implementing ServerApplicationConfiguration is present, Tyrus deploys all classes annotated with @ServerEndpoint or extending Endpoint present in the WAR.

glassfishrobot avatar May 09 '16 18:05 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA TYRUS-424

glassfishrobot avatar Apr 25 '17 03:04 glassfishrobot