Deployment failed in enonic due to sql dependency


#1

Enonic version: 6.15.6
OS: 10.14

Deployment failed in enonic app.

PFB the response error and logs in server,

Response error: {
“status” : 500,
“message” : “com/enonic/lib/sql/SqlSource”,
“context” : {
“authenticated” : true,
“principals” : [ “role:system.admin”, “role:system.admin.login”, “role:system.authenticated”, “role:system.everyone”, “user:system:su” ]
}
}

15:39:56.372 ERROR c.e.x.j.i.e.JsonExceptionMapper - com/enonic/lib/sql/SqlSource
java.lang.NoClassDefFoundError: com/enonic/lib/sql/SqlSource
Caused by: java.lang.ClassNotFoundException: Unable to load class ‘com.enonic.lib.sql.SqlSource’ because the bundle wiring for no.posten.website is no longer valid.

We have the Sql dependency in build.gradle (include ‘com.enonic.lib:lib-sql:0.6.0’).

The redeployment helped. However, the site was down for 7 mins due to this deployment issue.


#2

I am afraid you are affected by a known issue https://github.com/enonic/xp/issues/7132