kept getting HTTP Status 404 - please help. thanx.

2003-02-01 Thread John Qin
Ijust installed tomcat 4.1.18 today.

everything seems fine. i can see this page
http://localhost:8080/index.jsp. and i run those
Servlet Examples,  it showed up, everyting is good.

then i wrote a servlet page myself, and try to run it.
it told me cannot find it, I got  http status 404
error.  I am sure my coding is rite. cuz I download
htem directly from web site.

after i compile the .java file, I put it .class file
into WEB-INF/classes folder. I followed hte
instruction step by step.

I check thousands time, still have no clue whts wrong.
if u have any ideas please help me out.

thanx.

   john.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: kept getting HTTP Status 404 - please help. thanx.

2003-02-01 Thread Jacob Kjome

Are you accessing it like this?

http://localhost:8080/servlet/MyServlet

If so, note that the "/servlet/*" mapping is for the invoker servlet which 
is commented out (by default) in Tomcat conf/web.xml.  Uncomment the 
mapping for the invoker servlet and you will be able to access your servlet.

BTW, you should always put your servlet in an actual package if you haven't 
already.  Something like com.mycompany.MyServlet instead of placing your 
classes in the root of WEB-INF/classes which is the default package.  You 
can't import the default package.

Jake


At 09:07 PM 2/1/2003 -0800, you wrote:
Ijust installed tomcat 4.1.18 today.

everything seems fine. i can see this page
http://localhost:8080/index.jsp. and i run those
Servlet Examples,  it showed up, everyting is good.

then i wrote a servlet page myself, and try to run it.
it told me cannot find it, I got  http status 404
error.  I am sure my coding is rite. cuz I download
htem directly from web site.

after i compile the .java file, I put it .class file
into WEB-INF/classes folder. I followed hte
instruction step by step.

I check thousands time, still have no clue whts wrong.
if u have any ideas please help me out.

thanx.

   john.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Re: kept getting HTTP Status 404 - please help. thanx.

2003-02-01 Thread John Qin
hi Jacob Kjome .thanx for ur help.

I got it work, thanx for ur help.

by the way, do u kno how to get into tomcat
administration section. Whats the default ID and
password for that.

Thank you.

 John Qin.

--- Jacob Kjome <[EMAIL PROTECTED]> wrote:
> 
> Are you accessing it like this?
> 
> http://localhost:8080/servlet/MyServlet
> 
> If so, note that the "/servlet/*" mapping is for the
> invoker servlet which 
> is commented out (by default) in Tomcat
> conf/web.xml.  Uncomment the 
> mapping for the invoker servlet and you will be able
> to access your servlet.
> 
> BTW, you should always put your servlet in an actual
> package if you haven't 
> already.  Something like com.mycompany.MyServlet
> instead of placing your 
> classes in the root of WEB-INF/classes which is the
> default package.  You 
> can't import the default package.
> 
> Jake
> 
> 
> At 09:07 PM 2/1/2003 -0800, you wrote:
> >Ijust installed tomcat 4.1.18 today.
> >
> >everything seems fine. i can see this page
> >http://localhost:8080/index.jsp. and i run those
> >Servlet Examples,  it showed up, everyting is good.
> >
> >then i wrote a servlet page myself, and try to run
> it.
> >it told me cannot find it, I got  http status 404
> >error.  I am sure my coding is rite. cuz I download
> >htem directly from web site.
> >
> >after i compile the .java file, I put it .class
> file
> >into WEB-INF/classes folder. I followed hte
> >instruction step by step.
> >
> >I check thousands time, still have no clue whts
> wrong.
> >if u have any ideas please help me out.
> >
> >thanx.
> >
> >john.
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: kept getting HTTP Status 404 - please help. thanx.

2003-02-02 Thread fred
Normally,
Admin and no password
Fred
- Original Message - 
From: "John Qin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 02, 2003 7:10 AM
Subject: Re: kept getting HTTP Status 404 - please help. thanx.


> hi Jacob Kjome .thanx for ur help.
> 
> I got it work, thanx for ur help.
> 
> by the way, do u kno how to get into tomcat
> administration section. Whats the default ID and
> password for that.
> 
> Thank you.
> 
>  John Qin.
> 
> --- Jacob Kjome <[EMAIL PROTECTED]> wrote:
> > 
> > Are you accessing it like this?
> > 
> > http://localhost:8080/servlet/MyServlet
> > 
> > If so, note that the "/servlet/*" mapping is for the
> > invoker servlet which 
> > is commented out (by default) in Tomcat
> > conf/web.xml.  Uncomment the 
> > mapping for the invoker servlet and you will be able
> > to access your servlet.
> > 
> > BTW, you should always put your servlet in an actual
> > package if you haven't 
> > already.  Something like com.mycompany.MyServlet
> > instead of placing your 
> > classes in the root of WEB-INF/classes which is the
> > default package.  You 
> > can't import the default package.
> > 
> > Jake
> > 
> > 
> > At 09:07 PM 2/1/2003 -0800, you wrote:
> > >Ijust installed tomcat 4.1.18 today.
> > >
> > >everything seems fine. i can see this page
> > >http://localhost:8080/index.jsp. and i run those
> > >Servlet Examples,  it showed up, everyting is good.
> > >
> > >then i wrote a servlet page myself, and try to run
> > it.
> > >it told me cannot find it, I got  http status 404
> > >error.  I am sure my coding is rite. cuz I download
> > >htem directly from web site.
> > >
> > >after i compile the .java file, I put it .class
> > file
> > >into WEB-INF/classes folder. I followed hte
> > >instruction step by step.
> > >
> > >I check thousands time, still have no clue whts
> > wrong.
> > >if u have any ideas please help me out.
> > >
> > >thanx.
> > >
> > >john.
> > >
> > >__
> > >Do you Yahoo!?
> > >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > >http://mailplus.yahoo.com
> > >
> >
> >-
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> -
> 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]




Re: kept getting HTTP Status 404 - please help. thanx.

2003-02-02 Thread Jacob Kjome

Glad you got it working :-)

Both the admin and manager apps can use arbitrary usernames and 
passwords.  The only requirement is that a user have the roles "admin" or 
"manager" for each respective app.  So, in tomcat-users.xml, add something 
like...





Jake

At 10:10 PM 2/1/2003 -0800, you wrote:
hi Jacob Kjome .thanx for ur help.

I got it work, thanx for ur help.

by the way, do u kno how to get into tomcat
administration section. Whats the default ID and
password for that.

Thank you.

 John Qin.

--- Jacob Kjome <[EMAIL PROTECTED]> wrote:
>
> Are you accessing it like this?
>
> http://localhost:8080/servlet/MyServlet
>
> If so, note that the "/servlet/*" mapping is for the
> invoker servlet which
> is commented out (by default) in Tomcat
> conf/web.xml.  Uncomment the
> mapping for the invoker servlet and you will be able
> to access your servlet.
>
> BTW, you should always put your servlet in an actual
> package if you haven't
> already.  Something like com.mycompany.MyServlet
> instead of placing your
> classes in the root of WEB-INF/classes which is the
> default package.  You
> can't import the default package.
>
> Jake
>
>
> At 09:07 PM 2/1/2003 -0800, you wrote:
> >Ijust installed tomcat 4.1.18 today.
> >
> >everything seems fine. i can see this page
> >http://localhost:8080/index.jsp. and i run those
> >Servlet Examples,  it showed up, everyting is good.
> >
> >then i wrote a servlet page myself, and try to run
> it.
> >it told me cannot find it, I got  http status 404
> >error.  I am sure my coding is rite. cuz I download
> >htem directly from web site.
> >
> >after i compile the .java file, I put it .class
> file
> >into WEB-INF/classes folder. I followed hte
> >instruction step by step.
> >
> >I check thousands time, still have no clue whts
> wrong.
> >if u have any ideas please help me out.
> >
> >thanx.
> >
> >john.
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
>


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Re: kept getting HTTP Status 404 - please help. thanx.

2003-02-02 Thread Jeanfrancois Arcand
Could you post your web.xml file? That will be a good starting point for 
us to help you :-)

-- Jeanfrancois

John Qin wrote:

Ijust installed tomcat 4.1.18 today.

everything seems fine. i can see this page
http://localhost:8080/index.jsp. and i run those
Servlet Examples,  it showed up, everyting is good.

then i wrote a servlet page myself, and try to run it.
it told me cannot find it, I got  http status 404
error.  I am sure my coding is rite. cuz I download
htem directly from web site.

after i compile the .java file, I put it .class file
into WEB-INF/classes folder. I followed hte
instruction step by step.

I check thousands time, still have no clue whts wrong.
if u have any ideas please help me out.

thanx.

  john.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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]