• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Depolying a WAR file

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then create a single index.html page in ROOT folder which contain the redirection to your app/index.html
 
Let me tell you a story about a man named Jed. He made this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic