RE: Database connection pooling in Tomcat 5.5

2006-09-20 Thread Sameer Acharya
I have a datasource defined similar to yours I get this error when I try to use 

ds.getConnection(username, password);

but if I just use ds.getConnection(); it works fine.

-Sameer

Darren Hall [EMAIL PROTECTED] wrote: Is there any other information I can 
supply to help people help me
understand why I'm getting this error (below)?

 I've made some progress on this. I'm now receiving a SQLNestedException: 
 Cannot create PoolableConnectionFactory error when calling getConnection 
 on the DataSource object retrieved from my connection pool. Here is the 
 stack trace:

 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
 PoolableConnectionFactory (ORA-01017: invalid username/password; logon 
 denied)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e.java:855)
 at 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
 at 

org.federallabs.labs.LaboratorySearchAction.execute(LaboratorySearchAction.j
ava:99)
 


 You are likely connecting to the wrong catalog.  Is the pool parameter
 defaultCatalog set?

That's specified in my Context, correct? If so, then no, I don't have my
defaultCatalog parameter set.

Here is my context.xml file (comments removed, as well as domain uname and
passwd)


debug=5 reloadable=true crossContext=true


  type=javax.sql.DataSource 
driverClassName=oracle.jdbc.OracleDriver
  url=jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb
  username=(uname) password=(passwd) 
maxActive=20 maxIdle=10
  maxWait=-1 removeAbandoned=true 
moveAbandonedTimeout=180
  logAbandoned=true/ 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




All that is necessary for the triumph of evil is that good men do 
nothing. Edmund Burke

-Sameer

-
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

Restrict Session In One Browser!

2006-09-20 Thread Alexander Khoo
Dear users,
 
Can anyone help on restricting 1 session per browser? 
what we are trying to archieve here is when the users sucessfully login to our 
server  establish a session, we want that session to lock in that current 
browser  when another browser is open it show the previous login page again!!!
 
Please Help!!!
 
Regards,
Jujai

Precompiled JSPs after Tomcat restart

2006-09-20 Thread Frank Niedermann
Hello,

is it right that Tomcat stores all compiled JSP sites in
Tomcat5\work\Catalina\localhost\application\org\apache\jsp?

After a restart of Tomcat I still see all the .class files
in above mentioned directory, does that mean that these files
do not have to be compiled again at first access to them?

My application always seems to be slower after Tomcat restarts
so I'm wondering what reason this behavior could have?

Regards,
  Frank


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upgrade from 2000 to 2003; .NET2 ?

2006-09-20 Thread Piero Cavalieri
I have 1.2.15 working correctly on WindowsXP, and on another machine, 
Win2003 (and .NET1.1).
But I'm in trouble with a machine with Win2003 (IIS6) and .NET2 ( still 
jk1.2.15 and Tomcat 5.5.17). Randomly (often) I have from IIS a Bad 
Request resposne (and isapi_log doesn't log anything). The http header 
requests are correct.
In the past anyone wasn't able to help me, so now the question is: does 
anayone tested on Win2003 and .NET2 ?


Piero

Steven Bell ha scritto:
I use the redirector version 1.2.15 or 1.2.14,  with a binary 
installer (msi.)  1.2.18 does not appear to have a .msi installer yet.
I have Tomcat 5.5.17 running on several windows servers, some with IIS 
6, some with 5 and one with 5.1 (my windows xp system.) On all, I used 
the .msi installer.

I would recommend using 1.2.15 for ease of setup.

Here is a short guide to getting started.
First, download the msi package and run it. This will install the 
files, and make some necessary registry entries.

Then:
Steps in IIS (these steps are generally done for the default site by 
the installer.):
1a. Create a virtual directory called jakarta. Make sure it points to 
the bin directory from the install (typically this is x:\Program 
Files\Apache Software Foundation\Jakarta Isapi Redirector\bin)

2a. Add an ISAPI filter to the site.

Steps in the x:\Program Files\Apache Software Foundation\Jakarta Isapi 
Redirector\conf directory.
1b. Configure the worker files. (I can provide examples if you need 
some Windows specific)

2b. Configure the URIMap file. (Again I can provide examples.)

Steps to get everything working:
1c. Restart Tomcat (make sure that in server.xml you have uncommented 
the redirector connector, and specified a port (typically it points to 
8009). This port should be the same as the port for the worker in 
worker file in step 1b.

2c. Restart IIS Admin in Control Panel  Administration  Services.

You should now be able to browse over to any mapped url. I haven't 
tried to get the administration and manager web apps to work, figuring 
the less accessible they are the better off I am. Whenever you make a 
change to the files in 1b or 2b, you must restart IIS Admin (or world 
wide web publishing) for the changes to take effect.


In the system registry, HKey_Local_Machine\Software\Apache Software 
Foundation\Jakarta Isapi Redirector\1.0 there are several useful entries.
1. log_file - this key holds the file path to your log file. Very 
useful for tracking down why a redirect may not be working.
2. log_level - I set this to debug during setup and configuration. 
The most verbose output, the most detail. After everything is working, 
I change it to Info.

3. extension_uri, names the dll for redirection. I wouldn't change this.
4. worker_file, path to worker file. I wouldn't change this.
5. worker_mount_file, path to the URIMap file. I wouldn't change this.

I hope this helps out. If you have any questions, or would like to see 
some sample configs, please let me know I would be happy to share the 
information with you.


Steven.



Charles Morris wrote:

***
Your mail has been scanned by InterScan VirusWall.
***-***


Hi guys,
I am new to tomcat.

Trying to install TOMCAT 5.5.17 onto a Windows Server 2003 with Java
1.5.0_06 and a connector of 1.2.18.  We are using the Microsoft Web 
Services

(IIS 6.0).

Can't seem to find any complete installation instructions, specifically
regarding configuring the all the .properties and .xml files in the conf
directory as well as the registry.

I have been all over the apache web site and found some documentation 
but it

pertains to connector 2.0. the documentation talks about
isapi_redirector2.dll.  Some of the properties files were not 
included in

the download, just pathetic download.  I think I have all the pieces
downloaded now but I need some clear documentation about installing and
configuring it.

Any help would be appreciated.

--
Charles Morris
Programmer Analyst
Vertical Market Software
Pensacola, FL  32514
Phone: 850-476-0094





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Il contenuto di questo messaggio e' confidenziale e la lettura non
autorizzata dello stesso viola i diritti di privacy del mittente e del
destinatario.

Se avete ricevuto questo messaggio per errore siete pregati di
rimuoverlo dal Vostro sistema.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 

Re: Restrict Session In One Browser!

2006-09-20 Thread David Delbecq
Hi Alexander.
Because tomcat use a session cookie (JSESSIONID), the sessions are
already limited to one per browers, except if the user deactivate
cookie, in which case only the Url rewriting mecanism is used. In the
last mecanism, if the flow of page is interrupted (by accessing an url
not rewritted with session id), a new session will be created.
Anyway, nothing prevents user to start 2 Browsers.

Alexander Khoo a écrit :
 Dear users,
  
 Can anyone help on restricting 1 session per browser? 
 what we are trying to archieve here is when the users sucessfully login to 
 our server  establish a session, we want that session to lock in that 
 current browser  when another browser is open it show the previous login 
 page again!!!
  
 Please Help!!!
  
 Regards,
 Jujai
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Upgrade from 2000 to 2003; .NET2 ?

2006-09-20 Thread Piero Cavalieri
Maybe I found the problem.  IIS6 was in IIS5 isolation mode. Unchecking 
it, seems to be working !


Piero


Piero Cavalieri ha scritto:
I have 1.2.15 working correctly on WindowsXP, and on another machine, 
Win2003 (and .NET1.1).
But I'm in trouble with a machine with Win2003 (IIS6) and .NET2 ( 
still jk1.2.15 and Tomcat 5.5.17). Randomly (often) I have from IIS a 
Bad Request resposne (and isapi_log doesn't log anything). The http 
header requests are correct.
In the past anyone wasn't able to help me, so now the question is: 
does anayone tested on Win2003 and .NET2 ?


Piero

Steven Bell ha scritto:
I use the redirector version 1.2.15 or 1.2.14,  with a binary 
installer (msi.)  1.2.18 does not appear to have a .msi installer yet.
I have Tomcat 5.5.17 running on several windows servers, some with 
IIS 6, some with 5 and one with 5.1 (my windows xp system.) On all, I 
used the .msi installer.

I would recommend using 1.2.15 for ease of setup.

Here is a short guide to getting started.
First, download the msi package and run it. This will install the 
files, and make some necessary registry entries.

Then:
Steps in IIS (these steps are generally done for the default site by 
the installer.):
1a. Create a virtual directory called jakarta. Make sure it points to 
the bin directory from the install (typically this is x:\Program 
Files\Apache Software Foundation\Jakarta Isapi Redirector\bin)

2a. Add an ISAPI filter to the site.

Steps in the x:\Program Files\Apache Software Foundation\Jakarta 
Isapi Redirector\conf directory.
1b. Configure the worker files. (I can provide examples if you need 
some Windows specific)

2b. Configure the URIMap file. (Again I can provide examples.)

Steps to get everything working:
1c. Restart Tomcat (make sure that in server.xml you have uncommented 
the redirector connector, and specified a port (typically it points 
to 8009). This port should be the same as the port for the worker in 
worker file in step 1b.

2c. Restart IIS Admin in Control Panel  Administration  Services.

You should now be able to browse over to any mapped url. I haven't 
tried to get the administration and manager web apps to work, 
figuring the less accessible they are the better off I am. Whenever 
you make a change to the files in 1b or 2b, you must restart IIS 
Admin (or world wide web publishing) for the changes to take effect.


In the system registry, HKey_Local_Machine\Software\Apache Software 
Foundation\Jakarta Isapi Redirector\1.0 there are several useful 
entries.
1. log_file - this key holds the file path to your log file. Very 
useful for tracking down why a redirect may not be working.
2. log_level - I set this to debug during setup and configuration. 
The most verbose output, the most detail. After everything is 
working, I change it to Info.

3. extension_uri, names the dll for redirection. I wouldn't change this.
4. worker_file, path to worker file. I wouldn't change this.
5. worker_mount_file, path to the URIMap file. I wouldn't change this.

I hope this helps out. If you have any questions, or would like to 
see some sample configs, please let me know I would be happy to share 
the information with you.


Steven.



Charles Morris wrote:

***
Your mail has been scanned by InterScan VirusWall.
***-***


Hi guys,
I am new to tomcat.

Trying to install TOMCAT 5.5.17 onto a Windows Server 2003 with Java
1.5.0_06 and a connector of 1.2.18.  We are using the Microsoft Web 
Services

(IIS 6.0).

Can't seem to find any complete installation instructions, specifically
regarding configuring the all the .properties and .xml files in the 
conf

directory as well as the registry.

I have been all over the apache web site and found some 
documentation but it

pertains to connector 2.0. the documentation talks about
isapi_redirector2.dll.  Some of the properties files were not 
included in

the download, just pathetic download.  I think I have all the pieces
downloaded now but I need some clear documentation about installing and
configuring it.

Any help would be appreciated.

--
Charles Morris
Programmer Analyst
Vertical Market Software
Pensacola, FL  32514
Phone: 850-476-0094





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Il contenuto di questo messaggio e' confidenziale e la lettura non
autorizzata dello stesso viola i diritti di privacy del mittente e del
destinatario.

Se avete ricevuto questo messaggio per errore siete pregati di
rimuoverlo dal Vostro sistema.


LATEST mod_jk.dll

2006-09-20 Thread harish A.S.
hi,
  can any body get me the link where i can download the latest 
mod_jk.dll...i.e.tomcat 2.x.x compiled mod_jk.dll...ASAP
  thanks in advance
  regards
  harryy


-
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

Re: Restrict Session In One Browser!

2006-09-20 Thread Alexander Khoo
Hi,
 
Thanks for the answer! I have tried but the problem is when i sucessfully login 
in to the page  click CTRL N to open another browser  click refresh the 
previous screen appear.So i got 2 sucessfully login page now!  we are trying 
to lock the URL aswell from showing the jsessionid...for example:
 
1) http://www.abc.com/test/index.jsp;jsessionid12323213
 
to
 
2) http://www.abc.com/test/ (this also apply to other page within the same 
browser if user click)
 
Regards,
Alexander Khoo


 
- Original Message 
From: David Delbecq [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 4:40:47 PM
Subject: Re: Restrict Session In One Browser!


Hi Alexander.
Because tomcat use a session cookie (JSESSIONID), the sessions are
already limited to one per browers, except if the user deactivate
cookie, in which case only the Url rewriting mecanism is used. In the
last mecanism, if the flow of page is interrupted (by accessing an url
not rewritted with session id), a new session will be created.
Anyway, nothing prevents user to start 2 Browsers.

Alexander Khoo a écrit :
 Dear users,
  
 Can anyone help on restricting 1 session per browser? 
 what we are trying to archieve here is when the users sucessfully login to 
 our server  establish a session, we want that session to lock in that 
 current browser  when another browser is open it show the previous login 
 page again!!!
  
 Please Help!!!
  
 Regards,
 Jujai
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: LATEST mod_jk.dll

2006-09-20 Thread Rainer Jung

If you are willing to use the latest 1.2.19:

http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/binaries/

This one is not yet officially released. The release vote will start 
tomorrow, but until now no problems have beend found. So I'm confident, 
that it will get official in very few days.


Regards,

Rainer

harish A.S. wrote:

hi,
  can any body get me the link where i can download the latest 
mod_jk.dll...i.e.tomcat 2.x.x compiled mod_jk.dll...ASAP
  thanks in advance
  regards
  harryy


-
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Restrict Session In One Browser!

2006-09-20 Thread David Delbecq
Hi,
am not sure to understand you. Please provide more detailed information
about the case in which 2 browser windows get 2 logins. Provide the
exact steps you issue from the 'opening the first browser windows' to
'you have 2 different sessions'. At each step give us the url you are at
and whether or not there is a cookie set in browser.

Alexander Khoo a écrit :
 Hi,
  
 Thanks for the answer! I have tried but the problem is when i sucessfully 
 login in to the page  click CTRL N to open another browser  click refresh 
 the previous screen appear.So i got 2 sucessfully login page now!  we are 
 trying to lock the URL aswell from showing the jsessionid...for example:
  
 1) http://www.abc.com/test/index.jsp;jsessionid12323213
  
 to
  
 2) http://www.abc.com/test/ (this also apply to other page within the same 
 browser if user click)
  
 Regards,
 Alexander Khoo


  
 - Original Message 
 From: David Delbecq [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, September 20, 2006 4:40:47 PM
 Subject: Re: Restrict Session In One Browser!


 Hi Alexander.
 Because tomcat use a session cookie (JSESSIONID), the sessions are
 already limited to one per browers, except if the user deactivate
 cookie, in which case only the Url rewriting mecanism is used. In the
 last mecanism, if the flow of page is interrupted (by accessing an url
 not rewritted with session id), a new session will be created.
 Anyway, nothing prevents user to start 2 Browsers.

 Alexander Khoo a écrit :
   
 Dear users,
  
 Can anyone help on restricting 1 session per browser? 
 what we are trying to archieve here is when the users sucessfully login to 
 our server  establish a session, we want that session to lock in that 
 current browser  when another browser is open it show the previous login 
 page again!!!
  
 Please Help!!!
  
 Regards,
 Jujai
   
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Restrict Session In One Browser!

2006-09-20 Thread Alexander Khoo
Hi,
 
1) user access http://www.xyz.com  -login page appear  user key in username  
password
 
2) http://www.xyz.com/CheckRule.do  ( CheckRule.do is a action our programmer 
created to hide the jsessionid) -wellcome page show
 
3) http://www.xyz.com//MemberAgreeRule.do - member page show
 
4) click CTRL N or click FILE  NEW  WINDOWS  another browser with 
http://www.xyz.com/MemberAgreeRule.do link will show,in this stage the new 
browser will show Page Has Expire but when you click refresh the page is back 
into business again.
 
Regards,
Alexander Khoo


- Original Message 
From: David Delbecq [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 5:19:25 PM
Subject: Re: Restrict Session In One Browser!


Hi,
am not sure to understand you. Please provide more detailed information
about the case in which 2 browser windows get 2 logins. Provide the
exact steps you issue from the 'opening the first browser windows' to
'you have 2 different sessions'. At each step give us the url you are at
and whether or not there is a cookie set in browser.

Alexander Khoo a écrit :
 Hi,
  
 Thanks for the answer! I have tried but the problem is when i sucessfully 
 login in to the page  click CTRL N to open another browser  click refresh 
 the previous screen appear.So i got 2 sucessfully login page now!  we are 
 trying to lock the URL aswell from showing the jsessionid...for example:
  
 1) http://www.abc.com/test/index.jsp;jsessionid12323213
  
 to
  
 2) http://www.abc.com/test/ (this also apply to other page within the same 
 browser if user click)
  
 Regards,
 Alexander Khoo


  
 - Original Message 
 From: David Delbecq [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, September 20, 2006 4:40:47 PM
 Subject: Re: Restrict Session In One Browser!


 Hi Alexander.
 Because tomcat use a session cookie (JSESSIONID), the sessions are
 already limited to one per browers, except if the user deactivate
 cookie, in which case only the Url rewriting mecanism is used. In the
 last mecanism, if the flow of page is interrupted (by accessing an url
 not rewritted with session id), a new session will be created.
 Anyway, nothing prevents user to start 2 Browsers.

 Alexander Khoo a écrit :
   
 Dear users,
  
 Can anyone help on restricting 1 session per browser? 
 what we are trying to archieve here is when the users sucessfully login to 
 our server  establish a session, we want that session to lock in that 
 current browser  when another browser is open it show the previous login 
 page again!!!
  
 Please Help!!!
  
 Regards,
 Jujai
   
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Precompiled JSPs after Tomcat restart

2006-09-20 Thread Michael Zoller

Frank Niedermann wrote:

Hello,

is it right that Tomcat stores all compiled JSP sites in
Tomcat5\work\Catalina\localhost\application\org\apache\jsp?
  

yes.

After a restart of Tomcat I still see all the .class files
in above mentioned directory, does that mean that these files
do not have to be compiled again at first access to them?
  
Educated guess: The servlets/jsp still have to be executed. Once they 
are loaded into memory they will execute faster because caching 
mechanisms (harddisk and OS) apply.



Michael

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



session destroy

2006-09-20 Thread VINAYAK SHARMA
I am working on a webapplication  in which i need to destroy or invalidate the 
session of a logged in user from the application itself currently i am able 
to see the list of all the logged in users but when i go to logout user the one 
who 
is trying to remove others himself gets logged out . in short is it 
possible for a client sitting  to destroy the session running on 
a server

regards vinayak


-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW

Re: Restrict Session In One Browser!

2006-09-20 Thread Mark Thomas
Alexander Khoo wrote:
 Hi,
  
 1) user access http://www.xyz.com  -login page appear  user key in username 
  password
  
 2) http://www.xyz.com/CheckRule.do  ( CheckRule.do is a action our 
 programmer created to hide the jsessionid) -wellcome page show
  
 3) http://www.xyz.com//MemberAgreeRule.do - member page show
  
 4) click CTRL N or click FILE  NEW  WINDOWS  another browser with 
 http://www.xyz.com/MemberAgreeRule.do link will show,in this stage the new 
 browser will show Page Has Expire but when you click refresh the page is 
 back into business again.
  
 Regards,
 Alexander Khoo

spec-quote
SRV.7.7.3 Client Semantics
Due to the fact that cookies or SSL certificates are typically
controlled by the Web browser process and are not associated with any
particular window of the browser, requests from all windows of a
client application to a servlet container might be part of the same
session. For maximum portability, the Developer should always assume
that all windows of a client are participating in the same session.
/spec-quote

For what it is worth, depending on how you open IE it does, or doesn't
start a new process. If you get a new process, you should get a new
session. Use task manager, or similar, to monitor.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Precompiled JSPs after Tomcat restart

2006-09-20 Thread Santosh Puranshettiwar

Google for JSP lifycyle to know more.

Santosh.
Michael Zoller wrote:

Frank Niedermann wrote:

Hello,

is it right that Tomcat stores all compiled JSP sites in
Tomcat5\work\Catalina\localhost\application\org\apache\jsp?
  

yes.

After a restart of Tomcat I still see all the .class files
in above mentioned directory, does that mean that these files
do not have to be compiled again at first access to them?
  
Educated guess: The servlets/jsp still have to be executed. Once they 
are loaded into memory they will execute faster because caching 
mechanisms (harddisk and OS) apply.



Michael

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DefaultServlet (ContentRange, file download)

2006-09-20 Thread Michael Schick
We are using in our project Tomcat 5.0.x and have implemented a 
 file download servlet, which allows users to download certain binary 
 files. For security reasons, we did not want to enable directory listings
 and let Tomcat handle the file download.
 
 We have now the problem that we would like to allow downloads to resume
 and be smart as the DefaultServlet in Tomcat5.5.x which handles reumeable 
file downloads.
 
 I would like to know or receive a recommendation on the best way of using 
 the DefaultServlet implementation without enabling directory listings or 
 copying code from the DefaultServlet into our application.
 
 best regards,
 
 Michael





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



No Tomcat Restart

2006-09-20 Thread Stefan Negrea
Hello everybody, 

Is there a way to configure Tomcat to load filters
after changes without restarting Tomcat? Looked into
server.xml and modified few options but no luck.

Any help would be more than appreciated.

Thank you,
Stefan Negrea

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: No Tomcat Restart

2006-09-20 Thread Stefan Negrea
Hello everybody,

I am sure I forgot to mention a few things. I am using
Tomcat 5.5.17, the autodeploy function is enabled in
server.xml and the application is webapps/ROOT .

Thank you,
Stefan Negrea

--- Stefan Negrea [EMAIL PROTECTED] wrote:

 Hello everybody, 
 
 Is there a way to configure Tomcat to load filters
 after changes without restarting Tomcat? Looked into
 server.xml and modified few options but no luck.
 
 Any help would be more than appreciated.
 
 Thank you,
 Stefan Negrea
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reminder: Preparation for mod_jk release vote

2006-09-20 Thread Peter Rossbach

mod_jk 1.2.19

+1 works with MAC OSX :-)

Regards
Peter


Am 20.09.2006 um 14:17 schrieb Rainer Jung:


Hi,

I shortly want to remind everyone, that our release vote for mod_jk  
1.2.19 will start tomorrow.


So all users still have some time to give us positive or negative  
feedback on the release candidate. Until now, no issues have been  
found.


You can find 1.2.19 under:

http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/

Thanks for participation

Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Re: Connector Configuration attributes

2006-09-20 Thread Martin Gainty
William-

I think this is one of those situations where there is some amount of ambiguity 
one can read between the lines 

connectionTimeout
It has been my experience that a value of 0 is used to indicate either 'feature 
disabled' or 'value = infinite' ..(in this case we know the feature is infinite)

DisableUploadTimeout states
This flag allows the servlet container to use a different, longer connection 
timeout while a servlet is being executed, which in the end allows either the 
servlet a longer amount of time to complete its execution, or a longer timeout 
during data upload. If not specified, this attribute is set to false.

The way I interpret this is that while the servlet is active (i.e. process is 
running) ignore timeout (ignore connectionTimeout or any other Timeout 
parameter)
  while the servlet is uploading 
data (assuming a GET/POST/PUT or service call method has been activated) dont 
timeout

(ignore connectionTimeout or any other Timeout parameter)

Many Thanks for sharing your analysis on tracking down the deltas to make your 
situation operational

Martin--
*
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 this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: William Campillo [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, September 18, 2006 2:16 PM
Subject: Connector Configuration attributes


 
 
 
 
 I was having a problem uploading files to a Database via Java applications
 in Tomcat. I solved the problem by changing the connectionTimeout Connector
 configuration attribute to 6. But I have some questions:
   1) Is there a resource that provides more detail for Connector
   configuration attributes, like connectionTimeout, than the resources
   I've used (http://tomcat.apache.org/tomcat-5.5-doc/config/http.html and
   Apache Tomcat 5, Chopra, et.al.)?
   2) Assuming there's a tradeoff in modifying connectionTimeout (and that
   I might want to go greater than 6), what do I need to watch out for?
   3) Can I specify the behavior of the disableUploadTimeout configuration
   attribute?
 
   Read no further, or, here are the details of the issue, if you're
   interested:
 
   I am running Apache Tomcat v5.5.12 behind an Apache (v2) Reverse Proxy
   server. I'm also running a SunONE Application Server behind the same RP.
 
   Some of the Servlets/Applications on either Tomcat or SunONE have
   features to upload data into databases. When the data is sufficiently
   large (about 2.5MB), the upload fails and I get an error:
 
 Proxy Error
 
 
 The proxy server received an invalid response from an upstream
 server.
 
 
 The proxy server could not handle the request POST
 /pathSubmit.do.
 
 
 Reason: Error reading from remote server
 
 (Embedded image moved to file: pic22348.jpg)
 Apache/2.0.55 (Unix) Server at j2ee.test domain.com Port 80
 
   The RP intercepts any j2ee URL and redirects it to the proper
   server-port (tomcat or SunONE) based on the URI.
 
   The error occurs consistently at just over 30sec after initiating the
   upload.
   On my RP server, I tried modifying httpd.conf, putting the following
   into the Location Directive:
 SetEnv force-proxy-request-1.0 1
 SetEnv proxy-nokeepalive 1
 
 (this per http://httpd.apache.org/docs/2.0/mod/mod_proxy.html)
 
   Didn't work. Also tried putting those lines in the appropriate
   VirtualHost directive, instead. No good.
 
   I tried changing KeepAliveTimeout 15 to KeepAliveTimeout 60, no luck
   there either.
 
   References to the error I'm getting (through google and elsewhere) have
   not been particularly helpful.
 
   Finally, I focused on two attributes of the Connector configuration in
   server.xml: connectionTimeout and disableUploadTimeout. The former was
   set to 2 and the latter to true. Changing connectionTimeout to 0,
   or even to 6 solved the problem.
 
   Reference http://tomcat.apache.org/tomcat-5.5-doc/config/http.html shows
   the default value of  connectionTimeout is 6. Apache Tomcat 5,
   Chopra, et.al. shows it as either 2 or 6 depending on where you
   look. I assume that means that the value if not explicitly set is 6,
   but that the default file explicitly sets it at 2.  The
   disableUploadTimeout attribute is described on the above website thusly:
This flag allows the servlet container to use a different, longer
   connection timeout while a servlet is being executed, which in the end
   allows either the 

TOMCAT INSTANCES

2006-09-20 Thread harish A.S.
HI,
  I HAVE INSTALLED ONLY ONE TOMCAT SERVER...BUT I AM SUING 4 INSTANCES OF 
TOMCAT(IN THAT 4 ONLY ONE TOMCAT HAS BEEN INSTALLED-)
  IN THE 4 TOMCAT INSTANCES
  1 TOMCAT ACTS AS A LOAD BALANCER!
  AND THE OTHER 3 TOMCATS ACT AS CLUSTERS!
  I WANT TO START THESE 3 CLUSTERS CLUSTERS INDUVIGUALLY.I AM NOT USING 
LINUX..USING WINDOWS... HOW CAN I START THESE CLUSTERS..DO I NEED A BAT SCRIPT 
IF SO...WHERE CAN I FIND ONE?
  THANKS
   
   
  REGARDS
  HARRYY


-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.

Re: URL Redirection

2006-09-20 Thread Ashirvad Uniyal

Caldarale, Charles R wrote:
From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] 
Subject: URL Redirection


the problem is the client has to always type 
http://abc.com/Mondrian/index.jsp in the address bar, rather 
than typing only

http://abc.com/index.jsp.



Rename your application to ROOT (case sensitive).  Apps deployed as ROOT
become the default application.  Alternatively, you could have a
ROOT/index.jsp that forwards the request to the proper app name.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  

Hello,

Thanks for the early reply.

I renamed the application to ROOT and everything works fine except that 
all the images (gif)

have all together vanished, could you please suggest what the problem is ?

Please let me know if I need to submit further information.
Thanks and regards,
Ash

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL Redirection

2006-09-20 Thread Caldarale, Charles R
 From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] 
 Subject: Re: URL Redirection
 
 I renamed the application to ROOT and everything works fine 
 except that all the images (gif) have all together vanished

How are you referencing the images?  Do you have a hard-coded URL in the
generated HTML?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL Redirection

2006-09-20 Thread David Smith
Look at the paths to your gif files in the browser.  I suspect the paths 
were hard coded to the /Mondrian context.


--David

Ashirvad Uniyal wrote:

Caldarale, Charles R wrote:
From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: URL 
Redirection


the problem is the client has to always type 
http://abc.com/Mondrian/index.jsp in the address bar, rather than 
typing only

http://abc.com/index.jsp.



Rename your application to ROOT (case sensitive).  Apps deployed as ROOT
become the default application.  Alternatively, you could have a
ROOT/index.jsp that forwards the request to the proper app name.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  

Hello,

Thanks for the early reply.

I renamed the application to ROOT and everything works fine except 
that all the images (gif)
have all together vanished, could you please suggest what the problem 
is ?


Please let me know if I need to submit further information.
Thanks and regards,
Ash

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Load WARs Via The Manager App

2006-09-20 Thread ScottAnders
Hi All,

I have some questions about deploying WARs using Tomcat's built in
manager.  It seems that some of the times when we use the manager via a
web browser to deploy a new WAR file it will only partially install.
Meaning that the manager will return a list of the installed
applications and it will show our new application installed but the
'Display Name' is blank, even though there is a Display Name set in the
application's web.xml.  Also, at this point, if I try to hit the
application it will return an error and if I go and look at the expanded
WAR on the file system it will be missing files.  If I then undeploy and
reploy the same WAR it will usually get installed correctly, though I've
had times where I've had to reinstall again to get everything done
correctly.  Does anyone know why this is?  Or, does anyone have a better
way if deploying applications?  What are the recommendations for
deployment in production environments?

My guess is that Tomcat is trying to deploy the WAR file before it's
fully been copied over.  In our server.xml we have autoDeploy set to
true (as well as unpackWARs)

Here's a run down of our environment:
Our dev and test boxes are Suse Linux 8 (2.4 kernel, I know, we're
working towards upgrading to the 2.6 kernel) with Apache 2.0.55 talking
to Tomcat 5.5.9 via mod_jk 1.2.12.  I should note that when I'm using
the manager, I bypass Apache and mod_jk and go directly to tomcat via
the 8080 port.

Our production environment is Suse Linux 8 with two apaches talking to
two clustered tomcats via mod_jk.  All versions are the same as
dev/test.  

Thanks,

Scott


Re: Load WARs Via The Manager App

2006-09-20 Thread Martin Gainty
I know you cant deploy a webapp (when there are active sessions on the original 
webapp)
so If you stop the webapp
then re-deploy the webapp
you should be abe to redeploy correctly
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 this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 11:28 AM
Subject: Load WARs Via The Manager App


Hi All,

I have some questions about deploying WARs using Tomcat's built in
manager.  It seems that some of the times when we use the manager via a
web browser to deploy a new WAR file it will only partially install.
Meaning that the manager will return a list of the installed
applications and it will show our new application installed but the
'Display Name' is blank, even though there is a Display Name set in the
application's web.xml.  Also, at this point, if I try to hit the
application it will return an error and if I go and look at the expanded
WAR on the file system it will be missing files.  If I then undeploy and
reploy the same WAR it will usually get installed correctly, though I've
had times where I've had to reinstall again to get everything done
correctly.  Does anyone know why this is?  Or, does anyone have a better
way if deploying applications?  What are the recommendations for
deployment in production environments?

My guess is that Tomcat is trying to deploy the WAR file before it's
fully been copied over.  In our server.xml we have autoDeploy set to
true (as well as unpackWARs)

Here's a run down of our environment:
Our dev and test boxes are Suse Linux 8 (2.4 kernel, I know, we're
working towards upgrading to the 2.6 kernel) with Apache 2.0.55 talking
to Tomcat 5.5.9 via mod_jk 1.2.12.  I should note that when I'm using
the manager, I bypass Apache and mod_jk and go directly to tomcat via
the 8080 port.

Our production environment is Suse Linux 8 with two apaches talking to
two clustered tomcats via mod_jk.  All versions are the same as
dev/test.  

Thanks,

Scott


Re: No Tomcat Restart - Solved

2006-09-20 Thread Stefan Negrea
Hello everybody,

Got the problem solved. I think I had the context
setup wrong. Setting reloadable to true in
Host-Context solved my problem.

Thank you,
Stefan Negrea

--- Stefan Negrea [EMAIL PROTECTED] wrote:

 Hello everybody,
 
 I am sure I forgot to mention a few things. I am
 using
 Tomcat 5.5.17, the autodeploy function is enabled in
 server.xml and the application is webapps/ROOT .
 
 Thank you,
 Stefan Negrea
 
 --- Stefan Negrea [EMAIL PROTECTED] wrote:
 
  Hello everybody, 
  
  Is there a way to configure Tomcat to load filters
  after changes without restarting Tomcat? Looked
 into
  server.xml and modified few options but no luck.
  
  Any help would be more than appreciated.
  
  Thank you,
  Stefan Negrea
  
 

-
  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log Independent

2006-09-20 Thread Paulo Cheque

Is possible to configure a log system that log only my messages, i.e,
without Tomcat messages?

For example:

- I don't want this in my log:

20/09/2006 12:40:35 my.application myMethod
INFO: My Message

- I don't want this in my log:
20/09/2006 12:40:35 org.apache.catalina.startup.Catalina start
INFO: Server startup in 8813 ms

Thanks in advance
Paulo

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load WARs Via The Manager App

2006-09-20 Thread ScottAnders
Yeah I stop the webapp and undeploy it before doing the redeploy so I
don't think this is the issue.  Unless the sessions are still persistent
even after I've undeployed, which I don't think is the case. 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 20, 2006 9:37 AM
To: Tomcat Users List
Subject: Re: Load WARs Via The Manager App

I know you cant deploy a webapp (when there are active sessions on the
original webapp)
so If you stop the webapp
then re-deploy the webapp
you should be abe to redeploy correctly
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 this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 11:28 AM
Subject: Load WARs Via The Manager App


Hi All,

I have some questions about deploying WARs using Tomcat's built in
manager.  It seems that some of the times when we use the manager via a
web browser to deploy a new WAR file it will only partially install.
Meaning that the manager will return a list of the installed
applications and it will show our new application installed but the
'Display Name' is blank, even though there is a Display Name set in the
application's web.xml.  Also, at this point, if I try to hit the
application it will return an error and if I go and look at the expanded
WAR on the file system it will be missing files.  If I then undeploy and
reploy the same WAR it will usually get installed correctly, though I've
had times where I've had to reinstall again to get everything done
correctly.  Does anyone know why this is?  Or, does anyone have a better
way if deploying applications?  What are the recommendations for
deployment in production environments?

My guess is that Tomcat is trying to deploy the WAR file before it's
fully been copied over.  In our server.xml we have autoDeploy set to
true (as well as unpackWARs)

Here's a run down of our environment:
Our dev and test boxes are Suse Linux 8 (2.4 kernel, I know, we're
working towards upgrading to the 2.6 kernel) with Apache 2.0.55 talking
to Tomcat 5.5.9 via mod_jk 1.2.12.  I should note that when I'm using
the manager, I bypass Apache and mod_jk and go directly to tomcat via
the 8080 port.

Our production environment is Suse Linux 8 with two apaches talking to
two clustered tomcats via mod_jk.  All versions are the same as
dev/test.  

Thanks,

Scott

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log Independent

2006-09-20 Thread Martin Gainty
%TOMCAT_HOME%/conf/logging.properties

# Provides extra control for each logger.

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = 
SEVERE|INFO

change from 'INFO' to 'SEVERE'

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 this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Paulo Cheque [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 11:45 AM
Subject: Log Independent


 Is possible to configure a log system that log only my messages, i.e,
 without Tomcat messages?
 
 For example:
 
 - I don't want this in my log:
 
 20/09/2006 12:40:35 my.application myMethod
 INFO: My Message
 
 - I don't want this in my log:
 20/09/2006 12:40:35 org.apache.catalina.startup.Catalina start
 INFO: Server startup in 8813 ms
 
 Thanks in advance
 Paulo
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Re: Upgrade from 2000 to 2003; .NET2 ?

2006-09-20 Thread sfbell
I haven't done any specific testing, however I am running one of my servers 
with .Net 1.1 and .Net 2 (two application pools) along with Tomcat. 

What are you doing with the .Net page to Tomcat? Maybe I can put together a 
simple/similar example and test it out.


I have 1.2.15 working correctly on WindowsXP, and on another machine, 
Win2003 (and .NET1.1).
But I'm in trouble with a machine with Win2003 (IIS6) and .NET2 ( still 
jk1.2.15 and Tomcat 5.5.17). Randomly (often) I have from IIS a Bad 
Request resposne (and isapi_log doesn't log anything). The http header 
requests are correct.
In the past anyone wasn't able to help me, so now the question is: does 
anayone tested on Win2003 and .NET2 ?

Piero

Steven Bell ha scritto:
 I use the redirector version 1.2.15 or 1.2.14,  with a binary 
 installer (msi.)  1.2.18 does not appear to have a .msi installer yet.
 I have Tomcat 5.5.17 running on several windows servers, some with IIS 
 6, some with 5 and one with 5.1 (my windows xp system.) On all, I used 
 the .msi installer.
 I would recommend using 1.2.15 for ease of setup.

 Here is a short guide to getting started.
 First, download the msi package and run it. This will install the 
 files, and make some necessary registry entries.
 Then:
 Steps in IIS (these steps are generally done for the default site by 
 the installer.):
 1a. Create a virtual directory called jakarta. Make sure it points to 
 the bin directory from the install (typically this is x:\Program 
 Files\Apache Software Foundation\Jakarta Isapi Redirector\bin)
 2a. Add an ISAPI filter to the site.

 Steps in the x:\Program Files\Apache Software Foundation\Jakarta Isapi 
 Redirector\conf directory.
 1b. Configure the worker files. (I can provide examples if you need 
 some Windows specific)
 2b. Configure the URIMap file. (Again I can provide examples.)

 Steps to get everything working:
 1c. Restart Tomcat (make sure that in server.xml you have uncommented 
 the redirector connector, and specified a port (typically it points to 
 8009). This port should be the same as the port for the worker in 
 worker file in step 1b.
 2c. Restart IIS Admin in Control Panel  Administration  Services.

 You should now be able to browse over to any mapped url. I haven't 
 tried to get the administration and manager web apps to work, figuring 
 the less accessible they are the better off I am. Whenever you make a 
 change to the files in 1b or 2b, you must restart IIS Admin (or world 
 wide web publishing) for the changes to take effect.

 In the system registry, HKey_Local_Machine\Software\Apache Software 
 Foundation\Jakarta Isapi Redirector\1.0 there are several useful entries.
 1. log_file - this key holds the file path to your log file. Very 
 useful for tracking down why a redirect may not be working.
 2. log_level - I set this to debug during setup and configuration. 
 The most verbose output, the most detail. After everything is working, 
 I change it to Info.
 3. extension_uri, names the dll for redirection. I wouldn't change this.
 4. worker_file, path to worker file. I wouldn't change this.
 5. worker_mount_file, path to the URIMap file. I wouldn't change this.

 I hope this helps out. If you have any questions, or would like to see 
 some sample configs, please let me know I would be happy to share the 
 information with you.

 Steven.



 Charles Morris wrote:
 ***
 Your mail has been scanned by InterScan VirusWall.
 ***-***


 Hi guys,
 I am new to tomcat.

 Trying to install TOMCAT 5.5.17 onto a Windows Server 2003 with Java
 1.5.0_06 and a connector of 1.2.18.  We are using the Microsoft Web 
 Services
 (IIS 6.0).

 Can't seem to find any complete installation instructions, specifically
 regarding configuring the all the .properties and .xml files in the conf
 directory as well as the registry.

 I have been all over the apache web site and found some documentation 
 but it
 pertains to connector 2.0. the documentation talks about
 isapi_redirector2.dll.  Some of the properties files were not 
 included in
 the download, just pathetic download.  I think I have all the pieces
 downloaded now but I need some clear documentation about installing and
 configuring it.

 Any help would be appreciated.

 --
 Charles Morris
 Programmer Analyst
 Vertical Market Software
 Pensacola, FL  32514
 Phone: 850-476-0094





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Il contenuto di questo messaggio e' confidenziale e la lettura non
autorizzata dello stesso viola i diritti di privacy 

RE: Log Independent

2006-09-20 Thread Caldarale, Charles R
 From: Paulo Cheque [EMAIL PROTECTED]
 Subject: Log Independent
 
 Is possible to configure a log system that log only my 
 messages, i.e, without Tomcat messages?

Have you read the doc and the logging entry in the FAQ?

http://tomcat.apache.org/tomcat-5.5-doc/logging.html
http://tomcat.apache.org/faq/logging.html

You can configure your application logs entirely independently of the
Tomcat logs.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error untarring jakarta-tomcat-5.0.28.tar.gz with GNU tar 1.15

2006-09-20 Thread David Squire
Hi all,

I have just downloaded jakarta-tomcat-5.0.28.tar.gz from
http://tomcat.apache.org/download-55.cgi#5.0.28. I checked the md5
signature, and all was well. (NB. I need to use this version rather than
5.5, since that is what is on the machine I am targeting and I can't
change that at present).

I tried untarring the file with the tar that came with SUSE 10.0, which is:

% tar --version
tar (GNU tar) 1.15.1

and it failed with:

% tar xvfz ~/downloads/jakarta-tomcat-5.0.28.tar.gz
...
jakarta-tomcat-5.0.28/webapps/webdav/tomcat-power.gif
jakarta-tomcat-5.0.28/webapps/webdav/tomcat.gif
tar: A lone zero block at 82109

The same thing happened when untarring the Deployer and Embedded staff
(at different places though).

Since the README says NOTE: The tar files in this distribution use GNU
tar extensions, and must be untarred with a GNU compatible version of
tar., I decided that perhaps I should get the GNU tar source (maybe
SUSE did something odd?), so I grabbed it via ftp from GNU, and built a
new tar which I installed locally:

% gtar --version
tar (GNU tar) 1.15

This failed with the identical error:

% gtar xvfz ~/downloads/jakarta-tomcat-5.0.28.tar.gz
...
jakarta-tomcat-5.0.28/webapps/webdav/tomcat-power.gif
jakarta-tomcat-5.0.28/webapps/webdav/tomcat.gif
gtar: A lone zero block at 82109

Using the i option to tell tar to ignore zero blocks does not help:

% gtar xvfiz ~/downloads/jakarta-tomcat-5.0.28.tar.gz
...
jakarta-tomcat-5.0.28/webapps/webdav/tomcat-power.gif
jakarta-tomcat-5.0.28/webapps/webdav/tomcat.gif
gtar: Skipping to next header
jakarta-tomcat-5.0.28/webapps/webdav/index.html
jakarta-tomcat-5.0.28/webapps/webdav/tomcat-power.gif
gtar: Unexpected EOF in archive
gtar: Unexpected EOF in archive
gtar: Error is not recoverable: exiting now

In this case, the file
jakarta-tomcat-5.0.28/webapps/webdav/tomcat-power.gif is indeed
truncated, though, perhaps oddly, it is not if I don't use the i option.

I guess I could just grab the zip files, but I would like to sort this
out. The note in the README about GNU compatible tar does not seem adequate.

Regards,

David


-- 
Dr. David McG. Squire, Senior Lecturer. On sabbatical in 2006.
Caulfield School of Information Technology, Monash University, Australia
CRICOS Provider No. 8C   http://www.csse.monash.edu.au/~davids/


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HTTP 408 Login timeout

2006-09-20 Thread C S

I'm dealing with a problem where if a user hits a secured page and is
forwarded to a login page (using Form Auth).  If the user sits on that login
page for too long, and then try to login they are confronted with a nasty
HTTP 408 error.  I don't know if this behaviour is part of the servlet spec,
but rather then giving the user an error, could they be forwarded to a
welcome page for the app?  Or perhaps to the context's /?


mod_jk.so

2006-09-20 Thread Brian
Hello All,
   I'm looking for some insite into the mod_jk.
We have an apache web server on the outside, a
firewall and jboss on the inside (windows machines).

I'm trying to configure mod_jk , however it's begining
to look fruitless(sorry, just been trying this for
a few days).

Anyway, mod_jk loads just fine, according to my logs.
(As I don't get any errors)
However I can't access the war files on the JBoss
machine.

Does anyone have detailed instructions you could point
me too, or even a tool/utility I can use to help me
figure out what it is I'm missing?

Thanks for any help.
Brian



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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP 408 Login timeout

2006-09-20 Thread Jon Wingfield
If you have a custom error page set up you can trap the 408 response 
code and redirect to an appropriate resource. Works for me :)


Alternatively, you can set up a meta refresh on your login page so you 
never get the 408. Of course, because the refresh has to go to some 
protected page and not back to the login page you lose the exact 
protected resource that the user originally requested. But hey, they 
couldn't have wanted it that badly if the session timed out while 
waiting to login ;)


HTH,

Jon

C S wrote:

I'm dealing with a problem where if a user hits a secured page and is
forwarded to a login page (using Form Auth).  If the user sits on that 
login

page for too long, and then try to login they are confronted with a nasty
HTTP 408 error.  I don't know if this behaviour is part of the servlet 
spec,

but rather then giving the user an error, could they be forwarded to a
welcome page for the app?  Or perhaps to the context's /?





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk.so

2006-09-20 Thread Martin Gainty
did you setup your workers.properties?
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss
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 this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Brian [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, September 20, 2006 1:31 PM
Subject: mod_jk.so


 Hello All,
   I'm looking for some insite into the mod_jk.
 We have an apache web server on the outside, a
 firewall and jboss on the inside (windows machines).
 
 I'm trying to configure mod_jk , however it's begining
 to look fruitless(sorry, just been trying this for
 a few days).
 
 Anyway, mod_jk loads just fine, according to my logs.
 (As I don't get any errors)
 However I can't access the war files on the JBoss
 machine.
 
 Does anyone have detailed instructions you could point
 me too, or even a tool/utility I can use to help me
 figure out what it is I'm missing?
 
 Thanks for any help.
 Brian
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


High CPU Usage with Apache Portable Runtime

2006-09-20 Thread Yann Rouillard

Hi,

I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that 
doesn't appear with tomcat without apr.

The server is a Solaris 10 x86, bi processor.

As soon as several ajp13 connections are made, the cpu usage of the java 
process increase to 50%.


Is this expected behaviour ? Is the use of a socket poller the cause of 
this cpu usage ?


Cheers,

Yann

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TOMCAT INSTANCES

2006-09-20 Thread Grant Johnson

WHAT - I CAN'T HEAR YOU!

Typing in lowercase is easier to read and may draw some responses to 
your question.

I don't know the answer - Just thought I'd mention the YELLING!

harish A.S. wrote:

HI,
  I HAVE INSTALLED ONLY ONE TOMCAT SERVER...BUT I AM SUING 4 INSTANCES OF 
TOMCAT(IN THAT 4 ONLY ONE TOMCAT HAS BEEN INSTALLED-)
  IN THE 4 TOMCAT INSTANCES
  1 TOMCAT ACTS AS A LOAD BALANCER!
  AND THE OTHER 3 TOMCATS ACT AS CLUSTERS!
  I WANT TO START THESE 3 CLUSTERS CLUSTERS INDUVIGUALLY.I AM NOT USING 
LINUX..USING WINDOWS... HOW CAN I START THESE CLUSTERS..DO I NEED A BAT SCRIPT 
IF SO...WHERE CAN I FIND ONE?
  THANKS
   
   
  REGARDS

  HARRYY


-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.
  


--

F. Grant Johnson
566-0630 / [EMAIL PROTECTED]

Systems/Web Coordinator
RM 285 - Robertson Library
University of Prince Edward Island

***
Attitude is IT!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 proprietary application
and they were using the JDBC Realm Form authentication.  I want to
change it to use the JNDI Realm and go against a Oracle Internet
Directory instance for authentication.  I was able to successfully
change the security example packaged with tomcat to use this JNDI
Realm.

I have made the same changes to the proprietary app and I am
successfully authenticating but I believe I am failing authorization
somewhere.  However I can find no code that checks for isUserInRole().
Could someone please point me in the direction of some documentation
that explains what the security-role tag does and how it does it
since I think that the problem lies in the fact the application is not
getting the role it is expecting?

Thanks,

Mike

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 of the servlet spec; have you
looked there?
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 a less abstract name to a role?  For example if
the user role in the OID that I am interested in is named
102934756.Portal.User then I can map that to a simpler name like
Portal.

 Also is there another way to pragmatically restrict other than
isUserInRole().  I don't get how I am not being authorized when there
doesn't seem to be any code in place to check this?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.9 not undeploying

2006-09-20 Thread Douglas Ferguson
Sometimes when I use the manager (via cargo) to undeploy and deploy, my webapp 
won't actually undeploy. 

What happens is that it leaves behind a jar file in the WEB-INF/lib dir.
At first I thought this was a resource leak in my app, but the jar file is not 
always the same.

Is there anything I can do to prevent this? 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk.so

2006-09-20 Thread Brian
Yes as a matter of fact. However I started modifying
the instead of getting the sample working first.

After re-reading and re-doing much, I now get an error
message in my browser, that permission is denied. I
feel closer, but am lost as to this error.
Any Ideas?
Thanks, B


--- Martin Gainty [EMAIL PROTECTED] wrote:

 did you setup your workers.properties?

http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss
 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 this email message
 in error, please notify
 the sender immediately by telephone or email and
 destroy the original
 message without making a copy.  Thank you.
 
 
 
 - Original Message - 
 From: Brian [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, September 20, 2006 1:31 PM
 Subject: mod_jk.so
 
 
  Hello All,
I'm looking for some insite into the mod_jk.
  We have an apache web server on the outside, a
  firewall and jboss on the inside (windows
 machines).
  
  I'm trying to configure mod_jk , however it's
 begining
  to look fruitless(sorry, just been trying this
 for
  a few days).
  
  Anyway, mod_jk loads just fine, according to my
 logs.
  (As I don't get any errors)
  However I can't access the war files on the JBoss
  machine.
  
  Does anyone have detailed instructions you could
 point
  me too, or even a tool/utility I can use to help
 me
  figure out what it is I'm missing?
  
  Thanks for any help.
  Brian
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com 
  
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need Help w. Servlets And The JDBC.

2006-09-20 Thread Steve R Burrus
Hi all. I am an admitted newbie when it comes to using a database 
connection for a servlet to access. So can someone please tell me the 
basics about how exactly I should go about doing this?? I have been very 
much stumped about how I should do this for quite a long time now! I 
just know that I should use 1 of 3 getConnection( ) methods to start to 
do this and create a Connection object but little else.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need Help w. Servlets And The JDBC.

2006-09-20 Thread Frank W. Zammetti

Google is your friend... here's a quick hit:

http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/cjvjdbas.htm

...and another (although slightly older, still looks to be valid)...

http://www.cs.bham.ac.uk/~aps/syllabi/2004_2005/issws/h01/jdbc.html

...and yet another...

http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

This last one might be the best, but all three should do the trick. 
There is no fundamental difference between using JDBC from a servlet vs. 
a straight Java app.


Frank

Steve R Burrus wrote:
Hi all. I am an admitted newbie when it comes to using a database 
connection for a servlet to access. So can someone please tell me the 
basics about how exactly I should go about doing this?? I have been very 
much stumped about how I should do this for quite a long time now! I 
just know that I should use 1 of 3 getConnection( ) methods to start to 
do this and create a Connection object but little else.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.9 not undeploying

2006-09-20 Thread Caldarale, Charles R
 From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 5.5.9 not undeploying
 
 What happens is that it leaves behind a jar file in the 
 WEB-INF/lib dir.

What platform?  If it's Windows, you might want to experiment with the
antiJARLocking and antiResourceLocking attributes of your app's
Context tag.  See:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
for more info.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk.so

2006-09-20 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.9 not undeploying

2006-09-20 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Logging application messages to a file instead of to the console

2006-09-20 Thread Shiby Maria John

Hi,

I have an application deployed in Tomcat 5.0 in Linux OS.

I want my application messages as well as the JVM logs to log into a
file instead of into the console.

How can I do that?

Appreciate if some one can answer this query asap. It is in production
enviornment.

Regards,
Shiby



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 a handle on what's going on.  Also useful to look at the
various web.xml files that come with Tomcat's pre-packaged apps.

 I don't understand how the security-role tag is use full when you
 are already restricting a resource through the auth-constraint.

The security-role element is used for programmatic (app managed)
authentication and access control, not declarative (container managed)
authentication.  As you surmised, it's the auth-constraint element of
security-constraint that describes container-managed authentication.
You may use neither, either, or both declarative and programmatic
security for any given app.

 Is this meant simply to give a less abstract name to a role?

That's what the role-link element does within security-role-ref.  It
allows you to specify the role name coded into the app via the
role-name element, and have it translated to the actual role name used
by the container's security environment with role-link.  Note that
there's an error on page 91 of the 2.4 version of the spec: the sentence
near the middle of the page that starts with A security-role element
should contain a role-link sub-element... should be referring to a
security-role-ref element; this has been corrected in the draft 2.5
spec.

  Also is there another way to pragmatically restrict other than
 isUserInRole().  I don't get how I am not being authorized when there
 doesn't seem to be any code in place to check this?

Pragmatically or programatically?  When the spec talks about
programmatic security, it's referring to what APIs a web app may use,
not what a container (Tomcat) can use.  The container must expose the
APIs for app use, but may use any means necessary to internally manage
security.  What's pragmatic is pretty much dependent on how much time
you have on your hands.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logging application messages to a file instead of to the console

2006-09-20 Thread Caldarale, Charles R
 From: Shiby Maria John [mailto:[EMAIL PROTECTED] 
 Subject: Logging application messages to a file instead of to 
 the console
 
 I have an application deployed in Tomcat 5.0 in Linux OS.
 
 I want my application messages as well as the JVM logs to log into a
 file instead of into the console.

Perhaps you should read the doc:
http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logging application messages to a file instead of to the console

2006-09-20 Thread Shiby Maria John
Thanks for the immediate reply..
But I tried that .. it is loggin only Tomcat server specific messages
and not the application messages.

This is what I gave in my server.xml file

Logger classname=org.apache.catalina.logger.FileLogger
path=D:\applog.log verbosity=INFORMATION /

But only the INFO: messages from the server is coming in the file.

Regards,
Shiby


  
 Caldarale,  
 Charles R   
 Chuck.Caldaral   To 
 [EMAIL PROTECTED]   Tomcat Users List  
 users@tomcat.apache.org
 09/21/2006cc 
 10:46 AM 
  Subject 
 RE: Logging application messages 
 Please respond  to a file instead of to the  
   toconsole  
  Tomcat Users   
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  




 From: Shiby Maria John [mailto:[EMAIL PROTECTED]
 Subject: Logging application messages to a file instead of to
 the console

 I have an application deployed in Tomcat 5.0 in Linux OS.

 I want my application messages as well as the JVM logs to log into a
 file instead of into the console.

Perhaps you should read the doc:
http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the
e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging application messages to a file instead of to the console

2006-09-20 Thread Santosh Puranshettiwar

Hi,

What Logger are you using within the application. Is it Log4j?

Santosh.

Shiby Maria John wrote:

Thanks for the immediate reply..
But I tried that .. it is loggin only Tomcat server specific messages
and not the application messages.

This is what I gave in my server.xml file

Logger classname=org.apache.catalina.logger.FileLogger
path=D:\applog.log verbosity=INFORMATION /

But only the INFO: messages from the server is coming in the file.

Regards,
Shiby


  
 Caldarale,  
 Charles R   
 Chuck.Caldaral   To 
 [EMAIL PROTECTED]   Tomcat Users List  
 users@tomcat.apache.org
 09/21/2006cc 
 10:46 AM 
  Subject 
 RE: Logging application messages 
 Please respond  to a file instead of to the  
   toconsole  
  Tomcat Users   
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  





  

From: Shiby Maria John [mailto:[EMAIL PROTECTED]
Subject: Logging application messages to a file instead of to
the console

I have an application deployed in Tomcat 5.0 in Linux OS.

I want my application messages as well as the JVM logs to log into a
file instead of into the console.



Perhaps you should read the doc:
http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the
e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging application messages to a file instead of to the console

2006-09-20 Thread Santosh Puranshettiwar

Sorry Shiby,

I've got no idea about the java logger as such. But had it been Log4j, 
I'd have checked my log4j.properties for the configured appender.


Santosh.

Shiby Maria John wrote:

No, java logger. (java.util.logging package)


  
 Santosh  
 Puranshettiwar   
 [EMAIL PROTECTED]   To 
 .com   Tomcat Users List
 users@tomcat.apache.org
 09/21/2006cc 
 11:06 AM 
  Subject 
 Re: Logging application messages 
 Please respond  to a file instead of to the  
   toconsole  
  Tomcat Users   
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  





Hi,

What Logger are you using within the application. Is it Log4j?

Santosh.

Shiby Maria John wrote:
  

Thanks for the immediate reply..
But I tried that .. it is loggin only Tomcat server specific


messages
  

and not the application messages.

This is what I gave in my server.xml file

Logger classname=org.apache.catalina.logger.FileLogger
path=D:\applog.log verbosity=INFORMATION /

But only the INFO: messages from the server is coming in the file.

Regards,
Shiby






  

 Caldarale,



  

 Charles R



  

 Chuck.Caldaral


To
  

 [EMAIL PROTECTED]   Tomcat Users List



  

 users@tomcat.apache.org



  

 09/21/2006


cc
  

 10:46 AM



  
Subject
  

 RE: Logging application


messages
  

 Please respond  to a file instead of to the



  

   toconsole



  

  Tomcat Users



  

  List



  

 [EMAIL PROTECTED]



  

   pache.org



  

  

  






From: Shiby Maria John [mailto:[EMAIL PROTECTED]
Subject: Logging application messages to a file instead of to
the console

I have an application deployed in Tomcat 5.0 in Linux OS.

I want my application messages as well as the JVM logs to log into
  

a
  

file instead of into the console.

  

Perhaps you should read the doc:
http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the
e-mail
and its attachments from all computers.




-
  

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
  

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need Help w. Servlets And The JDBC.

2006-09-20 Thread Santosh Puranshettiwar
Adding to that, you should try using a connection pool rather than 
direct JDBC connection, once you get familiar with the fundamentals. 
With connection pools the application performs better than not.


Santosh.

Frank W. Zammetti wrote:

Google is your friend... here's a quick hit:

http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/cjvjdbas.htm 



...and another (although slightly older, still looks to be valid)...

http://www.cs.bham.ac.uk/~aps/syllabi/2004_2005/issws/h01/jdbc.html

...and yet another...

http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

This last one might be the best, but all three should do the trick. 
There is no fundamental difference between using JDBC from a servlet 
vs. a straight Java app.


Frank

Steve R Burrus wrote:
Hi all. I am an admitted newbie when it comes to using a database 
connection for a servlet to access. So can someone please tell me the 
basics about how exactly I should go about doing this?? I have been 
very much stumped about how I should do this for quite a long time 
now! I just know that I should use 1 of 3 getConnection( ) methods to 
start to do this and create a Connection object but little else.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]