We are proud to announce a new SCD4J release (v0.7.5)
This version includes:- The latest version of gradle (2.6)
- Improvements for non console runs
- Other minor stuff
#!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
# $OPENSHIFT_DIY_IP:8080
echo "Starting WebSocketExample............. $OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT"
nohup java -jar $OPENSHIFT_REPO_DIR/diy/WebSocketExample.war > $OPENSHIFT_DIY_DIR/logs/server.log 2>&1 &
echo "Started WebSocketExample............. $OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT"
|
#!/bin/bash
source $OPENSHIFT_CARTRIDGE_SDK_BASH
echo "Stopping WebSocketExample............."
if [ -z "$(ps -ef | grep WebSocketExample.war | grep -v grep)" ]
then
client_result "WebSocketExample Application is already stopped"
else
echo "Killing WebSocketExample............."
kill `ps -ef | grep WebSocketExample.war | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
fi
echo "Stopped WebSocketExample............."
|
public class JettyStarter {
public static void main(String[] args) throws Exception{
ProtectionDomain domain = JettyStarter.class.getProtectionDomain();
URL location = domain.getCodeSource().getLocation();
// create a web app and configure it to the root context of the server
WebAppContext webapp = new WebAppContext();
webapp.setDescriptor("WEB-INF/web.xml");
webapp.setConfigurations(new Configuration[]{ new AnnotationConfiguration()
, new WebXmlConfiguration(), new WebInfConfiguration(), new MetaInfConfiguration()
//, new FragmentConfiguration(), new EnvConfiguration(), new PlusConfiguration()
});
webapp.setContextPath("/");
webapp.setWar(location.toExternalForm());
// starts the embedded server and bind it to openshift variables
String host = System.getenv("OPENSHIFT_DIY_IP");
String port = System.getenv("OPENSHIFT_DIY_PORT");
System.out.println(host + ":" + port);
InetSocketAddress sa = new InetSocketAddress(getByName(host), valueOf(port));
Server server = new Server(sa);
server.setHandler(webapp);
server.start();
server.join();
}
}
|
java.util.ServiceConfigurationError: org.eclipse.jetty.websocket.servlet.WebSocketServletFactory: Provider org.eclipse.jetty.websocket.server.WebSocketServerFactory not found
at java.util.ServiceLoader.fail(ServiceLoader.java:231)
at java.util.ServiceLoader.access$300(ServiceLoader.java:181)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:365)
at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
at org.eclipse.jetty.websocket.servlet.WebSocketServlet.init(WebSocketServlet.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:242)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:516)
at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:398)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:642)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:564)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1054)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:988)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:410)
at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:245)
at org.eclipse.jetty.server.HttpConnection$1.run(HttpConnection.java:75)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:597)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
at java.lang.Thread.run(Thread.java:722)
|
| Component | EAP 6.0.0 | EAP 6.0.1 | EAP 6.1.0 |
|---|---|---|---|
| JBoss AS | 7.1.2 Final | 7.1.3 Final | 7.2.0 Final |
| WELD | 1.1.8.Final | 1.1.10.Final | 1.1.13.Final |
| Rest Easy | 2.3.3.Final | 2.3.4.Final | 2.3.6.Final |
| mod_cluster | 1.2.1.Final | 1.2.3.Final | 1.2.4.Final |
| Picketlink Federation | 2.1.1.Final | 2.1.3.Final | 2.1.6.Final |
| JBoss Modules | 1.1.2.Final | 1.1.3.Final | 1.2.0.Final |
| JBoss DMR | 1.1.1.Final | 1.1.1.Final | 1.1.6.Final |
| JBoss Metadata | 7.0.3.Final | 7.0.4.Final | 7.0.8.Final |
| JBoss XNIO | 3.0.4.GA | 3.0.7.GA | 3.0.7.GA |
| PicketBox | 4.0.9.Final | 4.0.14.Final | 4.0.17.Final |
| PicketBox Commons | 1.0.0.Final | 1.0.0.Final | 1.1.0.Final |
| Hibernate Core | 4.1.3.Final | 4.1.6.Final | 4.2.0.Final |
| Hibernate Infinispan (2LC) | 4.1.3.Final | 4.1.6.Final | 4.2.0.Final |
| Hibernate Envers | 4.1.3.Final | 4.1.6.Final | 4.2.0.Final |
| Hibernate Validator | 4.2.0.Final | 4.2.0.Final | 4.3.1.Final |
| Hibernate JPA 2.0 API | 1.0.1.Final | 1.0.1.Final | 1.0.1.Final |
| JBoss Web | 7.0.16.Final | 7.0.17.Final | 7.2.0.Final |
| Infinispan | 5.1.4.Final | 5.1.8.Final | 5.2.6.Final |
| IronJacamar (JCA 1.6) | 1.0.11.Final | 1.0.13.Final | 1.0.17.Final |
| JGroups | 3.0.9.Final | 3.0.14.Final | 3.2.7.Final |
| JBoss Transactions | 4.16.4.Final | 4.16.6.Final | 4.17.4.Final |
| JBoss EJB Client | 1.0.10.Final | 1.0.11.Final | 1.0.21.Final |
| JBoss EJB3 EXT API | 2.0.0 | 2.0.0 | 2.0.0 |
| JBoss WS API | 1.0.0.GA | 1.0.0.GA | 1.0.0.GA |
| JBoss WS SPI | 2.0.3.GA | 2.0.4.GA | 2.1.2.Final |
| JBoss WS Common | 2.0.4.GA | 2.0.4.GA | 2.1.1.Final |
| JBoss WS Common Tools | 1.0.1.GA | 1.0.2.GA | 1.1.0.Final |
| JBoss WS-CXF | 4.0.4.GA | 4.0.6.GA | 4.1.3.Final |
| JBoss WS-Native (for jaxrpc only) | 4.0.4.GA | 4.0.6.GA | 4.1.1.Final |
| JBoss VFS | 3.1.0.Final | 3.1.0.Final | 3.1.0.Final |
| JBoss Remoting3 | 3.2.8.GA | 3.2.14.GA | 3.2.16.GA |
| JBoss Marshalling | 1.3.14.GA | 1.3.15.GA | 1.3.16.GA |
| JBoss SASL | 1.0.1.Final | 1.0.3.Final | 1.0.3.Final |
| JSF | 1.2_15-b01-redhat-1 | 1.2_15-b01-redhat-2 | 1.2_15-b01-redhat-3 |
| JSF2 | 2.1.7-redhat-1 | 2.1.13-redhat-1 | 2.1.19-redhat-1 |
| JacORB | 2.3.2-redhat-1 | 2.3.2-redhat-2 | 2.3.2-redhat-4 |
| JBoss Security Negotiation | 2.2.0.SP1 | 2.2.1.Final | 2.2.5.Final |
| JBoss Management Console | 1.3.1.Final | 1.4.2.Final | 1.5.2.Final |
| HornetQ | 2.2.16.Final | 2.2.23.Final | 2.3.1.Final |
| Netty (in HornetQ and Inifnispan) | 3.2.6.Final | 3.2.6.Final | 3.6.2.Final |
| JBoss Logging | 3.1.1.GA | 3.1.2.GA | 3.1.2.GA |
| Apache CXF | 2.4.6-redhat-1 | 2.4.9-redhat-2 | 2.6.6-redhat-3 |
| Apache CXF XJC-Utils | 2.4.0-redhat-1 | 2.4.0-redhat-2 | 2.6.0-redhat-1 |
| Apache WSS4J (for WS) | 1.6.5 | 1.6.7 | 1.6.9 |
| Xalan | 2.7.1-redhat-1 | 2.7.1-redhat-3 | 2.7.1-redhat-4 |
| Xerces | 2.9.1-redhat-1 | 2.9.1-redhat-3 | 2.9.1-redhat-4 |
| JAXB | 2.2.5 | 2.2.5-redhat-3 | 2.2.5-redhat-5 |
| Application Platform 6.0.0 Apache Web Server | based on Apache 2.2.17 | based on Apache 2.2.22 | based on Apache 2.2.22 |