warrengees / openfire-websockets

Automatically exported from code.google.com/p/openfire-websockets
0 stars 0 forks source link

500 error #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install OpenFire 3.7.1
2. Install websockets plugin
3. Go to 
http://yourserver:7070/ws/server?username=admin&password=password&resource=peek

What is the expected output? What do you see instead?

Chat interface connected to the server

What version of the product are you using? On what operating system?
HTTP ERROR 500

Problem accessing /ws/server. Reason:

    org/eclipse/jetty/websocket/WebSocketFactory$Acceptor

Caused by:

java.lang.NoClassDefFoundError: 
org/eclipse/jetty/websocket/WebSocketFactory$Acceptor
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at org.eclipse.jetty.servlet.Holder.newInstance(Holder.java:155)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:407)
    at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:316)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:507)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:427)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)
    at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:334)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: 
org.eclipse.jetty.websocket.WebSocketFactory$Acceptor
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:304)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:266)
    ... 29 more

Caused by:

java.lang.ClassNotFoundException: 
org.eclipse.jetty.websocket.WebSocketFactory$Acceptor
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:304)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:266)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at org.eclipse.jetty.servlet.Holder.newInstance(Holder.java:155)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:407)
    at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:316)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:507)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:427)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)
    at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
    at org.eclipse.jetty.server.Server.handle(Server.java:334)
    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
    at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
    at java.lang.Thread.run(Thread.java:662)

Powered by Jetty://

Please provide any additional information below.

Original issue reported on code.google.com by rviswana...@gmail.com on 9 Nov 2011 at 11:40

GoogleCodeExporter commented 9 years ago
You need to replace openfire.jar with the one in downloads that has jetty 7.5.1 
and also replace slf4j-log4j12.jar

Original comment by olajide....@gmail.com on 2 Dec 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Minor note:  On Ubuntu 11.10, reboot required after replacing the two .jar 
files - restart of Openfire without reboot resulted in the same issue.

Original comment by mdur...@vts-inc.com on 11 Mar 2012 at 9:50

GoogleCodeExporter commented 9 years ago
I also encounted the same problem.
But I didn't found any class called WebSocketFactory$Acceptor in the latest 
version openfire.jar.
Can anybody give me suggestion?

Original comment by twj031...@gmail.com on 7 Jun 2012 at 9:07