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 #90

Closed
asuvorkov opened this issue Mar 5, 2021 · 4 comments
Closed

java.lang.NoClassDefFoundError #90

asuvorkov opened this issue Mar 5, 2021 · 4 comments
Assignees

Comments

@asuvorkov
Copy link

While executing my test on Jenkins or local but headless I get this error:
image

I have a dependency in pom.xml:
image

The strange thing is that when I run the local test, it works as expected. When I try to run it on Jenkins or local (headless mode), it instantly fails.

@glibas
Copy link
Member

glibas commented Mar 10, 2021

Hi @asuvorkov ,

Could it be that you are using different profiles to run on local and ci and shutterbug dependency was added only to local one?

@glibas glibas self-assigned this Mar 10, 2021
@asuvorkov
Copy link
Author

Yes. I have these profiles in my pom.xml:

<profiles>
    <profile>
        <id>human</id>
        <properties>
            <chrome.headless>true</chrome.headless>
            <serenity.step.delay>3000</serenity.step.delay>
        </properties>
    </profile>
    <profile>
        <id>robot</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
            <chrome.headless>false</chrome.headless>
            <serenity.step.delay>0</serenity.step.delay>
        </properties>
    </profile>
</profiles>

I have no issues, when I run 'robot' profile. When I run 'human' local or on CI I get error

@glibas
Copy link
Member

glibas commented Mar 14, 2021

Could you post the full error message with the class name that is not found?

@glibas
Copy link
Member

glibas commented Apr 4, 2022

Closing due to inactivity

@glibas glibas closed this as completed Apr 4, 2022
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

2 participants