Skip to content

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

Open

Description

@317174106

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

WHY?

Activity

  1. mykola-mokhnach commented on May 25, 2018

    @mykola-mokhnach
    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>
    
  2. 317174106 commented on May 25, 2018

    @317174106
    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......

  3. mykola-mokhnach commented on May 25, 2018

    @mykola-mokhnach
    Contributor

    we cannot help much without the detailed problem description

  4. 317174106 commented on May 25, 2018

    @317174106
    Author
  5. mykola-mokhnach commented on May 25, 2018

    @mykola-mokhnach
    Contributor

    #912 should improve the flow

  6. mykola-mokhnach commented on May 25, 2018

    @mykola-mokhnach
    Contributor

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

  7. 317174106 commented on May 25, 2018

    @317174106
    Author

    any way can fix this now? degrade?

  8. mykola-mokhnach commented on May 25, 2018

    @mykola-mokhnach
    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.

  9. 317174106 commented on May 28, 2018

    @317174106
    Author

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

  10. 317174106 commented on May 28, 2018

    @317174106
    Author

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

  11. tooldoctor commented on Jun 13, 2018

    @tooldoctor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions