This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem with tomcat in a Cpanel environment

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

we've build a java web app based on struts and started off hosting it with a hostingcompany. This company uses a cPanel environment which includes a tomcat server. They've installed all and it works, but it's very buggy. Sometimes it works great at other times it's a big mess.

Recently we've discovered that when starting the tomcat server at a certain point it starts looking for the META-INF/MANIFEST.MF file in the public_html/name_of_webapp folder. However this folder doesn't exist. So therefore load on the server get exceedingly high. So we don't know why it points to this folder for looking for the application files.

We worked around this by creating an exact copy of the tomcat/webapps/name_of_webapp folder and putting it in the public_html folder. This is a workaround and although it works for the moment it's not satisfactory.

Another thing is when i approach the application through http://www.aplliaction_name.nl it seems that there is some sort of time out within the session. I place an object in the session, once i reach the action i take the object from the session but it's not there -> nullpointerexception. BUT when i approach the application without www so like http://application_name.nl it works and there are no problems.

Does anyone know how to solve these issues or at least give me a hint where to look for the problem?

Many thanks!!
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic