External jar problem creating file in tomcat

0

Good afternoon. I have a problem that Crawler4j (an external jar) tries to create files and folders in an application in tomcat but has the following error:

Could not create this folder: / data / crawl / root

How can I do to allow tomcat to create files and folders?

The source code is at link

From now on, Marcelo

    
asked by anonymous 08.12.2014 / 19:13

1 answer

1

Good morning, personal.

After a long time trying I finally got the answer to the problem. In the command I would ask to create the folder / data / crawl / root pos I thought it would create this folder from the contextpath of tomcat, but what is written there is that it will create from the root directory and in linux normally users are not allowed to write to the root directory. I discovered this from testing the same application on windows :-( and I noticed that it was writing from the root of windows.

That's it folks. Thank you.

    
12.12.2014 / 13:58