Tomcat 5.5.20 undeploy problem

2006-12-18 Thread Diego Belliardo
I'm using Tomcat 5.5.20 on Windows 2003 Server. 

This is my problem: 

I'm using ant task to deploy my web application: 

undeploy=org.apache.catalina.ant.UndeployTask 
deploy=org.apache.catalina.ant.DeployTask 

target name = deploy 
  description = Deploy Tomcat application depends=webapp-name 
  deploy 
url = http://smbcti.enigen.it:8080/manager; 
username= admin 
password= admin 
path= /${webapp} 
war = file:${webapp}.war 
/ 

  copy todir=${tomcat-home}/webapps/${webapp}/Voxfiles/it-IT 
fileset dir=voxfile 
include name=*.vox/ 
/fileset 
/copy 

copy todir=${tomcat-home}/webapps/${webapp}/WEB-INF/lib 
overwrite=true 
fileset dir=lib 
 include name=*.jar/ 
/fileset 
/copy 

/target 

target name = undeploy 
  description = Undeploy Tomcat application depends=webapp-name 

  stop 
url = http://smbcti.enigen.it:8080/manager; 
username= admin 
password= admin 
path= /${webapp} 
/ 

  delete dir=${tomcat-home}work/Catalina/localhost/${webapp}/ 

  undeploy 
url = http://smbcti.enigen.it:8080/manager; 
username= admin 
password= admin 
path= /${webapp} 
/ 

/target 

1) Some times I'm not able to delete the work directory and to do it I 
need to Stop Tomcat. 
2) Some times I need to undeploy 2 or 3 times the webapp, but then 
Tomcat delete the webapp directory and I continue to see del 
application in the Tomcat Manager, because he left someting in the 
server.xml file. 

I would not to change this file by hand. 

 

If I use the Tomcat Manager to deploy and undeploy I have the same
problem.

Someone can help me, please? 

 

 

Thank you and regards.

Diego



JSP's not recompiling

2006-12-18 Thread Johnson, David
We're having some issues with JSP files not being recompiled when they
should be, and was wondering if anyone can shed some light on it.

We have Jasper set up in development mode, with the following in
conf/web.xml:

servlet
servlet-namejsp/servlet-name
 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namedevelopment/param-name
param-valuetrue/param-value
/init-param
init-param
param-namemodificationTestInterval/param-name
param-value0/param-value
/init-param
init-param
param-namereloadable/param-name
param-valuetrue/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

The JSP files are being created and updated by a content management
system on a remote box, and then pushed onto the webserver using Rsync. 

Tomcat does not always seem to spot that a file has been updated though,
and continues to serve the old jsp. I can force a recompile by
touching the jsp file, but have no idea why this works, as the rsync
is updating the timestamps whenever the page is updated anyway. 

Any advice would be welcome, it's driving our developers a little mad
and me with it.

Dave 

-
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: JSP's not recompiling

2006-12-18 Thread Dani

Maybe this is not the problem, but, did you turn on Servlet reloading?

http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Servlet-Reloading

Hope this helps.

On 12/18/06, Johnson, David d.johnson-at-cranfield.ac.uk |tomcat| 
hh49jagu9t0t... wrote:


We're having some issues with JSP files not being recompiled when they
should be, and was wondering if anyone can shed some light on it.

We have Jasper set up in development mode, with the following in
conf/web.xml:

servlet
servlet-namejsp/servlet-name

servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namedevelopment/param-name
param-valuetrue/param-value
/init-param
init-param
param-namemodificationTestInterval/param-name
param-value0/param-value
/init-param
init-param
param-namereloadable/param-name
param-valuetrue/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

The JSP files are being created and updated by a content management
system on a remote box, and then pushed onto the webserver using Rsync.

Tomcat does not always seem to spot that a file has been updated though,
and continues to serve the old jsp. I can force a recompile by
touching the jsp file, but have no idea why this works, as the rsync
is updating the timestamps whenever the page is updated anyway.

Any advice would be welcome, it's driving our developers a little mad
and me with it.

Dave

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





--
..
Email / Google Talk (Jabber) / MSN: 


Re: JSP's not recompiling

2006-12-18 Thread David Delbecq
Hi, could this be your problem (considering rsync does set timestamp to
the source timestamps and not the current time)?

1) tomcat start, file X.jsp (version 1) has timestamp t
2) remote content management does a modification, remote X.jsp (version
2) has timestamp t+1
3) in the meanwhile, a client request X.jsp on tomcat, jasper build
X_jsp.class (version 1) with timestamp t+2
4) remote content management does the rsync operation, tomcat's X.jsp
(now version 2) has now timestamp t+1
5) user request X.jsp, jasper compare the X_jsp.class timestamp (t+2) to
X.jsp timestamp (t+1) and concludes X_jsp.class (version 1) is more
recent than X.jsp (version 2) and so does not recompile.


If answer is yes, than you can start fixing your scripts to correctly
update timestamps:)

Whatever, compare the .class timestamp to the .jsp timestamp and check
the .jsp is really timestamped as newer than .class file.


Johnson, David a écrit :
 We're having some issues with JSP files not being recompiled when they
 should be, and was wondering if anyone can shed some light on it.

 We have Jasper set up in development mode, with the following in
 conf/web.xml:

 servlet
 servlet-namejsp/servlet-name
  
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
 param-namefork/param-name
 param-valuefalse/param-value
 /init-param
 init-param
 param-namedevelopment/param-name
 param-valuetrue/param-value
 /init-param
 init-param
 param-namemodificationTestInterval/param-name
 param-value0/param-value
 /init-param
 init-param
 param-namereloadable/param-name
 param-valuetrue/param-value
 /init-param
 init-param
 param-namexpoweredBy/param-name
 param-valuefalse/param-value
 /init-param
 load-on-startup3/load-on-startup
 /servlet

 The JSP files are being created and updated by a content management
 system on a remote box, and then pushed onto the webserver using Rsync. 

 Tomcat does not always seem to spot that a file has been updated though,
 and continues to serve the old jsp. I can force a recompile by
 touching the jsp file, but have no idea why this works, as the rsync
 is updating the timestamps whenever the page is updated anyway. 

 Any advice would be welcome, it's driving our developers a little mad
 and me with it.

 Dave 

 -
 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: My webapp is oddly asking for user and password

2006-12-18 Thread David Delbecq
Tries with tomcat 5.5.7, i put in webapps/ directory a theTest.war file
with only one html file inside. Works perfectly, here is output in console:

INFO: Deploying web application archive theTest.war
Dec 18, 2006 1:04:46 PM org.apache.catalina.startup.ContextConfig
applicationWebConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/theTest]

How did you deploy your simple webapp?

Dani a écrit :
 My out-of-the-box Tomcat is asking for user/password when I try to
 connect to a hello world HTML in a new webapp.

 On 12/17/06, olivier nouguier olivier.nouguier-at-. |tomcat|
 nazyjafop80t... wrote:
 http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html

 I don't have a web.xml in my project yet.  And the default web.xml
 doesn't have any security-constraint or any login-config tags.

 http://java.sun.com/products/servlet/download.html

 I have JDK installed.  I tried a hellow world .jsp in tomcat/ROOT/ and
 it worked.  Why if I try a hellow world .jsp or .html in a new webapp
 directory Tomcat asks for user/password?

 On 12/17/06, Dani gka4cj702... wrote:
  I have my webapp in c:\tomcat\webapps\rms\ and when I access
  http://localhost/rms/ Tomcat asks me for a user and a password.  Even
  if I try a hello world HTML file.  Why?
 
  I guess it's something I have to fix in web.xml or server.xml.  What
  should I modify?

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



RES: My webapp is oddly asking for user and password

2006-12-18 Thread Siomara
don´t you have to include the port tomcat is listening?

http://localhost:8080/rms or any other port like: http://localhost:8899/rms

-Mensagem original-
De: Dani [mailto:[EMAIL PROTECTED]
Enviada em: domingo, 17 de dezembro de 2006 17:43
Para: users@tomcat.apache.org
Assunto: My webapp is oddly asking for user and password


Hi.

I have my webapp in c:\tomcat\webapps\rms\ and when I access
http://localhost/rms/ Tomcat asks me for a user and a password.  Even
if I try a hello world HTML file.  Why?

I guess it's something I have to fix in web.xml or server.xml.  What
should I modify?

TIA.

-
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: My webapp is oddly asking for user and password

2006-12-18 Thread Dani

On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
dxtijagy310t... wrote:

don´t you have to include the port tomcat is listening?

http://localhost:8080/rms or any other port like: http://localhost:8899/rms


No, because I changed it to the default HTTP port 80.  But thanks.


-Mensagem original-
De: Dani [mailto:gka4cj702...]
Enviada em: domingo, 17 de dezembro de 2006 17:43
Para: users@tomcat.apache.org
Assunto: My webapp is oddly asking for user and password


Hi.

I have my webapp in c:\tomcat\webapps\rms\ and when I access
http://localhost/rms/ Tomcat asks me for a user and a password.  Even
if I try a hello world HTML file.  Why?

I guess it's something I have to fix in web.xml or server.xml.  What
should I modify?

TIA.

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






--
..
Email / Google Talk (Jabber) / MSN: 

-
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 the all the request/response http messages for my application

2006-12-18 Thread Keith Hawkridge
Hi, I have an application setup via a context and I want to view all the
http request/response messages that deals with this context.

 

Is there any easy way to set this up with tomcats logging?

 

Thanks in advance,

 

Keith



Re: My webapp is oddly asking for user and password

2006-12-18 Thread David Delbecq
Dani a écrit :
 On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
 dxtijagy310t... wrote:
 don´t you have to include the port tomcat is listening?

 http://localhost:8080/rms or any other port like:
 http://localhost:8899/rms

 No, because I changed it to the default HTTP port 80.  But thanks.
Do you run tomcat with administration privileges??

 -Mensagem original-
 De: Dani [mailto:gka4cj702...]
 Enviada em: domingo, 17 de dezembro de 2006 17:43
 Para: users@tomcat.apache.org
 Assunto: My webapp is oddly asking for user and password


 Hi.

 I have my webapp in c:\tomcat\webapps\rms\ and when I access
 http://localhost/rms/ Tomcat asks me for a user and a password.  Even
 if I try a hello world HTML file.  Why?

 I guess it's something I have to fix in web.xml or server.xml.  What
 should I modify?

 TIA.

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



RES: My webapp is oddly asking for user and password

2006-12-18 Thread Siomara
I thought the default port was 8080. Am I wrong?

I had this problem once. It was because of a port conflict with Oracle that
was using port 8080. The solution was to set tomcat to listen to any other
port but 8080 or 80. My tomcat listen to 8899 and the conflict (and the
login screen ) is gone.

-Mensagem original-
De: Dani [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 18 de dezembro de 2006 10:20
Para: users@tomcat.apache.org
Assunto: Re: My webapp is oddly asking for user and password


On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
dxtijagy310t... wrote:
 don´t you have to include the port tomcat is listening?

 http://localhost:8080/rms or any other port like:
http://localhost:8899/rms

No, because I changed it to the default HTTP port 80.  But thanks.

 -Mensagem original-
 De: Dani [mailto:gka4cj702...]
 Enviada em: domingo, 17 de dezembro de 2006 17:43
 Para: users@tomcat.apache.org
 Assunto: My webapp is oddly asking for user and password


 Hi.

 I have my webapp in c:\tomcat\webapps\rms\ and when I access
 http://localhost/rms/ Tomcat asks me for a user and a password.  Even
 if I try a hello world HTML file.  Why?

 I guess it's something I have to fix in web.xml or server.xml.  What
 should I modify?

 TIA.

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





-- 
..
Email / Google Talk (Jabber) / MSN: 

-
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: Cannot access classes in /WEB-INF/lib

2006-12-18 Thread andy.mcneill
Thanks  - I have fixed it. Seemed to be a class conflict between jasper and 
some other graphing libraries.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: 17 December 2006 21:25
To: Tomcat Users List
Subject: Re: Cannot access classes in /WEB-INF/lib

Andy 
The jar i have which contains net.sf.jasperreports.engine.JasperRunManager 
class is
jasperreports-1.2.8.jar (not jasperreport-1.2.8.jar

Just for safety sake can you re-down load the jar from here
http://sourceforge.net/project/showfiles.php?group_id=36382package_id=28579release_id=463655
and copy to WEB-INF/lib
?
Anyone else
Martin --
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Sunday, December 17, 2006 1:22 PM
Subject: Cannot access classes in /WEB-INF/lib



 Hello
 
 I have a relatively simple servlet which runs the Jasper
 reporting engine. I want this servlet to be easy to deploy  so I have
 put the Jasper libraries in the WEB-INF/lib directory so it is
 standalone. 
 
 But at runtime I get a Jasper classpath not found exception
 (class net/sf/jasperreports/engine/JasperRunManager) 
 The class is in the jasperreport-1.2.8.jar which is in the lib
 directory. But for some reason it is not being picked up.
 
 The class in question is being accessed statically (i.e. a
 static method is being called). Not sure if this makes a difference.
 
 The jdbc library (which is called before Jasper) seems to be
 picked up ok.
 
 
 Any ideas ?
 
 Regards
 
 Andy
 
 
 
 -Original Message-
 From: Mcneill,A,Andy,XDT64 R  
 Sent: 17 December 2006 18:12
 To: '[EMAIL PROTECTED]'
 Subject: Cannot access classes in /WEB-INF/lib
 
 Hello
 
 I have a relatively simple servlet which runs the Jasper
 reporting engine. I want this servlet to be easy to deploy  so I have
 put the Jasper libraries in the WEB-INF/lib directory so it is
 standalone. 
 
 But at runtime I get a Jasper classpath not found exception
 (class net/sf/jasperreports/engine/JasperRunManager) 
 The class is in the jasperreport-1.2.8.jar which is in the lib
 directory. But for some reason it is not being picked up.
 
 The class in question is being accessed statically (i.e. a
 static method is being called). Not sure if this makes a difference.
 
 The jdbc library (which is called before Jasper) seems to be
 picked up ok.
 
 
 Any ideas ?
 
 Regards
 
 Andy
 
 
 Andy Mcneill
 
 Technical architect
 OneIT
 British Telecom
 
 Tel : 07795986910
 
 

-
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: My webapp is oddly asking for user and password

2006-12-18 Thread Dani

On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
dxtijagy310t... wrote:

I thought the default port was 8080. Am I wrong?


Yes, 8080 is the default out-of-the-box Tomcat port.  And 80 is the
default port for the HTTP protocol all over the Internet.


I had this problem once. It was because of a port conflict with Oracle that
was using port 8080. The solution was to set tomcat to listen to any other
port but 8080 or 80. My tomcat listen to 8899 and the conflict (and the
login screen ) is gone.


I just changed the port to 8899, then I accessed
http://localhost:8899/RMS/hello.html .  I still get the login screen.

I have MySQL installed.  I thought that maybe the problem was the same
you had with Oracle.

Anything else I should try?


-Mensagem original-
De: Dani [mailto:gka4cj702...]
Enviada em: segunda-feira, 18 de dezembro de 2006 10:20
Para: users@tomcat.apache.org
Assunto: Re: My webapp is oddly asking for user and password


On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
dxtijagy310t... wrote:
 don´t you have to include the port tomcat is listening?

 http://localhost:8080/rms or any other port like:
http://localhost:8899/rms

No, because I changed it to the default HTTP port 80.  But thanks.

 -Mensagem original-
 De: Dani [mailto:gka4cj702...]
 Enviada em: domingo, 17 de dezembro de 2006 17:43
 Para: users@tomcat.apache.org
 Assunto: My webapp is oddly asking for user and password


 Hi.

 I have my webapp in c:\tomcat\webapps\rms\ and when I access
 http://localhost/rms/ Tomcat asks me for a user and a password.  Even
 if I try a hello world HTML file.  Why?

 I guess it's something I have to fix in web.xml or server.xml.  What
 should I modify?

 TIA.

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





--
..
Email / Google Talk (Jabber) / MSN: 

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





--
..
Email / Google Talk (Jabber) / MSN: 

-
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: Character encoding

2006-12-18 Thread Mester József
Hello Mark

Mester József wrote:
 Ok. Let's see my problem. 
 I have a form with text input box. I type Árvíztűrő tükörfúrógép and I get  
 ÃrvíztűrÅ tükörfúrógép

I have tested this with the latest 5.5.x source and it works correctly
(there haven't been any encoding related fixes since 5.5.20). Have you
got the request dumper valve enabled? This causes all request
parameters to be processed as ISO-8859-1 and enabling it was the only
way I could replicate the behaviour you see.

I develop with Netbeans 5.5 and my servlet container is Netbean's bundled 
Tomcat. (5.5.17) I don't changed anything in tomcat's settings.
What is request dumper valve? And where can I set?

If you haven't got this valve enabled, check you application for
filters, valves etc that may read request parameters before your
request.setCharacterEncoding(UTF-8) is called. Note parameters are
only read once so if the encoding is wrong then you can't easily fix it.

There are no filters in my application.

Joe











___ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
http://uk.docs.yahoo.com/nowyoucan.html

Re: My webapp is oddly asking for user and password

2006-12-18 Thread David Delbecq
hi,
tomcat is set by default to 8080 because, on unix environments at least,
low port numbers (like 80) are restricted to be bindable only by root. I
don't know for windows.
Dani a écrit :
 On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
 dxtijagy310t... wrote:
 I thought the default port was 8080. Am I wrong?

 Yes, 8080 is the default out-of-the-box Tomcat port.  And 80 is the
 default port for the HTTP protocol all over the Internet.

 I had this problem once. It was because of a port conflict with
 Oracle that
 was using port 8080. The solution was to set tomcat to listen to any
 other
 port but 8080 or 80. My tomcat listen to 8899 and the conflict (and the
 login screen ) is gone.

 I just changed the port to 8899, then I accessed
 http://localhost:8899/RMS/hello.html .  I still get the login screen.

 I have MySQL installed.  I thought that maybe the problem was the same
 you had with Oracle.

 Anything else I should try?

 -Mensagem original-
 De: Dani [mailto:gka4cj702...]
 Enviada em: segunda-feira, 18 de dezembro de 2006 10:20
 Para: users@tomcat.apache.org
 Assunto: Re: My webapp is oddly asking for user and password


 On 12/18/06, Siomara-at-planalto.gov.br |tomcat|
 dxtijagy310t... wrote:
  don´t you have to include the port tomcat is listening?
 
  http://localhost:8080/rms or any other port like:
 http://localhost:8899/rms

 No, because I changed it to the default HTTP port 80.  But thanks.

  -Mensagem original-
  De: Dani [mailto:gka4cj702...]
  Enviada em: domingo, 17 de dezembro de 2006 17:43
  Para: users@tomcat.apache.org
  Assunto: My webapp is oddly asking for user and password
 
 
  Hi.
 
  I have my webapp in c:\tomcat\webapps\rms\ and when I access
  http://localhost/rms/ Tomcat asks me for a user and a password.  Even
  if I try a hello world HTML file.  Why?
 
  I guess it's something I have to fix in web.xml or server.xml.  What
  should I modify?
 
  TIA.
 
  -
  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]
 
 



 -- 
 ..
 Email / Google Talk (Jabber) / MSN: 

 -
 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: My webapp is oddly asking for user and password

2006-12-18 Thread David Delbecq
Better try this.

create a rms.war file with only one hello.html file inside. Put this
.war inside your webapps directory, tomcat should outputs messages in
catalina.out  (or standard output) telling you it loads rms.war. Then
try to access http://localhost:whatever prot tomcat listen
on/rms/hello.html and tell us if it still require user/password. My bet
is that tomcat did not register a webapp under rms/ and so is directing
request to ROOT/rms/hello.html, which for some reason is requiring
authentification.
One thing for sure, creating a folder under webapps/ directory is not
enough to create a webapp, you need at least an entry context in
catalina, which tomcat create automatically when you deploy a .war


Dani a écrit :
 On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
 3unkjagvg90t... wrote:
 How did you deploy your simple webapp?

 I followed these instructions:
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/

 Actually I made a new directory C:\apache-tomcat-5.5.20\webapps\RMS
 and put a hello.jsp and a hello.html there.  Then I started Tomcat and
 tried to access http://localhost/RMS/hello.html .  Then it asked for
 user/passord.

 Did I do anything wrong?  TIA.

 Dani a écrit :
  My out-of-the-box Tomcat is asking for user/password when I try to
  connect to a hello world HTML in a new webapp.
 
  On 12/17/06, olivier nouguier olivier.nouguier-at-. |tomcat|
  nazyjafop80t... wrote:
  http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
 
  I don't have a web.xml in my project yet.  And the default web.xml
  doesn't have any security-constraint or any login-config tags.
 
  http://java.sun.com/products/servlet/download.html
 
  I have JDK installed.  I tried a hellow world .jsp in tomcat/ROOT/ and
  it worked.  Why if I try a hellow world .jsp or .html in a new webapp
  directory Tomcat asks for user/password?
 
  On 12/17/06, Dani gka4cj702... wrote:
   I have my webapp in c:\tomcat\webapps\rms\ and when I access
   http://localhost/rms/ Tomcat asks me for a user and a password. 
 Even
   if I try a hello world HTML file.  Why?
  
   I guess it's something I have to fix in web.xml or server.xml. 
 What
   should I modify?
 
  -
  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: Tomcat 5.5.20 undeploy problem

2006-12-18 Thread Pierre Goupil

Hello !


IMHO, it has to do with file-locking. See antiJarLocking and
antiResourceLocking in this page :

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

The typical symptom is a webapp not being suppressed from the list after
having undeployed it with the manager. I didn't understood if this is your
case, but HTH...

Moreover, maybe you would want to point your webapp under its own directory
and not to a Tomcat's directory ? This would help regarding to deploying -
undeploying.



Regards,


Pierre



2006/12/18, Diego Belliardo [EMAIL PROTECTED]:


I'm using Tomcat 5.5.20 on Windows 2003 Server.

This is my problem:

I'm using ant task to deploy my web application:

undeploy=org.apache.catalina.ant.UndeployTask
deploy=org.apache.catalina.ant.DeployTask

target name = deploy
  description = Deploy Tomcat application depends=webapp-name
  deploy
url = http://smbcti.enigen.it:8080/manager;
username= admin
password= admin
path= /${webapp}
war = file:${webapp}.war
/

  copy todir=${tomcat-home}/webapps/${webapp}/Voxfiles/it-IT
fileset dir=voxfile
include name=*.vox/
/fileset
/copy

copy todir=${tomcat-home}/webapps/${webapp}/WEB-INF/lib
overwrite=true
fileset dir=lib
 include name=*.jar/
/fileset
/copy

/target

target name = undeploy
  description = Undeploy Tomcat application depends=webapp-name

  stop
url = http://smbcti.enigen.it:8080/manager;
username= admin
password= admin
path= /${webapp}
/

  delete dir=${tomcat-home}work/Catalina/localhost/${webapp}/

  undeploy
url = http://smbcti.enigen.it:8080/manager;
username= admin
password= admin
path= /${webapp}
/

/target

1) Some times I'm not able to delete the work directory and to do it I
need to Stop Tomcat.
2) Some times I need to undeploy 2 or 3 times the webapp, but then
Tomcat delete the webapp directory and I continue to see del
application in the Tomcat Manager, because he left someting in the
server.xml file.

I would not to change this file by hand.



If I use the Tomcat Manager to deploy and undeploy I have the same
problem.

Someone can help me, please?





Thank you and regards.

Diego






--
L'une des raisons pour lesquelles la vie est complexe
C'est qu'elle a une partie réelle et une partie imaginaire.


Re: logging the all the request/response http messages for my application

2006-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Keith,

Keith Hawkridge wrote:
 Hi, I have an application setup via a context and I want to view all the
 http request/response messages that deals with this context.
 
 Is there any easy way to set this up with tomcats logging?

Do you want to log all of the HTTP headers and parameters, or do you
want to log all of the content, too?

Logging the headers and parameters is pretty easy (including the headers
being returned in the response). The most obvious way is to write a
filter that just dumps that information wherever you want it. Some of
Tomcat's valves may help (such as the RequestDumperValve -
http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/RequestDumperValve.html).

If you want to log all of the content, then your job becomes more
difficult, because the content of a request cannot be read twice. In
order to capture and log the content, your filter will have to wrap the
request and response in specialized objects that will serve that content
out of buffers held for the purposes of allowing that data to be read
multiple times. If you don't do this, some of your code may stop working.

Good luck,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhqcm9CaO5/Lv0PARAkmiAKCa3A+CdzJ/DfdVkczWe+xjzHGTmACfToNh
ExJBjDrc3xAP0GgeciBAuSw=
=PKuv
-END PGP SIGNATURE-

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



Deploying war files to subdir contexts through web Manager

2006-12-18 Thread Alan Cooper

Hi,
 I would like to deploy war files through the Manager 
application but I am having difficulty setting a COntext path that is 
not in the root folder.


E.g., I have a war file called monitoring.war - I can deploy this as 
http://servername.com/monitoring; no problem, but as I'm using Tomcat 
behind apache using JkMounts, I really want to deploy to 
/ejava/monitoring/ as everything under /ejava os mounted.


Can I do this only using the war deployer or am I back to manually 
configuring context paths through server.xml?


web.xml I'm currently using that isn't doing what I want it to..



?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN

 http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

web-app

   display-nameLumison Monitoring App/display-name
   description
   This is a simple web application containing a single servlet
   of the Hello, World variety.
   /description

   servlet
   servlet-nameMonitoring/servlet-name
   servlet-classMonitoring/servlet-class
   /servlet

   servlet-mapping
   servlet-nameMonitoring/servlet-name
   url-pattern/ejava/monitoring/url-pattern
   /servlet-mapping




-
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: My webapp is oddly asking for user and password

2006-12-18 Thread Caldarale, Charles R
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Subject: Re: My webapp is oddly asking for user and password

 One thing for sure, creating a folder under webapps/ directory is not
 enough to create a webapp

That's no longer true - a directory is all you need with the current 5.5
and 6.0 levels, if autoDeploy is enabled (which it is, by default); a
Context element is not required, in any location.  Don't even need a
WEB-INF inside the app.

 - 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 the all the request/response http messages for my application

2006-12-18 Thread Keith Hawkridge
Hi, is it possible to give me an answer for both?

keith

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 18 December 2006 14:35
To: Tomcat Users List
Subject: Re: logging the all the request/response http messages for my
application

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Keith,

Keith Hawkridge wrote:
 Hi, I have an application setup via a context and I want to view all
the
 http request/response messages that deals with this context.
 
 Is there any easy way to set this up with tomcats logging?

Do you want to log all of the HTTP headers and parameters, or do you
want to log all of the content, too?

Logging the headers and parameters is pretty easy (including the headers
being returned in the response). The most obvious way is to write a
filter that just dumps that information wherever you want it. Some of
Tomcat's valves may help (such as the RequestDumperValve -
http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/cat
alina/valves/RequestDumperValve.html).

If you want to log all of the content, then your job becomes more
difficult, because the content of a request cannot be read twice. In
order to capture and log the content, your filter will have to wrap the
request and response in specialized objects that will serve that content
out of buffers held for the purposes of allowing that data to be read
multiple times. If you don't do this, some of your code may stop
working.

Good luck,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhqcm9CaO5/Lv0PARAkmiAKCa3A+CdzJ/DfdVkczWe+xjzHGTmACfToNh
ExJBjDrc3xAP0GgeciBAuSw=
=PKuv
-END PGP SIGNATURE-

-
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 the all the request/response http messages for my application

2006-12-18 Thread David Delbecq
Either use the requestdumper valve provided by tomcat (to dump headers
and form submission)
Either create a ServletFilter that will decorate the HttpServletRequest
and the HttpServletResponse and forward those decorated object to the
followup of processing chain
(http://java.sun.com/products/servlet/Filters.html).
In the decoration put code to output somewhere the result as it's
writent to the response outputstream by servlet.

Keith Hawkridge a écrit :
 Hi, is it possible to give me an answer for both?

 keith

 -Original Message-
 From: Christopher Schultz [mailto:[EMAIL PROTECTED]
 Sent: 18 December 2006 14:35
 To: Tomcat Users List
 Subject: Re: logging the all the request/response http messages for my
 application

 Keith,

 Keith Hawkridge wrote:
  Hi, I have an application setup via a context and I want to view all
 the
  http request/response messages that deals with this context.

  Is there any easy way to set this up with tomcats logging?

 Do you want to log all of the HTTP headers and parameters, or do you
 want to log all of the content, too?

 Logging the headers and parameters is pretty easy (including the headers
 being returned in the response). The most obvious way is to write a
 filter that just dumps that information wherever you want it. Some of
 Tomcat's valves may help (such as the RequestDumperValve -
 http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/cat
 alina/valves/RequestDumperValve.html).

 If you want to log all of the content, then your job becomes more
 difficult, because the content of a request cannot be read twice. In
 order to capture and log the content, your filter will have to wrap the
 request and response in specialized objects that will serve that content
 out of buffers held for the purposes of allowing that data to be read
 multiple times. If you don't do this, some of your code may stop
 working.

 Good luck,
 -chris


-
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: My webapp is oddly asking for user and password

2006-12-18 Thread Dani

On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
3unkjagvg90t... wrote:

Better try this.

create a rms.war file with only one hello.html file inside. Put this
.war inside your webapps directory, tomcat should outputs messages in
catalina.out  (or standard output) telling you it loads rms.war. Then
try to access http://localhost:whatever prot tomcat listen
on/rms/hello.html and tell us if it still require user/password.


I tried it, and it worked.


My bet
is that tomcat did not register a webapp under rms/ and so is directing
request to ROOT/rms/hello.html, which for some reason is requiring
authentification.


How can I know if this is true?

Can I deploy hello.html without a .war file?


Dani a écrit :
 On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
 3unkjagvg90t... wrote:
 How did you deploy your simple webapp?

 I followed these instructions:
 http://www.coreservlets.com/Apache-Tomcat-Tutorial/

 Actually I made a new directory C:\apache-tomcat-5.5.20\webapps\RMS
 and put a hello.jsp and a hello.html there.  Then I started Tomcat and
 tried to access http://localhost/RMS/hello.html .  Then it asked for
 user/passord.

 Did I do anything wrong?  TIA.

 Dani a écrit :
  My out-of-the-box Tomcat is asking for user/password when I try to
  connect to a hello world HTML in a new webapp.
 
  On 12/17/06, olivier nouguier olivier.nouguier-at-. |tomcat|
  nazyjafop80t... wrote:
  http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
 
  I don't have a web.xml in my project yet.  And the default web.xml
  doesn't have any security-constraint or any login-config tags.
 
  http://java.sun.com/products/servlet/download.html
 
  I have JDK installed.  I tried a hellow world .jsp in tomcat/ROOT/ and
  it worked.  Why if I try a hellow world .jsp or .html in a new webapp
  directory Tomcat asks for user/password?
 
  On 12/17/06, Dani gka4cj702... wrote:
   I have my webapp in c:\tomcat\webapps\rms\ and when I access
   http://localhost/rms/ Tomcat asks me for a user and a password.
 Even
   if I try a hello world HTML file.  Why?
  
   I guess it's something I have to fix in web.xml or server.xml.
 What
   should I modify?
 
  -
  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]






--
..
Email / Google Talk (Jabber) / MSN: 

-
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: My webapp is oddly asking for user and password

2006-12-18 Thread David Delbecq
Best way to know if you webapp is correctly deployed is to access the
manager webapp:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html

Dani a écrit :
 On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
 3unkjagvg90t... wrote:
 Better try this.

 create a rms.war file with only one hello.html file inside. Put this
 .war inside your webapps directory, tomcat should outputs messages in
 catalina.out  (or standard output) telling you it loads rms.war. Then
 try to access http://localhost:whatever prot tomcat listen
 on/rms/hello.html and tell us if it still require user/password.

 I tried it, and it worked.

 My bet
 is that tomcat did not register a webapp under rms/ and so is directing
 request to ROOT/rms/hello.html, which for some reason is requiring
 authentification.

 How can I know if this is true?

 Can I deploy hello.html without a .war file?

 Dani a écrit :
  On 12/18/06, David Delbecq delbd-at-oma.be |tomcat|
  3unkjagvg90t... wrote:
  How did you deploy your simple webapp?
 
  I followed these instructions:
  http://www.coreservlets.com/Apache-Tomcat-Tutorial/
 
  Actually I made a new directory C:\apache-tomcat-5.5.20\webapps\RMS
  and put a hello.jsp and a hello.html there.  Then I started Tomcat and
  tried to access http://localhost/RMS/hello.html .  Then it asked for
  user/passord.
 
  Did I do anything wrong?  TIA.
 
  Dani a écrit :
   My out-of-the-box Tomcat is asking for user/password when I try to
   connect to a hello world HTML in a new webapp.
  
   On 12/17/06, olivier nouguier olivier.nouguier-at-.
 |tomcat|
   nazyjafop80t... wrote:
   http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
  
   I don't have a web.xml in my project yet.  And the default web.xml
   doesn't have any security-constraint or any login-config tags.
  
   http://java.sun.com/products/servlet/download.html
  
   I have JDK installed.  I tried a hellow world .jsp in
 tomcat/ROOT/ and
   it worked.  Why if I try a hellow world .jsp or .html in a new
 webapp
   directory Tomcat asks for user/password?
  
   On 12/17/06, Dani gka4cj702... wrote:
I have my webapp in c:\tomcat\webapps\rms\ and when I access
http://localhost/rms/ Tomcat asks me for a user and a password.
  Even
if I try a hello world HTML file.  Why?
   
I guess it's something I have to fix in web.xml or server.xml.
  What
should I modify?
  
  
 -
   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: logging the all the request/response http messages for my application

2006-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Keith,

Keith Hawkridge wrote:
 Hi, is it possible to give me an answer for both?

I'm not sure what you mean. Do you want an implementation for a
re-readable request and a sniffable response? I'm unlikely to write that
for you without being paid ;)

I'm guessing that the RequestDumperValve will be enough for your
purposes, though.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhrPX9CaO5/Lv0PARAu8uAKC5Z1qLSZfH1hxcUZX59iSRJMfAQwCgv/4v
egIODd+Aw+BbQ1QMqLplwyQ=
=NEoH
-END PGP SIGNATURE-

-
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: My webapp is oddly asking for user and password

2006-12-18 Thread Caldarale, Charles R
 From: Dani [mailto:[EMAIL PROTECTED] 
 Subject: Re: My webapp is oddly asking for user and password
 
 Can I deploy hello.html without a .war file?

Yes, I just verified (again) that 5.5.20 with the default config will
deploy a webapp that has only a single .html file in its directory.  To
be explicit:

1) create webapps/dummy

2) put your hello.html file into webapps/dummy
html
  head
titleTesting/title
  /head
  body
This is a dummy application.
  /body
/html

3) start Tomcat, if not already running

4) access the page with http://localhost:8080/dummy/hello.html

If you've changed the port number in server.xml, use that one instead,
of course.

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



repost: looking for example using Mbean to for session management across multiple applications

2006-12-18 Thread Bill Milbratz
Hi,

 

(this is a repost. I inadvertently 'thread hijacked' when I initially
posted this question).

 

I'm looking for an example of using Mbeans to access the
org.apache.catalina.Manager interface to manage HttpSessions.

 

First off, however: is this possible?

 

We're interested in using this approach for managing single signon
between multiple web applications. (where accessing one session keeps
alive other sessions).

 

thanks,

 

bill milbratz

 

 

 





Re: My webapp is oddly asking for user and password

2006-12-18 Thread Dani

I solved the problem.

These lines in the server.xml were preventing my webapp to deploy.

Context path=/RMS reloadable=true docBase=C:\Documents and
Settings\dgonzalez\workspace\RMS workDir=C:\Documents and
Settings\dgonzalez\workspace\RMS\work /
Context path=rms reloadable=true docBase=C:\Documents and
Settings\dgonzalez\workspace\RMS workDir=C:\Documents and
Settings\dgonzalez\workspace\RMS\work 

They were there because of the configuration of my project within
Eclipse and Sysdeo plugin.

I still don't understand why Tomcat asked for user/password, though.

Thank you Chuck, David, Siomara and Olivier.

On 12/18/06, Caldarale, Charles R Chuck.Caldarale-at-unisys.com
|tomcat| 7bmojacqti0t... wrote:

 From: Dani [mailto:gka4cj702...]
 Subject: Re: My webapp is oddly asking for user and password

 Can I deploy hello.html without a .war file?

Yes, I just verified (again) that 5.5.20 with the default config will
deploy a webapp that has only a single .html file in its directory.  To
be explicit:

1) create webapps/dummy

2) put your hello.html file into webapps/dummy
html
  head
titleTesting/title
  /head
  body
This is a dummy application.
  /body
/html

3) start Tomcat, if not already running

4) access the page with http://localhost:8080/dummy/hello.html

If you've changed the port number in server.xml, use that one instead,
of course.

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





--
..
Email / Google Talk (Jabber) / MSN: 

-
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: Apache SSL + mod_jk

2006-12-18 Thread Bijan Vakili
Hi Rainer,

The proxy attributes, as you mentioned, were all I needed.

Thanks so much!

 
Bijan Vakili
Senior Software Developer
 
Cryptologic Inc. 
55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: [EMAIL PROTECTED]
SKYPE: bijanvakili 

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.
-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 16, 2006 7:59 AM
To: Tomcat Users List
Subject: Re: Apache SSL + mod_jk

Hi,

there are plenty of ways, how those links could be produced. Usually it
works well with mod_jk, because mod_jk carries forward the information,
if the original protocol was http or https. So request.getScheme()
should return the right protocol prefix. The solution of your problem
will depend on the knowledge of which component actually produces the
absolute links.

The story is different, if you connect an ssl offfloading reverse proxy
via HTTP (in contrast to AJP/13). Then you need to configure the proxy
attributes of the incoming tomcat http connector.

Regards,

Rainer

Bijan Vakili schrieb:
 Hi,
 
  
 
 I've been trying to get mod_jk to work where
 
 1)   Users connect to the Apache server via HTTPS
 
 2)   All requests are proxied to Tomcat via mod_jk using AJP1.3
 
  
 
 I have been able to get this to work with HTTP.  However, when I
switch
 to using HTTPS, the HTML content returned by Tomcat through mod_jk
 always contains HTTP (hence there will be broken links everywhere). 
 
  
 
 Does anyone know how to get this to work?  Is there a sample
 configuration I can look at that would do the same thing?
 
  
 
  
 
 Thanks in advance,
 
  
 
  
 
 Bijan Vakili
 
 Senior Software Developer
 
  
 
 Cryptologic Inc. 
 
 55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
 Phone 416.545-1455 Ext 5892
 E-Mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 
 SKYPE: bijanvakili 
 
 This message, including any attachments, is confidential and/or
 privileged and contains information intended only for the person(s)
 named above. Any other distribution, copying or disclosure is strictly
 prohibited. If you are not the intended recipient or have received
this
 message in error, please notify us immediately by reply email and
 permanently delete the original transmission from all of your systems
 and hard drives, including any attachments, without making a copy.
 
  
 

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
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: Using 2 Realms for authentication and access control

2006-12-18 Thread Workman, Joe
I have not seen any response to this . . . . Can anyone help? Please?!?
 
Cheers
Joe



From: Workman, Joe 
Sent: Friday, December 15, 2006 12:30 PM
To: 'users@tomcat.apache.org'
Subject: Using 2 Realms for authentication and access control


I have an application that runs on tomcat that by default uses a
JDBCRealm to query a database for authentication. I would like to use
Kerberos for the user password authentication but still use my JDBCRealm
for access control through roles. I was hoping you could point me in the
right direction.  I am running on Solaris 9, java 1.5.0_10 with tomcat
5.5.17
 
I really appreciate any help you could give me!!!
 
Here is my tomcat config:
 
server.xml (snippet) - 
 
  Realm className=org.apache.catalina.realm.JAASRealm
 appName=Tomcat
 
userClassNames=javax.security.auth.kerberos.KerberosPrincipal
 
roleClassNames=javax.security.auth.kerberos.KerberosPrincipal
 useContextClassLoader=true
 debug=99/
 
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=in.co.daffodil.db.rmi.RmiDaffodilDBDriver
  connectionURL=jdbc:daffodilDB://localhost:3456/ovaa;
 connectionName=DAFFODIL connectionPassword=daff0d1l
   AllRolesMode=strict
  userTable=users userNameCol=username
userCredCol=password
  userRoleTable=users_roles roleNameCol=rolename /

 
jaas.conf - 
 
Tomcat {
  com.sun.security.auth.module.Krb5LoginModule required;
};

 
web.xml (snippet) -
 
  security-constraint
display-nameTomcat Server Configuration Security
Constraint/display-name
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern*.do/url-pattern
  url-pattern*.jsp/url-pattern
  url-pattern*.js/url-pattern
  url-pattern*.html/url-pattern
  url-pattern*.pieConfig/url-pattern
  url-pattern*.pieData/url-pattern
  url-pattern*.gridData/url-pattern
  url-pattern*.xls/url-pattern
  url-pattern*.excel/url-pattern
  url-pattern*.tre/url-pattern
  url-pattern*.tem/url-pattern
  url-pattern*.nc/url-pattern
  url-pattern*.menu/url-pattern
  url-pattern*.ext/url-pattern
/web-resource-collection
auth-constraint
  role-nametomcat_auth_role/role-name
/auth-constraint
  /security-constraint
 
  login-config
auth-methodFORM/auth-method
realm-nameovaa-tomcat/realm-name
form-login-config
  form-login-page/jsp/rootLogin.jsp/form-login-page
  form-error-page/jsp/rootLogin.jsp?error=1/form-error-page
/form-login-config
  /login-config
 
  security-role
descriptionThe role that is required to log into Advanced
Access/description
role-nametomcat_auth_role/role-name
  /security-role

 
Cheers
Joe


RE: invalid sessions

2006-12-18 Thread Asensio, Rodrigo
Is really a pain in the ass have a brand new session when the session is
dead.
Would be great have a session.isNewBecauseTheOldIsDead()

-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 12:52 PM
To: Tomcat Users List
Subject: invalid sessions

Hi guys, Im trying to reject users whose sessions was invalidated (in
purpose because a logout or timeout) But I found that there is not logic
combination in the session valid or invalid methods.

Case 1
First request
Session.isNew()  TRUE
Request.isRequestedSessionIdValid() FALSE

We can say that this is ok because you are still not authenticated.

Case 2
Session timeout
Next request will be
Session.isNew() TRUE   because creates a new session
Request.isRequestedSessionIdValid() FALSE 

The funny thing is if I request the session with create in false, it
always returns an object
Request.getSession(false) != null ALWAYS in this case.

I have no way to verify if the session was invalidated by a timeout.

I made a listener and put the invalid session in the DB but I have no
way to identify because When a client comes back from a invalid session,
it creates a new one.

Do you know any way ?


Thanks
Rodrigo




---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
 
 (~'~~'~~'~~)
  ||
  ||
  |   ~|~
  |---())
  (_)
  ||
  ||
  ''.. |
  |'..'---_/\
 /''---|| /\
/ \\\/\/
|  \  / \_/
|   \/\\| \


This message (including any attachments) contains confidential and/or
proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on the
contents of this information is strictly prohibited and may constitute a
violation of law.  If you are not the intended recipient, please notify
the sender immediately by responding to this e-mail, and delete the
message from your system.  If you have any questions about this e-mail
please notify the sender immediately. 

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


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
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: Installing Tomcat and IIS

2006-12-18 Thread Simon Renshaw
I normally need to access http://localhost:9191/luntbuild to see my 
application. So in theory with that filter thing installed correctly I should 
be able to access it by going to http://localhost/luntbuild?

But for IIS, /luntbuild does not exist. How does it figure out that it is a 
Tomcat dir?

Also, I'm running a few websites on this server. Does this have an impact on 
the Tomcat/IIS integration?

-Original Message-
From: LiuYan 刘研 [mailto:[EMAIL PROTECTED] 
Sent: 17 décembre, 2006 21:12
To: users@tomcat.apache.org
Subject: RE: Installing Tomcat and IIS


Is the last two paragraphs of that article what you want?
1.start IIS, start Tomcat
2.browse http://localhost/servlets-examples/  or something else to test your
installation



Simon Renshaw-2 wrote:
 
 And once it is installed, how is it supposed to work? That part is missing
 from the article :)
 
 -Original Message-
 From: LiuYan 刘研 [mailto:[EMAIL PROTECTED] 
 Sent: 14 décembre, 2006 23:22
 To: users@tomcat.apache.org
 Subject: Re: Installing Tomcat and IIS
 
 
 That article is good, I've integrated Tomcat  IIS successfully by
 following
 that article step by step.
 
 Step 5,6,7 are important
 -
 Step 5. Create the Tomcat Application Pool
 Step 6. Create the Virtual Directory
 Step 7. Create and Enable the Tomcat Web Service Extension
 -
 I have ever omitted step 7, and I can't get it run. Step 7 is important
 for
 IIS6.
 
 
 Simon Renshaw-2 wrote:
 
 Hi,
 
 Since it looks like my problems with Tomcat are caused by the firewall
 we're using, it is time to try Plan B.
 
 Plan B would be to install Tomcat on the same server where IIS is
 located and have both of them use port 80. 
 
 I found a tutorial at
 http://www.iis-resources.com/modules/AMS/article.php?storyid=485page=0
 that does that. Unfortunately, it is using something that hasn't been
 maintained in a year and the article is kinda confusing. Look like it is
 missing some information.
 
 Does anybody have experience with that? Pointers would be appreciated.
 
 Thanks,
 Simon
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Installing-Tomcat-and-IIS-tf2821771.html#a7886051
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Installing-Tomcat-and-IIS-tf2821771.html#a7922672
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [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]



Tomcat Session Replicating Failing under load

2006-12-18 Thread cifroes

Hi all,

I'm configuring a Tomcat cluster with 2 servers. In front of that I have 
a loadbalancer (LVS software) doing round-robin between the 2 servers.


In my tests I'm finding that the session replication mechanism isn't 
fast enough to replicate the data.


I have a WS[using Axis] that has a searchProduct method that stores the 
results in a Session variable. Then my client adds a product to the cart 
and does the checkout. Checkout returns the number of products in the 
cart, that sometimes are 0 which means the Product information wasn't 
stored in Session. So, session replication isn't working very well.


I'm using 10 clients, in burst mode, to test this so you can see I'm 
really stress testing it.


I don't care much about performance, I need the sessions to be 100% 
reliably replicated. I thought using waitForAck=true solved the 
problem but no luck...


Any ideas how to better configure the replication? Is this a know bug?

After the email, there's my cluster configuration.

thanks in advance,
 -- cifroes

--
 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager

expireSessionsOnShutdown=false
useDirtyFlag=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr=224.0.0.1
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver
   
className=org.apache.catalina.cluster.tcp.ReplicationListener

   tcpListenAddress=172.16.1.2
   tcpListenPort=11902
   tcpSelectorTimeout=100
   tcpThreadCount=20/

   Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter

replicationMode=pooled maxPoolSocketLimit=20 autoConnect=true
waitForAck=true
keepAliveTimeout=-1
keepAliveMaxRequestCount=100
/


   Valve 
className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/


   Deployer 
className=org.apache.catalina.cluster.deploy.FarmWarDeployer

 tempDir=/tmp/war-temp/
 deployDir=/tmp/war-deploy/
 watchDir=/tmp/war-listen/
 watchEnabled=false/
   /Cluster


-
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: invalid sessions

2006-12-18 Thread Veit Guna
I check for invalidated sessions (timeout) the following way:

if (! lRequest.isRequestedSessionIdValid() 
lRequest.getRequestedSessionId() != null) {
log.debug(session expired);
} else {
log.debug(the normal way);
}

regards,
Veit



Asensio, Rodrigo schrieb:
 Hi guys, Im trying to reject users whose sessions was invalidated (in
 purpose because a logout or timeout)
 But I found that there is not logic combination in the session valid or
 invalid methods.
 
 Case 1
 First request
 Session.isNew()  TRUE
 Request.isRequestedSessionIdValid() FALSE
 
 We can say that this is ok because you are still not authenticated.
 
 Case 2
 Session timeout
 Next request will be
 Session.isNew() TRUE   because creates a new session
 Request.isRequestedSessionIdValid() FALSE 
 
 The funny thing is if I request the session with create in false, it
 always returns an object
 Request.getSession(false) != null ALWAYS in this case.
 
 I have no way to verify if the session was invalidated by a timeout.
 
 I made a listener and put the invalid session in the DB but I have no
 way to identify because
 When a client comes back from a invalid session, it creates a new one.
 
 Do you know any way ?
 
 
 Thanks
 Rodrigo
 
 
 
 
 ---
 Rodrigo Asensio
 Fuel Management Services
 Gilbarco Veeder Root
 phone: +1 336 547 5023
 email: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
  
  (~'~~'~~'~~)
   ||
   ||
   |   ~|~
   |---())
   (_)
   ||
   ||
   ''.. |
   |'..'---_/\
  /''---|| /\
 / \\\/\/
 |  \  / \_/
 |   \/\\| \
 
 
 This message (including any attachments) contains confidential 
 and/or proprietary information intended only for the addressee.  
 Any unauthorized disclosure, copying, distribution or reliance on 
 the contents of this information is strictly prohibited and may 
 constitute a violation of law.  If you are not the intended 
 recipient, please notify the sender immediately by responding to 
 this e-mail, and delete the message from your system.  If you 
 have any questions about this e-mail please notify the sender 
 immediately. 
 
 -
 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]



Tomcat 6.0 vs Tomcat 5.5 Clustering Changes

2006-12-18 Thread Troy Davidson
I am trying to find a list of the differences between Tomcat 6.0 and 
Tomcat 5.5 clustering and farming.


Does anyone have a list like this or where to find the information.

Thanks.

++
Troy Davidson


-
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: invalid sessions

2006-12-18 Thread Asensio, Rodrigo
I saw that method and I read this.

Case brand new session
Session.getId() has some value
Request.getRequestedSessionId() is null because the browser is not
trying to reach some particular session

Case expired session
Session.getId() is different from Request.getRequestedSessionId()
Because the browser is trying to reach a session that is not longer
available and the session.getSession() has
Created a brand new session

In this case, for sure, your session has expired.

Is so difficult wrap this 2 methods in a isSessionExpired() ?

Wtf!

Now, we also have to be aware for security browser settings.

Thanks !

-Original Message-
From: Veit Guna [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 18, 2006 2:28 PM
To: Tomcat Users List
Subject: Re: invalid sessions

I check for invalidated sessions (timeout) the following way:

if (! lRequest.isRequestedSessionIdValid() 
lRequest.getRequestedSessionId() != null) {
log.debug(session expired);
} else {
log.debug(the normal way);
}

regards,
Veit



Asensio, Rodrigo schrieb:
 Hi guys, Im trying to reject users whose sessions was invalidated (in 
 purpose because a logout or timeout) But I found that there is not 
 logic combination in the session valid or invalid methods.
 
 Case 1
 First request
 Session.isNew()  TRUE
 Request.isRequestedSessionIdValid() FALSE
 
 We can say that this is ok because you are still not authenticated.
 
 Case 2
 Session timeout
 Next request will be
 Session.isNew() TRUE   because creates a new session
 Request.isRequestedSessionIdValid() FALSE
 
 The funny thing is if I request the session with create in false, it 
 always returns an object
 Request.getSession(false) != null ALWAYS in this case.
 
 I have no way to verify if the session was invalidated by a timeout.
 
 I made a listener and put the invalid session in the DB but I have no 
 way to identify because When a client comes back from a invalid 
 session, it creates a new one.
 
 Do you know any way ?
 
 
 Thanks
 Rodrigo
 
 
 
 
 ---
 Rodrigo Asensio
 Fuel Management Services
 Gilbarco Veeder Root
 phone: +1 336 547 5023
 email: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  
  (~'~~'~~'~~)
   ||
   ||
   |   ~|~
   |---())
   (_)
   ||
   ||
   ''.. |
   |'..'---_/\
  /''---|| /\
 / \\\/\/
 |  \  / \_/
 |   \/\\| \
 
 
 This message (including any attachments) contains confidential and/or 
 proprietary information intended only for the addressee.
 Any unauthorized disclosure, copying, distribution or reliance on the 
 contents of this information is strictly prohibited and may constitute

 a violation of law.  If you are not the intended recipient, please 
 notify the sender immediately by responding to this e-mail, and delete

 the message from your system.  If you have any questions about this 
 e-mail please notify the sender immediately.
 
 -
 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]


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
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 Session Replicating Failing under load

2006-12-18 Thread David Rees

On 12/18/06, cifroes [EMAIL PROTECTED] wrote:

I'm configuring a Tomcat cluster with 2 servers. In front of that I have
a loadbalancer (LVS software) doing round-robin between the 2 servers.

In my tests I'm finding that the session replication mechanism isn't
fast enough to replicate the data.


Are you sticky sessions? If not, that will usually fix the issue you see.

-Dave

-
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 Session Replicating Failing under load

2006-12-18 Thread cifroes

David Rees wrote:


Are you sticky sessions? If not, that will usually fix the issue you see.
 
Sorry, I don't know what sticky sessions are... But please note I'm not 
using Tomcat loadbalancing, the load balancer is another software that's 
doing round-robin (and working fine).


My issue is that the session replication doesn't seem to be fast enough 
to replicate them


-
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 Session Replicating Failing under load

2006-12-18 Thread cifroes

cifroes wrote:

David Rees wrote:


Are you sticky sessions? If not, that will usually fix the issue you 
see.
 
Sorry, I don't know what sticky sessions are... But please note I'm 
not using Tomcat loadbalancing, the load balancer is another software 
that's doing round-robin (and working fine).


My issue is that the session replication doesn't seem to be fast 
enough to replicate them
Oh, I know what you mean by sticky sessions... I can't use them, I have 
to use replicated sessions.


-
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 Session Replicating Failing under load

2006-12-18 Thread David Rees

On 12/18/06, cifroes [EMAIL PROTECTED] wrote:

cifroes wrote:
 David Rees wrote:

 Are you sticky sessions? If not, that will usually fix the issue you
 see.

 Sorry, I don't know what sticky sessions are... But please note I'm
 not using Tomcat loadbalancing, the load balancer is another software
 that's doing round-robin (and working fine).

 My issue is that the session replication doesn't seem to be fast
 enough to replicate them

Oh, I know what you mean by sticky sessions... I can't use them, I have
to use replicated sessions.


Perhaps your load balancer can assign workers according to IP address?

-Dave

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



Servlet Processing of POST

2006-12-18 Thread Scott Carr
In Tomcat, when does the Servlet Processing get called?

Is it after Tomcat has read the full request, or does it initiate the call
as soon as it starts processing the request?

Thanks for your help.


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



On Tomcat 5.5.9, can't flush the buffer or reduce buffer size 8192

2006-12-18 Thread Richard Mundell
No one replied, so in the hope someone might have the answer to this, here's
a repost... :-)
 

-Original Message-
From: Richard Mundell [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 3:37 PM
To: users@tomcat.apache.org
Subject: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size 
8192

I'm trying to work around a timeout problem which one of my user's proxy
server has. The proxy's timeout is set to 1 minute. Should it not receive
any HTTP traffic for 1 minute it disconnects.
 
One of my JSPs takes 1 minute to perform processing and return results.
 
What I'm trying to do is...
 
1) Flush out HTTP headers immediately
2) (Start my database operation which takes 1 minute)
3) Write out and flush to the client a HTML comment (!--hello--) every 10
seconds while the database operation completes to stop the proxy timing out
4) (Database operation completes)
5) Write out results
 
By calling response.flushBuffer() immediately at the top of my JSP, the HTTP
headers are being written out to the TCP stream. So far, so good.
 
My code then, every 10 seconds, does an out.print(!-- hello --) and a
response.flushBuffer().
 
By using a packet sniffer I can see that although the headers get output to
the TCP stream, the body of the HTTP response does not get written out
until the very end of the execution of the JSP. The only way I can get the
buffer to flush is if I do an out.print with a string greater than 8192
characters (the default size of the buffer).
 
Note that I also tried out.flush() and that doesn't work either.
 
As a workaround I tried to set the buffer size artificially low, but this
call is being ignored:
 
System.out.println(response.getBufferSize());
// buffer size of 8192 printed to stdout
 
response.setBufferSize(100);
// buffer size should now be 100, right?
 
System.out.println(response.getBufferSize());
// buffer size of 8192 still printed to stdout
 
setBufferSize only works if I set the buffer  8192.
 
I can't find any reference in the Tomcat spec to this being a deliberate
behavior, or a hard-coded minimum?
 
Anyone got any ideas of where I'm going wrong, or how I might get this to
work in Tomcat 5.5.9? (Note that I'm stuck at Tomcat 5.5.9 because the later
(Apache) HTTPS implementations don't work reliably in our environment).
 
Thanks,
 
Richard



-
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: Servlet with POST Request

2006-12-18 Thread Scott Carr
Understand.  The chunk stuff is what I am planning on using.  Do you 
know if Tomcat waits until all chunks are in before starting the Servlet 
processing?


Bill Barker wrote:
If you don't send a Content-Length, then you need to use 'Transfer-Encoding: 
chunked'.  Otherwise Tomcat (or any other HTTP/1.1 server) has no way of 
knowing when the request body ends, and the next request begins.


Scott Carr [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
  
Does a servlet require the use of a Content-Length for the Reader to be 
populated?


I trying to use Tomcat instead of writing my own Socket Server.  I have a 
set of lines that I am trying to parse, but I don't have any idea how much 
is going to be sent up front.
It may be 1000Kb, or it may be several Megabytes worth of information, and 
I want to read each line as they come in, and handle the request on a line 
by line basis.


Any ideas on this?  ... Should I write my own socket server?

Thanks

--
Scott Carr
OpenOffice.org
Documentation Co-Lead
http://documentation.openoffice.org


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

  



--
Scott Carr
OpenOffice.org
Documentation Co-Lead
http://documentation.openoffice.org


-
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: my webapps lost after deleting *.war

2006-12-18 Thread Mark Thomas
dl wrote:
 Have I blundered badly?  Are the lost webapps non-recoverable from anywhere
 (nothing in Recycle bin)?

I am afraid they are gone for good. Do have anything in a backup of
version control system you can recover from?

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: Servlet Processing of POST

2006-12-18 Thread Bill Barker

Scott Carr [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 In Tomcat, when does the Servlet Processing get called?

 Is it after Tomcat has read the full request, or does it initiate the call
 as soon as it starts processing the request?


It is done after reading the headers only.  Otherwise, the servlet wouldn't 
get a chance to set the character encoding before the parameters are parsed.

 Thanks for your help.


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



How to Run Servlet

2006-12-18 Thread athula bogoda
Hi,
I am new to servlet.

Can any one tell me how to run servlet file in Tomcat 5.0.

When I run my hello world file it views the souce file.

But examples are given in Tromcat local server is working fine.

Help me.




Send instant messages to your online friends http://uk.messenger.yahoo.com 

Re: How to Run Servlet

2006-12-18 Thread Mark Thomas
athula bogoda wrote:
 Hi,
 I am new to servlet.
 
 Can any one tell me how to run servlet file in Tomcat 5.0.

First off, you will be better off with 5.5.x rather than 5.0.x

Then you could try following the following example:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html

There are also many tutorials available on the web.  A few pointers to
get you started:
http://java.sun.com/products/servlet/docs.html
http://www.google.com/search?hl=enq=servlet+tutorialbtnG=Google+Search

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]



Question on Admin WebApp in Tomcat 6.0

2006-12-18 Thread ritu . x . kedia
Hi,

I was taking a look at Tomcat 6.0. The downloads did not have a separate 
WAR for the Admin WebApp and the Core download also did not include the 
Admin WebApp.

Could someone please let me know from where can I download the Admin 
WebApp for Tomcat 6.0?

I am primarily interested in understanding the difference in approach 
between the Admin WebApp of 5.5 and 6.0. Also I would like to understand 
by how much would the underlying Catalina MBeans be changed in 6.0 (if at 
all they are changed). Any responses would be greatly appreciated.

Tomcat developers list for 6.0 has Amy Roh assigned to Admin WebApp. So 
Amy your response would be very much appreciated. Thanks in advance.

Thanks and Regards,
Ritu Kedia


-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


Tomcat is not responding to request by load generator .

2006-12-18 Thread Vijay Hatewar
 

Hi 

I am testing my web application for Performance which is deployed on Tomcat
, While doing so I have to run my test for number of iterations .

 My test scenario is like I am running one operation in loop for 1000 times
each for Single Virtual user . 

I could run my test successfully for 4 times and I got results as below . 

 

Initial server configuration: 


CPU Usage 

Total Memory

Free Memory 


0.0

1027808k

50.932 Mb

 

First Cycle : During Test Run 

 

Max CPU Usage = 42.9 % approximately 

 

First Cycle : After Test Run 

Max CPU Usage = 0% 

Total free Memory = 15.84 Mb ( approx)

 

 

Second Cycle : : During Test Run

 

Max CPU Usage = 45.2 % approximately 

 

After Test Run 

Max CPU Usage = 0% 

Total free Memory = 15.68 Mb( approx)

 

Third Cycle : During Test Run 

 

Max CPU Usage = 45.2 % approximately 

After Test Run 

Max CPU Usage = 0% 

Total free Memory = 15.68 ( approx)

 

Fourth Cycle :

During Test Run 

Max CPU Usage = 45.2 % approximately 

After Test Run 

Max CPU Usage = 0% 

Free Memory = 15 .392 MB 

 

 

Fifth Test Cycle :

 

Test could not finish in estimated time, Test is still running and showing
CPU usage around 0 to 1.3 % 

Total free memory is 57.0 Mb after 107 minutes. 

Status : Test is running .

 

 

Throughput Results 

 


Test Cycle 

No. of Transactions 

Test Duration (Sec)

Throughput


1

1000

294.2

3.399


2

1000

303.38

3.2961


3

1000

303.01

3.300


4

1000

304.14

3.285


5

1000

Test Could not get completed . 

Not Available . 

 

 

I am not able to understand why server is not responding to request made by
load generator. 

Status of Tomcat is up and running. Please guide me, if you understood why
this is happening 

 

Thanks 

 

Vijay Hatewar

 

 

 

 

 

 

 

 

 

 

 

 

Thanks  Regards,

 

 Vijay G Hatewar

|Member of Technical Staff - TQE|Persistent Systems Pvt, Ltd., Pune.|

|Ph: +91 .20 .3023.5331| Mobile: +91.9890678168| @:
[EMAIL PROTECTED]| mailto:[EMAIL PROTECTED] 

 


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.