Free Support Forum - groupdocs.com

Getting Started with Java Library


#1

Hi,

I am trying to develop my own custom demo for the document viewer with Java Library but i faced a lot of errors.

please any one guide my step by step to develop the demo.

Thanks,


#2
Hello,

Thank you for your request.

Basically , we provide demo examples of the integration with our library and you can download them from here . There you will find several examples for Spring , Dropwizard and Servlet frameworks. So please investigate them and try to change your sample according our examples.

Also you can investigate our documentation here .

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+


#3

Thanks for the Quick reply.


i configured the Document Viewer Successful with Spring Tool Suite IDE and Apache Tomcat server 8.0, but when trying to upload any file format (tried with different files with different formats) NullpointerException Generated And another warning messages at the console screen appeared.

i attached screen shots for every Error mentioned .Please help me solving these errors.

Thanks,

#4
Hello,

From your Tomcat logs we can assume that you run our sample with context path "/document-viewer" . So we think that you have mistake in the sample configuration. Could you please share the sample with us and we will investigate it and fix it for you.

We will wait for your sample.

--------

Best regards,
Evgen Efimov

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


#5

Hello,

which files you need to be shared ?


#6
Hello,

Could you please share your sample project folder (with all files), that you configured with Spring Tool Suite IDE.

We will wait for your files.

--------

Best regards,
Evgen Efimov

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


#7

Hello,

Attached ZIP file contains all my files used with STS (without target folder of course).

thanks,


#8
Hello,

Thank you for your files.

We have checked them and found some inconsistencies:

- you incorrectly configured the groupdocs.viewer.filePath property. Please change it to

C:/Users/muhamad.saudi/Downloads/Documents/

- if you ran the sample (document-viewer.war) via stand-alone Tomcat server then you should change it to ROOT.war file ( our sample configured on root url). Or you can change the maven-war-plugin property from pom.xml file to

org.apache.maven.plugins
maven-war-plugin
2.1.1
ROOT

In such case will be generated ROOT.war at once.

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+


#9

Hello,

i made the changes that you told me above, but the same error still produced when i am trying to upload any file from the file path mentioned in the groupdocs.viewer.filePath.

Attached, the edited version from the spring sample and screen shot for errors.

regards,


#10
Hello,

We have checked your sample and it looks well , also we tried to run compiled ROOT.war file on TomCat 8.0.33 and the upload functionality works well for us. Your screenshot with error indicates that the web server is shutdown.

Could you please share with us the logs from the TomCat server and your file that you tried to upload.

We will wait for your files.

-------

Best regards,
Evgen Efimov

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


#11

hello,

attached txt file contains the log for apache tomcat 8.

best Regards,


#12
Hello ,

Thank you for your log file.

Unfortunately, from this log file we can't see a reason of the problem. This log file indicates that the application has started and there does no any issues. Could you please explain, did you try to use a file browser functionality or no, does it work for you? Also, the issue is occurs with each your file that you try to upload? Seems that when you try to upload the file, then in this moment the server is shutdown.

----------

Best regards,
Evgen Efimov

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