Standard i think.. WEB-INF/lib, however that is no jar file inside, as i
support it will using javax.websocket.* from jetty server (like tomcat) the
source is the only class file in the war.
On Nov 15, 2014 2:51 AM, "Joakim Erdfelt" <[email protected]> wrote:

> What is in your war's WEB-INF/lib directory?
>
> --
> Joakim Erdfelt <[email protected]>
> webtide.com <http://www.webtide.com/> - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
> On Fri, Nov 14, 2014 at 11:38 AM, Kiwi de coder <[email protected]>
> wrote:
>
>> here the entire server logs:
>>
>>
>> 2014-11-15 02:37:46.501:INFO:oejs.Server:main: jetty-9.2.5.v20141112
>> 2014-11-15 02:37:46.535:INFO:oejdp.ScanningAppProvider:main: Deployment
>> monitor [file:/C:/jetty/webapps/] at interval 1
>> 2014-11-15 02:37:47.693:WARN:oejut.QueuedThreadPool:qtp21102086-21:
>> java.lang.IncompatibleClassChangeError: class
>> org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor has interface
>> org.objectweb.asm.ClassVisitor as super class
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(Unknown Source)
>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.access$100(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:974)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:956)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:909)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831)
>> at
>> org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:162)
>> at
>> org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:547)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)
>> at java.lang.Thread.run(Unknown Source)
>> 2014-11-15 02:37:47.694:WARN:oejut.QueuedThreadPool:qtp21102086-21:
>> Unexpected thread death:
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3@75e5c2cc in
>> qtp21102086{STARTED,10<=10<=200,i=8,q=0}
>> 2014-11-15 02:37:47.693:WARN:oejut.QueuedThreadPool:qtp21102086-20:
>> java.lang.IncompatibleClassChangeError:
>> org/eclipse/jetty/annotations/AnnotationParser$MyClassVisitor
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:974)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:702)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:688)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:688)
>> at
>> org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:824)
>> at
>> org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:162)
>> at
>> org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:547)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)
>> at
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)
>> at java.lang.Thread.run(Unknown Source)
>> 2014-11-15 02:37:47.697:WARN:oejut.QueuedThreadPool:qtp21102086-20:
>> Unexpected thread death:
>> org.eclipse.jetty.util.thread.QueuedThreadPool$3@75e5c2cc in
>> qtp21102086{STARTED,10<=10<=200,i=9,q=0}
>> 2014-11-15 02:37:47.871:INFO:oejsh.ContextHandler:main: Started
>> o.e.j.w.WebAppContext@37c4b9a5
>> {/websocket,file:/C:/jetty/webapps/websocket/,AVAILABLE}{C:\jetty\webapps\websocket.war}
>> 2014-11-15 02:37:47.898:INFO:oejs.ServerConnector:main: Started
>> ServerConnector@7dbc244d{HTTP/1.1}{0.0.0.0:8080}
>> 2014-11-15 02:37:47.899:INFO:oejs.Server:main: Started @2116ms
>>
>>
>> On Sat, Nov 15, 2014 at 2:36 AM, Kiwi de coder <[email protected]>
>> wrote:
>>
>>> Hi I try to run websocket on jetty-distribution-9.2.5.v20141112.
>>>
>>> here the code :
>>>
>>> +-----------------------
>>>
>>> package com.kiwi;
>>>
>>> import java.io.IOException;
>>>
>>> import javax.websocket.OnMessage;
>>> import javax.websocket.Session;
>>> import javax.websocket.server.ServerEndpoint;
>>>
>>> @ServerEndpoint("/echo")
>>> public class EchoEndPoint
>>> {
>>> @OnMessage
>>> public void onMessage(Session session, String message)
>>> {
>>> try {
>>>  for (Session sess : session.getOpenSessions()) {
>>>             if (sess.isOpen())
>>>                sess.getBasicRemote().sendText(message);
>>>          }
>>>  } catch (IOException e) {
>>> e.printStackTrace();
>>> }
>>> }
>>>
>>> }
>>>
>>> +---------------------------------
>>>
>>> what i really do is, package it as war file, and put in the webapps,
>>> then run with
>>>
>>> java -jar C:\jetty-distribution-9.2.5.v20141112\start.jar
>>> jetty.base=C:\jetty jetty.home=C:\jetty-distribution-9.2.5.v20141112 --a
>>> dd-to-start=deploy,http,jvm,websocket
>>>
>>> then
>>>
>>> java -jar C:\jetty-distribution-9.2.5.v20141112\start.jar
>>>
>>>
>>> however, i get the exception with start the server:
>>>
>>> 2014-11-15 02:27:04.113:WARN:oejut.QueuedThreadPool:qtp300837073-16:
>>> java.lang.IncompatibleClassChangeError:
>>> org/eclipse/jetty/annotations/Annotation
>>> Parser$MyClassVisitor
>>>         at
>>> org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationPa
>>> rser.java:974)
>>> ......
>>>
>>> my --list-config contain this :
>>>
>>> Jetty Active XMLs:
>>> ------------------
>>>  ${jetty.home}\etc\jetty.xml
>>>  ${jetty.home}\etc\jetty-http.xml
>>>  ${jetty.home}\etc\jetty-deploy.xml
>>>  ${jetty.home}\etc\jetty-plus.xml
>>>  ${jetty.home}\etc\jetty-annotations.xml
>>>
>>>
>>>
>>> I can run in tomcat 8,0.14 with no issue, do I forget to configure
>>> something ?
>>>
>>> regards,
>>> kiwi
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to