Free Support Forum - groupdocs.com

PDF does not show up in web example


#1

Hello there,

I am currently evaluating your product and I deployed your java web sample onto my Tomcat machine. (https://github.com/groupdocs/groupdocs-annotation-java-web-sample)

When I try to load a .pdf file (parameter ?file=) only an empty page with a “broken content” icon is displayed. (see attached file)

What can cause this issiue?


#2
Hello,

Thank you for your inquiry.

We have checked our web sample and can't reproduce the same issue on our side. As you can see on the screenshot that the url (http://localhost:8080/?file=http://shacki.narod.ru/files/Shakira_book.pdf) works well for us.

So could you please share with us next:
- version of TomCat web server;
- your applications.properties file ;
- if it possible then please share with us, the web url on .pdf file that you tried to open.

We will wait your details.

---------

Best regards,
Evgen Efimov

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


#3

The Tomcat version is 7.0.56 (using XAMPP for Windows)


Where can I find the application.properties file?
I am launching the application with the following URL http://localhost:8080/groupdocs_annotate/ at TomCat. Is this maybe causing the problem?


The test PDF file I used is located here: http://www.polyu.edu.hk/iaee/files/pdf-sample.pdf

#4

Found the file!


Info:
I can see that at the cachePath some files are stored.

#5
Hello ,

Thank you for the details.

Please try to rename document_annotation.war to ROOT.war and then run it with your TomCat web server. After this , the file should be rendered well.

If you will have more questions please feel free to contact us.

--------

Best regards,
Evgen Efimov

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


#6

I deployed it as ROOT.war and now it is working!


Can you tell me why it is not possible to run it under a different name? (change in Java Code?)