I don't have a jsp file either, use the .jsp extension and make sure that file isn't there. It takes that mapping and goes to your servlet.


On Tue, 15 Jun 2004 15:03:21 -0700, <[EMAIL PROTECTED]> wrote:

I changed my web.xml file like you said buy changing the servlet mapping to this

<servlet-name>webMathematica</servlet-name>
     <url-pattern>/index.html</url-pattern>
  </servlet-mapping>

   <Home-file-list>
     <Home-file>
       index.html
    </Home-file>

it is index.html because the webapp does not have a .jsp file ... But now when I
go to http://localhost:8080 I get the following error


HTTP Status 404 - /

--------------------------------------------------------------------------------

type Status report

message /

description The requested resource (/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.25

Any Ideas? I feel like I'm getting close ... but my deadline is getting closer!

-Seth Carter-


Quoting Jarl Skogsholm <[EMAIL PROTECTED]>:

To get Tomcat to hit your servlet instead of the ROOT(welcome page),
you have to trick Tomcat by changing the servlet mapping (web.xml) to
index.jsp.  Tomcat will send you automatically to your servlet
assumming index.jsp is in your welcome file list.    <servlet-mapping>
    <servlet-name>YourServlet</servlet-name>
    <url-pattern>/index.jsp</url-pattern>
  </servlet-mapping>

  <Home-file-list>
    <Home-file>
      index.jsp
    </Home-file>



Quoting [EMAIL PROTECTED]:

> Right now IIS isnt even running, I make changes to the tomcat files,
> restart
> tomcat and go to http://localhost ... It gave me the congrats you set
> up
> tomcat page by default, and i can get to webMathematica right now by
> going to
> http://localhost/webMathematica , what I want is when I go to
> http://localhost
> it would bring up webMathematica.
>
> -Seth Carter-
>
> Quoting Schalk <[EMAIL PROTECTED]>:
>
> > How do you access the site currently with your config with Server
> 2003 and
> > IIS?
> >
> > Kind Regards
> > Schalk Neethling
> > Web Developer.Designer.Programmer.President
> > Volume4.Development.Multimedia.Branding
> > emotionalize.conceptualize.visualize.realize
> > Tel: +27125468436
> > Fax: +27125468436
> > email:[EMAIL PROTECTED]
> > web: www.volume4.co.za
> >
> > This message contains information that is considered to be
> sensitive or
> > confidential and may not be forwarded or disclosed to any other
> party
> > without the permission of the sender. If you received this message
> in error,
> > please notify me immediately so that I can correct and delete the
> original
> > email. Thank you.
> >
> > :: -----Original Message-----
> > :: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > :: Sent: Monday, June 14, 2004 11:13 PM
> > :: To: 'Tomcat Users List'
> > :: Subject: RE: How do I run servlets on the root directory of
> localhost?
> > ::
> > :: I am not using Apache although I wish we were, my boss believes
> in an all
> > :: windows enviroment, so this is on server 2003 with IIS, I havent
> set up
> > tomcat
> > :: with IIS yet, because of this problem. I will look at that file
> > server.xml but
> > :: I've been in there before (to change from port 8080 to 80) and
> didn't see
> > any
> > :: setting that looked like it would help.
> > ::
> > :: -Seth Carter-
> > ::
> > ::
> > ::
> > ::
> ---------------------------------------------------------------------
> > :: To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > :: For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to