wolverine my wrote:
Hi!
May I know which specification that describe the web.xml contents?
Depends. Tomcat supports a few of the Servlet and JSP specs (maybe all
of them). You specify which one you're using in the web.xml itself. As
I recall, Servlets 2.3 has a DTD while Servlets 2.4 has
I have web.xml linked to the webapps/Root/WEB-INF folder in Tomcat but it
does not get recognized when I try to build a war file. The WAR file
process completes but I do not get a working war file. Any ideas?
Jun 30, 2006 9:01:48 AM org.apache.coyote.http11.Http11Protocol init
INFO
This may not be your problem, but I've seen the same missing web.xml problem
before when trying to deploy and startup after a failed undeploy. The undeploy
failed because one of my webapp files in the Tomcat directory was locked and
couldn't be deleted (either by me in a text editor, or sometimes
I'm not sure what webapps/Root/WEB-INF/web.xml has to do with anything,
but the complaint of a missing web.xml is in context /LoginAction, as
well as another more severe complaint about opening an input stream for
the validation rules xml file. Did you do a soft link or shortcut?
Don't think
We have multiple webapps running in a single Tomcat instance, and when
we need to upgrade a given webapp, we install a system down web.xml
that defines a null operation listener (we normally have one that
bootstraps the application, connects to databases, etc.) and maps
everything to a servlet
webapp, we install a system down web.xml
that defines a null operation listener (we normally have one that
bootstraps the application, connects to databases, etc.) and maps
everything to a servlet that displays an error message.
What we found is that if we stop/start or reload the webapp using
I'm having a problem with my server opening .eml files. (email files)
When trying to open them it just shows code and the email is imbedded
in it. Previously I have been able to add mime mappings in the web.xml
file to allow other types of files to be opened, but everything I try
isn't working
Hi,
Do you know of any issue involving error handling in tomcat (5.5.9) ?
Here's the deal. I defined in my web.xml the following entry
error-page
error-code404/error-code
location/portal.do/location
/error-page
When I call, say portal1.do, a page that doesn't exists I get a forward
:59 AM
To: users@tomcat.apache.org
Subject: Handling 404 thru web.xml
Hi,
Do you know of any issue involving error handling in tomcat (5.5.9) ?
Here's the deal. I defined in my web.xml the following entry
error-page
error-code404/error-code
location/portal.do/location
/error-page
When
Thanks Tim!
Yeah, that's pretty much what I figured out but is there a workaround for
that ?
MC
From: Tim Lucia [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: 'Tomcat Users List' users@tomcat.apache.org
Subject: RE: Handling 404 thru web.xml
Date: Wed, 10 May
=/NotFound type=org.apache.struts.actions.ForwardAction
parameter=home/
And then, in your web.xml, use /NotFound as the target of your error page.
At any rate, setting the 'redirect=true' attribute on the forward will
cause the struts controller to sendRedirect() instead of forward().
Tim
[EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: 'Tomcat Users List' users@tomcat.apache.org
Subject: RE: Handling 404 thru web.xml
Date: Wed, 10 May 2006 13:20:44 -0400
Workaround? You speak as if it is broken, when it is behaving as it
should.
If you look
: Handling 404 thru web.xml
Date: Wed, 10 May 2006 12:50:58 -0500
Tim I appreciate you're so prompt on this isssue.
If you look to the second stack trace I sent you'd see that none of my
filters are executed when the forward is happening.
I'm not keen at all for a redirect what I'd need is to have
David Smith wrote:
I would say no. This is an issue for build management, not tomcat. May
I suggest you put together a short script that explodes the war,
replaces the web.xml, and then re-zips the webapp back to a war. The
whole thing could easily be done with a shell script or batch file
Dear long time Tomcat operators,
I get new versions of a war file very often.
Due to authorization constrains I have to place
some extra security-constraints clauses into it
- every time I deploy a new version.
Is there a way to tell Tomcat to get the web.xml
from a different place than WEB
No. But if I were you - I would write an Ant task which
1) unpacked the war
2) copied the original web.xml to a backup name (for reference)
3) injected the security constraint
4) repackage the war
Or you can create a Valve which does the additional constraints.
-Tim
Rolf Schumacher wrote
I would say no. This is an issue for build management, not tomcat. May I
suggest you put together a short script that explodes the war, replaces
the web.xml, and then re-zips the webapp back to a war. The whole thing
could easily be done with a shell script or batch file - don't even
need
On 4/15/06, Evan J [EMAIL PROTECTED] wrote:
But again, ANY classes that does not have url mapping in
WEB-INF/web.xml, would not be autodeployed even if Tomcat server is
restarted. So once again, any class that has an existing url-mapping
in WEB-INF/web.xml, can be recompiled and autodeployed
On 4/15/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 4/15/06, Evan J [EMAIL PROTECTED] wrote:
But again, ANY classes that does not have url mapping in
WEB-INF/web.xml, would not be autodeployed even if Tomcat server is
restarted. So once again, any class that has an existing url-mapping
Hi.
I'm using 5.5.9 and have two contexts. One I'd like to use for production,
so I'd like to disable JSP checking by setting Tomcat's web.xml
development param for JspServlet to false. But the second context I'd
like to use the JSP checking because it's a customer staging area where I'd
like
Can you do this by running two Tomcat bases with one installation of Tomcat
home?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 2:05 PM
To: tomcat-user@jakarta.apache.org
Subject: development web.xml param set per context?
Hi.
I'm
.
I'll go studing how to write the filter class
I think that as you say the right way is to have at least one
role
mapped on
web.xml, forbid to delete it from database and ensure all user
have
this
rol.
So I can still use the yet configured container based
Hi!
When I startup Tomcat it says:
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/adss.licen
sing.core]
My web.xml is in WEB-INF folder.
What am I doing wrong??
Tanx!
Marisol.
-Mensaje original-
De: [EMAIL
{
.. programming stuff goes here ...
}
I would create this directory structure under C:\Apache Software
Foundation\Tomcat 5.5\webapps?
com/kilonovember
and place my compiled Monkey.class in kilonovember?
Next I would edit the web.xml file and add these elements?
servlet
servlet
{
.. programming stuff goes here ...
}
I would create this directory structure under C:\Apache Software Foundation\Tomcat
5.5\webapps?
com/kilonovember
and place my compiled Monkey.class in kilonovember?
Next I would edit the web.xml file and add these elements?
servlet
servlet-namemonkey
] - email
-Original Message-
From: David Smith [EMAIL PROTECTED]
Sent: Mon, 20 Mar 2006 10:28:29 -0500
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: What, exactly, is meant by full path when construction
web.xml entries
More like:
package
studing how to write the filter class
I think that as you say the right way is to have at least one role mapped on
web.xml, forbid to delete it from database and ensure all user have this
rol.
So I can still use the yet configured container based authentication.
Than check for permission in each
explain please?
Anyway thanks for accurate explication.
I'll go studing how to write the filter class
I think that as you say the right way is to have at least one role mapped on
web.xml, forbid to delete it from database and ensure all user have this
rol.
So I can still use the yet configured
on
web.xml, forbid to delete it from database and ensure all user have this
rol.
So I can still use the yet configured container based authentication.
Than check for permission in each page in the filter class, or, i was
thinking check it directly in the jsp.
I was thinking write a taglib to do
way is to have at least one role
mapped on
web.xml, forbid to delete it from database and ensure all user have
this
rol.
So I can still use the yet configured container based authentication.
Than check for permission in each page in the filter class, or, i was
thinking check
to write the filter class
I think that as you say the right way is to have at least one role
mapped on
web.xml, forbid to delete it from database and ensure all user have
this
rol.
So I can still use the yet configured container based authentication.
Than check for permission
Hi all!
In my application I need to define roles dynamically. I need to create and
delete roles and associate them to a permissions table.
I want the user authenticate with a form.
The problem is that in web.xml I have to define statically the role names.
This is the involved piece of my
application I need to define roles dynamically. I need to create and
delete roles and associate them to a permissions table.
I want the user authenticate with a form.
The problem is that in web.xml I have to define statically the role names.
This is the involved piece of my web.xml
security
I was hoping to get something else. Sure our sysadmin will enjoy to put
600 usernames in one line of /etc/groups (assuming HP-UX and NFS allows
it)...
Mark Thomas a écrit :
David Delbecq wrote:
*outch* This mean i will have to change my web.xml with future tomcat
version.
How do I allow
Hi there,
I've set up a basic web.xml file to test that my ssl connection is working fine
for the specified pages to be protected in this way and to test to see if my
custom 404 error page works fine.
I've got the certificate for my SSL page working fine and I've tested it
before, but since
this out everything works fine. Any ideas why?
Mark
- Original Message -
From: Mark Whitby [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 17, 2006 3:55 PM
Subject: Problems with web.xml file
Hi there,
I've set up a basic web.xml file
Ron Day
Is there a way to have autodeploy=true, but inhibit a redeploy when
only the web.xml is changed.
I'm using 5.0.28 not 5.5 so I do not have a context.xml file with
WatchedResources.
Thanks
Ron Day
-
To unsubscribe, e
Oops no it didn't, my mistake. The app now doesn't prompt for
authentication at all. Is there a way of getting it to work so that
the authentication is used but you don't have to hard code roles in
web.xml?
Regards,
Oliver
Begin forwarded message:
From: Oliver Kohll [EMAIL PROTECTED
*outch* This mean i will have to change my web.xml with future tomcat
version.
How do I allow access to a ressource to all authenticated users now?
Mark Thomas a écrit :
Oliver Kohll wrote:
Hi,
I have security for a web application managed by a DataSource database
realm. Using tomcat
Oliver Kohll wrote:
Oops no it didn't, my mistake. The app now doesn't prompt for
authentication at all. Is there a way of getting it to work so that the
authentication is used but you don't have to hard code roles in web.xml?
Make every user a member of the global role and use this role
David Delbecq wrote:
*outch* This mean i will have to change my web.xml with future tomcat
version.
How do I allow access to a ressource to all authenticated users now?
Create a global role. Assign all users to that role. Use the global
role rather than *.
Mark
Hi,
I have security for a web application managed by a DataSource
database realm. Using tomcat 5.5.14 this works fine but in 5.5.15
there seems to be a problem.
My application's web.xml contains
security-constraint
web-resource-collection
web-resource-nameportalBase
have to
use the wildcard.
The special role * means all roles specified in web.xml. It does not
mean all roles specified in the realm nor does it mean all
authenticated users.
The fix for 15570 was to correctly handle *. It used to be
interpreted as all authenticated users. It is now correctly
groups or just to single
users which I have in my JDBCRealm.
For the SUN Application Server, there seems to be a sperate deployment
descriptor (sun-web.xml) for this reason:
sun-web-app
context-root/theapp/context-root
security-role-mapping
role-nameADMIN/role-name
Tobias Illik wrote:
snip
How can I establish this link/mapping in Tomcat?
It has to be performed in web.xml
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Date: 2006/01/25 Wed AM 11:13:11 EST
To: Tomcat Users List users@tomcat.apache.org, 'Tomcat Users List'
users@tomcat.apache.org
CC: Alla Winter [EMAIL PROTECTED]
Subject: Re: Are servlet name and class name required in web.xml for tomcat
5.5
Please look into pre-compiling sources. You could look into -
http://tomcat.apache.org/tomcat-5.5-doc/appdev/build.xml.txt
and
http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt
When you pre-compile sources, it automatically generates a stub file that can
be copied into web.xml.
HTH
I had the same experience.
Just to illustrate here is my build target, quite straightforward:
target name=build-live-war
war
duplicate=preserve
destfile=${build.dir}/${liveWarName}.war
webxml=${basedir}/live-conf/web.xml
metainf dir=${basedir}/live-conf
Sigh :(
Gawd I hate changing Tomcat configurations, it always goes pearshaped.
Why does Tomcat say that there is no web.xml when it is in the war file when
I unzip it???
And how come the default behaviour is to show the contents of the hosts app
base ???
Tomcat 5.5.9 on FC2
partial
On 12/3/05, hv @ Fashion Content [EMAIL PROTECTED] wrote:
Why does Tomcat say that there is no web.xml when it is in the war file when
I unzip it???
partial server.xml:
Host name=.. appBase=fc_webapps unpackWARs=true
deployOnStartup=true autoDeploy=false xmlValidation=true
Have you always
Why does Tomcat say that there is no web.xml when it is in
the war file when I unzip it???
Is it inside WEB-INF (which must be in caps)?
It is generated by the Ant WAR task, so yes it is, and I verified it as
well. context.xml is in META-INF.
And how come the default behaviour is to show
Hi Henrik,
On 4 Dec 2005 at 3:33, hv @ Fashion Content wrote:
Sigh :(
Gawd I hate changing Tomcat configurations, it always goes pearshaped.
Why does Tomcat say that there is no web.xml when it is in the war
file when I unzip it???
And how come the default behaviour is to show
Thanks for the advice mate.
I did indeed have an empty Context tag. Changing it didn't make the Missing
application web.xml message go away though.
I guess I will have to upgrade to 5.5.12 tomorrow.
Rob Hills [EMAIL PROTECTED] skrev i en meddelelse
news:[EMAIL PROTECTED]
Hi Henrik,
On 4
Hi Henrik,
On 4 Dec 2005 at 4:38, hv @ Fashion Content wrote:
context.xml:
Context docBase=ROOT reloadable=true/Context
Where is this context.xml file located? The docBase attribute must
not be used unless the Context tag is inside server.xml or
conf/Catalina/host_name/app_name.xml;
Hello all. I hope your day is going well.
I need your help.
I cannot get a forms based login page to use SSL when I think I've setup
the web.xml correctly.
Why doesn't my login.jsp use HTTPS when tomcat is invoking it for
authorization? (more details at the bottom)
Here are the relevant
hope your day is going well.
I need your help.
I cannot get a forms based login page to use SSL when I think I've setup
the web.xml correctly.
Why doesn't my login.jsp use HTTPS when tomcat is invoking it for
authorization? (more details at the bottom)
Here are the relevant sections of my web.xml
wish to use a form based login.
-Dennis
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 10:34 AM
To: Tomcat Users List
Subject: Re: web.xml question
Security constraints are only imposed on the incoming URL.
Long story short - you'll need
, possibly masquerading the url or something?
Again not an expert, but something I have been interested in for some
time myself.
Dean 8-)
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 10:34 AM
To: Tomcat Users List
Subject: Re: web.xml question
I would bet they are not using security constraints as defined in web.xml. I
would bet they are using a 3rd party solution implemented as a Servlet Filter
or something application server specific to handle this login issue. Notice
they do not use JSESSIONID but something called BV_SessionID
in
web.xml. I would bet they are using a 3rd party solution implemented
as a Servlet Filter or something application server specific to handle
this login issue. Notice they do not use JSESSIONID but something
called BV_SessionID as parameter in the query string. A quick google
search seems to show
are mandatory attributes of the
Context element for Tomcat 5.0. From my experience, if I include
them in the Context element and deploy the WAR file on Tomcat 5.5
on Windows, I get my Missing application web.xml error.
However, to date, after much fiddling with the context.xml, I've not
been able
From: Rob Hills [mailto:[EMAIL PROTECTED]
Subject: Re: Missing application web.xml, using defaults only
- is this a Tomcat bug?
From the my reading of the Documentation, docBase and Path are
mandatory attributes of the Context element for Tomcat 5.0.
Check the 5.5 doc for Context:
http
Hi Chuck,
On 20 Oct 2005 at 8:44, Caldarale, Charles R wrote:
From: Rob Hills [mailto:[EMAIL PROTECTED]
Subject: Re: Missing application web.xml, using defaults only
- is this a Tomcat bug?
From the my reading of the Documentation, docBase and Path are
mandatory attributes
From: Developer Developer [mailto:[EMAIL PROTECTED]
Subject: Re: Problems with web.xml generated from RAD and
from Ecplise.
As far as my problem is concered, I solved it. Tomcat (5.5) does not
support 2.4 V of the servlet.
That's simply not true - Tomcat 5.5.x fully supports version 2.4
Developer Developer wrote:
As far as my problem is concered, I solved it. Tomcat (5.5) does not
support 2.4 V of the servlet.
That's simply not true. Whatever your RAD problem involved, that's
not part of it :-)
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive
on to use the 2.4 schema.
No idea how to convince it to do otherwise, though... seems like a bug to
me. If it's going to generate web.xml for you, it ought to know better
than
to mix and match versions.
--
Wendy Smoak
: Problems with web.xml generated from RAD and from Ecplise.
Hello All,
my web.xml generated from RAD does not work in the Web Sphere Application
Server, While the web.xml generated from ecplise 3.1 works fine.
I guess the problem lies somewhere in the header information.
These 3 lines are from
...
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
The first line says version 2.2 but then it goes on to use the 2.4 schema.
No idea how to convince it to do otherwise, though... seems like a bug to
me. If it's going to generate web.xml for you, it ought to know better than
to mix
601 - 668 of 668 matches
Mail list logo