313336 secure websockets
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1826 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
811a5f9b57
commit
9f0592acbe
|
@ -657,18 +657,21 @@ public class WebXmlProcessor
|
|||
}
|
||||
|
||||
// set the JSP log
|
||||
try
|
||||
if (_hasJSP)
|
||||
{
|
||||
Class<?> logFactory = Loader.loadClass(this.getClass(),"org.eclipse.jetty.jsp.JettyLog");
|
||||
Method init = logFactory.getMethod("init");
|
||||
Log.debug("Init JSP loggging "+init);
|
||||
init.invoke(null);
|
||||
try
|
||||
{
|
||||
Class<?> logFactory = Loader.loadClass(this.getClass(),"org.eclipse.jetty.jsp.JettyLog");
|
||||
Method init = logFactory.getMethod("init");
|
||||
Log.debug("Init JSP loggging "+init);
|
||||
init.invoke(null);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.warn(e.toString());
|
||||
Log.ignore(e);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.warn(e.toString());
|
||||
Log.ignore(e);
|
||||
}
|
||||
|
||||
if (holder.getInitParameter("scratchdir") == null)
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
var room = {
|
||||
join: function(name) {
|
||||
this._username=name;
|
||||
var location = document.location.toString().replace('http:','ws:');
|
||||
var location = document.location.toString().replace('http://','ws://').replace('https://','wss://');
|
||||
this._ws=new WebSocket(location);
|
||||
this._ws.onopen=this._onopen;
|
||||
this._ws.onmessage=this._onmessage;
|
||||
|
|
Loading…
Reference in New Issue