failed to deploy gitbucket.war on wildfly 10.1 #1384

Closed
rsoika opened this Issue Dec 17, 2016 · 7 comments

Comments

5 participants
@rsoika

rsoika commented Dec 17, 2016

Issue

Impacted version: 4.7.1

Deployment mode:
I try to deploy gitbucket.war on Wildfly 10.1.0-final.
Problem description:
I see the following errors in log file during deployment:

2016-12-17 13:25:53,706 WARN [org.jboss.modules] (ServerService Thread Pool -- 81) Failed to define class liquibase.serializer.core.yaml.YamlSerializer$LiquibaseRepresenter in Module "deployment.gitbucket.war:main" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link liquibase/serializer/core/yaml/YamlSerializer$LiquibaseRepresenter (Module "deployment.gitbucket.war:main" from Service Module Loader): org/yaml/snakeyaml/representer/Representer ... 2016-12-17 13:25:53,713 WARN [org.jboss.modules] (ServerService Thread Pool -- 81) Failed to define class liquibase.serializer.core.yaml.YamlSnapshotSerializer$SnapshotLiquibaseRepresenter in Module "deployment.gitbucket.war:main" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link liquibase/serializer/core/yaml/YamlSnapshotSerializer$SnapshotLiquibaseRepresenter (Module "deployment.gitbucket.war:main" from Service Module Loader): Failed to link liquibase/serializer/core/yaml/YamlSerializer$LiquibaseRepresenter (Module "deployment.gitbucket.war:main" from Service Module Loader): org/yaml/snakeyaml/representer/Representer

Finally the application is deployed, but I am unable to login . I got the message

java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider

Is there anything I need to install/deploy first on wildfly? Running in standalone modus works.

@ritschwumm

This comment has been minimized.

Show comment
Hide comment
Contributor

ritschwumm commented Dec 17, 2016

@emag

This comment has been minimized.

Show comment
Hide comment
@emag

This comment has been minimized.

Show comment
Hide comment
@emag

emag Dec 17, 2016

Though I'm not sure the WARN log for NoClassDefFoundError about snakeyaml will cause any critical errors, WildFly will not complain about it by adding the following jboss-deployment-structure.xml at least.

<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <system export="true">
        <paths>
          <path name="com/sun/net/ssl/internal/ssl" />
          <path name="com/sun/net/ssl" />
        </paths>
      </system>
      <!-- add snakeyaml dependency -->
      <module name="org.yaml.snakeyaml"/>
    </dependencies>
  </deployment>
</jboss-deployment-structure>

emag commented Dec 17, 2016

Though I'm not sure the WARN log for NoClassDefFoundError about snakeyaml will cause any critical errors, WildFly will not complain about it by adding the following jboss-deployment-structure.xml at least.

<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <system export="true">
        <paths>
          <path name="com/sun/net/ssl/internal/ssl" />
          <path name="com/sun/net/ssl" />
        </paths>
      </system>
      <!-- add snakeyaml dependency -->
      <module name="org.yaml.snakeyaml"/>
    </dependencies>
  </deployment>
</jboss-deployment-structure>
@rsoika

This comment has been minimized.

Show comment
Hide comment
@rsoika

rsoika Dec 17, 2016

thanks - yes this works. I tested with wildfly 9 and with version 10.1

Why not adding this file general into the project?

rsoika commented Dec 17, 2016

thanks - yes this works. I tested with wildfly 9 and with version 10.1

Why not adding this file general into the project?

@McFoggy

This comment has been minimized.

Show comment
Hide comment
@McFoggy

McFoggy Dec 18, 2016

Member

@rsoika probably because we cannot include workarounds for every existing servlet container and their classloader policies. Including wildfly specific files would mean that we support out of the box this platform and that we test on it for every release. We are far from having such testing capacity I guess.

Can you please update the wiki entry on this topic with your trials with wildfly 9 &10? thanks.

Member

McFoggy commented Dec 18, 2016

@rsoika probably because we cannot include workarounds for every existing servlet container and their classloader policies. Including wildfly specific files would mean that we support out of the box this platform and that we test on it for every release. We are far from having such testing capacity I guess.

Can you please update the wiki entry on this topic with your trials with wildfly 9 &10? thanks.

@rsoika

This comment has been minimized.

Show comment
Hide comment
@rsoika

rsoika Dec 18, 2016

I have updated the wiki page.
Also I have developed a install script for linux which can be used to install gitbucket into a wildfly server:

https://gist.github.com/rsoika/2d8bab41b18b9fb133c425277c655af7

rsoika commented Dec 18, 2016

I have updated the wiki page.
Also I have developed a install script for linux which can be used to install gitbucket into a wildfly server:

https://gist.github.com/rsoika/2d8bab41b18b9fb133c425277c655af7

@McFoggy

This comment has been minimized.

Show comment
Hide comment
@McFoggy

McFoggy Dec 18, 2016

Member

Thanks for the contribution. May I suggest you to simplify the creation of the jboss-deployment-structure.xml file by using a cat > jboss-deployment-structure.xml << EOF syntax ; it is far more readable/maintainable than the echo one.
For an example you can have a look at the install script of one project of mine jgitver-maven-plugin install script.

Member

McFoggy commented Dec 18, 2016

Thanks for the contribution. May I suggest you to simplify the creation of the jboss-deployment-structure.xml file by using a cat > jboss-deployment-structure.xml << EOF syntax ; it is far more readable/maintainable than the echo one.
For an example you can have a look at the install script of one project of mine jgitver-maven-plugin install script.

@takezoe takezoe added the document label Dec 19, 2016

@takezoe takezoe closed this Dec 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment