This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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!!
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic