Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: javax/websocket/DeploymentException in 6.0.0 #911

Open
317174106 opened this issue May 25, 2018 · 11 comments

Comments

@317174106
Copy link

java.lang.NoClassDefFoundError: javax/websocket/DeploymentException
at io.appium.java_client.android.ListensToLogcatMessages.(ListensToLogcatMessages.java:34)

WHY?

@mykola-mokhnach
Copy link
Contributor

Can you please properly describe the problem?

In case you try to setup web socket-based logcat listener then it is necessary to include the following libs into your POM:

        <dependency>
            <groupId>org.glassfish.tyrus</groupId>
            <artifactId>tyrus-client</artifactId>
            <version>1.13.1</version>
        </dependency>

        <dependency>
            <groupId>org.glassfish.tyrus</groupId>
            <artifactId>tyrus-container-grizzly-client</artifactId>
            <version>1.13.1</version>
        </dependency>

@317174106
Copy link
Author

i just update appium java client from 6.0.0 beta4 to 6.0.0, and selenium 3.11 to 3.12, then the problem shows.

after i change back, it works for me......

@mykola-mokhnach
Copy link
Contributor

we cannot help much without the detailed problem description

@317174106
Copy link
Author

@mykola-mokhnach
Copy link
Contributor

#912 should improve the flow

@mykola-mokhnach
Copy link
Contributor

mykola-mokhnach commented May 25, 2018

I also think that java9 might have something to do with that...

@317174106
Copy link
Author

any way can fix this now? degrade?

@mykola-mokhnach
Copy link
Contributor

yep one way is to downgrade to java8

you could also try to include the necessary JSR libs to you build config yourself, but I cannot help much here.

@317174106
Copy link
Author

ok thanks, by the way, will this be fixed in next version?

@317174106
Copy link
Author

and actually, i am using java8, just project is not using pom

@tooldoctor
Copy link

I have the same problem (using Java8).
It works fine with Appium Java Client 6.0.0 Beta 4 and Selenium 3.11
I tried Appium Java Client 6.0.0 Beta 5/6.0.0, and Selenium 3.12 they all failed with the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants