Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Depolying a WAR file

 
Russ Russell
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The company hosting my website is absolutely no help on this, so I'm hoping someone here can help me.

When I deploy my war file to my host's weberver, and then check "Enable Donmain Mapping" (a setting in Cpanel), I can browse to my app, but browsing to my home HTML page generates a 400 Bad Request error.

If I UNCHECK "Enable Donmain Mapping", my home html page works fine, but my app doesn't load.

It's as if the server is looking for a ROOT.war. There isn't one, so the home page doesn't load.

Any ideas? My web app was developed in GWT using Eclipse.

Thank you,
-Russ
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Russ Russell wrote:It's as if the server is looking for a ROOT.war. There isn't one, so the home page doesn't load.

Right, the quick solution would be to rename your packaged war to ROOT.war and then deploy.

And certainly, not a Servlet question.
 
Russ Russell
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply.

But I don't want a ROOT.war. I want regular static html for most of the site, and I want to designate a different directory for my app.

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then create a single index.html page in ROOT folder which contain the redirection to your app/index.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic