redirect stdout on tomcat 5.5

2005-04-27 Thread Kanda Upendra

I am using Tomcat 5.5 and when I don't use the tomcat.exe, I can make it
write to the stdout log. How can I redirect stdout to a specific file.
Suggestions please.



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



authentication

2005-04-21 Thread Kanda Upendra

Hi,

   I'd like to exclude a few actions from authentication. Is there a
simple way to do this without having to put those actions in a new
namespace.

Here is a sample of my web.xml,

  security-constraint
web-resource-collection
web-resource-namefoodorigins/web-resource-name
url-pattern*.jsp/url-pattern
url-pattern*.action/url-pattern
/web-resource-collection
auth-constraint
role-nameFlowers User/role-name
role-nameMill User/role-name
/auth-constraint
/security-constraint






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



System property on Tomcat

2005-04-21 Thread Kanda Upendra
Hi,

 

   Could someone tell how to pass in a user defined system property to
Tomcat at statup?



Problems with DataSourceRealm Tomcat 5.5

2005-04-19 Thread Kanda Upendra

Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,

Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
 dataSourceName=jdbc/myDB
   userTable=users userNameCol=login userCredCol=password
   userRoleTable=user_roles roleNameCol=role_name /


Resource name=jdbc/myDB  auth=Container
type=javax.sql.DataSource
  maxActive=10 maxIdle=5 maxWait=100  username=myDB
password=myDB driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/myDB?autoReconnect=true/



I get this error Name jdbc not bound in this context. I tried moving
the Resource configuration under GlobalNamingResources in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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



RE: Problems with DataSourceRealm Tomcat 5.5

2005-04-19 Thread Kanda Upendra

Hi,

  Thanks for the quick response. I have the resource-ref defined in my 
web.xml and it still doesn't work.

Throws me the same error.

Name jdbc not bound in this context

Thanks

Upendra


-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: Problems with DataSourceRealm Tomcat 5.5
Importance: High

On the web.xml you have also to write down after ther welcome files:

resource-ref
res-ref-namejdbc/myDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth

-- optional.if you like --
res-sharing-scopeShareable/res-sharing-scope  
/resource-ref

Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,

Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
 dataSourceName=jdbc/myDB
   userTable=users userNameCol=login userCredCol=password
   userRoleTable=user_roles roleNameCol=role_name /


Resource name=jdbc/myDB  auth=Container
type=javax.sql.DataSource
  maxActive=10 maxIdle=5 maxWait=100  username=myDB
password=myDB driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/myDB?autoReconnect=true/



I get this error Name jdbc not bound in this context. I tried moving
the Resource configuration under GlobalNamingResources in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



-
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]



RE: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) list error in the Text body

2005-04-19 Thread Kanda Upendra

Hi

 Thanks for the suggestion. It works now. As Hassan had suggested, the resource 
params are listed as XML attributes in for Tomcat 5.5. 

Thanks again,

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 4:17 PM
To: Tomcat Users List
Subject: RE: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found 
word(s) list error in the Text body
Importance: High

This is my context.xml

?xml version=1.0 encoding=UTF-8?
Context docBase=C:\Apps\NB41\Registro path=/registry
  Logger className=org.apache.catalina.logger.FileLogger prefix=registry. 
suffix=.log timestamp=true/
  
  Resource name=jdbc/egistry scope=Shareable type=javax.sql.DataSource/
  ResourceParams name=jdbc/registry
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
!-- DBCP database connection settings --
parameter
  nameurl/name
  valuejdbc:sybase:Tds:172.16.19.11:5000/WEB/value
/parameter
parameter
  namedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value
/parameter
parameter
  nameusername/name
  valueWEB123/value
/parameter
parameter
  namepassword/name
  value456PASSW/value
/parameter
!-- DBCP connection pooling options --
parameter
  nameinitialSize/name
  value1/value
/parameter
parameter
  nameminIdle/name
  value1/value
/parameter
parameter
  namemaxActive/name
  value2/value
/parameter
parameter
  namemaxIdle/name
  value2/value
/parameter
parameter
  namemaxWait/name
  value3/value
/parameter
  /ResourceParams
  
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
WatchedResourceMETA-INF/context.xml/WatchedResource

/Context

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:57 a.m.
To: Tomcat Users List
Subject: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) 
list error in the Text body


Hi,

  Thanks for the quick response. I have the resource-ref defined in my 
web.xml and it still doesn't work.

Throws me the same error.

Name jdbc not bound in this context

Thanks

Upendra


-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: Problems with DataSourceRealm Tomcat 5.5
Importance: High

On the web.xml you have also to write down after ther welcome files:

resource-ref
res-ref-namejdbc/myDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth

-- optional.if you like --
res-sharing-scopeShareable/res-sharing-scope  
/resource-ref

Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,

Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
 dataSourceName=jdbc/myDB
   userTable=users userNameCol=login userCredCol=password
   userRoleTable=user_roles roleNameCol=role_name /


Resource name=jdbc/myDB  auth=Container
type=javax.sql.DataSource
  maxActive=10 maxIdle=5 maxWait=100  username=myDB
password=myDB driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/myDB?autoReconnect=true/



I get this error Name jdbc not bound in this context. I tried moving
the Resource configuration under GlobalNamingResources in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms