Sign In  Sign Up Live-Chat

Working Application (on development system) is not working at test system (Aspose Slides for Java)

Last post 05-08-2008, 10:50 PM by alcrus. 4 replies.
Sort Posts: Previous Next
  •  05-06-2008, 9:39 AM 125626

    Working Application (on development system) is not working at test system (Aspose Slides for Java)

    An EAR file for our Windows development system works fine, the application runs.

    When transporting the same EAR file to our TEST system (Linux), the application raises an error, when instantiating the Presentation object with

    Caused by: java.lang.NoClassDefFoundError: com.aspose.metafiles.EmfMetafileat java.lang.J9VMInternals.verifyImpl(Native Method)

    at java.lang.J9VMInternals.verify(J9VMInternals.java:66)

    at java.lang.J9VMInternals.verify(J9VMInternals.java:64)

    at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)

    at com.aspose.slides.Presentation.do(SourceFile:297)

    at com.aspose.slides.Presentation.<init>(SourceFile:468)

    That is the code where it happens:

    this.presentation = new Presentation(EngineImpl.class.getResourceAsStream("/mytemplate.ppt"));

    As already mentioned, it works at our development system.

    We use the JAI Java library, no native accelleration, so the JAI jars should run for Windows and Linux.

    This application creates only Powerpoint files, we do not anything with EMF graphic files.

    At a different post I read something about possible server.policy problems, can this be our problem? Which policy declaration we need in detail?

    Thanks in advance!

     
  •  05-06-2008, 10:27 AM 125636 in reply to 125626

    Re: Working Application (on development system) is not working at test system (Aspose Slides for Java)

    Most probably the presentation contains metafiles inside.
    Try to add Aspose.Metafiles to class path.

    Alexey Zhilin
    Lead Developer
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  05-08-2008, 5:19 AM 125991 in reply to 125636

    Re: Working Application (on development system) is not working at test system (Aspose Slides for Java)

    Hi Alexey,

    thanks for the fast answer.
    Please forgive my ignorance, but WHY should we add this library, although on our environment system everything works fine? On our environment system is no metafiles library!

    Thanks in advance!
     
  •  05-08-2008, 1:12 PM 126079 in reply to 125991

    Re: Working Application (on development system) is not working at test system (Aspose Slides for Java)

    Dear jvogel,

     

    Such an error occurs only when presentation contains EMF/WMF images. In such a case, Aspose.Slides for JAVA needs Aspose.Metafiles to render them in thumbnails or to process them.


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  05-08-2008, 10:50 PM 126141 in reply to 125991

    Re: Working Application (on development system) is not working at test system (Aspose Slides for Java)

    Hello,

    I don't know. Everything should work without Aspose.Metafiles but
    may be your app server on linux has more strict rules and check all
    possible class referencies inside library.

    Alexey Zhilin
    Lead Developer
    Aspose Tyumen Team
    About Us
    Contact Us
     
View as RSS news feed in XML