简体   繁体   中英

Need to watermark word documents via aspose in Alfresco

I am trying to watermark word document in alfresco utilizing aspose Java utility by building Java backed webscript.

I am getting error as exception sending connect initialized event to listner instance of class org.alfresco.web.app.ContextListner Java.lang.NoClassDefFoundError:com/aspose/words/DocumentBase

NoClassDefFoundError in Java comes when Java Virtual Machine is not able to find a particular class at runtime which was available during compile time.

Please remove reference to old Aspose.Words for Java from your project, clean the project (any IDE cache etc) and add reference again in your project to the new 'aspose-words-19.9-jdk17.jar'. Hope this helps you.

I work with Aspose as Developer Evangelist.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM