aspose file tools*
The moose likes Tomcat and the fly likes Problems with access of application when autodeploying a .war through Tomcat manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems with access of application when autodeploying a .war through Tomcat manager" Watch "Problems with access of application when autodeploying a .war through Tomcat manager" New topic
Author

Problems with access of application when autodeploying a .war through Tomcat manager

Jorgen Grondal
Greenhorn

Joined: Jan 10, 2012
Posts: 2
Hello and thanks for taking your time to read my post.

I am trying to set up a project management tool which is open source. (http://kunagi.org/)
The web server is using Tomcat 6 and Java 6.

After I got my web hosting up and running I went to the tomcat manager and tried to select the kunagi.war file and pressed deploy. After it deploys and it successfully runs in my list of applications I try to open the webpage to it. The error message I get is as follows:

First question: Is it normal for web hosting companies to not allow access at this particular location?

After looking around a lot on the internet I still don't really understand why the error occurs. My web hosting company told me to install the web application to the web application folder of the tomcat and not the binary location. The problem is that after I looked into the code of the kunagi, the way it detects the path to store data in is by creating a dummy file, and then fetching the filepath of it. Does this mean that the kunagi web application is installed to the binary folder of the tomcat installation, or is it simply because the tomcat is executing it?

I am still not sure how I should attack this problem, I could try to fix the paths in the code and then recompile the entire project, but I am guessing it will be a lot of time used just to find all the dependencies and so on. (And I would also need to know the location of where I should store it)
Another alternative, if I have interpreted the problem correctly, is to deploy the web application to a user location and the program will detect a data directory in a location where it is allowed.

Any help or tips is highly appreciated. If I have forgotten any important information, please let me know.

Best regards,
Jorgen
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Welcome to the JavaRanch, Jorgen!

It would not be unreasonable for a hosting company to deny creation of a data directory under TOMCAT_HOME/bin. The "bin" path, is, after all, supposed to be read-only resources. And on top of that, the LSB states that anything under /usr/local should (ideally) be read-only.

Actually, I think that you may have missed a configuration option for this app and it's simply defaulting to the location of the software for the data directory. That's not really the best way of implementing the app, but then there's a lot of that about.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jorgen Grondal
Greenhorn

Joined: Jan 10, 2012
Posts: 2
Thanks for the reply.

I contacted the application developers and they responded that the detection of the data path is indeed incorrect on non-debian unix systems. The solution to fix this is to create a config.properties files, but this wants to be located in a directory which is without access. So to fix the problem you had to change java system property for the application to point to another location. I have asked my web host to look into this as I am not sure I am allowed to.
 
 
subject: Problems with access of application when autodeploying a .war through Tomcat manager