• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Jorgen Grondal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic