*
The moose likes Servlets and the fly likes Depolying a WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Depolying a WAR file" Watch "Depolying a WAR file" New topic
Author

Depolying a WAR file

Russ Russell
Ranch Hand

Joined: Jan 24, 2010
Posts: 72
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Russ Russell
Ranch Hand

Joined: Jan 24, 2010
Posts: 72
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

Then create a single index.html page in ROOT folder which contain the redirection to your app/index.html
 
Don't get me started about those stupid light bulbs.
 
subject: Depolying a WAR file