-
December 3rd, 2021, 10:57 AM
#1
Developing adapters in eclipse ---
My adapter works with a bug ( database connector goes off piste ) when running LS from the command line but when I try to run the Development environment under eclipse Iget a log message
java.lang.NoClassDefFoundError: Could not initialize class com.lightstreamer.c.c.o
at com.lightstreamer.c.c.r.j(r.java)
at com.lightstreamer.c.c.r.a(r.java)
at com.lightstreamer.c.d.a.i.p(i.java)
at com.lightstreamer.c.d.a.x.lambda$selectorLoop$0(x. java)
at com.lightstreamer.c.d.a.ae.a(ae.java)
at com.lightstreamer.c.d.a.x.a(x.java)
at com.lightstreamer.c.d.a.v.run(v.java)
Which is crippling the LS instance.
Anyone got any ideas to save my sanity?
I have updated all the LS stuff to the latest 7.2 version and made some minor tweaks but this now has me stumped.
-
December 3rd, 2021, 12:25 PM
#2
Running LS Server in Eclipse is not easy indeed, because the Server uses classloaders to decouple third party libraries, hence it is not just a matter of adding all the libraries under "Lightstreamer/lib" to the run configuration classpath.
Unfortunately, our instructions for this task, in this thread (to which you also contributed), are obsolete and don't apply to LS 7.2.
Nevertheless, for simple scenarios in which the classloader separation is not needed, it is possible to run the Server in Eclipse by putting all jars under "Lightstreamer/lib" in the classpath. The only trick is that the libraries under the "Lightstreamer/lib/log/bridge" folder should not be included.
That said, I found your same exception when omitting the following jar from the classpath:
Lightstreamer/lib/core/javassist-3.27.0-GA.jar
so, I suppose that this jar (or perhaps the whole "Lightstreamer/lib/core" folder) is missing from your run configuration classpath.
-
December 4th, 2021, 06:26 PM
#3
Thanks - Including the jars in the build class path fixed it. ( the javaassist and core libs were in the run classpath )
-
October 21st, 2022, 11:48 AM
#4
Can you please add an example on how to include jars in the build class?
Similar Threads
-
By nimbusgb in forum General
Replies: 2
Last Post: October 24th, 2019, 09:20 AM
-
By gianluca.finocchiaro in forum Adapter SDKs
Replies: 26
Last Post: July 8th, 2019, 01:10 PM
-
By gianluca.finocchiaro in forum Adapter SDKs
Replies: 0
Last Post: January 12th, 2017, 11:59 AM
-
By gengliangyu2008 in forum General
Replies: 2
Last Post: November 10th, 2010, 11:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:37 AM.
Bookmarks