Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-03 Thread Nicoleta Sarbu
It sees the class, but I think the problem is that it doesnt get the listeners from webdefault.xml fro the jetty library. Can you send me a newer version of jetty for android please? Thank you. On 2 February 2018 at 17:42, Jan Bartel wrote: > Could possibly be an android bug - make sure you're

Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-02 Thread Jan Bartel
Could possibly be an android bug - make sure you're up to date. Otherwise, if you can see the ELContextCleaner class inside the jetty-8.1.15.jar your code should be able to see it. Try writing a small test program that just does new ElContextCleaner() - should help you debug it. Jan On 2 Februar

Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-02 Thread Nicoleta Sarbu
This is my gradle build file: apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "25.0.2" aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false defaultConfig { applicationId minSdkVersion 15 targ

Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-02 Thread Nicoleta Sarbu
This is the method where I start the server which is an instance of org.eclipse.jetty.server.Server: (in Eclipse was working ok) / // Initializes and starts the Jetty webserver public synchronized void startServer() { if(server == null) { server

Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-02 Thread Joakim Erdfelt
Also, since you are using Jetty 8, be sure to not run Java 9 (its not supported on Jetty 8 due to JEP 238 & JPMS changes to the JVM) For maximum compatibility with Jetty 8.1.15 you should probably stick to Java 7. Joakim Erdfelt / joa...@webtide.com On Fri, Feb 2, 2018 at 8:39 AM, Joakim Erdfelt

Re: [jetty-users] 'Could not instantiate listener' error on Android Studio

2018-02-02 Thread Joakim Erdfelt
Jetty 8 is EOL (End of Life) https://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00069.html Without knowing how the Android Studio instance of Jetty was started, it would be hard to troubleshoot. If this was a distribution started version of Jetty, then its likely missing a distribution option