Help: Unable to set root servlet in a shared hosting environment using Tomcat


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help: Unable to set root servlet in a shared hosting environment using Tomcat

  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Help: Unable to set root servlet in a shared hosting environment using Tomcat

    I'm using a shared hosting environment with GoDaddy and can't set the http://www.domain.com/ (the root) to servlet, i.e. the servlet that gets invoked when we go to the homepage.

    I have the following web.xml file configured that currently works on my testing server:

    PHP Code:
        <servlet>
            <
    display-name>MainPage</display-name>
            <
    servlet-name>MainPage</servlet-name>
            <
    servlet-class>com.somedomain.MainPage</servlet-class>
        </
    servlet>
     
        <
    servlet-mapping>
            <
    servlet-name>MainPage</servlet-name>
            <
    url-pattern>/mainpage</url-pattern>
        </
    servlet-mapping>
     
        <
    welcome-file-list>
            <
    welcome-file>mainpage</welcome-file>
            ...
        </
    welcome-file-list> 
    The application is configured as the 'ROOT' application on my development server, but shared in the hosting environment. I wonder if some permissions are not given since it is shared hosting environment. The error message I get when visiting the page is:

    PHP Code:
    Forbidden
    You don
    't have permission to access / on this server.
     
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 
     
     
    --------------------------------------------------------------------------------
     
    Apache/1.3.33 Server at dev9.somedomain.com Port 80 
    Unfortunately the server get's restarted once a day, so multiple suggestions would be much appreciated. I will upload them all at once.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Have you posted this problem with GoDaddy?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Apr 2009
    Posts
    2
    I did pose it to GoDaddy, but like any big hosting provider they don't really care. They make no effort in telling how their environment is configured and always throw the "we cannot assist you with scripting issues"....

Similar Threads

  1. Replies: 2
    Last Post: 05-13-2008, 10:10 AM
  2. Unable to set environment vars in j2ee
    By kshama in forum Java
    Replies: 0
    Last Post: 04-03-2003, 12:54 PM
  3. Re: App Object (fixes)
    By Rob Teixeira in forum .NET
    Replies: 129
    Last Post: 06-06-2002, 05:23 AM
  4. App Object
    By Rob Teixeira in forum .NET
    Replies: 15
    Last Post: 05-31-2002, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center