, 2004 5:36 AM
Subject: Re: Servlet mapping problem.
Hi,
I'm not using struts.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:25 AM
Subject: Re: Servlet mapping
Hi,
message /loginResponse.do
description The requested resource (/loginResponse.do) is not
available.
It seems the context_name part of your form element is blank, missing,
or wrong, since the page is asking for /loginResponse.do and not
/whatever/loginResponse.do. Accordingly, how do you
mapping?
Stefan
www.killersites.com
- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 7:39 AM
Subject: Re: Servlet mapping problem.
If you are not using Struts why did you call the login JSP,
loginResponse.do
List
Subject: Re: Servlet mapping problem.
Hi,
This is my web.xml for the web app:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
welcome-file-listindex.jsp/welcome-file-list
filter
22, 2004 9:03 AM
Subject: RE: Servlet mapping problem.
Hi,
message /loginResponse.do
description The requested resource (/loginResponse.do) is not
available.
It seems the context_name part of your form element is blank, missing,
or wrong, since the page is asking for /loginResponse.do
www.killersites.com
- Original Message -
From: Stefan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 10:31 PM
Subject: Re: Servlet mapping problem.
Hi,
I am actually using a form to post to the target servlet:
form action=/context_name
Hi,
form action=/the_context/loginResponse.do method=post
name: input type=text name=adminPassword
input type=submit
/form
I meant the server-side code, not the HTML output.
Q. Accordingly, how do you generate this form element?
A. I'm not sure what you mean, it's just a hard-coded HTML
, November 21, 2004 10:31 PM
Subject: Re: Servlet mapping problem.
Hi,
I am actually using a form to post to the target servlet:
form action=/context_name/loginResponse.do method=post
name: input type=text name=adminPassword
input type=submit
/form
The form itself
, November 22, 2004 10:12 AM
Subject: RE: Servlet mapping problem.
Hi,
form action=/the_context/loginResponse.do method=post
name: input type=text name=adminPassword
input type=submit
/form
I meant the server-side code, not the HTML output.
Q. Accordingly, how do you generate this form
, November 22, 2004 10:19 AM
Subject: Re: Servlet mapping problem.
Why don't you just use a relative link?:
form action=loginResponse.do method=post
On Mon, 2004-11-22 at 10:13, Stefan wrote:
Hi,
Just out of curiousity I changed the forms' action attribute to include
the
full path
List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 10:19 AM
Subject: Re: Servlet mapping problem.
Why don't you just use a relative link?:
form action=loginResponse.do method=post
On Mon, 2004-11-22 at 10:13, Stefan wrote:
Hi,
Just out of curiousity I changed the forms
at this
point I'm not too impressed the Tomcat.
Thanks Ben.
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 10:40 AM
Subject: Re: Servlet mapping problem.
In your context tag, your specifying: path
Hi,
I actually put the context reference in the context tag ... just
something
I
omitted in the email. But alas, it still does not work ...
/snip
I'm actually going to see if I can get the client to use Resin (for
some
reason, everything works fine is Resin ... out of the box), frankly at
this
Subject: Re: Servlet mapping problem.
In your context tag, your specifying: path=
but in your url you're using:
http://127.0.0.1/the_context/loginResponse.do;
^^^
Either put: path=/the_context in your context tag or
don't specify it in your url
...
Thanks for your help.
Stefan
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:34 AM
Subject: RE: Servlet mapping problem.
Hi,
I actually put the context reference in the context tag ... just
Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some simple apps all WARed up on my site.
http://simple.souther.us.
Try dropping one of those wars
Shapira http://www.yoavshapira.com
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:54 AM
To: Tomcat Users List
Subject: Re: Servlet mapping problem.
Thanks Ben - I'll give it a go .. the client may insist still on
Tomcat,
anyway it bugs me
?
Thanks,
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some simple apps all WARed up on my site.
http
]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:58 AM
Subject: RE: Servlet mapping problem.
Hi,
The problem is that you've messed up your configuration. You created
context.xml and you created your static HTML page. One says path= and
the other asks for path
, could it be some physical
path issue?
Thanks,
Stefan
- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.
If you're interested, I've got some
Subject: Re: Servlet mapping problem.
Yoav,
As I stated in a previous post - I actually included the context name
in
the
context.xml file, I just omitted it in my email.
Beyond that, I initially did not include a context.xml file - but it
did
not
work, so I figured I'd give it a go.
But if you
, November 22, 2004 12:12 PM
Subject: RE: Servlet mapping problem.
Hi,
Do you get any errors in your log on startup? Are you running Tomcat as
a Windows service, or from the command line?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]
Sent
: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:12 PM
Subject: RE: Servlet mapping problem.
Hi,
Do you get any errors in your log on startup? Are you running Tomcat as
a Windows service, or from the command line?
Yoav
Can you show us what you type in to your browser?
--- Stefan [EMAIL PROTECTED] wrote:
Hi,
I first posted this question with the wrong subject
heading ... sorry about
the duplicates.
My question:
Using Tomcat 5.0.28 standalone on windows XP with
JVM 1.4, I get this error
even
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 9:58 PM
Subject: Re: Servlet mapping problem.
Can you show us what you type in to your browser?
--- Stefan [EMAIL PROTECTED] wrote:
Hi,
I first posted this question with the wrong subject
heading
.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]
Sent: Sunday, November 21, 2004 9:58 PM
Subject: Re: Servlet mapping problem.
Can you show us what you type in to your
browser?
--- Stefan
Hi,
I'm not using struts.
Stefan
www.killersites.com
- Original Message -
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:25 AM
Subject: Re: Servlet mapping problem.
Can you also post all your struts-config.xml
Anto Paul wrote:
Hi all,
I am writing an application which have to serve content based on the
hostname it is requested. Different hosts will be set to same ROOT
directory. There wont be any content at the ROOT. Everything will be
on subdirectories. I wrote a servlet with mapping as / . But when
Hi there,
I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.
rgds
Anto Paul
On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
Anto Paul wrote:
Hi all,
I am writing an
Hi,
You cannot map a single url. Tomcat only maps prefixes. So, you cannot
map
Really? Where did this nugget come from? ;) I nearly choked on my
(otherwise fabulous) croissant. Your assertion above is wrong. Tomcat
implements servlet mapping exactly as required by the Servlet
Specification
Hi,
However, I am sure about the fact, that you cannot map a single url
such as
/.
(Yes, you can define a mapping of /, but that maps to EVERY request,
NOT
to the root url only.)
No. You're mistaking the default configuration for something that's
hard-coded. Out of the box, / is mapped to
What if I use a filter ?. I will map it like this
filter-mapping
filter-nameMappingFilter/filter-name
url-pattern//url-pattern
/filter-mapping
filter-mapping
filter-nameMappingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping
In filter
Millennium Research Informatics
-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 10:06 AM
To: Tomcat Users List
Subject: Re: Servlet mapping problem
What if I use a filter ?. I will map it like this
filter-mapping
filter
Anto Paul wrote:
Hi there,
I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.
rgds
Anto Paul
On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
Anto Paul wrote:
Hi all,
I am
Howdy,
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make a suggestion.
I have added a context in conf/Catalina/localhost/test.xml as follows:
Context path=/mywebapps docBase=/cs/home/jas/webapps
reloadable=true
autoDeploy=true/Context
In
Jason Keltz wrote:
Hi.
I am very troubled over a servlet mapping problem, and I am hoping that
someone can make a suggestion.
I have added a context in conf/Catalina/localhost/test.xml as follows:
Context block should be in conf/server.xml file.
Best
Bao
Context path=/mywebapps
Howdy,
Context block should be in conf/server.xml file.
It doesn't have to be, and with tomcat 5 that's actually discouraged.
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or
Thanks, Yoav.
Using localhost:8080/test works if the docBase in the context is defined
to include test. However, as you suggested, I'm trying to create a
directory with multiple webapps, and I want to have multiple directories
like this. For example:
/cs/home/jas/webapps1/app1
Howdy,
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
If I want multiple appBase directories for this host, can I define
multiple host lines, changing the appBase directive for each one?
Each host has one
There are 2 ways you can use wildcards in URL mappings:
1. /content/* - maps all URLs in the content directory to your servlet
2. *.vp - maps all URLs with a .vp extension to your servlet
You cannot mix these (/content/*.vp, for example)
The servlet specification discusses this. Look at section
This is basic stuff. It should work. What URL are you using to invoke the servlet?
With no mapping the URL would be http://server/servlet/warservlet. If your mapping is
url-pattern/blah/url-pattern
then the URL would be http://server/blah. Restart Tomcat to be sure your changes take
==
-Original Message-
From: Dave Ferguson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 12:11 PM
To: Tomcat Users List
Subject: Re: servlet-mapping problem
This is basic stuff. It should work. What URL are you using to invoke
Its a little clunky, but you could use your second 'foo' mapping, and then
have an index.htm that does a meta-refresh to redirect them to your servlet:
meta http-equiv=Refresh content=0; url=foo/
Not nice and invisible I know, but it'll work..
ian
- Original Message -
From: Scott
set the welcome file list element to the URL address you want to default to
Something like -
welcome-file-list
welcome-filepages/main.jsp/welcome-file
/welcome-file-list
This will default a user going to your context to the file pages/main.jsp -
Tomcat (4.1) has a few default context
servlet-mapping
servlet-nameMyServlet/servlet-name
url-patternindex.html/url-pattern
/servlet-mapping
I think you have to have an empty index.html file to convince the
welcome-list that its valid.
This will take all index.html files, so if you have other index.html files
in
From: Craig R. McClanahan [EMAIL PROTECTED]
On Fri, 21 Dec 2001, Scott Eade wrote:
Subject: servlet-mapping problem - tomcat 4.0.1
How do I default a user to my servlet without blocking access
to other directories? Using a default mapping of / results in
failure to gain access to
Here is an example of a Servlet and URL mapping
servlet
servlet-nameAServlet/servlet-name
servlet-classmy.package.AServlet/servlet-class
/servlet
servlet-mapping
url-pattern*.ase/url-pattern
servlet-nameAServlet/servlet-name
/servlet-mapping
The servlet mapping associates the
Hi,
servlet-mapping
url-pattern*.ase/url-pattern
servlet-nameAServlet/servlet-name
/servlet-mapping
Thanks for the response. I am trying to use:
/servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/doHello/url-pattern
Hi,
Ah oops further to previous reply, could it be because the url I am
trying to use:
http://domain/doHello
Is not even getting to tomcat, the url error is returned by apache. Is
this a configuration problem or is it because I am using mod_jk and apache?
I don't really want to pass
-
From: Paul Downs [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 1:14 PM
To: [EMAIL PROTECTED]
Subject: RE: servlet-mapping problem
Hi,
servlet-mapping
url-pattern*.ase/url-pattern
servlet-nameAServlet/servlet-name
/servlet-mapping
Thanks for the response. I am trying
On Fri, 14 Sep 2001, Paul Downs wrote:
Date: Fri, 14 Sep 2001 11:35:25 +0100
From: Paul Downs [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED],
Paul Downs [EMAIL PROTECTED]
To: tomcat [EMAIL PROTECTED]
Subject: servlet-mapping problem
Hi,
Still cannot use servlet-mapping and
Hi,
Got it working eventually by the way, for anyone that is interested.
This is using mod_jk to communicate with a tomcat that is *not* listening
on port 8080.
web.xml:
web-app
servlet
servlet-nameShoppingBasket/servlet-name
Stern Sons, Inc.
[EMAIL PROTECTED]
805-565-1411 PH * 805-565-8684 FAX
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject:Re: Servlet Mapping Problem -- ???
Hunter Hillegas wrote
ED]
Reply-To: [EMAIL PROTECTED]
Date: Fri, 9 Feb 2001 12:33:47 -0800
To: [EMAIL PROTECTED]
Subject: Re: Servlet Mapping Problem -- ???
Hunter Hillegas wrote:
I have a strange problem with Tomcat 3.2 that I can't figure out...
I have two servers, a development server and a product
Hunter Hillegas wrote:
I have a strange problem with Tomcat 3.2 that I can't figure out...
I have two servers, a development server and a production server. The
development server is working just fine. I have a servlet called
marketCustomerVendorController that is mapped to
Engineer / System Administrator - Jacob Stern Sons, Inc.
[EMAIL PROTECTED]
805-565-1411 PH * 805-565-8684 FAX
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject:Re: Servlet Mapping
Marco Leal wrote:
I don't know if this message got through the first time I sent it. If
you're seeing it again, I'm sorry.
Two questions:
* What version of Tomcat? If it's less than 3.2 you should upgrade.
* Are you running Tomcat stand-alone or behind a web server
like Apache. If it
57 matches
Mail list logo