tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: The requested resource is not available
Date Wed, 19 Jul 2006 18:18:07 GMT
WebApp/MappedClassName..

so if you are referencing WebApp 'Foo' 
and inside web.xml your <servlet-mapping>
has the entry
                                       <servlet-name>/servlet/Bar</servlet-name>
the correct url would be
http://Server:PortName/Foo/servlet/Bar

Make sense??
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Darren Hall" <dhall@utrs.com>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Sent: Wednesday, July 19, 2006 1:57 PM
Subject: RE: The requested resource is not available


Here's something else I tried.
I thought that perhaps my mapping was set incorrectly such that when I tried
to go to http://localhost:8080/abc/abc the request was being picked up by my
servlet, but this does not seem to be the case.

When I attempt to go to the above URL I get the error "The requested
resource (/abc/abc) is not available."

What am I doing wrong here? I remember being able to configure Tomcat before
so that a give URL pattern would map to a corresponding servlet, but for
some reason, I'm unable to get it to work now.

Any help would be greatly appreciated.

Thanks,

Darren


-----Original Message-----
From: Darren Hall [mailto:dhall@utrs.com] 
Sent: Wednesday, July 19, 2006 9:03 AM
To: 'Tomcat Users List'
Cc: hassan.schroeder@gmail.com
Subject: RE: The requested resource is not available

Thanks for the response Hassan.

> But if the above url-pattern is in a Context with path '/abc', then you're
> telling it to give everything that looks like 
> 'http://localhost:8080/abc/abc'
> to your control servlet, which probably isn't what you want...  :-)

No, you are exactly right. This is *not* what I want. I want the servlet to
get everything from 'http://localhost:8080/abc'. Would you mind explaining
where I went wrong?

> The Context configuration would be helpful, though.

As for Context, I don't have any context information in my web.xml file (I
don't believe... at least I have no <Context> element present in the file).
What I posted before was nearly the entire web.xml. I can post the whole
file if you'd like.

Thanks,

Darren


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Mime
View raw message