https://issues.apache.org/bugzilla/show_bug.cgi?id=56186
Bug ID: 56186 Summary: javax.websocket-api.jar exists in the war package, then Cannot load custom ServerApplicationConfig Product: Tomcat 7 Version: 7.0.52 Hardware: PC Status: NEW Severity: major Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: liushangkun...@hotmail.com hi, i have a project that using maven to compile it. and there is a dependency like this : <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.0</version> </dependency> after packing with a war file, the javax.websocket-api.jar also in the war well, i am debugged tomcat7.0.52 with the class : org.apache.tomcat.websocket.server.WsSci line at 94: if (ServerApplicationConfig.class.isAssignableFrom(clazz)) { serverApplicationConfigs.add( (ServerApplicationConfig) clazz.newInstance()); } this check is never return true case ServerApplicationConfig's classloader is WebappClassLoader i guess.. i changed pom.xml like this: <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> after packing with a war file and run again ... ServerApplicationConfig.class.isAssignableFrom(clazz) return true , so my custom ServerApplicationConfig can be loaded ... -- 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