Re: Specification of web.xml

2006-07-05 Thread David Durham
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

web.xml missing

2006-06-30 Thread carrie . latimer
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

RE: web.xml missing

2006-06-30 Thread Jay Burgess
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

Re: web.xml missing

2006-06-30 Thread David Smith
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

System down web.xml partially working when restart webapp via tomcat manager

2006-05-28 Thread David Wall
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

Re: System down web.xml partially working when restart webapp via tomcat manager

2006-05-28 Thread David Wall
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

changing web.xml to allow opening .eml files

2006-05-25 Thread Kaitee Fleck
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

Handling 404 thru web.xml

2006-05-10 Thread MC Moisei
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

RE: Handling 404 thru web.xml

2006-05-10 Thread Tim Lucia
: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

RE: Handling 404 thru web.xml

2006-05-10 Thread MC Moisei
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

RE: Handling 404 thru web.xml

2006-05-10 Thread Tim Lucia
=/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

RE: Handling 404 thru web.xml

2006-05-10 Thread MC Moisei
[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

RE: Handling 404 thru web.xml

2006-05-10 Thread MC Moisei
: 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

Re: what about a server specific web.xml tailoring?

2006-04-20 Thread Rolf Schumacher
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

what about a server specific web.xml tailoring?

2006-04-18 Thread Rolf Schumacher
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

Re: what about a server specific web.xml tailoring?

2006-04-18 Thread Tim Funk
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

Re: what about a server specific web.xml tailoring?

2006-04-18 Thread David Smith
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

Re: Autodeployment of web.xml Does Not Work

2006-04-15 Thread Wendy Smoak
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

Re: Autodeployment of web.xml Does Not Work

2006-04-15 Thread Evan J
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

development web.xml param set per context?

2006-03-30 Thread Bob_Savard
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

RE: development web.xml param set per context?

2006-03-30 Thread Farrow, Marc
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

Re: Dynamic roles web.xml

2006-03-27 Thread Alessandro Colantoni
. 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

Missing web.xml

2006-03-27 Thread Marisol Opreni
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

RE: Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread cknell
{ .. 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

Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread David Smith
{ .. 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

RE: Re: What, exactly, is meant by full path when construction web.xml entries

2006-03-20 Thread cknell
] - 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

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
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

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
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

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
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

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
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

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
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

Dynamic roles web.xml

2006-03-16 Thread Alessandro Colantoni
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

Re: Dynamic roles web.xml

2006-03-16 Thread Mark Lowe
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

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-17 Thread David Delbecq
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

Problems with web.xml file

2006-02-17 Thread Mark Whitby
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

Re: Problems with web.xml file

2006-02-17 Thread Dhaval Patel
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

autodeploy without monitoring web.xml changes in tomcat 5.0.28

2006-02-13 Thread Day, Ron
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

Fwd: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Oliver Kohll
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

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread David Delbecq
*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

Re: Fwd: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Mark Thomas
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

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-06 Thread Mark Thomas
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

auth-constraint in web.xml in tomcat 5.5.15

2006-02-03 Thread Oliver Kohll
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

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-03 Thread Mark Thomas
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

mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)

2006-02-01 Thread Tobias Illik
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

Re: mapping of web-app roles to principals authenticated against JDBCRealm (compared to security-role-mapping in sun-web.xml)

2006-02-01 Thread Mark Thomas
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]

Re: Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-25 Thread Warren Pace
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

Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-24 Thread vnug
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

Re: Missing application web.xml

2005-12-04 Thread hv @ Fashion Content
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

Missing application web.xml

2005-12-03 Thread hv @ Fashion Content
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

Re: Missing application web.xml

2005-12-03 Thread Wendy Smoak
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

Re: Missing application web.xml

2005-12-03 Thread hv @ Fashion Content
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

Re: Missing application web.xml

2005-12-03 Thread Rob Hills
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

Re: Missing application web.xml

2005-12-03 Thread hv @ Fashion Content
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

Re: Missing application web.xml

2005-12-03 Thread Rob Hills
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;

web.xml question

2005-11-29 Thread Klotz Jr, Dennis
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

Re: web.xml question

2005-11-29 Thread Tim Funk
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

RE: web.xml question

2005-11-29 Thread Klotz Jr, Dennis
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

RE: web.xml question

2005-11-29 Thread Dean Searle
, 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

Re: web.xml question

2005-11-29 Thread Tim Funk
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

Re: web.xml question

2005-11-29 Thread Robert Palmer
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

Re: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Rob Hills
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

RE: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Caldarale, Charles R
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

RE: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Rob Hills
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

RE: Problems with web.xml generated from RAD and from Ecplise.

2005-10-20 Thread Caldarale, Charles R
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

Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-20 Thread Hassan Schroeder
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

Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-19 Thread Frank W. Zammetti
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

RE: Problems with web.xml generated from RAD and from Ecplise.

2005-10-18 Thread Richard Mixon
: 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

Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-18 Thread Wendy Smoak
... 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

<    2   3   4   5   6   7