sun-web.xml file in Tomcat

2007-10-23 Thread Rob Tanner
a file called sun-web.xml in WEB-INF along with the standard web.xml. My question is: will this file which Tomcat doesn't know anything about cause any problems with Tomcat or will Tomcat simply ignore it? Thanks, Rob

Re: sun-web.xml file in Tomcat

2007-10-23 Thread Christopher Schultz
to get Glassfish to assign the correct context root I have included a file called sun-web.xml in WEB-INF along with the standard web.xml. My question is: will this file which Tomcat doesn't know anything about cause any problems with Tomcat or will Tomcat simply ignore it? Tomcat should ignore

Re: sun-web.xml file in Tomcat

2007-10-23 Thread Rob Tanner
in server.xml. In Glassfish, the default is the application name. In order to get Glassfish to assign the correct context root I have included a file called sun-web.xml in WEB-INF along with the standard web.xml. My question is: will this file which Tomcat doesn't know anything about cause any

RE: custom web.xml digester call

2007-10-18 Thread Auke Noppe
for the servlet asking for. So TC isn't able to allocate the serlet(of jsp)class requested. I want to solve this problem to initialize the web.xml by hand, so I can check whether the servlet classes are found and set. I hope I made things clear this way. And I sure hope you can give me some advice/help

custom web.xml digester call

2007-10-17 Thread Auke Noppe
Hi, Is it possible to call the digester of the web.xml by hand? Like you can override the createstartdigester method in catalina.java? Regards, Auke Noppe No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.13/1074

Re: custom web.xml digester call

2007-10-17 Thread Konstantin Kolinko
Is it possible to call the digester of the web.xml by hand? Hmm, I can imagine a couple of ways how I am able to call it, thus it is theoretically possible. Why do you need it? Do you need to go that way? See, that 1. You have not said about your reasons. 2. You have not said about your

Re: custom web.xml digester call

2007-10-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Auke, Auke Noppe wrote: Is it possible to call the digester of the web.xml by hand? Like you can override the createstartdigester method in catalina.java? If you need information from web.xml, you could always parse it yourself by hand or using

Re: custom web.xml digester call

2007-10-17 Thread Bill Barker
Auke Noppe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is it possible to call the digester of the web.xml by hand? Like you can override the createstartdigester method in catalina.java? As the other posters have said, it is difficult to see a use case

Re: custom web.xml digester call

2007-10-17 Thread Johnny Kewl
[EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 17, 2007 3:37 PM Subject: custom web.xml digester call Hi, Is it possible to call the digester of the web.xml by hand? Like you can override the createstartdigester method in catalina.java? Regards, It sounds like you doing

Re: If xerces is in WEB-INF/lib this is used for deployment/web.xml parsing on tomcat6 (bug or feature?)

2007-07-28 Thread Dan D.
- Original Message - From: Michael Wyraz [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, May 25, 2007 5:36 AM Subject: If xerces is in WEB-INF/lib this is used for deployment/web.xml parsing on tomcat6 (bug or feature?) Hi, today i played around with tomcat 6 (latest). I have

creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread pinky88
/ description The requested resource (/LoginApp-1.0-SNAPSHOT/) is not available. Apache Tomcat/5.5.23 my web.xml looks like this: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread pinky88
The requested resource (/LoginApp-1.0-SNAPSHOT/) is not available. Apache Tomcat/5.5.23 my web.xml looks like this: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread Ron Wheeler
-1.0-SNAPSHOT/ description The requested resource (/LoginApp-1.0-SNAPSHOT/) is not available. Apache Tomcat/5.5.23 my web.xml looks like this: ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread Markus Schönhaber
pinky88 wrote: [...] applicationWebConfig SEVERE: Parse error in application web.xml file at jndi:/localhost/LoginApp-1.0-SNAPSHOT/WEB-INF/web.xml org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. [...] applicationWebConfig SEVERE: Occurred

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread Gregor Schneider
SEVERE: Parse error in application web.xml file at that's your error, meaning you have an error in your web.xml if that's the one you posted previously: you missed the entry /web-app at the end. if you're using the standard-realm, you can lookup your passwords at $catalina_home/conf/tomcat

Re: creating jsp pages using tomcat, web.xml problems,i think! (beginner)

2007-07-18 Thread pinky88
Thanks very much everyone, including the missing /web-app solved the problem! sorry for not letting you all know sooner, had to attend to something! Thanks a million, Karen =) Gregor Schneider wrote: SEVERE: Parse error in application web.xml file at that's your error, meaning you have

RE: WEB.XML file parsing

2007-07-03 Thread Andrew Friebel
p_2_3.dtd); Thanks again for your assistance, it helped me greatly. Regards, Andrew -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 July 2007 1:48 PM To: users@tomcat.apache.org Subject: Re: WEB.XML file parsing Andrew Friebel [EMAIL PROTECTED] wrote

Re: WEB.XML file parsing

2007-07-02 Thread Johnny Kewl
check DTD, probably ok if all you doing is adding a few parameters. - Original Message - From: Andrew Friebel [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, July 02, 2007 3:42 AM Subject: WEB.XML file parsing I am having trouble parsing a web.xml file using SAX

RE: WEB.XML file parsing

2007-07-02 Thread Andrew Friebel
I apologise for my lack of information. What you have given me has helped, however a new issue has arisen from it. I did turn off validation as per the other suggestion from my post. This allowed me to parse the web.xml file, however, I still need to save the document declaration. When you

Re: WEB.XML file parsing

2007-07-02 Thread Bill Barker
the web.xml file, however, I still need to save the document declaration. When you turn off validation, I was unable to rebuild DTD reference. Just a note for others who are watching this post. I am running Java 1.6.0, and I am writing a standalone application. I have inserted the code snippet

WEB.XML file parsing

2007-07-01 Thread Andrew Friebel
I am having trouble parsing a web.xml file using SAX. The war file will deploy with no hassles, however, I am writing a local program that will allow me to change the web.xml file locally before distribution. My problem is the DTD definition in the web.xml file. I require the DTD file

Re: WEB.XML file parsing

2007-07-01 Thread Bill Barker
Andrew Friebel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having trouble parsing a web.xml file using SAX. The war file will deploy with no hassles, however, I am writing a local program that will allow me to change the web.xml file locally before distribution. My

Deploying single .war file for use by multiple contexts - how do i override web.xml

2007-06-24 Thread Steven Probetts
is we also want different data (particularly the security role data) in the different web.xml files but these are stuck in the .war file.So the question is:Can we use the context file to alter the security role data (or more accurately override it) in the web.xml file depending on which company

RE: Deploying single .war file for use by multiple contexts - how do i override web.xml

2007-06-24 Thread Caldarale, Charles R
From: Steven Probetts [mailto:[EMAIL PROTECTED] Subject: Deploying single .war file for use by multiple contexts - how do i override web.xml Can we use the context file to alter the security role data (or more accurately override it) in the web.xml http://web.xml/ file depending

Tomcat 6.0.13 issue with web.xml generated by Eclipse

2007-05-28 Thread Michael Hoffman
I allow Eclipse to generate and update my web.xml file for me as part of a dynamic web project. When it generates the web.xml, it uses project facets to add namespaces to my web.xml file as below: web:web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns

If xerces is in WEB-INF/lib this is used for deployment/web.xml parsing on tomcat6 (bug or feature?)

2007-05-25 Thread Michael Wyraz
Hi, today i played around with tomcat 6 (latest). I have an old webapp wich used Xerces 2.0.0. The Webapp deploys fine and runs without Problems until i try to reload the Context. In this case i get a NullpointerException fro xerces when it tries to load web.xml via JNDI. I played around

web.xml error-page

2007-05-23 Thread SiSi'mon
window if tomcat encounters any kind of exception thrown by org.apache.myfaces.* but I do not know how to use wildcards in the web.xml file for error pages. It seems like the error-page tag needs a fully qualified exception class and the following will not work. any ideas? error-page

Re: web.xml error-page

2007-05-23 Thread SiSi'mon
. There is no information in the log files etc. What I would like to do is to somehow print out a stack trace in the browser window if tomcat encounters any kind of exception thrown by org.apache.myfaces.* but I do not know how to use wildcards in the web.xml file for error pages. It seems like the error-page

Re: web.xml error-page

2007-05-23 Thread SiSi'mon
in the log files etc. What I would like to do is to somehow print out a stack trace in the browser window if tomcat encounters any kind of exception thrown by org.apache.myfaces.* but I do not know how to use wildcards in the web.xml file for error pages. It seems like the error-page tag needs

RE: Error allocating a servlet instance after editing web.xml.

2007-05-08 Thread Caldarale, Charles R
From: Riyaz Shaikh [mailto:[EMAIL PROTECTED] Subject: Error allocating a servlet instance after editing web.xml. Problem: If I make any change to my application's web.xml (even as small as a single space), I can't access any of Tomcat's pages/servlets. Is your editor generating UTF-16

Re: Error allocating a servlet instance after editing web.xml.

2007-05-07 Thread Riyaz Shaikh
. Thanks, Riyaz On 5/7/07, Martin Gainty [EMAIL PROTECTED] wrote: Please display the web.xml for the webapp M-- 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

RE: Basic Auth without web.xml security-constraint not working

2007-03-29 Thread Berglas, Anthony
of the world, and it just does not work for me at least. Pity, as not much more is needed. I could indeed scan web.xml given the inadequate API (rolesRequiredForUrl(), rolesForUser() etc.). (Scanning is possible but ugly -- needs duplication of URL pattern processing). But I prefer

Re: Basic Auth without web.xml security-constraint not working

2007-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Berglas, Anthony wrote: If you really want to hack around with authentication and authorization, check out securityfilter (http://securityfilter.sourrceforge.net). The code is portable across servlet containers, and especially across

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread org
in web.xml and then quickly add users to the role in tomcat-users.xml and have provided a few simple functions like isUserInRole, which for the simplest of web sites are not even needed. Its simple, easy, and probably good enough for most things a tomcat developer needs... very nice of them

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread David Delbecq
En l'instant précis du 27/03/07 02:22, Berglas, Anthony s'exprimait en ces termes: Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread Christopher Schultz
. 2. Grey out or not grey out the menu item for page P. Right, I understand. We only want to specify the fact that Role R is required for Page P ONCE. Declarations in web.xml handle 1. but not 2. This is because the servlet spec does not have any way to ask what roles will be required

Re: Basic Auth without web.xml security-constraint not working

2007-03-28 Thread Christopher Schultz
that. What you might want to parse is the authorization mapping, which usually resides in web.xml. The OP wants to put this somewhere else (not sure why) and then have Tomcat enforce it (which ain't gonna happen). If you writing code at this level forget about that config stuff. you

Re: Basic Auth without web.xml security-constraint not working

2007-03-27 Thread org
Subject: Basic Auth without web.xml security-constraint not working Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because it does not then recheck

Basic Auth without web.xml security-constraint not working

2007-03-26 Thread Berglas, Anthony
Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because it does not then recheck the header if request.isUserInRole(...) etc. are called. So

Re: Basic Auth without web.xml security-constraint not working

2007-03-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Berglas, Anthony wrote: Tomcat seems to only check the Authorization: headers if there is some security-constraint explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because

HTTP 400 error when deployment descriptor (web.xml) is used.

2007-03-12 Thread Rajendra Sakpal
Hi, I have created a web application that is running fine with the Invoker servlet settings enabled in the Tomcat 5.5\conf\web.xml. Next, I tried the following: 1. Added a web.xml in the WEB-INF directory of my application. 2. Re-started my server. 3. Attempted to access the homepage of my

Re: [OT] How to get hold of security information from web.xml

2007-03-06 Thread Peter Coppens
://www.nabble.com/How-to-get-hold-of-security-information-from-web.xml-tf3350216.html#a9328278 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

How to get hold of security information from web.xml

2007-03-05 Thread Peter Coppens
Gentlepeople, I am trying to add a bit of extra security at the application level. I would like to leverage the information that is defined in the security-constraint (et al) web.xml settings. I found the things I need in org.apache.catalina.deploy but I can not get bootstrapped from

Re: [OT] How to get hold of security information from web.xml

2007-03-05 Thread Peter Coppens
: Gentlepeople, I am trying to add a bit of extra security at the application level. I would like to leverage the information that is defined in the security-constraint (et al) web.xml settings. I found the things I need in org.apache.catalina.deploy but I can not get bootstrapped from

Re: [OT] How to get hold of security information from web.xml

2007-03-05 Thread Mark Thomas
Peter Coppens wrote: Works fine, but what worries me is that I have to make this a priviliged web app now and I am unclear as to what the consequences of that are. The Tomcat doc is fairly brief on the meaning of the privileged attribute of the context element so that did not reallly help.

Wrong schema declarations in example webapps and default web.xml tomcat 6.0.9?

2007-02-24 Thread Per Jonsson
I run java 6 on linux and is testing the tomcat 6.0.9 and discovered that the schema declarations for the examples/managers etc and (maybe) the default web.xml does not point to : http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd. The most of them point to http://java.sun.com/xml/ns/j2ee/web

Re: Wrong schema declarations in example webapps and default web.xml tomcat 6.0.9?

2007-02-24 Thread Mark Thomas
Per Jonsson wrote: I run java 6 on linux and is testing the tomcat 6.0.9 and discovered that the schema declarations for the examples/managers etc and (maybe) the default web.xml does not point to : http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd. The most of them point to http

Re: Wrong schema declarations in example webapps and default web.xml tomcat 6.0.9?

2007-02-24 Thread Mark Thomas
Per Jonsson wrote: Hi! Good, it's always nice to know your not stupid :-) What's the problem with the parser in java6? I know Java 1.5 has problems and I thought they were still there in 1.6 but that could be my poor memory as I get old ;). If you don't get errors with xml validation

Re: System property use in web.xml?

2007-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Bill Barker wrote: [EMAIL PROTECTED] wrote in message However, when I try to deploy this webapp to Websphere 6.0.x, even after defining a custom property for 'region' in the server profile, I get a: java.io.FileNotFoundException:

System property use in web.xml?

2007-02-21 Thread Martin . X . Zaidel
I've inherited a webapp which includes a system property reference (ie., region) in its web.xml (BTW, this context-param is used to lookup a Spring context file---e.g. /WEB-INF/jmsContext-eur.xml) context-param param-namecontextConfigLocation/param-name param-value

Re: System property use in web.xml?

2007-02-21 Thread Bill Barker
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've inherited a webapp which includes a system property reference (ie., region) in its web.xml (BTW, this context-param is used to lookup a Spring context file---e.g. /WEB-INF/jmsContext-eur.xml) context-param param

Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Bryan Basham
Hello, I am developing a system in which every webapp deployed to Tomcat uses JSF. So, I decided to move the common JSF configuration from each webapp/WEB-INF/web.xml into the TOMCAT/conf/web.xml file. At startup time everything looks fine. Here's an example of the output I see for each

RE: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Tim Lucia
Message- From: Bryan Basham [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 1:10 PM To: Tomcat Users List Subject: Configuring JSF in the TOMCAT/conf/web.xml for all webapps Hello, I am developing a system in which every webapp deployed to Tomcat uses JSF. So, I decided

Re: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Bryan Basham
JSF in the TOMCAT/conf/web.xml for all webapps Hello, I am developing a system in which every webapp deployed to Tomcat uses JSF. So, I decided to move the common JSF configuration from each webapp/WEB-INF/web.xml into the TOMCAT/conf/web.xml file. At startup time everything looks fine. Here's

RE: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Tim Lucia
-Original Message- From: Bryan Basham [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 3:52 PM To: Tomcat Users List Subject: Re: Configuring JSF in the TOMCAT/conf/web.xml for all webapps Hello Tim, OK, but if the JSF jar files are *only* in TOMCAT/common/lib

Re: Bypass web.xml declarative security (sort of)

2007-01-18 Thread John Caron
thank you, I will investigate securityfilter Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: Instead of declaring which URLs need to be secure in web.xml, I would like to determine this when the URL comes in, but then use Tomcat to deal

Bypass web.xml declarative security (sort of)

2007-01-17 Thread John Caron
Hello: Instead of declaring which URLs need to be secure in web.xml, I would like to determine this when the URL comes in, but then use Tomcat to deal with the authentication if it is needed. Can anyone give me any pointers on where to get started with that? thanks, John Caron

Re: Bypass web.xml declarative security (sort of)

2007-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: Instead of declaring which URLs need to be secure in web.xml, I would like to determine this when the URL comes in, but then use Tomcat to deal with the authentication if it is needed. Can anyone give me any pointers

Basic Auth without modification to web.xml?

2006-12-23 Thread Andreas Schildbach
Hi everyone, Is it possible with Tomcat to hide an application behind a Basic Authentication (or something similar), without modifying the web application itself (also not modifying web.xml)? I am thinking about adding a Valve or something to the context.xml. The content to be protected would

Re: Basic Auth without modification to web.xml?

2006-12-23 Thread Gregor Schneider
Yes, there is something similar: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html Take a look at RemoteAdressFilter and RemoteHostFilter. They grant access depending on the IP / adress. However, you will have to write your own filter to accomplish what you want. Taking a look ath the

Re: Basic Auth without modification to web.xml?

2006-12-23 Thread Leon Rosenberg
On 12/23/06, Gregor Schneider [EMAIL PROTECTED] wrote: Yes, there is something similar: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html Take a look at RemoteAdressFilter and RemoteHostFilter. They grant access depending on the IP / adress. However, you will have to write your own

Re: Basic Auth without modification to web.xml?

2006-12-23 Thread Martin Gainty
23, 2006 9:48 AM Subject: Re: Basic Auth without modification to web.xml? On 12/23/06, Gregor Schneider [EMAIL PROTECTED] wrote: Yes, there is something similar: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html Take a look at RemoteAdressFilter and RemoteHostFilter. They grant

Re: Basic Auth without modification to web.xml?

2006-12-23 Thread Andrew Miehs
application itself (also not modifying web.xml)? I am thinking about adding a Valve or something to the context.xml. The content to be protected would just be the whole application, and there is only one user/role needed that has access. Is there something like this possible

web.xml reload interval

2006-11-28 Thread Martin Grogan
Hi, I am developing web apps for tomcat 5.5.7 and changes are being made to servlets which are updated in real-time by Tomcat. The problem is there seems to be no way of predicting how long before changes to web.xml are picked up, i.e. if I add a new servlet. Sometimes it's immediate

Web.xml - mime-type definition for file without extension

2006-11-16 Thread Vincent Peytavin
Hello, Here is my situation: I have audio files that are not named foo.wav but foo. As a consequence, Tomcat does not define a content-type for these files as audio/x-wav since they are not matching with the extension .wav. Finally, they are not correctly interpreted by the client. I have

Re: web.xml error page redirect, Java EE 5

2006-10-24 Thread Jon Wingfield
() in Java EE 5. I have this situation: URL matches http://server/app/page-key-word-string These URLs generates 404 Tomcat error page, which redirects (according to web.xml settings) to redirectServlet, where I get the client URL by calling request.getRequestURL() and then I parse the page-key

Re: web.xml error page redirect, Java EE 5

2006-10-24 Thread Tomas Pop
have a problem with change of the method HttpServletRequest.getRequestURL() in Java EE 5. I have this situation: URL matches http://server/app/page-key-word-string These URLs generates 404 Tomcat error page, which redirects (according to web.xml settings) to redirectServlet, where I get the client

web.xml error page redirect, Java EE 5

2006-10-24 Thread Tomas Pop
Hello, I have a problem with change of the method HttpServletRequest.getRequestURL() in Java EE 5. I have this situation: URL matches http://server/app/page-key-word-string These URLs generates 404 Tomcat error page, which redirects (according to web.xml settings) to redirectServlet, where I

web.xml

2006-10-10 Thread Roberto Marra
Hi guys, I would like to find some documentation about the web.xml. I would like to understand all the directive like servlet or filter etc... I found some in the apache web site, but not all. Any suggestion pls cheers Roberto Marra

Re: web.xml

2006-10-10 Thread Dies Koper
. Regards, Dies Roberto Marra wrote: Hi guys, I would like to find some documentation about the web.xml. I would like to understand all the directive like servlet or filter etc... I found some in the apache web site, but not all. Any suggestion pls cheers Roberto Marra

Re: web.xml

2006-10-10 Thread Christopher Schultz
Dies and Roberto, I've actually found that the web.xml DTD itself is quite helpful. For instance: http://java.sun.com/dtd/web-app_2_3.dtd There are lots of comments in there that tell you what everything means. Note that you might have to pick a different version from the one shown above

Understanding of the security-role tag in the web.xml

2006-09-20 Thread Mike Keller
I am missing a key piece of information that I have not been able to find in the past few days of searching. How does the security-role and role-name tag work in relation to the auth-constraint and role-name tag? Do they have any relation? I am trying to change the security model of a

RE: Understanding of the security-role tag in the web.xml

2006-09-20 Thread Caldarale, Charles R
From: Mike Keller [mailto:[EMAIL PROTECTED] Subject: Understanding of the security-role tag in the web.xml How does the security-role and role-name tag work in relation to the auth-constraint and role-name tag? Do they have any relation? This seems to be explained in section 12

Re: Understanding of the security-role tag in the web.xml

2006-09-20 Thread Mike Keller
Chuck, Thank you for your quick response. I have looked at the section 12 specifically 12.3 and 12.4 but I must be missing something. I don't understand how the security-role tag is use full when you are already restricting a resource through the auth-constraint. Is this meant simply to give

RE: Understanding of the security-role tag in the web.xml

2006-09-20 Thread Caldarale, Charles R
From: Mike Keller [mailto:[EMAIL PROTECTED] Subject: Re: Understanding of the security-role tag in the web.xml I have looked at the section 12 specifically 12.3 and 12.4 but I must be missing something. Really have to read the whole section plus other bits and pieces of the spec to get

Re: HowTo question: Setting java system properties in web.xml?

2006-09-12 Thread Tim Funk
There is no way to do this in tomcat. The alternative is the link you provided http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc OR Use JNDI to do the lookup. You'll do this via *|*env-entry in web.xml Then this environment entry can be set in web.xml

web.xml vs context.xml - diff?

2006-09-12 Thread Jon Yeargers
(tomcat 5.x) Why are 'context.xml' and 'web.xml' bits stored in different files? What is the difference in their scope? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

RE: web.xml vs context.xml - diff?

2006-09-12 Thread Caldarale, Charles R
From: Jon Yeargers [mailto:[EMAIL PROTECTED] Subject: web.xml vs context.xml - diff? (tomcat 5.x) Why are 'context.xml' and 'web.xml' bits stored in different files? What is the difference in their scope? The web.xml location and content are defined by the servlet spec (which you

Re: Context and web.xml

2006-08-21 Thread Mark Thomas
MC Moisei wrote: Hi, I'm using tomcat for dev. My question is for a dev environment. I have context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there a way to specify what's the web.xml tomcat should use ? I use tomcat for dev but I target Weblogic for production

Re: Context and web.xml

2006-08-21 Thread MC Moisei
Any tips on the matter ? From: Mark Thomas [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Context and web.xml Date: Mon, 21 Aug 2006 07:27:32 -0400 MC Moisei wrote: Hi, I'm using tomcat for dev. My question

Re: Context and web.xml

2006-08-21 Thread Martin Gainty
so if you to start off in context.xml with a path specification Context path=/urlPath ... later on in web.xml you have defined the servlet-mapping as servlet-mapping servlet-nameurlPath/servlet-name url-pattern/servlet/urlPath/url-pattern /servlet-mapping you would

Re: Context and web.xml

2006-08-21 Thread MC Moisei
I'm looking to be able to tell context where is the web.xml. I have two web.xmls one for tomcat and one for weblogic. web_tc.xml web_wls.xml I want to tell tomcat to look into web_tc.xml From: Martin Gainty [EMAIL PROTECTED] Reply-To: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List

Context and web.xml

2006-08-20 Thread MC Moisei
Hi, I'm using tomcat for dev. My question is for a dev environment. I have context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there a way to specify what's the web.xml tomcat should use ? I use tomcat for dev but I target Weblogic for production and such feature would be quite

Re: Writing Web.xml Context.xml at Runtime

2006-08-19 Thread Renaud Waldura
I believe this is just what the Administration webapp does. Available at /admin on your default Tomcat install. - Original Message - From: Feris Thia [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, August 18, 2006 9:56 PM Subject: Writing Web.xml

Writing Web.xml Context.xml at Runtime

2006-08-18 Thread Feris Thia
Is it possible to change web.xml or context.xml entry at runtime ?? I need to write administration configuration for my web application that will change those xml's entries. Thanks before. -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688

Re: web.xml config

2006-08-17 Thread Renaud Waldura
It looks like the Tomcat Administration webapp lets you edit environment entries. That's a GUI. - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, August 16, 2006 8:40 PM Subject: Re: web.xml config Rob Elliott

web.xml config

2006-08-16 Thread Rob Elliott
Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally using a GUI? Thanks, Rob

How do I set up Embedded Tomcat to override the Security Constraints set in the web.xml file using the catalina.deploy.SecurityConstaint class?

2006-08-16 Thread Lisa Balducci
I am trying to override the web.xml SecurityConstraints using the Context addConstraint/removeConstraint methods. The context.xml contains the following element WatchedResourceWEB-INF/web.xml/WatchedResource I tried the following to override the SecurityConstraints: // adding

Re: web.xml config

2006-08-16 Thread zh rui
to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally using a GUI? Thanks, Rob. Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software

Re: web.xml config

2006-08-16 Thread Mark Thomas
Rob Elliott wrote: Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally

How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread Ach
I entered below section in my web.xml because of not repeating %@ taglib=blaBla in each jsf page: jsp-config taglib taglib-urihttp://java.sun.com/jsf/core/taglib-uri tablig-location/tld/myfaces_core.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jsf

Re: How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread David Smith
The taglib-location element is relative to the context as in /WEB-INF/tld/myfaces_core.tld --David Ach wrote: I entered below section in my web.xml because of not repeating %@ taglib=blaBla in each jsf page: jsp-config taglib taglib-urihttp://java.sun.com/jsf/core/taglib-uri

Re: How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread Ach
Thanks It works now. I have a syntax error in tags too! -- View this message in context: http://www.nabble.com/How-to-define-a-local-TLD-in-web.xml-%28DRY-principle%21%21%21%29-tf2077762.html#a5725676 Sent from the Tomcat - User forum at Nabble.com

Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread Harakiri
the web.xml - however the servlet is loaded AFTER the filter is initialized (even when no web page has been requested). Is there a better approach then using a init servlet ? The problem i currently have, is that im using a 3rd party Security Filter which has no knowledge of my application and relies

Re: Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread David Smith
to do this ? OR is it possible to somehow init some webapps params before the Filter is loaded ? I tried to use a Servlet and used the load-on-startup1/load-on-startup within the web.xml - however the servlet is loaded AFTER the filter is initialized (even when no web page has been requested

Re: Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread Harakiri
is loaded ? I tried to use a Servlet and used the load-on-startup1/load-on-startup within the web.xml - however the servlet is loaded AFTER the filter is initialized (even when no web page has been requested). Is there a better approach then using a init servlet ? The problem i currently

.tld files without web.xml

2006-07-27 Thread Marten Lehmann
no matching taglib-uri. The taglib uri must match a taglib-uri for a taglib specified in the web.xml or implicitly in a taglib.tld in the tag jar. The taglib contains the definition: urihttp://dev.test.de/test/uri so it should be fine. web.xml is defined with web-app version=2.4 ... so

Re: Specification of web.xml

2006-07-06 Thread Schalk Neethling
http://java.sun.com/dtd/web-app_2_3.dtd wolverine my wrote: Hi! May I know which specification that describe the web.xml contents? And where can we download it? - To start a new topic, e-mail: users@tomcat.apache.org

Specification of web.xml

2006-07-05 Thread wolverine my
Hi! May I know which specification that describe the web.xml contents? And where can we download it? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Specification of web.xml

2006-07-05 Thread Mark Thomas
wolverine my wrote: Hi! May I know which specification that describe the web.xml contents? And where can we download it? Depends on the version of Tomcat 3.x 2.2 4.x 2.3 5.x 2.4 All available from http://java.sun.com/products/servlet/reference/api/index.html Mark

<    1   2   3   4   5   6   7   >