diff --git a/pom.xml b/pom.xml
index c1f5ffc..4a53ae8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,10 +7,11 @@
war
- 3.0.5.RELEASE
+ 3.1.0.RELEASE
8.1.0.RC4
1.6.4
+ 0.9-SNAPSHOT
@@ -20,6 +21,7 @@
https://repository.jboss.org/nexus/content/repositories/releases
false
+
org.eclipse.repository.development
Jetty Repo
@@ -120,8 +122,20 @@
org.atmosphere
atmosphere-runtime
- 0.7.2
+ ${atmosphere.version}
compile
+
+
+ org.atmosphere
+ atmosphere-ping
+
+
+
+
+
+ org.atmosphere
+ atmosphere-compat-jetty
+ ${atmosphere.version}
@@ -162,21 +176,22 @@
1.6
+ 2.3.2
-
- org.apache.maven.plugins
- maven-dependency-plugin
-
-
- install
- install
-
- sources
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
org.mortbay.jetty
diff --git a/src/main/java/de/ctdo/bunti/web/RestController.java b/src/main/java/de/ctdo/bunti/web/RestController.java
index bc68cb3..cc34cbc 100644
--- a/src/main/java/de/ctdo/bunti/web/RestController.java
+++ b/src/main/java/de/ctdo/bunti/web/RestController.java
@@ -15,13 +15,13 @@ import java.util.Map;
@Controller
public class RestController {
private static final Logger LOGGER = LoggerFactory.getLogger(RestController.class);
- private Validator validator;
+// private Validator validator;
private BuntiController controller;
- @Autowired
- public void setValidator(Validator validator) {
- this.validator = validator;
- }
+// @Autowired
+// public void setValidator(Validator validator) {
+// this.validator = validator;
+// }
@Autowired
public final void setController(BuntiController controller) {
diff --git a/src/main/java/de/ctdo/bunti/websocket/AtmosphereUtils.java b/src/main/java/de/ctdo/bunti/websocket/AtmosphereUtils.java
index b3f56f1..6259bc1 100644
--- a/src/main/java/de/ctdo/bunti/websocket/AtmosphereUtils.java
+++ b/src/main/java/de/ctdo/bunti/websocket/AtmosphereUtils.java
@@ -12,7 +12,8 @@ public final class AtmosphereUtils {
public static AtmosphereResource getAtmosphereResource(
HttpServletRequest request) {
-
+
+
AtmosphereResource resource =
(AtmosphereResource) request.getAttribute(AtmosphereServlet.ATMOSPHERE_RESOURCE);
diff --git a/src/main/webapp/WEB-INF/spring/servlet-context.xml b/src/main/resources/META-INF/spring/mvc/servlet-context.xml
similarity index 55%
rename from src/main/webapp/WEB-INF/spring/servlet-context.xml
rename to src/main/resources/META-INF/spring/mvc/servlet-context.xml
index 1c798b6..8d459ec 100644
--- a/src/main/webapp/WEB-INF/spring/servlet-context.xml
+++ b/src/main/resources/META-INF/spring/mvc/servlet-context.xml
@@ -2,14 +2,21 @@
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd ">
-
-
+
-
+
+
+
+
+
+
+
@@ -23,17 +30,6 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/META-INF/spring/root-context.xml b/src/main/resources/META-INF/spring/root-context.xml
new file mode 100644
index 0000000..bd6522b
--- /dev/null
+++ b/src/main/resources/META-INF/spring/root-context.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/log4j.xml b/src/main/resources/log4j.xml
index 59a29c4..a9be4bd 100644
--- a/src/main/resources/log4j.xml
+++ b/src/main/resources/log4j.xml
@@ -38,7 +38,7 @@
-
+
diff --git a/src/main/webapp/META-INF/MANIFEST.MF b/src/main/webapp/META-INF/MANIFEST.MF
deleted file mode 100644
index 5e94951..0000000
--- a/src/main/webapp/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp
index a053c6f..c285108 100644
--- a/src/main/webapp/WEB-INF/jsp/index.jsp
+++ b/src/main/webapp/WEB-INF/jsp/index.jsp
@@ -20,7 +20,7 @@
$(document).ready(
function() {
var Socket = "MozWebSocket" in window ? MozWebSocket : WebSocket;
- ws = new Socket("ws://" + window.location.hostname + ":" + window.location.port + "/bunti_server/bunti");
+ ws = new Socket("ws://" + window.location.hostname + ":" + window.location.port + "/buntisocket");
ws.onmessage = function (message) {
//$("#messages").append("" + message.data + "
");
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 6ee0520..e34d5c5 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -3,14 +3,18 @@
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
-
- bunti_server
-
- index.jsp
-
-
+ bunti_server
CTDO bunti control Server
+
+ contextConfigLocation
+ classpath:META-INF/spring/root-context.xml
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
characterEncodingFilter
org.springframework.web.filter.CharacterEncodingFilter
@@ -29,19 +33,6 @@
/*
-
-
-
-
-
-
-
-
-
- 25
-
-
-
appServlet
org.atmosphere.cpr.MeteorServlet
@@ -75,7 +66,7 @@
contextConfigLocation
- /WEB-INF/spring/servlet-context.xml
+ classpath:/META-INF/spring/mvc/servlet-context.xml
1