• 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

Hosting is not working

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I bought a domain name and I am trying to host my J2EE application. I created the war file and I renamed it to ROOT.war. Then I uploaded it into "/home/%username%/tomcat/webapps/%domainname%/" directory.

But when I access to the site, the welcome page was blank.

Here is a part of my server.xml file:



I don't know what to do.

Thanks
 
Saloon Keeper
Posts: 28319
210
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, Deparis!

Are you sharing this copy of Tomcat with other users/domains?

Unless you are running multiple virtual hosts with Tomcat, you don't set up a specific domain in server.xml. You use the localhost domain and the webapps directory would be simply TOMCAT_HOME/webapps.

For a virtual host, the path would usually be configured to be something like SOME_DIRECTORY/domainame.com/webapps. Where SOME_DIRECTORY could be your TOMCAT home directory, but doesn't have to be. Actually, the webapp directory path could be any directory that Tomcat can access, as long as no other virtualhost is set up to use it as well.
 
Deparis Momo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim

The problem is resolved. In fact, there was an error message below in the log file:

Caused by: java.sql.SQLException: Access denied for user 'xxxxxxxx'@'localhost' (using password: YES)



When I was creating the database, I forgot to allow all privileges to the user "xxxxxxxxx".

Now all is ok, there is no issue.

Thanks al lot Tim.
 
Once upon a time there were three bears. And they were visted by a golden haired 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