Snapshotter complains about "java.lang.NoClassDefFoundError: com/enonic/xp/mail/MailMessage"

Enonic version: 6.8.1
OS: Ubuntu 16.04 LTS

On this XP version, I tried to install the Snapshotter application. It was not listed inside the XP admin gui. So I installed it using command line “./toolbox.sh install-app -a su:password -u http://repo.enonic.com/public/com/enonic/app/snapshotter/1.0.5/snapshotter-1.0.5.jar”.

Then I added the “com.enonic.app.snapshotter.cfg” configuration.

When the app Snapshotter is started, I get the error:

11:32:52.810 ERROR com.enonic.app.snapshotter - BundleComponentActivator : Bundle [85] Unexpected failure enabling component holder com.enonic.app.snapshotter.mail.MailSenderImpl
java.lang.NoClassDefFoundError: com/enonic/xp/mail/MailMessage
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_111]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_111]
at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_111]
at org.apache.felix.scr.impl.helper.BindMethod.getServiceObjectAssignableMethod(BindMethod.java:454) ~[org.apache.felix.scr-2.0.2.jar:na]
at org.apache.felix.scr.impl.helper.BindMethod.doFindMethod(BindMethod.java:186) ~[org.apache.felix.scr-2.0.2.jar:na]
at org.apache.felix.scr.impl.helper.BaseMethod.findMethod(BaseMethod.java:171) ~[org.apache.felix.scr-2.0.2.jar:na]
at org.apache.felix.scr.impl.helper.BaseMethod.access

I do have “com.enonic.xp.mail.cfg” correctly set up.

Any ideas why the Snapshotter complains about “java.lang.NoClassDefFoundError: com/enonic/xp/mail/MailMessage”?

I did the same setup on an XP 6.13.1 server and it worked fine.

Hi

Snapshotter 1.0.5 needs at least version 6.10 of XP, as mentioned in the release log here: https://market.enonic.com/vendors/enonic/snapshotter. The reason why it wasn’t listed in XP admin is exactly that - your version of XP is incompatible with the application.

1 Like

Thanks. I was afraid of that.

This topic was automatically closed after 24 hours. New replies are no longer allowed.