Skip to content

Commit

Permalink
fixes #611 part2 also work with sbt projects
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Sep 12, 2012
1 parent a7c1c6c commit fdc1eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ Action action(AtmosphereRequest req, AtmosphereResponse res) throws IOException,
}

if (config.handlers().isEmpty()) {
logger.error("No AtmosphereHandler found. Make sure you define it inside web/atmosphere.xml or annotate using @AtmosphereHandlerService");
throw new AtmosphereMappingException("No AtmosphereHandler found. Make sure you define it inside web/atmosphere.xml or annotate using @AtmosphereHandlerService");
logger.error("No AtmosphereHandler found. Make sure you define it inside WEB-INF/atmosphere.xml or annotate using @AtmosphereHandlerService");
throw new AtmosphereMappingException("No AtmosphereHandler found. Make sure you define it inside WEB-INF/atmosphere.xml or annotate using @AtmosphereHandlerService");
}

if (res.request() == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ protected void loadWebSocketFromPath(URLClassLoader classloader, String realPath
for (String className : possibleComponentsCandidate) {
try {
className = className.replace('\\', '/');
className = className.replaceFirst("^.*/(WEB-INF|target)/(test-)?classes/(.*)\\.class", "$3").replace("/", ".");
className = className.replaceFirst("^.*/(WEB-INF|target)(?:/scala-[^/]+)?/(test-)?classes/(.*)\\.class", "$3").replace("/", ".");
Class<?> clazz = classloader.loadClass(className);

if (WebSocketProtocol.class.isAssignableFrom(clazz)) {
Expand Down

0 comments on commit fdc1eb8

Please sign in to comment.