Free Support Forum - groupdocs.com

Groupdocs.Conversion must use Defult ClassLoader in JVM?


#1

i init Groupdocs.Conversion by Config on Resin-3.1.12 throw this Exception:



Error:

… 21 more

Caused by: java.lang.NoClassDefFoundError: com/aspose/email/License

at com.groupdocs.conversion.b.b.a.a(GroupDocsLicense.java:49)

at com.groupdocs.conversion.b.b.a.a(GroupDocsLicense.java:36)

at com.groupdocs.conversion.b.b.a(License.java:56)

at com.groupdocs.conversion.b.b.a(License.java:43)

at com.groupdocs.conversion.handler.ConversionHandler.(ConversionHandler.java:40)


Caused by: java.lang.ClassNotFoundException: com.aspose.email.License in EnvironmentClassLoader[]

at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1224)

at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1203)

... 32 more


Code:

GroupdocsConfig gdConfig = new GroupdocsConfig();

ConversionHandler conversionHandler = new ConversionHandler(gdConfig);

i'm sure i include the Groupdocs.Conversion SDK and i use Tomcat the code is ok.

Is Groupdocs.Conversion init License must use Defult ClassLoader ?


please give me some suggest , thanks


#2
Hello,

Thank you for your inquiry.

We have tested your scenario of using GroupDocs.Conversion and we have managed to reproduce the same issue at our side. Also we have logged this problem in our issue tracking system as CONVERSIONJAVA-83. We have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for the inconvenience.

------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#3
Hello,

Our product team have investigated the issue and found out that the issue in the Resin server. If you will put our Conversion library to the "bin" folder of the Resin server then the issue should be resolved. We think that the server hasn't enough time to load all classes of our library and it is showing this exception.

Please try to put our library to this folder and notify us if this will help you.

------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+