Deploying 6.2.1 to Wildfly20 errors

214 views
Skip to first unread message

Pablo Vidaurri

unread,
Oct 16, 2020, 2:57:56 AM10/16/20
to CAS Community
set gradle.properties:
appServer=
executable=false
tomcatVersion=

build.gradle has
implementation "org.apereo.cas:cas-server-webapp:${project.'cas.version'}"  

included jboss-deployment-sturcture.xml file in src/main/webapp/WEB-INF with
<jboss-deployment-structure>
  <deployment>
     <dependencies>
          <module name="jdk.unsupported" />
      </dependencies>
   </deployment>
</jboss-deployment-structure>

gradlew clean build, then deploy war file to wildfly. Get all sorts of errors:

Sorry for the long log file attached.
cas-wildfly.log

Jannis Schalk

unread,
Nov 5, 2020, 5:50:06 AM11/5/20
to CAS Community, Pablo Vidaurri
Got the same problem with version 6.2.4 and Wildfly 20.

I solved it by adding the following code to the `bootWar` task in the File `gradle/springboot.gradle`

bootWar {
    manifest {
        attributes(
            'Dependencies' : 'jdk.unsupported')
    }
    ...
}

Then you don't need the  jboss-deployment-sturcture.xml. 

Reply all
Reply to author
Forward
0 new messages