pax-web

Pax Web on Knopflerfish on Android

拟墨画扇 提交于 2019-12-24 12:48:22
问题 I'm planning to start OSGi on Android with Web Services, wherein I will be able to run Java Server Pages (jsp) and Java Servlets on Android Browser. My initial step was installing Knopflerfish on Android. I have followed this tutorial from knopflerfish: http://www.knopflerfish.org/releases/5.0.0/docs/android_dalvik_tutorial.html Knopflerfish did well, I have seen the localhost:8080 on the Android phone's browser. My second step was to install Pax Web on Knopflerfish that was also installed on

Jetty, websocket, java.lang.RuntimeException: Cannot load platform configurator

故事扮演 提交于 2019-12-11 06:24:46
问题 I try to get http session in Endpoint. I followed this recomendations https://stackoverflow.com/a/17994303 . Thats why I did: public class MyConfigurator extends ServerEndpointConfig.Configurator { @Override public void modifyHandshake(ServerEndpointConfig config, HandshakeRequest request, HandshakeResponse response) { HttpSession httpSession = (HttpSession)request.getHttpSession(); config.getUserProperties().put(HttpSession.class.getName(),httpSession); } } and @ServerEndpoint(value = "/foo"

Issues with GWT in OSGi+Pax-Web using Declarative Services

断了今生、忘了曾经 提交于 2019-12-07 14:18:20
问题 I'm migrating an existing GWT app running on OSGi (Equinox) and Pax-web to use Declarative Services instead of programmatic Service Tracker. I'm using Pax-Web in Equinox. A WAR-based GWT application is loaded with no problems by PAX-WEB War extender, but you cannot have Declarative Services in this modus operandis. I successfully refactored all servlets out of the war and converted them into declarative OSGi services ( <provide interface="javax.servlet.Servlet"/> ). That way I got rid of all

Issues with GWT in OSGi+Pax-Web using Declarative Services

走远了吗. 提交于 2019-12-06 02:36:14
I'm migrating an existing GWT app running on OSGi (Equinox) and Pax-web to use Declarative Services instead of programmatic Service Tracker. I'm using Pax-Web in Equinox. A WAR-based GWT application is loaded with no problems by PAX-WEB War extender, but you cannot have Declarative Services in this modus operandis. I successfully refactored all servlets out of the war and converted them into declarative OSGi services ( <provide interface="javax.servlet.Servlet"/> ). That way I got rid of all the messy ServiceTracker code and specific OSGi dependencies in the servlets. I further replicated all