Message Boards

Got exception on theme build liferay 7.3.5

Deepak Panda, modified 3 Years ago.

Got exception on theme build liferay 7.3.5

New Member Posts: 18 Join Date: 4/19/19 Recent Posts

Hi,

I have one theme previously deployed on liferay 7.1.1, now I want to deploy it on liferay 7.3.5.

But at the time of build creation with 7.3.5 it shows below error, kindly help to resolve it.

Error Log

 BridJ: LoadLibrary error when loading C:\Users\XXXXX\AppData\Local\Temp\BridJExtractedLibraries6231663513559297866\liferaysass.dll : A dynamic link libException in thread "main" java.lang.UnsatisfiedLinkError: com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(J)J
    at com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(Native Method)
    at com.liferay.sass.compiler.jni.internal.libsass.LiferaysassLibrary.sassMakeFileContext(LiferaysassLibrary.java:1275)
    at com.liferay.sass.compiler.jni.internal.JniSassCompiler.createSassFileContext(JniSassCompiler.java:292)
    at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:147)
    at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)
    at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)
    at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)
    at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)

build.gradle

-------------------------

buildscript {
    dependencies {
        classpath group: "com.liferay", name: "com.liferay.gradle.plugins.theme.builder", version: "2.0.5"
    }

    repositories {
        maven {
            url "https://repository-cdn.liferay.com/nexus/content/groups/public"
        }
    }
}

apply plugin: "com.liferay.portal.tools.theme.builder"

dependencies {
    parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.styled", version: "3.0.4"
    parentThemes group: "com.liferay", name: "com.liferay.frontend.theme.unstyled", version: "3.0.4"
    portalCommonCSS group: "com.liferay", name: "com.liferay.frontend.css.common", version: "3.0.1"
    themeBuilder group: "com.liferay", name: "com.liferay.portal.tools.theme.builder", version: "1.1.6"
    cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "2.1.3" 
}
 

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Got exception on theme build liferay 7.3.5

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

I haven't tried this, but IMHO themes are so dependent on little details that I'd not assume that skipping two versions results in a usable theme on the newer version. There are so many updates of underlying libraries, the HTML DOM, etc that at the very least you're starting in a weirder place than when you create a new theme in the target environment and carry over individual theme elements piece by piece - validating if they need tweaking or not. This way, the change that you'll need to introduce is manageable, and it doesn't mean a completely new theme development.

Upgrading a theme as a monolith, fixing all appearing issues in buld doesn't sound appealing to me.

Note: That's my personal approach. It might well be that there's a claim that themes are upgradable, but with all designs that have been applied to an older version, I don't assume that they can be applied unchanged to a newer version and deliver the same (or even a usable) result.