RE: I need to configure logs on my virtual hosting

2004-12-30 Thread Goel, Manish Kumar
Hi,
 can any body help me this same thing not working on tomcat 5.0.19 version.

Manish


-Original Message-
From: Roberto Rios [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 4:03 PM
To: 'Amit Gupta'; 'Tomcat Users List'
Subject: RES: I need to configure logs on my virtual hosting


Hi,

Yes, you can.

Take a look at the admin context provided with tomcat (as an example):

Context path=/admin docBase=${catalina.home}/server/webapps/admin
debug=0 privileged=true

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_admin_log. suffix=.txt
  timestamp=true/

/Context

Bob

-Mensagem original-
De: Amit Gupta [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 30 de dezembro de 2004 02:33
Para: Tomcat Users List; [EMAIL PROTECTED]
Assunto: RE: I need to configure logs on my virtual hosting

Hi Bob,

I am using tomcat 5.0. I found that logger is used below tomcat 5.5.0.
Can I use logger in context.xml in mywebapp/META-INF/context.xml?


Amit Gupta
Mobile: 91-9818052171
Yahoo IM: amitguptainn
MSN IM : amitguptainn

-Original Message-
From: Roberto Rios [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 28, 2004 8:30 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: I need to configure logs on my virtual hosting

Hi,

Which tomcat version?

For tomcat 4.X put a LOGGER component inside the context and specify the
directory that you want. Take a look at
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html)

This procedure works with TC 5.0.X, but it's deprecated.

For TC 5.5, look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html.

Bob
-Mensagem original-
De: Amit Gupta [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 28 de dezembro de 2004 04:27
Para: Tomcat Users List
Assunto: I need to configure logs on my virtual hosting

Hi,



I need to configure logs on my virtual hosting. How can I do it? Till
now logs are created at global logs directory to which I don't have
access. I need logs in my webapps directory.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logger without timestamp not working

2004-12-23 Thread Goel, Manish Kumar
Tim Funk,

I tried it in  5.0.19 version it didn't work for me also
but document says it must work and the default value of timestamp is false and 
my other problem
with logger I have already posted it   didn't hear from any one abt. it


problem for creating the separate log file by Logger  .
 /for my application context in tomcat-5.0.19.
 that is working fine in tomcat 5.0.27!

 please help me what the settings are to be needed to make it
 out on tomcat 5.0.19 .
 is this bug  or AM I missing some thing

 sample of my context file which is under

 ..conf\Catalina\localhost\


 Context displayName=SMART debug=0 docBase=Smart path=/Smart

Logger className=org.apache.catalina.logger.FileLogger
  directory=webapps/smartlogs
 prefix=Smart_log. suffix=.txt
timestamp=true/
.
..

  Context/



any help regarding these pls.
thanx in advance

Manish





***
In


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 7:59 PM
To: Tomcat Users List
Subject: Re: Logger without timestamp not working


The loggers doesn't support the timestamp attribute, only the accessvalve
loggers do.

-Tim

Faine, Mark wrote:

 Tomcat 4.1.27

 I can't get Tomcat to not timestamp log files.  I've set the logger's
 timestamp attribute to false and still a timestamp is placed on the file.
 Is this a bug?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logger without timestamp not working

2004-12-23 Thread Goel, Manish Kumar
see the the Filelogger class under server\lib\catalina.jar
so you can do one thing write your own Filelogger class which is exactly same 
as Filelogger just copy it
and just remove the date from pathname definition inside the open method.
and just compile and use it as your own file logger.

cheers
Manish

 private void open()
{
File dir = new File(directory);
if(!dir.isAbsolute())
dir = new File(System.getProperty(catalina.base), directory);
dir.mkdirs();
try
{
String pathname = dir.getAbsolutePath() + File.separator + prefix + 
date + suffix;
writer = new PrintWriter(new FileWriter(pathname, true), true);
}
catch(IOException e)
{
writer = null;
}
}











extend fileLogger class which is in server\lib\catalina.jar

-Original Message-
From: Faine, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 10:49 PM
To: 'Tomcat Users List'
Subject: RE: Logger without timestamp not working


I hate to do it, considering all the work involved and the fact that I'll
have to ensure that it gets included in every installation of Tomcat from
here on out (until we get to 5.5) but I have little choice.  I can't believe
the option is not already a part of the FileLogger class.


-Mark


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 11:16 AM
To: Tomcat Users List
Subject: Re: Logger without timestamp not working


Yup. But is it really worth it? Logger is gone in 5.5 in place of
commons-logging.

-Tim

Faine, Mark wrote:

 So how would you suggest one get a log file without a timestamp
 appended to it?  Extend FileLogger?

 -Mark

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 23, 2004 10:48 AM
 To: Tomcat Users List
 Subject: Re: Logger without timestamp not working


 The timestamp attribute is a flag as to show or hide the timestamp
 when a
 message is logged in the file. It has nothing to do with the file name.

 -Tim

 Goel, Manish Kumar wrote:
 

Tim Funk,

I tried it in  5.0.19 version it didn't work for me also
but document says it must work and the default value of timestamp is
false

 and my other problem

with logger I have already posted it   didn't hear from any one abt.
it


problem for creating the separate log file by Logger  .  /for my
application context in tomcat-5.0.19.  that is working fine in tomcat
5.0.27!

 please help me what the settings are to be needed to make it out on
 tomcat 5.0.19 . is this bug  or AM I missing some thing

 sample of my context file which is under

 ..conf\Catalina\localhost\


 Context displayName=SMART debug=0 docBase=Smart path=/Smart

  Logger className=org.apache.catalina.logger.FileLogger
  directory=webapps/smartlogs  prefix=Smart_log.
suffix=.txt
timestamp=true/
  .
  ..

  Context/




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question on Database and struts

2004-12-23 Thread Goel, Manish Kumar
Hi Manisha,
this looks very simple thing in action class you can just set that array of 
databean in
request attribute and get it back on jsp
like:
req.setAttribute(databeanarray,databeanarray);


cheers
Manish

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Friday, December 24, 2004 9:40 AM
To: Tomcat Users List
Subject: RE: Newbie question on Database and struts


what i mean to array of databeans means -

I have created employee data bean and for each row of result set i am creating 
one object of bean.  So in a way i will get array of databeans.

regards
Manisha



John Najarian [EMAIL PROTECTED] wrote:
Hi Manisa,

I'm not sure what you mean by 'create array of databeans'. Your result
set contains multiple rows, your bean should be able to return the entire
result set. Why do you need an array of a bean?

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 7:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

I am new to struts (even new to java also)

I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.

I have created a databean for the results. But with result set - How to
create array of databeans ? and how to post it on JSP ?

if anybody can pass me the samples pls would be of great help

regards
Manisha






-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 All your favorites on one personal page - Try My Yahoo!
***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
Hi All,

problem for creating the separate log file by Logger  .  /for my 
application context in tomcat-5.0.19.
that is working fine in tomcat 5.0.27!

please help me what the settings are to be needed to make it out on tomcat 
5.0.19 .
is this bug  or AM I missing some thing

sample of my context file which is under

..conf\Catalina\localhost\


Context displayName=SMART debug=0 docBase=Smart path=/Smart

Logger className=org.apache.catalina.logger.FileLogger
 directory=webapps/smartlogs  prefix=Smart_log. 
suffix=.txt
timestamp=true/
.
..

 Context/

regards

Manish
***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
Thanx for replying,
but requirement is such that I have to use tomcat 5.0.19. it's impossible to 
port the project on other version of tomcat now.
any help regarding this pls.
thanx in advance
Manish

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 22, 2004 4:51 PM
To: Tomcat Users List
Subject: RE: log file by Logger . / for application context


Hi,

Don't use 5.0.19. Why do you want that?

Allistair.

 -Original Message-
 From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED]
 Sent: 22 December 2004 10:39
 To: Tomcat Users List
 Subject: log file by Logger . / for application context


 Hi All,

 problem for creating the separate log file by Logger  .
 /for my application context in tomcat-5.0.19.
 that is working fine in tomcat 5.0.27!

 please help me what the settings are to be needed to make it
 out on tomcat 5.0.19 .
 is this bug  or AM I missing some thing

 sample of my context file which is under

 ..conf\Catalina\localhost\


 Context displayName=SMART debug=0 docBase=Smart path=/Smart

   Logger className=org.apache.catalina.logger.FileLogger
  directory=webapps/smartlogs
 prefix=Smart_log. suffix=.txt
 timestamp=true/
   .
   ..

  Context/

 regards

 Manish
 **
 *
 Information contained in this email message is intended only
 for use of the
 individual or entity named above. If the reader of this
 message is not the
 intended recipient, or the employee or agent responsible to
 deliver it to
 the intended recipient, you are hereby notified that any
 dissemination,
 distribution or copying of this communication is strictly
 prohibited. If you
 have received this communication in error, please immediately
 notify the
 [EMAIL PROTECTED] and destroy the original message.
 **
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Want to know better way of deploying

2004-12-22 Thread Goel, Manish Kumar
Daniel,
On Linux running application are deleted it's not bug I guess.

Manish

-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 10:55 AM
To: Tomcat Users List
Subject: Re: Want to know better way of deploying


Manisha,

I have also had this occur when using Tomcat on Windows, but never with
Tomcat running on Linux.  Maybe this is a bug related to Tomcat on
Windows...  Are you using Windows?

Daniel
- Original Message -
From: Manisha Sathe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 22, 2004 10:21 PM
Subject: Want to know better way of deploying


I am using ant to create war file. Then i undeploy previous version and try
to deploy new version. But when i try to do this it says


 FAIL - War file strutstest.war already exists on server


 Inside /webapp - previous uploaded war file is still present. I can not
 delete just like that as it says sharing violation.

 So i need to stop Tomcat, delete /webapp/{my prev war file}. Then start
 the Tomcat again and deploy the new file.

 Is there any other soln ? so that w/o restarting my tomcat can i just
 deploy new version ?

 regards

 Manisha








 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: log file by Logger ..... / for application context

2004-12-22 Thread Goel, Manish Kumar
No one here have any Idea regarding my problem.

-Original Message-
From: Goel, Manish Kumar
Sent: Wednesday, December 22, 2004 4:58 PM
To: Tomcat Users List
Subject: RE: log file by Logger . / for application context


Thanx for replying,
but requirement is such that I have to use tomcat 5.0.19. it's impossible to 
port the project on other version of tomcat now.
any help regarding this pls.
thanx in advance
Manish

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 22, 2004 4:51 PM
To: Tomcat Users List
Subject: RE: log file by Logger . / for application context


Hi,

Don't use 5.0.19. Why do you want that?

Allistair.

 -Original Message-
 From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED]
 Sent: 22 December 2004 10:39
 To: Tomcat Users List
 Subject: log file by Logger . / for application context


 Hi All,

 problem for creating the separate log file by Logger  .
 /for my application context in tomcat-5.0.19.
 that is working fine in tomcat 5.0.27!

 please help me what the settings are to be needed to make it
 out on tomcat 5.0.19 .
 is this bug  or AM I missing some thing

 sample of my context file which is under

 ..conf\Catalina\localhost\


 Context displayName=SMART debug=0 docBase=Smart path=/Smart

   Logger className=org.apache.catalina.logger.FileLogger
  directory=webapps/smartlogs
 prefix=Smart_log. suffix=.txt
 timestamp=true/
   .
   ..

  Context/

 regards

 Manish
 **
 *
 Information contained in this email message is intended only
 for use of the
 individual or entity named above. If the reader of this
 message is not the
 intended recipient, or the employee or agent responsible to
 deliver it to
 the intended recipient, you are hereby notified that any
 dissemination,
 distribution or copying of this communication is strictly
 prohibited. If you
 have received this communication in error, please immediately
 notify the
 [EMAIL PROTECTED] and destroy the original message.
 **
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Want to know better way of deploying

2004-12-22 Thread Goel, Manish Kumar
Manisha,
you you neeed to change some setting in your server.xml in the Host element,
make these two attribute  true (unpackWARs  autoDeploy)

like this

Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


cheers
Manish

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Thu, 23 Dec 2004 07:50
To: Tomcat Users List
Subject: RE: Want to know better way of deploying


Thanks all. I am on Windows but Tomcat version is 5.0.  So meaning no other
solution ?

regards
Manisha



Abhay Hiwarkar [EMAIL PROTECTED] wrote: Manisha,

Earlier versions of Tomcat lock the file and you can not modify the same
while Tomcat is running. Which ver are you running?

Abhay



-Original Message-
From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED]
Sent: Thu, 23 Dec 2004 07:29
To: Tomcat Users List
Subject: RE: Want to know better way of deploying


Daniel,
On Linux running application are deleted it's not bug I guess.

Manish

-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 10:55 AM
To: Tomcat Users List
Subject: Re: Want to know better way of deploying


Manisha,

I have also had this occur when using Tomcat on Windows, but never with
Tomcat running on Linux. Maybe this is a bug related to Tomcat on
Windows... Are you using Windows?

Daniel
- Original Message -
From: Manisha Sathe
To:
Sent: Wednesday, December 22, 2004 10:21 PM
Subject: Want to know better way of deploying


I am using ant to create war file. Then i undeploy previous version and
try
to deploy new version. But when i try to do this it says


 FAIL - War file strutstest.war already exists on server


 Inside /webapp - previous uploaded war file is still present. I can
 not
 delete just like that as it says sharing violation.

 So i need to stop Tomcat, delete /webapp/{my prev war file}. Then
 start
 the Tomcat again and deploy the new file.

 Is there any other soln ? so that w/o restarting my tomcat can i just
 deploy new version ?

 regards

 Manisha








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 Send holiday email and support a worthy cause. Do good.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FORM based authentication config

2004-12-21 Thread Goel, Manish Kumar
Hi,
see this this might help you
http://www.webservertalk.com/message633890.html


cheers
Manish


-Original Message-
From: Chris Chappell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 21, 2004 7:45 PM
To: Tomcat Users List
Subject: FORM based authentication config


Hi I'm having trouble getting form based authentication to work. Any help much 
appreciated.
I'm missing something simple I'm sure. (TC 5.0.19, W2K, Mysql4)

I am using a JDBC Realm which works fine with BASIC auth.

After changing to FORM and try 
http://127.0.0.1:8080/MyApp/security/protected/login.jsp I get:
The requested resource (/MyApp/security/protected/login.jsp) is not available.

To set this up I copied the files from the JSP examples - login.jsp, error.jsp 
in folders \security\protected to \MyApp\security\protected\
I copied web.xml parts:

  servlet

servlet-nameorg.apache.jsp.security.protected_.error_jsp/servlet-name

servlet-classorg.apache.jsp.security.protected_.error_jsp/servlet-class
/servlet

servlet

servlet-nameorg.apache.jsp.security.protected_.index_jsp/servlet-name

servlet-classorg.apache.jsp.security.protected_.index_jsp/servlet-class
/servlet

servlet

servlet-nameorg.apache.jsp.security.protected_.login_jsp/servlet-name

servlet-classorg.apache.jsp.security.protected_.login_jsp/servlet-class
/servlet

  and mappings

servlet-mapping

servlet-nameorg.apache.jsp.security.protected_.error_jsp/servlet-name
url-pattern/security/protected/error.jsp/url-pattern
/servlet-mapping

servlet-mapping

servlet-nameorg.apache.jsp.security.protected_.index_jsp/servlet-name
url-pattern/security/protected/index.jsp/url-pattern
/servlet-mapping

servlet-mapping

servlet-nameorg.apache.jsp.security.protected_.login_jsp/servlet-name
url-pattern/security/protected/login.jsp/url-pattern
/servlet-mapping

with

security-constraint
web-resource-collection
  web-resource-nameCalendar/web-resource-name
  url-pattern/Calendar/url-pattern
  !-- ...more... --

/web-resource-collection

auth-constraint
  role-nameuser/role-name
  role-nameadmin/role-name
  role-namesysadmin/role-name
/auth-constraint
  /security-constraint

and configured

login-config
auth-methodFORM/auth-method
realm-nameMyApp/realm-name
form-login-page/security/protected/login.jsp/form-login-page
form-error-page/security/protected/error.jsp/form-error-page
  /login-config



Chris
***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to include web.xml in war file

2004-12-19 Thread Goel, Manish Kumar
for web.xml u need webxml attribute inside war tag like this:



war destfile=myapp.war webxml=src/metadata/myapp.xml
  fileset dir=src/html/myapp/
  fileset dir=src/jsp/myapp/
  lib dir=thirdparty/libs
exclude name=jdbc1.jar/
  /lib
  classes dir=build/main/
  zipfileset dir=src/graphics/images/gifs
  prefix=images/
/war

cheers
Manish










-Original Message-
From: Sann Maung [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 10:33 AM
To: [EMAIL PROTECTED]
Subject: how to include web.xml in war file


Hi,

I am using Ant to create the .war files for
deployment. But I noticed that inside the package,
web.xml is not included. Is it supposed to be that
way or am I missing some steps to create web.xml?



rgds,




__
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]