-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundExceptions on Java 11 with OSGi #3028
Comments
@mpiggott Thanks! Will get back with you as soon as I can. I did just apply our bnd change to the master here, if you want you could try using build from master or grabbing it from sonatype snapshots and see if the behaviour is the same. I expect it to be the same but that would give us a good baseline given the plugin change. Otherwise will start looking at this in a few days and see if I can make any sense out of it. Again thanks for bringing this over here. |
@hazendaz I tried a local build of mybatis earlier and it appears the change hasn't fixed the issue. I had a thought though which appears to be confirmed by the mybatis build log - I may try updating |
@hazendaz I opened a PR with the change I mentioned in my previous message, in my local test adding this single package was sufficient for Java 11. |
#3028 Add shaded javassist package to osgi.export
MyBatis version
3.5.14
Database vendor and version
H2 and PostgreSQL (not really important)
Test case or example project
I don't have anything simple at this time.
Steps to reproduce
We're using an OSGi runtime (Karaf with Felix) and have some classes which require enhancement. On Java 8 this works as expected.
When using Java 11 this leads to
NoClassDefFoundException
forWriteReplaceInterface
, this can be resolved by addingorg.apache.ibatis.executor.loader
to ourImport-Package
. Unfortunately this exposes the same exception but forProxyObject
which is in a package not exported by MyBatis.Expected result
No runtime errors :)
Actual result
The text was updated successfully, but these errors were encountered: