tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

OpenOverlay startup issue #75

Open mikeblum opened 8 years ago

mikeblum commented 8 years ago

When starting up OpenContent (wizardHBase) I get the following error from OC:

30-Dec-2015 16:37:05.503 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 31756 ms
Error initializing CoreContext...Error creating bean with name 'OpenOverlayUtil' defined in class path resource [core-bean-config.xml]: Initialization of bean failed; nested exception is java.lang.VerifyError: cla
ss net.sf.cglib.core.DebuggingClassWriter overrides final method visit.(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OpenOverlayUtil' defined in class path resource [core-bean-config.xml]: Initialization of bean failed; nested exception is ja
va.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter overrides final method visit.(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V

I have the following jar deployed:

-rw-r--r-- 1 root root  278682 May 11  2015 cglib-2.2.jar
gsteimer commented 8 years ago

@mikeblum @nwoodbine - is this happening on edge3? I just want to make sure this is an actual issue or something with Mike's environment. We shouldn't use the GitHub issue tracker to manage environment issues.

mikeblum commented 8 years ago

The problem was that there are three versions of the asm jar and a conflict with the cglib jar - https://issues.liferay.com/browse/LPS-45870

For now my solution was to remove the asm jar that Apache Tikka depends on for 2.solr with the following modification to the build.gradle:

compile('org.apache.tika:tika-parsers:1.10')
    {
        exclude group: 'org.ow2.asm', module: 'asm-debug-all' //by both name and group
    }