Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
Hi. I need to send an email using a servlet (Tomcat 4.1 / Debian 3.1), 
but when I send the form from the jsp page that call the servlet, i get 
this exception:


javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
(...)


*root cause*

java.lang.NoClassDefFoundError: javax/activation/DataSource at 
AltaCliente.doPost(AltaCliente.java:63) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


This is the code of the servlet (which compiles with no problem):

-
import java.io.*;
...
...

try {
   Properties props = new Properties();
   props.put(mail.smtp.host, mail.***.***);
   Session s = Session.getInstance(props);
   MimeMessage message = new MimeMessage(s);

   InternetAddress from = new 
InternetAddress([EMAIL PROTECTED]);

   message.setFrom(from);
   InternetAddress to = new 
InternetAddress([EMAIL PROTECTED]);

   message.addRecipient(Message.RecipientType.TO, to);

   message.setSubject(Prueba de JavaMail.);
   message.setText(Hola desde JavaMail ( y Tomcat 
). );


   Store store = s.getStore(pop3);
   store.connect(mail..***, 
[EMAIL PROTECTED], areyes);


   Transport.send(message);
   store.close();
} catch ( MessagingException e ) {
   out.println(h1MessagingException:  + 
e.getMessage() + /h1);

...
...
-

The content of the /WEB-INF/web.xml is ok (only describe the servlet and 
others that I use), and the xml configuration for the context is:  


-
Context path=/* docBase=/usr/share/tomcat4/server/webapps/**
   debug=0 privileged=false
Resource name=mail/Session scope=Shareable type=javax.mail.Session/
 ResourceParams name=mail/Session
   parameter
 namemail.smtp.host/name
 valuemail../value
   /parameter
 /ResourceParams

/Context
-

Thanks in advance.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Did you add the Java Activation Famework jar to your WEB-INF/lib?

Check this out:

http://java.sun.com/products/javabeans/glasgow/jaf.html



--On Friday, October 07, 2005 9:33 AM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


Hi. I need to send an email using a servlet (Tomcat 4.1 / Debian 3.1), but when 
I send the form from the jsp page that call the servlet, i get this exception:

javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:222)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:51)
(...)


*root cause*

java.lang.NoClassDefFoundError: javax/activation/DataSource at 
AltaCliente.doPost(AltaCliente.java:63) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

This is the code of the servlet (which compiles with no problem):

-
import java.io.*;
...
...

try {
Properties props = new Properties();
props.put(mail.smtp.host, mail.***.***);
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);

InternetAddress from = new InternetAddress([EMAIL 
PROTECTED]);
message.setFrom(from);
InternetAddress to = new InternetAddress([EMAIL 
PROTECTED]);
message.addRecipient(Message.RecipientType.TO, to);

message.setSubject(Prueba de JavaMail.);
message.setText(Hola desde JavaMail ( y Tomcat ). );

Store store = s.getStore(pop3);
store.connect(mail..***, [EMAIL PROTECTED], 
areyes);

Transport.send(message);
store.close();
 } catch ( MessagingException e ) {
out.println(h1MessagingException:  + e.getMessage() + 
/h1);
...
...
-

The content of the /WEB-INF/web.xml is ok (only describe the servlet and others 
that I use), and the xml configuration for the context is:
-
Context path=/* docBase=/usr/share/tomcat4/server/webapps/**
debug=0 privileged=false
 Resource name=mail/Session scope=Shareable type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuemail../value
/parameter
  /ResourceParams

/Context
-

Thanks in advance.

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 * Fax : 957 76 42 49
***/


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







-- David Tonhofer

  M-PLIFY S.A.
  Resp. Informatique
  47, av. de la Liberté
  L-1931 Luxembourg
  Tel: +352 261846-52
  Fax: +352 261846-46
  Mob: +352 021-139031


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

David Tonhofer, m-plify S.A. wrote:


Did you add the Java Activation Famework jar to your WEB-INF/lib?

Check this out:

http://java.sun.com/products/javabeans/glasgow/jaf.html



Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib. I 
forget to comment it. Sorry.


--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

The doPost exception is in the line 63 of the servlet, which is:

---
MimeMessage message = new MimeMessage(s);
---

--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread Mikolaj Rydzewski

Andrés Reyes wrote:


Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.


Try to put them in tomcat's common/lib. It works for me.

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104



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



Re: Sending mail with JavaMail [255611:132100]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Mikolaj Rydzewski [EMAIL PROTECTED]
 Received: 10/7/2005 10:14 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 Andrés Reyes wrote:
 
  Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.
 
 Try to put them in tomcat's common/lib. It works for me.
 
 -- 
 Mikolaj Rydzewski  [EMAIL PROTECTED]
 Becomo S.A.
 tel. (12) 2927104
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Confirmation: I have them in common/lib, too. If the mail.jar is in common/lib,
then the jaf.jar must *also* be in common/lib.

--On Friday, October 07, 2005 11:15 AM +0200 Mikolaj Rydzewski [EMAIL 
PROTECTED] wrote:


Andrés Reyes wrote:


Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.


Try to put them in tomcat's common/lib. It works for me.

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104



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



Re: Sending mail with JavaMail [255621:132113]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-plify S.A. [EMAIL PROTECTED]
 Received: 10/7/2005 10:21 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 Confirmation: I have them in common/lib, too. If the mail.jar is in 
 common/lib,
 then the jaf.jar must *also* be in common/lib.
 
 --On Friday, October 07, 2005 11:15 AM +0200 Mikolaj Rydzewski [EMAIL 
 PROTECTED] wrote:
 
  Andrés Reyes wrote:
 
  Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.
 
  Try to put them in tomcat's common/lib. It works for me.
 
  --
  Mikolaj Rydzewski  [EMAIL PROTECTED]
  Becomo S.A.
  tel. (12) 2927104
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
I have them both in /tomcat4/common/lib and included in the CLASSPATH 
and the servlet doesn't work (the same javax/activation/datasource 
exception in the line which MimeMessage is initialized).



David Tonhofer, m-plify S.A. wrote:

Confirmation: I have them in common/lib, too. If the mail.jar is in 
common/lib,

then the jaf.jar must *also* be in common/lib.

--On Friday, October 07, 2005 11:15 AM +0200 Mikolaj Rydzewski 
[EMAIL PROTECTED] wrote:



Andrés Reyes wrote:


Yes, activation.jar and mail.jar are placed both in /WEB-INF/lib.



Try to put them in tomcat's common/lib. It works for me.

--
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104




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





--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



apache virtual hosting + server.xml + context

2005-10-07 Thread gianni dalmasso
hi list, i have a problem. i have apache 2.0 + tomcat 5.5.
i have N name based virtual hosts on the same machine managed by apache; some 
of them need to use tomcat (have jsp pages and servlets...)
if i set a server.xml of tomcat with several hosts, and every host has ist 
context -- it's ok ( but tomcat documentation says Please note that for 
tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements 
directly in the server.xml file)
if i try to move the context informations in a .xml file in a 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve 
anything (it acts as he cannot find files in docBase);
- which is the right configuration ?
- is it necessary to define different host in server.xml ?(-- so, when i add a 
new host i need to restart apache and tomcat...)
thanks in advance
 
here is the configuration that works..
 
HTTPD.CONF

Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf
 
MOD_JK.CONF
.

NameVirtualHost xx.yy.zz.kk:80

VirtualHost xx.yy.zz.kk:80

DocumentRoot /var/www/html

ServerName web.ccc.com

/VirtualHost

 

VirtualHost xx.yy.zz.kk:80

Directory /var/www/html/aaa 

DirectoryIndex index.htm index.html index.jsp

/Directory

ServerName www.aaa.com

DocumentRoot /var/www/html/aaa

JkMount /*.jsp ajp13

JkMount /servlet/* ajp13

/VirtualHost

 

VirtualHost xx.yy.zz.kk:80

Directory /var/jakarta-tomcat-5.5.9/webapps/bbb 

DirectoryIndex index.htm index.html

/Directory

ServerName www.bbb.com

DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb

JkMount /*.jsp ajp13

JkMount /servlet/* ajp13

/VirtualHost

 

SERVER.XML



Host name=www.aaa.com

Context path=

docBase=/var/www/html/aaa

debug=0

reloadable=true 

/Context

/Host



Host name=www.bbb.com

Context path=

docBase=/var/jakarta-tomcat-5.5.9/webapps/bbb 

debug=0

reloadable=true 

/Context

/Host

 



 

This for example, don't work

 

setting : 

SERVER.XML

 



Host name=www.aaa.com

appBase = /var/www/html/aaa (or similar... )

/Host



Host name=www.bbb.com

/Host

 
the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml

Context path=

docBase=/var/www/html/aaa

debug=0

reloadable=true 

/Context

 





-
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3

RE: apache virtual hosting + server.xml + context [255643:132138]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: gianni dalmasso [EMAIL PROTECTED]
 Received: 10/7/2005 10:51 AM
 To: tomcat-user@jakarta.apache.org
 Subject: apache virtual hosting + server.xml + context

 hi list, i have a problem. i have apache 2.0 + tomcat 5.5.
 i have N name based virtual hosts on the same machine managed by apache; some 
 of them need to use tomcat (have jsp pages and servlets...)
 if i set a server.xml of tomcat with several hosts, and every host has ist 
 context -- it's ok ( but tomcat documentation says Please note that for 
 tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context 
 elements directly in the server.xml file)
 if i try to move the context informations in a .xml file in a 
 $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve 
 anything (it acts as he cannot find files in docBase);
 - which is the right configuration ?
 - is it necessary to define different host in server.xml ?(-- so, when i add 
 a new host i need to restart apache and tomcat...)
 thanks in advance
  
 here is the configuration that works..
  
 HTTPD.CONF
 
 Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf
  
 MOD_JK.CONF
 .
 
 NameVirtualHost xx.yy.zz.kk:80
 
 VirtualHost xx.yy.zz.kk:80
 
 DocumentRoot /var/www/html
 
 ServerName web.ccc.com
 
 /VirtualHost
 
  
 
 VirtualHost xx.yy.zz.kk:80
 
 Directory /var/www/html/aaa 
 
 DirectoryIndex index.htm index.html index.jsp
 
 /Directory
 
 ServerName www.aaa.com
 
 DocumentRoot /var/www/html/aaa
 
 JkMount /*.jsp ajp13
 
 JkMount /servlet/* ajp13
 
 /VirtualHost
 
  
 
 VirtualHost xx.yy.zz.kk:80
 
 Directory /var/jakarta-tomcat-5.5.9/webapps/bbb 
 
 DirectoryIndex index.htm index.html
 
 /Directory
 
 ServerName www.bbb.com
 
 DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb
 
 JkMount /*.jsp ajp13
 
 JkMount /servlet/* ajp13
 
 /VirtualHost
 
  
 
 SERVER.XML
 
 
 
 Host name=www.aaa.com
 
 Context path=
 
 docBase=/var/www/html/aaa
 
 debug=0
 
 reloadable=true 
 
 /Context
 
 /Host
 
 
 
 Host name=www.bbb.com
 
 Context path=
 
 docBase=/var/jakarta-tomcat-5.5.9/webapps/bbb 
 
 debug=0
 
 reloadable=true 
 
 /Context
 
 /Host
 
  
 
 
 
  
 
 This for example, don't work
 
  
 
 setting : 
 
 SERVER.XML
 
  
 
 
 
 Host name=www.aaa.com
 
 appBase = /var/www/html/aaa (or similar... )
 
 /Host
 
 
 
 Host name=www.bbb.com
 
 /Host
 
  
 the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml
 
 Context path=
 
 docBase=/var/www/html/aaa
 
 debug=0
 
 reloadable=true 
 
 /Context
 
  
 
 
 
 
   
 -
 Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Giuseppe Briotti
 ==
 Date: Fri, 07 Oct 2005 11:46:45 +0200
 From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail
 ==
 
 I have them both in /tomcat4/common/lib and included in the CLASSPATH
 and the servlet doesn't work (the same javax/activation/datasource
 exception in the line which MimeMessage is initialized).
 

I think that another jar is required to send the mail. It is activation.jar,
check for it...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
(Orazio)





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



Re: Sending mail with JavaMail [255646:132140]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Giuseppe Briotti [EMAIL PROTECTED]
 Received: 10/7/2005 10:58 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

  ==
  Date: Fri, 07 Oct 2005 11:46:45 +0200
  From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Subject: Re: Sending mail with JavaMail
  ==
  
  I have them both in /tomcat4/common/lib and included in the CLASSPATH
  and the servlet doesn't work (the same javax/activation/datasource
  exception in the line which MimeMessage is initialized).
  
 
 I think that another jar is required to send the mail. It is activation.jar,
 check for it...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes
activation.jar and mail.jar are placed both in /common/lib, and in 
/WEB-INF/lib (and also in JAVA_HOME/lib)


¿Any other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe that 
it isn't  :( ).


Thanks for your answers.

Giuseppe Briotti wrote:


==
Date: Fri, 07 Oct 2005 11:46:45 +0200
From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Sending mail with JavaMail
==

I have them both in /tomcat4/common/lib and included in the CLASSPATH
and the servlet doesn't work (the same javax/activation/datasource
exception in the line which MimeMessage is initialized).

   



I think that another jar is required to send the mail. It is activation.jar,
check for it...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.

   (Orazio)





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


 




--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail [255649:132143]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Andrés Reyes [EMAIL PROTECTED]
 Received: 10/7/2005 11:03 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 activation.jar and mail.jar are placed both in /common/lib, and in 
 /WEB-INF/lib (and also in JAVA_HOME/lib)
 
 ¿Any other place?
 ;)
 
 ¿Maybe the error be in activation.jar itself? ( I want to believe that 
 it isn't  :( ).
 
 Thanks for your answers.
 
 Giuseppe Briotti wrote:
 
 ==
 Date: Fri, 07 Oct 2005 11:46:45 +0200
 From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail
 ==
 
 I have them both in /tomcat4/common/lib and included in the CLASSPATH
 and the servlet doesn't work (the same javax/activation/datasource
 exception in the line which MimeMessage is initialized).
 
 
 
 
 I think that another jar is required to send the mail. It is activation.jar,
 check for it...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -- 
 /***
 * Andrés Reyes ( [EMAIL PROTECTED] )
 * TCOR Desarrollos y Sistemas, S.L.
 * Teléfono: 957 76 42 48 
 * Fax : 957 76 42 49
 ***/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Leon Rosenberg
On 10/7/05, Andrés Reyes [EMAIL PROTECTED] wrote:
 activation.jar and mail.jar are placed both in /common/lib, and in
 /WEB-INF/lib (and also in JAVA_HOME/lib)

 ¿Any other place?
 ;)

 ¿Maybe the error be in activation.jar itself? ( I want to believe that
 it isn't  :( ).


Hmm... unlikely... but check whether the activation.jar you are using
to compile your classes is the same as the one you are using in
tomcat.

are there other dependencies, that you could be missing? xmlparser or
something?

Btw, common/lib isn't my favorite place to place jars, common/endorsed
is better; if you have an older version of the activation.jar in
common/endorsed, you can place as many activations.jar in the
common/lib as you like, they will be ignored...

regards
leon

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



Re: Sending mail with JavaMail [255655:132155]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Leon Rosenberg [EMAIL PROTECTED]
 Received: 10/7/2005 11:17 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 On 10/7/05, Andrés Reyes [EMAIL PROTECTED] wrote:
  activation.jar and mail.jar are placed both in /common/lib, and in
  /WEB-INF/lib (and also in JAVA_HOME/lib)
 
  ¿Any other place?
  ;)
 
  ¿Maybe the error be in activation.jar itself? ( I want to believe that
  it isn't  :( ).
 
 
 Hmm... unlikely... but check whether the activation.jar you are using
 to compile your classes is the same as the one you are using in
 tomcat.
 
 are there other dependencies, that you could be missing? xmlparser or
 something?
 
 Btw, common/lib isn't my favorite place to place jars, common/endorsed
 is better; if you have an older version of the activation.jar in
 common/endorsed, you can place as many activations.jar in the
 common/lib as you like, they will be ignored...
 
 regards
 leon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

Looks like the usual Tomcat classloader hierarchy SNAFU.

Try with ONLY in tomcat/common/lib.

--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


activation.jar and mail.jar are placed both in /common/lib, and in /WEB-INF/lib 
(and also in JAVA_HOME/lib)

¿Any other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe that it isn't 
 :( ).


No.



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



common\lib and shared\lib in tomcat embedded

2005-10-07 Thread Giuseppe Briotti
We are using tomcat 4.1.29 embedded in jboss 3.2.3.

It is possible to know how common\lib and shared\lib
of stand-alone tomcat are mapped in tomcat embedded?

TIA

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
(Orazio)





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



Re: Sending mail with JavaMail [255658:132158]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-plify S.A. [EMAIL PROTECTED]
 Received: 10/7/2005 11:23 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 Looks like the usual Tomcat classloader hierarchy SNAFU.
 
 Try with ONLY in tomcat/common/lib.
 
 --On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
 wrote:
 
  activation.jar and mail.jar are placed both in /common/lib, and in 
  /WEB-INF/lib (and also in JAVA_HOME/lib)
 
  ¿Any other place?
  ;)
 
  ¿Maybe the error be in activation.jar itself? ( I want to believe that it 
  isn't  :( ).
 
 No.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Giuseppe Briotti
 ==
 Date: Fri, 07 Oct 2005 12:04:37 +0200
 From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail
 ==
 
 activation.jar and mail.jar are placed both in /common/lib, and 
 in
 /WEB-INF/lib (and also in JAVA_HOME/lib)
 
 ¿Any other place?
 ;)

shared\lib? but all the jars must be placed in the same dir, I think...

G.

--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
(Orazio)





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



Re: Sending mail with JavaMail [255664:132162]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Giuseppe Briotti [EMAIL PROTECTED]
 Received: 10/7/2005 11:31 AM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

  ==
  Date: Fri, 07 Oct 2005 12:04:37 +0200
  From: =?ISO-8859-1?Q?Andr=E9s_Reyes?= [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Subject: Re: Sending mail with JavaMail
  ==
  
  activation.jar and mail.jar are placed both in /common/lib, and 
  in
  /WEB-INF/lib (and also in JAVA_HOME/lib)
  
  ¿Any other place?
  ;)
 
 shared\lib? but all the jars must be placed in the same dir, I think...
 
 G.
 
 --
 
 Giuseppe Briotti
 [EMAIL PROTECTED]
 
 Alme Sol, curru nitido diem qui 
 promis et celas aliusque et idem 
 nasceris, possis nihil urbe Roma 
 visere maius.
 (Orazio)
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Sending mail with JavaMail

2005-10-07 Thread Andrés Reyes

It doesn't work.

David Tonhofer, m-plify S.A. wrote:


Looks like the usual Tomcat classloader hierarchy SNAFU.

Try with ONLY in tomcat/common/lib.

--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes 
[EMAIL PROTECTED] wrote:


activation.jar and mail.jar are placed both in /common/lib, and in 
/WEB-INF/lib (and also in JAVA_HOME/lib)


¿Any other place?
;)

¿Maybe the error be in activation.jar itself? ( I want to believe 
that it isn't  :( ).



No.



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





--
/***
* Andrés Reyes ( [EMAIL PROTECTED] )
* TCOR Desarrollos y Sistemas, S.L.
* Teléfono: 957 76 42 48 
* Fax : 957 76 42 49

***/


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



Re: Sending mail with JavaMail

2005-10-07 Thread David Tonhofer, m-plify S.A.

--On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
wrote:


It doesn't work.



No way???

Back to basics: find all the places where mail.jar is in this
hierarchy of classloaders. Make sure there is only one.
Make sure that jaf.jar is at the same level or above it.


  Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
 |
  System:uses $CATALINA_HOME/bin/bootstrap.jar
 |   and  $JAVA_HOME/lib/tools.jar
 |
  Common:uses $CATALINA_HOME/common/lib
/  \ and $CATALINA_HOME/common/classes
   /\and $CATALINA_HOME/common/endorsed
  /  \jsp and servlet API jars are here
 /+-+
/   |
Catalina:  uses $CATALINA_HOME/server/lib   |
   and $CATALINA_HOME/server/classes|
catalina.jar is here  |
 Shared: uses 
$CATALINA_BASE/shared/lib
   / \and 
$CATALINA_BASE/shared/classes
  /   \
 Webapp1  Webapp2 ... --- **GREEDY** 
CLASSLOADERS




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



Re: Sending mail with JavaMail [255704:132206]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Tonhofer, m-plify S.A. [EMAIL PROTECTED]
 Received: 10/7/2005 1:24 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Sending mail with JavaMail

 --On Friday, October 07, 2005 1:08 PM +0200 Andrés Reyes [EMAIL PROTECTED] 
 wrote:
 
  It doesn't work.
 
 
 No way???
 
 Back to basics: find all the places where mail.jar is in this
 hierarchy of classloaders. Make sure there is only one.
 Make sure that jaf.jar is at the same level or above it.
 
 
Bootstrap: uses JVM classes  looks in $JAVA_HOME/jre/lib/ext
   |
System:uses $CATALINA_HOME/bin/bootstrap.jar
   |   and  $JAVA_HOME/lib/tools.jar
   |
Common:uses $CATALINA_HOME/common/lib
  /  \ and $CATALINA_HOME/common/classes
 /\and $CATALINA_HOME/common/endorsed
/  \jsp and servlet API jars are here
   /+-+
  /   |
  Catalina:  uses $CATALINA_HOME/server/lib   |
 and $CATALINA_HOME/server/classes|
  catalina.jar is here  |
   Shared: uses 
 $CATALINA_BASE/shared/lib
 / \and 
 $CATALINA_BASE/shared/classes
/   \
   Webapp1  Webapp2 ... --- 
 **GREEDY** CLASSLOADERS
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?

2005-10-07 Thread Amadeo Alonso
Hi list:

   I apologize me last (first) email to the list with faults on date and form 
   Thanks to Mark Thomas for your explanations.

The problem I attempt to solve is the next:

When I demand the page 
'http://expresiongrafica.caminos.upm.es/PAU/AppletDoc.html', which has an 
Applet with a tag 'archive=doc.jar', Tomcat (?) v5.5 returns me the OLD VERSION 
of 'doc.jar' (v1) with the old bugs, as I deduct from the 'Java Console'.

I have placed two connector tags  in 'server.xml' file to use ports :80 y 
:8080 in the same way

but

http://expresiongrafica.caminos.upm.es:8080/PAU/AppletDoc.html   return de 
rigth 'doc.jar' (v2),   OK:   

http://expresiongrafica.caminos.upm.es:80/PAU/AppletDoc.html   return de 
old   'doc.jar' (v1),   BAD: 

using  localhost/..., localhost:80/... y localhost:8080/...  OK (v2). 


How can I destroy the old version? where is it? What is it happening? Is maybe 
a navigators problem?
 (I get  'similar' results with IE and Firefox )


Thanks in advance

Amadeo.
Universidad Politécnica de Madrid.


RE: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ? [255718:132221]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Amadeo Alonso [EMAIL PROTECTED]
 Received: 10/7/2005 2:03 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?

 Hi list:
 
I apologize me last (first) email to the list with faults on date and 
 form 
Thanks to Mark Thomas for your explanations.
 
 The problem I attempt to solve is the next:
 
 When I demand the page 
 'http://expresiongrafica.caminos.upm.es/PAU/AppletDoc.html', which has an 
 Applet with a tag 'archive=doc.jar', Tomcat (?) v5.5 returns me the OLD 
 VERSION of 'doc.jar' (v1) with the old bugs, as I deduct from the 'Java 
 Console'.
 
 I have placed two connector tags  in 'server.xml' file to use ports :80 y 
 :8080 in the same way
 
 but
 
 http://expresiongrafica.caminos.upm.es:8080/PAU/AppletDoc.html   return de 
 rigth 'doc.jar' (v2),   OK:   
 
 http://expresiongrafica.caminos.upm.es:80/PAU/AppletDoc.html   return de 
 old   'doc.jar' (v1),   BAD: 
 
 using  localhost/..., localhost:80/... y localhost:8080/...  OK (v2). 
 
 
 How can I destroy the old version? where is it? What is it happening? Is 
 maybe a navigators problem?
  (I get  'similar' results with IE and Firefox )
 
 
 Thanks in advance
 
 Amadeo.
 Universidad Politécnica de Madrid.
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



JspC exception with log4j in WEB-INF/lib

2005-10-07 Thread Artur Brinkmann
I'm trying to use the Jspc ant task to precompile JSP pages. It's almost 
working except for one problem. I made a minimal webapp, with the usual 
structure, and just one empty JSP file. The task runs fine and compiles the 
JSP without problems.


But as soon as I put log4j-1.2.9.jar into my WEB-INF/lib directory, it 
doesn't work any more. I get the following exception:


 [jasper2] java.lang.NullPointerException
 [jasper2] at 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220)

 [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:849)
 [jasper2] at org.apache.jasper.JspC.execute(JspC.java:991)
 [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
 [jasper2] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [jasper2] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
 [jasper2] at 
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:157)
 [jasper2] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)

 [jasper2] at org.apache.tools.ant.Task.perform(Task.java:401)
 [jasper2] at org.apache.tools.ant.Target.execute(Target.java:338)
 [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:365)
 [jasper2] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1237)
 [jasper2] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1094)

 [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:669)
 [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:220)
 [jasper2] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
 [jasper2] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

 [jasper2] Error in class org.apache.jasper.JspC

I tried different versions of log4j, without success. Any other jar files 
don't bother Jspc, but as soon as I put log4j in WEB-INF/lib, I get this 
exception.


The funny thing is, WEB-INF/lib isn't even in the classpath of the JspC 
task. And if I put log4j in ${tomcat.home}/common/lib (which is in the 
classpath), I don't get the exception.


Well, I can't figure it out... anybody know why this could be happening?

Thanks. 



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



RE: JspC exception with log4j in WEB-INF/lib [255729:132231]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Artur Brinkmann [EMAIL PROTECTED]
 Received: 10/7/2005 2:27 PM
 To:  tomcat-user@jakarta.apache.org
 Subject: JspC exception with log4j in WEB-INF/lib

 I'm trying to use the Jspc ant task to precompile JSP pages. It's almost 
 working except for one problem. I made a minimal webapp, with the usual 
 structure, and just one empty JSP file. The task runs fine and compiles the 
 JSP without problems.
 
 But as soon as I put log4j-1.2.9.jar into my WEB-INF/lib directory, it 
 doesn't work any more. I get the following exception:
 
   [jasper2] java.lang.NullPointerException
   [jasper2] at 
 org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220)
   [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:849)
   [jasper2] at org.apache.jasper.JspC.execute(JspC.java:991)
   [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
 Method)
   [jasper2] at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [jasper2] at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
   [jasper2] at 
 org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:157)
   [jasper2] at 
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
   [jasper2] at org.apache.tools.ant.Task.perform(Task.java:401)
   [jasper2] at org.apache.tools.ant.Target.execute(Target.java:338)
   [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:365)
   [jasper2] at 
 org.apache.tools.ant.Project.executeTarget(Project.java:1237)
   [jasper2] at 
 org.apache.tools.ant.Project.executeTargets(Project.java:1094)
   [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:669)
   [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:220)
   [jasper2] at 
 org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
   [jasper2] at 
 org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
   [jasper2] Error in class org.apache.jasper.JspC
 
 I tried different versions of log4j, without success. Any other jar files 
 don't bother Jspc, but as soon as I put log4j in WEB-INF/lib, I get this 
 exception.
 
 The funny thing is, WEB-INF/lib isn't even in the classpath of the JspC 
 task. And if I put log4j in ${tomcat.home}/common/lib (which is in the 
 classpath), I don't get the exception.
 
 Well, I can't figure it out... anybody know why this could be happening?
 
 Thanks. 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Sending mail with JavaMail (UNCLASSIFIED)

2005-10-07 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Are you including your JAR files your BUILD.XML classpath ? 

-Original Message-
From: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 6:25 AM
To: Tomcat Users List
Subject: Re: Sending mail with JavaMail

Looks like the usual Tomcat classloader hierarchy SNAFU.

Try with ONLY in tomcat/common/lib.

--On Friday, October 07, 2005 12:04 PM +0200 Andrés Reyes [EMAIL PROTECTED]
wrote:

 activation.jar and mail.jar are placed both in /common/lib, and in 
 /WEB-INF/lib (and also in JAVA_HOME/lib)

 ¿Any other place?
 ;)

 ¿Maybe the error be in activation.jar itself? ( I want to believe that it
isn't  :( ).

No.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
can someone please remove this email from the list? It's kindof nerving...

thanx
leon

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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Why don't you use your eyes and read the bottom of the email. Or is that too
difficult? 

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 15:39
To: Tomcat Users List
Subject: RTE - Meridian Club [EMAIL PROTECTED]

can someone please remove this email from the list? It's kindof nerving...

thanx
leon

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



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



RE: RTE - Meridian Club [EMAIL PROTECTED] [255758:132268]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Leon Rosenberg [EMAIL PROTECTED]
 Received: 10/7/2005 3:37 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...
 
 thanx
 leon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED] [255760:132270]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Arup Vidyerthy [EMAIL PROTECTED]
 Received: 10/7/2005 3:39 PM
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

 Why don't you use your eyes and read the bottom of the email. Or is that too
 difficult? 
 
 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]
 
 can someone please remove this email from the list? It's kindof nerving...
 
 thanx
 leon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 ___ 
 To help you stay safe and secure online, we've developed the all new Yahoo! 
 Security Centre. http://uk.security.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is that too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new Yahoo! 
 Security Centre. http://uk.security.yahoo.com

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



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



RE: [OT] How much RAM can java use

2005-10-07 Thread Edmon Begoli
I asked this same question Cameron Purdy, CEO of Tangosol (maker of a 
leading Java cache product) this question during the TheServerSide this 
year.

His business is all about optimal use of the allocated heap space, and that

His recommendation was to use up to 512 MB of heap space to minimize 
more severe garbage collection pauses.
I think that this article Java 5.0 JVM tuning 
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html can help you 
answer what is the optimal use.





On 10/6/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Subject: [OT] How much RAM can java use

 Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5?
   





Re: RTE - Meridian Club [EMAIL PROTECTED] [255766:132280]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Leon Rosenberg [EMAIL PROTECTED]
 Received: 10/7/2005 3:49 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]

 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
  Why don't you use your eyes and read the bottom of the email. Or is that too
  difficult?
 
 Hae?
 Leon
 
 
  -Original Message-
  From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2005 15:39
  To: Tomcat Users List
  Subject: RTE - Meridian Club [EMAIL PROTECTED]
 
  can someone please remove this email from the list? It's kindof nerving...
 
  thanx
  leon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  ___
  To help you stay safe and secure online, we've developed the all new Yahoo! 
  Security Centre. http://uk.security.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: [OT] How much RAM can java use [255767:132281]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Edmon Begoli [EMAIL PROTECTED]
 Received: 10/7/2005 3:50 PM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: [OT] How much RAM can java use

 I asked this same question Cameron Purdy, CEO of Tangosol (maker of a 
 leading Java cache product) this question during the TheServerSide this 
 year.
 His business is all about optimal use of the allocated heap space, and that
 
 His recommendation was to use up to 512 MB of heap space to minimize 
 more severe garbage collection pauses.
 I think that this article Java 5.0 JVM tuning 
 http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html can help you 
 answer what is the optimal use.
 
 
 
 
 On 10/6/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
 
   From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
   Subject: [OT] How much RAM can java use
  
   Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5?
 
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We’re all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



RE: RTE - Meridian Club [EMAIL PROTECTED] [255776:132291]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Short [EMAIL PROTECTED]
 Received: 10/7/2005 3:59 PM
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org;'Leon Rosenberg' 
 [EMAIL PROTECTED]
 Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

 I think Arup thought that you wanted to be removed from this list.  I'm
 pretty sure you meant for the Meridian Club Auto-response message to be
 blocked.  I would second the motion to block the Meridian Club messages.
 Whoever the original poster was, I forgot, should use a different account to
 communicate on this list.  These auto-reply messages are annoying and
 unnecessarily consume resources.
 
 Arup needs to work on his social skills.  We’re all here trying to help each
 other, not to attack each other.
 
 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 07, 2005 7:51 AM
 To: Tomcat Users List
 Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]
 
 
 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
  Why don't you use your eyes and read the bottom of the email. Or is that
 too
  difficult?
 
 Hae?
 Leon
 
 
  -Original Message-
  From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2005 15:39
  To: Tomcat Users List
  Subject: RTE - Meridian Club [EMAIL PROTECTED]
 
  can someone please remove this email from the list? It's kindof nerving...
 
  thanx
  leon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  ___
  To help you stay safe and secure online, we've developed the all new
 Yahoo! Security Centre. http://uk.security.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread GB Developer

 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED] 
 
 Arup needs to work on his social skills.  We're all here 
 trying to help each other, not to attack each other.


but... at least he likes donuts. So he can't be all that bad.  ;)

 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:


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



RE: RTE - Meridian Club [EMAIL PROTECTED] [255778:132294]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: GB Developer [EMAIL PROTECTED]
 Received: 10/7/2005 4:03 PM
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

 
  -Original Message-
  From: David Short [mailto:[EMAIL PROTECTED] 
  
  Arup needs to work on his social skills.  We're all here 
  trying to help each other, not to attack each other.
 
 
 but... at least he likes donuts. So he can't be all that bad.  ;)
 
  On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
Well, it is Friday morning...at least here in the US.  It looks like Happy
Hour in the UK...now that's what I'm talking about!

-Original Message-
From: GB Developer [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:05 AM
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]



 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED]

 Arup needs to work on his social skills.  We're all here
 trying to help each other, not to attack each other.


but... at least he likes donuts. So he can't be all that bad.  ;)

 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:


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





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



Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Hi List,
 
Honestly, I wish Tomcat web application deployment would be easier/smarter. To 
pre-empt certain list members from telling me it's my fault, I can assure you 
my WAR itself is totally 100% no doubts valid. 
 
Perhaps it is my method of deploying that is causing the issue, I don't know. I 
am attempting to use the Tomcat Client Deployer (the Ant script that comes with 
deployer).
 
I use it to compile the WAR and now want to deploy it to a waiting Tomcat. I 
ensured my Tomcat webapps folder was wiped and the conf/Catalina/localhost had 
no context configuration files.
 
My WAR contains a META-INF/context.xml for deploying the context configuration.
 
After I compile my WAR with Deployer, I call 
 
C:\apache-tomcat-5.5.12-deployerant -Dserver=intratest deploy
Buildfile: build.xml
 
deploy:
   [deploy] OK - Deployed application at context path /ROOT
 
So it's deployed OK. 
 
I wait 5 minutes and then put a request into Tomcat. 404. Why? Because it 
failed to start the context which in a nutshell is all I ever get when 
deploying from WARs.
 
My WAR has been exploded fully which is at least something.
 
The logs reveal:
 
2005-10-07 16:18:29,882 -  WARN (org.apache.catalina.startup.HostConfig:597) - 
A docBase D:\jakarta-tomcat\webapps\ROOT inside the host appBase has been 
specified, and will be ignored
2005-10-07 16:18:30,163 - ERROR (org.apache.catalina.core.StandardContext:3796) 
- Error starting static Resources
java.lang.IllegalArgumentException: Document base 
D:\jakarta-tomcat\webapps\ROOT does not exist or is not a readable directory
 at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
 at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
 at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
 at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2005-10-07 16:18:30,163 - ERROR (org.apache.catalina.core.StandardContext:3949) 
- Error in resourceStart()
2005-10-07 16:18:30,195 - ERROR (org.apache.catalina.core.StandardContext:4100) 
- Error getConfigured
2005-10-07 16:18:30,195 - ERROR (org.apache.catalina.core.StandardContext:4153) 
- Context [] startup failed due to previous errors
2005-10-07 16:18:30,195 -  INFO (org.apache.catalina.core.StandardContext:4250) 
- Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] 
has not been started
 
It is not clear if this exception is thrown at the time when the WAR has not 
been exploded and of course ROOT will not exist.
 
My META-INF/context.xml has
Context docBase=/ROOT reloadable=true antiJARLocking=true 
antiResourceLocking=true swallowOutput=true

Does nobody else have issues with using the Deployer? Is it just me having all 
this bad luck? Honestly I am at my wits end with this deployment. I am fed up 
with manually having to deploy files to our Tomcat servers, exploding them 
myself and then restarting Tomcat. 

When will Deployer actually work?

Kindest, frustrated, Allistair.




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. 

RE: Continuing Frustration and Misery with Deployer [255790:132313]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Allistair Crossley [EMAIL PROTECTED]
 Received: 10/7/2005 4:34 PM
 To:  tomcat-user@jakarta.apache.org
 Subject: Continuing Frustration and Misery with Deployer

 Hi List,
  
 Honestly, I wish Tomcat web application deployment would be easier/smarter. 
 To pre-empt certain list members from telling me it's my fault, I can assure 
 you my WAR itself is totally 100% no doubts valid. 
  
 Perhaps it is my method of deploying that is causing the issue, I don't know. 
 I am attempting to use the Tomcat Client Deployer (the Ant script that comes 
 with deployer).
  
 I use it to compile the WAR and now want to deploy it to a waiting Tomcat. I 
 ensured my Tomcat webapps folder was wiped and the conf/Catalina/localhost 
 had no context configuration files.
  
 My WAR contains a META-INF/context.xml for deploying the context 
 configuration.
  
 After I compile my WAR with Deployer, I call 
  
 C:\apache-tomcat-5.5.12-deployerant -Dserver=intratest deploy
 Buildfile: build.xml
  
 deploy:
[deploy] OK - Deployed application at context path /ROOT
  
 So it's deployed OK. 
  
 I wait 5 minutes and then put a request into Tomcat. 404. Why? Because it 
 failed to start the context which in a nutshell is all I ever get when 
 deploying from WARs.
  
 My WAR has been exploded fully which is at least something.
  
 The logs reveal:
  
 2005-10-07 16:18:29,882 -  WARN (org.apache.catalina.startup.HostConfig:597) 
 - A docBase D:\jakarta-tomcat\webapps\ROOT inside the host appBase has been 
 specified, and will be ignored
 2005-10-07 16:18:30,163 - ERROR 
 (org.apache.catalina.core.StandardContext:3796) - Error starting static 
 Resources
 java.lang.IllegalArgumentException: Document base 
 D:\jakarta-tomcat\webapps\ROOT does not exist or is not a readable directory
  at 
 org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
  at 
 org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
  at 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  at 
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
  at 
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
  at 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
  at org.apache.catalina.core.StandardService.start(StandardService.java:450)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 2005-10-07 16:18:30,163 - ERROR 
 (org.apache.catalina.core.StandardContext:3949) - Error in resourceStart()
 2005-10-07 16:18:30,195 - ERROR 
 (org.apache.catalina.core.StandardContext:4100) - Error getConfigured
 2005-10-07 16:18:30,195 - ERROR 
 (org.apache.catalina.core.StandardContext:4153) - Context [] startup failed 
 due to previous errors
 2005-10-07 16:18:30,195 -  INFO 
 (org.apache.catalina.core.StandardContext:4250) - Container 
 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has not 
 been started
  
 It is not clear if this exception is thrown at the time when the WAR has not 
 been exploded and of course ROOT will not exist.
  
 My META-INF/context.xml has
 Context docBase=/ROOT reloadable=true antiJARLocking=true 
 antiResourceLocking=true swallowOutput=true
 
 Does nobody else have issues with using the Deployer? Is it just me having 
 all this bad luck? Honestly I am at my wits end with this deployment. I am 
 fed up with manually having to 

Re: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Glen Mazza
Arup misunderstood Leon's message and thought he lazily wanted others to 
unsubscribe him.  That was his main error.  But in fairness to Arup, 
flames can be called for when people ask to be unsubscribed from a 
technical mailing list that 1000's of other people are subscribed to.


People making such requests are usually either newbies who need to be 
jolted (and also thereby jolting/informing other newbies about to make 
the same request, keeping the ML free of additional requests), or by 
rather lazy people who know how to unsubscribe but don't want to bother. 
 The latter type might actually feed on the kid glove approach that 
David may be inclined to recommend.


Glen


David Short wrote:


Arup needs to work on his social skills.  We’re all here trying to help each
other, not to attack each other.



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



Re: RTE - Meridian Club [EMAIL PROTECTED] [255792:132315]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Glen Mazza [EMAIL PROTECTED]
 Received: 10/7/2005 4:39 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]

 Arup misunderstood Leon's message and thought he lazily wanted others to 
 unsubscribe him.  That was his main error.  But in fairness to Arup, 
 flames can be called for when people ask to be unsubscribed from a 
 technical mailing list that 1000's of other people are subscribed to.
 
 People making such requests are usually either newbies who need to be 
 jolted (and also thereby jolting/informing other newbies about to make 
 the same request, keeping the ML free of additional requests), or by 
 rather lazy people who know how to unsubscribe but don't want to bother. 
   The latter type might actually feed on the kid glove approach that 
 David may be inclined to recommend.
 
 Glen
 
 
 David Short wrote:
  
  Arup needs to work on his social skills.  We’re all here trying to help each
  other, not to attack each other.
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Leon Rosenberg
However, back to the original point, is there a way to remove
autoresponders from the list? I think the list is owned (among
others?) by Mark Thomas  [EMAIL PROTECTED], so he, or whoever owns
the list should be able to remove autoresponders from the list.
It's just annoying to adjust the filters twice a week.

thanx and regards
leon


On 10/7/05, Glen Mazza [EMAIL PROTECTED] wrote:
 Arup misunderstood Leon's message and thought he lazily wanted others to
 unsubscribe him.  That was his main error.  But in fairness to Arup,
 flames can be called for when people ask to be unsubscribed from a
 technical mailing list that 1000's of other people are subscribed to.

 People making such requests are usually either newbies who need to be
 jolted (and also thereby jolting/informing other newbies about to make
 the same request, keeping the ML free of additional requests), or by
 rather lazy people who know how to unsubscribe but don't want to bother.
   The latter type might actually feed on the kid glove approach that
 David may be inclined to recommend.

 Glen


 David Short wrote:
 
  Arup needs to work on his social skills.  We're all here trying to help each
  other, not to attack each other.
 

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



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



Re: RTE - Meridian Club [EMAIL PROTECTED] [255798:132322]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Leon Rosenberg [EMAIL PROTECTED]
 Received: 10/7/2005 4:51 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]

 However, back to the original point, is there a way to remove
 autoresponders from the list? I think the list is owned (among
 others?) by Mark Thomas  [EMAIL PROTECTED], so he, or whoever owns
 the list should be able to remove autoresponders from the list.
 It's just annoying to adjust the filters twice a week.
 
 thanx and regards
 leon
 
 
 On 10/7/05, Glen Mazza [EMAIL PROTECTED] wrote:
  Arup misunderstood Leon's message and thought he lazily wanted others to
  unsubscribe him.  That was his main error.  But in fairness to Arup,
  flames can be called for when people ask to be unsubscribed from a
  technical mailing list that 1000's of other people are subscribed to.
 
  People making such requests are usually either newbies who need to be
  jolted (and also thereby jolting/informing other newbies about to make
  the same request, keeping the ML free of additional requests), or by
  rather lazy people who know how to unsubscribe but don't want to bother.
The latter type might actually feed on the kid glove approach that
  David may be inclined to recommend.
 
  Glen
 
 
  David Short wrote:
  
   Arup needs to work on his social skills.  We're all here trying to help 
   each
   other, not to attack each other.
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
Hi Glen,

Thanks for the analysis.  I guess my point was that people (Arup) should
fully understand the issue at hand BEFORE flaming someone.  I knew exactly
what Leon was asking, without much effort.  I would imagine that Arup simply
perused the message without giving it much thought (he was busy, distracted,
etc.).  I do agree there are those who would rather have someone else to
their dirty work (unsubscribing).  However, even reprimanding someone for
being lazy can be done a little gentler.  There have been, and always will
be, new and lazy people on this list.  It’s the nature of the beast.  Simply
stated, anger and rage really don’t help anything.

Let's not turn this into a can of worms.  It can go away peacefully now.

Dave

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:42 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


Arup misunderstood Leon's message and thought he lazily wanted others to
unsubscribe him.  That was his main error.  But in fairness to Arup,
flames can be called for when people ask to be unsubscribed from a
technical mailing list that 1000's of other people are subscribed to.

People making such requests are usually either newbies who need to be
jolted (and also thereby jolting/informing other newbies about to make
the same request, keeping the ML free of additional requests), or by
rather lazy people who know how to unsubscribe but don't want to bother.
  The latter type might actually feed on the kid glove approach that
David may be inclined to recommend.

Glen


David Short wrote:

 Arup needs to work on his social skills.  We’re all here trying to help
each
 other, not to attack each other.


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





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



RE: RTE - Meridian Club [EMAIL PROTECTED] [255800:132324]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: David Short [EMAIL PROTECTED]
 Received: 10/7/2005 4:55 PM
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

 Hi Glen,
 
 Thanks for the analysis.  I guess my point was that people (Arup) should
 fully understand the issue at hand BEFORE flaming someone.  I knew exactly
 what Leon was asking, without much effort.  I would imagine that Arup simply
 perused the message without giving it much thought (he was busy, distracted,
 etc.).  I do agree there are those who would rather have someone else to
 their dirty work (unsubscribing).  However, even reprimanding someone for
 being lazy can be done a little gentler.  There have been, and always will
 be, new and lazy people on this list.  It’s the nature of the beast.  Simply
 stated, anger and rage really don’t help anything.
 
 Let's not turn this into a can of worms.  It can go away peacefully now.
 
 Dave
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 07, 2005 8:42 AM
 To: Tomcat Users List
 Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]
 
 
 Arup misunderstood Leon's message and thought he lazily wanted others to
 unsubscribe him.  That was his main error.  But in fairness to Arup,
 flames can be called for when people ask to be unsubscribed from a
 technical mailing list that 1000's of other people are subscribed to.
 
 People making such requests are usually either newbies who need to be
 jolted (and also thereby jolting/informing other newbies about to make
 the same request, keeping the ML free of additional requests), or by
 rather lazy people who know how to unsubscribe but don't want to bother.
   The latter type might actually feed on the kid glove approach that
 David may be inclined to recommend.
 
 Glen
 
 
 David Short wrote:
 
  Arup needs to work on his social skills.  We’re all here trying to help
 each
  other, not to attack each other.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Caldarale, Charles R
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Subject: Continuing Frustration and Misery with Deployer
  
 deploy:
[deploy] OK - Deployed application at context path /ROOT
 So it's deployed OK. 

I suspect all that means is that it was successfully copied to webapps,
but I'm not certain.

 My META-INF/context.xml has
 Context docBase=/ROOT reloadable=true 
 antiJARLocking=true antiResourceLocking=true swallowOutput=true

The docBase attribute doesn't look right - it's specifying an absolute
path to the directory, and I doubt that's where the war is exploded to.
Have you tried removing this?  Also, I seem to recall that if you're
trying to deploy the default application for the host, it must be named
ROOT.war (at least on 5.5.x).

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Continuing Frustration and Misery with Deployer [255802:132327]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Caldarale, Charles R [EMAIL PROTECTED]
 Received: 10/7/2005 5:01 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RE: Continuing Frustration and Misery with Deployer

  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Subject: Continuing Frustration and Misery with Deployer
   
  deploy:
 [deploy] OK - Deployed application at context path /ROOT
  So it's deployed OK. 
 
 I suspect all that means is that it was successfully copied to webapps,
 but I'm not certain.
 
  My META-INF/context.xml has
  Context docBase=/ROOT reloadable=true 
  antiJARLocking=true antiResourceLocking=true swallowOutput=true
 
 The docBase attribute doesn't look right - it's specifying an absolute
 path to the directory, and I doubt that's where the war is exploded to.
 Have you tried removing this?  Also, I seem to recall that if you're
 trying to deploy the default application for the host, it must be named
 ROOT.war (at least on 5.5.x).
 
  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Hi,

Thanks for your thoughts. I agree, deployed OK certainly does not mean a valid 
deployment ;)

The docs say of docBase

The Document Base ... for this web application, or the pathname to the web 
application archive file (if this web application is being executed directly 
from the WAR file). You may specify an absolute pathname for this directory or 
WAR file, or a pathname that is relative to the appBase directory of the owning 
Host.

The thing is, I do not wish to execute directly from the WAR as that would be 
inefficient. I thought I could deploy a WAR, that it would explode and then 
initialise itself. It seems to me like (if it actually manages to explode in 
time which is not always the case) that initialisation of the context does not 
wait on complete extraction of the WAR.

Therefore to avoid executing from the WAR itself I use a relative path to the 
web application. Perhaps I should be specifying docBase=ROOT rather than 
/ROOT. 

Thanks again, I need all the help I can get with this deployment malarky!

Cheers, Allistair

 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 17:03
 To: Tomcat Users List
 Subject: RE: Continuing Frustration and Misery with Deployer
 
 
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Subject: Continuing Frustration and Misery with Deployer
   
  deploy:
 [deploy] OK - Deployed application at context path /ROOT
  So it's deployed OK. 
 
 I suspect all that means is that it was successfully copied 
 to webapps,
 but I'm not certain.
 
  My META-INF/context.xml has
  Context docBase=/ROOT reloadable=true 
  antiJARLocking=true antiResourceLocking=true 
 swallowOutput=true
 
 The docBase attribute doesn't look right - it's specifying an absolute
 path to the directory, and I doubt that's where the war is 
 exploded to.
 Have you tried removing this?  Also, I seem to recall that if you're
 trying to deploy the default application for the host, it 
 must be named
 ROOT.war (at least on 5.5.x).
 
  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Continuing Frustration and Misery with Deployer [255805:132330]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Allistair Crossley [EMAIL PROTECTED]
 Received: 10/7/2005 5:11 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RE: Continuing Frustration and Misery with Deployer

 Hi,
 
 Thanks for your thoughts. I agree, deployed OK certainly does not mean a 
 valid deployment ;)
 
 The docs say of docBase
 
 The Document Base ... for this web application, or the pathname to the web 
 application archive file (if this web application is being executed directly 
 from the WAR file). You may specify an absolute pathname for this directory 
 or WAR file, or a pathname that is relative to the appBase directory of the 
 owning Host.
 
 The thing is, I do not wish to execute directly from the WAR as that would be 
 inefficient. I thought I could deploy a WAR, that it would explode and then 
 initialise itself. It seems to me like (if it actually manages to explode in 
 time which is not always the case) that initialisation of the context does 
 not wait on complete extraction of the WAR.
 
 Therefore to avoid executing from the WAR itself I use a relative path to the 
 web application. Perhaps I should be specifying docBase=ROOT rather than 
 /ROOT. 
 
 Thanks again, I need all the help I can get with this deployment malarky!
 
 Cheers, Allistair
 
  -Original Message-
  From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2005 17:03
  To: Tomcat Users List
  Subject: RE: Continuing Frustration and Misery with Deployer
  
  
   From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
   Subject: Continuing Frustration and Misery with Deployer

   deploy:
  [deploy] OK - Deployed application at context path /ROOT
   So it's deployed OK. 
  
  I suspect all that means is that it was successfully copied 
  to webapps,
  but I'm not certain.
  
   My META-INF/context.xml has
   Context docBase=/ROOT reloadable=true 
   antiJARLocking=true antiResourceLocking=true 
  swallowOutput=true
  
  The docBase attribute doesn't look right - it's specifying an absolute
  path to the directory, and I doubt that's where the war is 
  exploded to.
  Have you tried removing this?  Also, I seem to recall that if you're
  trying to deploy the default application for the host, it 
  must be named
  ROOT.war (at least on 5.5.x).
  
   - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
 Disclaimer:  The information contained within this e-mail is confidential and 
 may be privileged. This email is intended solely for the named recipient 
 only; if you are not authorised you must not disclose, copy, distribute, or 
 retain this message or any part of it. If you have received this message in 
 error please contact the sender at once so that we may take the appropriate 
 action and avoid troubling you further.  Any views expressed in this message 
 are those of the individual sender.  QAS Limited has the right lawfully to 
 record, monitor and inspect messages between its employees and any third 
 party.  Your messages shall be subject to such lawful supervision as QAS 
 Limited deems to be necessary in order to protect its information, its 
 interests and its reputation.  
 
 Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
 Limited cannot guarantee that attachments are virus free or compatible with 
 your systems and does not accept any liability in respect of viruses or 
 computer problems experienced.
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



tomcat webdav

2005-10-07 Thread Vineet Chadha
Hi,
 I am trying to configure webdav to provide web resource to multiple user.
For example, inside webdav directory I create multiple user directory (
user1, user2 ,user3 ). I am authenticating users using mysql database (
authentication works fine for single user ( let us say user1) with role name
user1). But it doesn't work for multiple users. Here is snippet of
web.xmlfile in webapps/webdav/WEB-INF/
web.xml ( specifically security constraint I am trying to set). Please note
that as specified in following XML parameters, admin and user1 are able to
authenticate with database. All users/roles are correctly specificed. what i
want is to provide admin access to admin for /webapps/webdav/ directory
and user1 access of /webapps/webdav/user1 directory. I have created user1
directory inside webapps.

security-constraint
  web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 role-nameadmin/role-name
  /auth-constraint
/security-constraint  

security-constraint
  web-resource-collection
web-resource-nameEntire Application/web-resource-name
url-pattern/user1/*/url-pattern
  /web-resource-collection
  auth-constraint
 role-nameuser1/role-name
  /auth-constraint
/security-constraint  

 login-config
  auth-methodBASIC/auth-method
  realm-nameTomcat Manager Application/realm-name
/login-config

 security-role
  description
The role that is required to log in to the Manager Application
  /description
  role-nameadmin/role-name

  role-nameuser1/role-name

/security-roleif i try webdav access through
http://xxx.xxx.xxx.xxx:8080/webdav/user1 and enter username and password, it
gives following error on web page:
 java.lang.NullPointerException
org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServlet.java
:1345)
org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.java:1102)
org.apache.catalina.servlets.DefaultServlet.serveResource(
DefaultServlet.java:807)
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:335)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.java:287)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 tomcat log file indicates following:
 java.lang.NullPointerException
at org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServle
t.java:1345)
at org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.ja
va:1102)
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultSer
vlet.java:807)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.jav
a:335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.jav
a:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
Valve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
Valve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentic
atorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
lve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
va:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
a:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
essConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndp
oint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFo
llowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
Pool.java:684)
at java.lang.Thread.run(Thread.java:595)
  Please help. Can we configure webdav application to provide exclusive
access of a subdirectory to multiple user ?
 Regards,
Vineet


RE: tomcat webdav [255807:132333]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Vineet Chadha [EMAIL PROTECTED]
 Received: 10/7/2005 5:15 PM
 To: tomcat-user@jakarta.apache.org
 Subject: tomcat webdav

 Hi,
  I am trying to configure webdav to provide web resource to multiple user.
 For example, inside webdav directory I create multiple user directory (
 user1, user2 ,user3 ). I am authenticating users using mysql database (
 authentication works fine for single user ( let us say user1) with role name
 user1). But it doesn't work for multiple users. Here is snippet of
 web.xmlfile in webapps/webdav/WEB-INF/
 web.xml ( specifically security constraint I am trying to set). Please note
 that as specified in following XML parameters, admin and user1 are able to
 authenticate with database. All users/roles are correctly specificed. what i
 want is to provide admin access to admin for /webapps/webdav/ directory
 and user1 access of /webapps/webdav/user1 directory. I have created user1
 directory inside webapps.
 
 security-constraint
   web-resource-collection
 web-resource-nameEntire Application/web-resource-name
 url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
  role-nameadmin/role-name
   /auth-constraint
 /security-constraint
 
 security-constraint
   web-resource-collection
 web-resource-nameEntire Application/web-resource-name
 url-pattern/user1/*/url-pattern
   /web-resource-collection
   auth-constraint
  role-nameuser1/role-name
   /auth-constraint
 /security-constraint
 
  login-config
   auth-methodBASIC/auth-method
   realm-nameTomcat Manager Application/realm-name
 /login-config
 
  security-role
   description
 The role that is required to log in to the Manager Application
   /description
   role-nameadmin/role-name
 
   role-nameuser1/role-name
 
 /security-roleif i try webdav access through
 http://xxx.xxx.xxx.xxx:8080/webdav/user1 and enter username and password, it
 gives following error on web page:
  java.lang.NullPointerException
 org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServlet.java
 :1345)
 org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.java:1102)
 org.apache.catalina.servlets.DefaultServlet.serveResource(
 DefaultServlet.java:807)
 org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:335)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.java:287)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  tomcat log file indicates following:
  java.lang.NullPointerException
 at org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServle
 t.java:1345)
 at org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.ja
 va:1102)
 at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultSer
 vlet.java:807)
 at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.jav
 a:335)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.jav
 a:287)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 licationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
 Valve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
 Valve.java:178)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentic
 atorBase.java:482)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
 java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
 java:105)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
 lve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
 va:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
 a:856)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
 essConnection(Http11Protocol.java:744)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndp
 oint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFo
 llowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
 Pool.java:684)
 at java.lang.Thread.run(Thread.java:595)
   Please help. Can we configure webdav application to provide exclusive
 access of a subdirectory to multiple user ?
  Regards,
 Vineet
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 

Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Marcus Franke
On Thu, Oct 06, 2005 at 06:53:36AM -0700, Rick wrote:
 Jean-Marc,
   Actually, without the connectionTimeout set, jk seems to hold on to its
 connections indefinitely and after a while, the apache to tomcat connection
 hangs (pages quit serving).   Could you tell me which combo of versions you
 use for apache, jk, and tomcat.  I'm trying to figure out what is the
 correct configuration.  Or if you have a link to a guide,  I have yet to
 find a best practices.
 

Out of curiosity I activated the connectionTimeout in my ajp connector and
my catalina.out file gets spammed with hundreds of these:

07.10.2005 17:47:15 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
07.10.2005 17:47:17 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
07.10.2005 17:47:20 org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached

I guess, it is because of definition of debug=9 in the same Connector.

What would be a reasonable debug level? Zero?


Marcus


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



RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Caldarale, Charles R
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Subject: RE: Continuing Frustration and Misery with Deployer
 
 The thing is, I do not wish to execute directly from the WAR 
 as that would be inefficient.

If you only have classes (as opposed to resource files) I don't think it
will make a difference.  If you do have other resources in there, then
yes, expanding the war would probably be better.  However, I think
that's controlled solely by the unpackWARs attribute of the Host tag,
and has nothing to do with docBase.

 Therefore to avoid executing from the WAR itself I use a 
 relative path to the web application. Perhaps I should be 
 specifying docBase=ROOT rather than /ROOT. 

That would probably be better; I wonder if you even need a docBase
attribute at all?  If the war file is under webapps, it may be redundant
(and possibly a contributor to the errors in the log).  Is your app
deployed from ROOT.war?

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached [255808:132335]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Marcus Franke [EMAIL PROTECTED]
 Received: 10/7/2005 5:20 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

 On Thu, Oct 06, 2005 at 06:53:36AM -0700, Rick wrote:
  Jean-Marc,
Actually, without the connectionTimeout set, jk seems to hold on to its
  connections indefinitely and after a while, the apache to tomcat connection
  hangs (pages quit serving).   Could you tell me which combo of versions you
  use for apache, jk, and tomcat.  I'm trying to figure out what is the
  correct configuration.  Or if you have a link to a guide,  I have yet to
  find a best practices.
  
 
 Out of curiosity I activated the connectionTimeout in my ajp connector and
 my catalina.out file gets spammed with hundreds of these:
 
 07.10.2005 17:47:15 org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:17 org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:20 org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached
 
 I guess, it is because of definition of debug=9 in the same Connector.
 
 What would be a reasonable debug level? Zero?
 
 
 Marcus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Allistair Crossley
Hi,

looks like jk is using commons logging, you'll have better success using a 
log4j or commons-logging properties configuration to set the threshold to 
ERROR. you may be able to do that in jk's config files too, i am sure there is 
an error level setting. check out the jk docs.

Allistair.

 -Original Message-
 From: Marcus Franke [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 17:22
 To: Tomcat Users List
 Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout
 reached
 
 
 On Thu, Oct 06, 2005 at 06:53:36AM -0700, Rick wrote:
  Jean-Marc,
Actually, without the connectionTimeout set, jk seems 
 to hold on to its
  connections indefinitely and after a while, the apache to 
 tomcat connection
  hangs (pages quit serving).   Could you tell me which combo 
 of versions you
  use for apache, jk, and tomcat.  I'm trying to figure out 
 what is the
  correct configuration.  Or if you have a link to a guide, 
  I have yet to
  find a best practices.
  
 
 Out of curiosity I activated the connectionTimeout in my ajp 
 connector and
 my catalina.out file gets spammed with hundreds of these:
 
 07.10.2005 17:47:15 org.apache.jk.common.ChannelSocket 
 processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:17 org.apache.jk.common.ChannelSocket 
 processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket 
 processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket 
 processConnection
 INFO: connection timeout reached
 07.10.2005 17:47:20 org.apache.jk.common.ChannelSocket 
 processConnection
 INFO: connection timeout reached
 
 I guess, it is because of definition of debug=9 in the same 
 Connector.
 
 What would be a reasonable debug level? Zero?
 
 
 Marcus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Continuing Frustration and Misery with Deployer [255810:132337]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Caldarale, Charles R [EMAIL PROTECTED]
 Received: 10/7/2005 5:21 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RE: Continuing Frustration and Misery with Deployer

  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Subject: RE: Continuing Frustration and Misery with Deployer
  
  The thing is, I do not wish to execute directly from the WAR 
  as that would be inefficient.
 
 If you only have classes (as opposed to resource files) I don't think it
 will make a difference.  If you do have other resources in there, then
 yes, expanding the war would probably be better.  However, I think
 that's controlled solely by the unpackWARs attribute of the Host tag,
 and has nothing to do with docBase.
 
  Therefore to avoid executing from the WAR itself I use a 
  relative path to the web application. Perhaps I should be 
  specifying docBase=ROOT rather than /ROOT. 
 
 That would probably be better; I wonder if you even need a docBase
 attribute at all?  If the war file is under webapps, it may be redundant
 (and possibly a contributor to the errors in the log).  Is your app
 deployed from ROOT.war?
 
  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Continuing Frustration and Misery with Deployer

2005-10-07 Thread Allistair Crossley
Hi,

  The thing is, I do not wish to execute directly from the WAR 
  as that would be inefficient.
 
 If you only have classes (as opposed to resource files) I 
 don't think it
 will make a difference.  If you do have other resources in there, then
 yes, expanding the war would probably be better.  However, I think
 that's controlled solely by the unpackWARs attribute of the 
 Host tag,
 and has nothing to do with docBase.

The web application is a whopping 22MB WAR consisting of resources, jsps, 
classes, you name it (although the web server is linked to the unpacked 
resources location to serve those).
 
  Therefore to avoid executing from the WAR itself I use a 
  relative path to the web application. Perhaps I should be 
  specifying docBase=ROOT rather than /ROOT. 
 
 That would probably be better; I wonder if you even need a docBase
 attribute at all?  If the war file is under webapps, it may 
 be redundant
 (and possibly a contributor to the errors in the log).  Is your app
 deployed from ROOT.war?

The docBase attribute is listed in the docs as being needed, I could try 
without it. My WAR is called ROOT.war yes.

Thanks again, I will need to try these permutations and get back to the list.

Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached [255811:132338]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Allistair Crossley [EMAIL PROTECTED]
 Received: 10/7/2005 5:23 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

 Hi,
 
 looks like jk is using commons logging, you'll have better success using a 
 log4j or commons-logging properties configuration to set the threshold to 
 ERROR. you may be able to do that in jk's config files too, i am sure there 
 is an error level setting. check out the jk docs.
 
 Allistair.
 
  -Original Message-
  From: Marcus Franke [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2005 17:22
  To: Tomcat Users List
  Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout
  reached
  
  
  On Thu, Oct 06, 2005 at 06:53:36AM -0700, Rick wrote:
   Jean-Marc,
 Actually, without the connectionTimeout set, jk seems 
  to hold on to its
   connections indefinitely and after a while, the apache to 
  tomcat connection
   hangs (pages quit serving).   Could you tell me which combo 
  of versions you
   use for apache, jk, and tomcat.  I'm trying to figure out 
  what is the
   correct configuration.  Or if you have a link to a guide, 
   I have yet to
   find a best practices.
   
  
  Out of curiosity I activated the connectionTimeout in my ajp 
  connector and
  my catalina.out file gets spammed with hundreds of these:
  
  07.10.2005 17:47:15 org.apache.jk.common.ChannelSocket 
  processConnection
  INFO: connection timeout reached
  07.10.2005 17:47:17 org.apache.jk.common.ChannelSocket 
  processConnection
  INFO: connection timeout reached
  07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket 
  processConnection
  INFO: connection timeout reached
  07.10.2005 17:47:18 org.apache.jk.common.ChannelSocket 
  processConnection
  INFO: connection timeout reached
  07.10.2005 17:47:20 org.apache.jk.common.ChannelSocket 
  processConnection
  INFO: connection timeout reached
  
  I guess, it is because of definition of debug=9 in the same 
  Connector.
  
  What would be a reasonable debug level? Zero?
  
  
  Marcus
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
 Disclaimer:  The information contained within this e-mail is confidential and 
 may be privileged. This email is intended solely for the named recipient 
 only; if you are not authorised you must not disclose, copy, distribute, or 
 retain this message or any part of it. If you have received this message in 
 error please contact the sender at once so that we may take the appropriate 
 action and avoid troubling you further.  Any views expressed in this message 
 are those of the individual sender.  QAS Limited has the right lawfully to 
 record, monitor and inspect messages between its employees and any third 
 party.  Your messages shall be subject to such lawful supervision as QAS 
 Limited deems to be necessary in order to protect its information, its 
 interests and its reputation.  
 
 Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
 Limited cannot guarantee that attachments are virus free or compatible with 
 your systems and does not accept any liability in respect of viruses or 
 computer problems experienced.
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Executing custom action on deploy

2005-10-07 Thread Matteo Miraz
Hi!

I'm writing a web application for tomcat and I have a strange request:
I would like to execute an initializing function in order to
initialize correctly my applicaiton when it becomes available
(deployed into tomcat or tomcat itself is started)

I have written such behaviour in a method, so what can I do to execute it?

Thanks for your help, Matteo

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



Can someone remove RTE - Meridian Club [EMAIL PROTECTED] from this list

2005-10-07 Thread Larry Meadors
No, not my email address, I know how to subscribe/unsubscribe, thatnks.

This one needs to be removed: RTE - Meridian Club [EMAIL PROTECTED]

Please?

Larry

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



RE: Executing custom action on deploy [255816:132346]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Matteo Miraz [EMAIL PROTECTED]
 Received: 10/7/2005 5:30 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Executing custom action on deploy

 Hi!
 
 I'm writing a web application for tomcat and I have a strange request:
 I would like to execute an initializing function in order to
 initialize correctly my applicaiton when it becomes available
 (deployed into tomcat or tomcat itself is started)
 
 I have written such behaviour in a method, so what can I do to execute it?
 
 Thanks for your help, Matteo
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Can someone remove RTE - Meridian Club [EMAIL PROTECTED] from this list [255817:132347]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Larry Meadors [EMAIL PROTECTED]
 Received: 10/7/2005 5:30 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Can someone remove RTE - Meridian Club [EMAIL PROTECTED] from 
 this list

 No, not my email address, I know how to subscribe/unsubscribe, thatnks.
 
 This one needs to be removed: RTE - Meridian Club [EMAIL PROTECTED]
 
 Please?
 
 Larry
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



apache question

2005-10-07 Thread peter thesing

Hi All.

Perhaps has this question answered in previous mails but i could not 
find it. I would like to put this question to the list...
At home i have 2 webservers running . the one of my partner (iis) on 
port 80 and mine at port 8000. I would like to continue with Apache2 
because it supports php. perl and so on and i have build my website 
around it. What i want to do is to include java server applets using 
jakarta tomcat but without disabling Apache2.


Can this be done and if so how?

What additional configuration needs to be done to let's say httpd.conf
Thanks in advance

Peter

ps

since apache has no means, that i can discover, to answer  this 
technical question perhaps someone on the list can direct me to the 
proper way

Thanks
;P

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



Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Marcus Franke
On Thu, Oct 06, 2005 at 09:40:38AM -0700, Rick wrote:
  Thanks Jean-Marc,
   After checking over my workers.properties, orginally configured by someone
 else, it appears to be missing some of the connection timeout handling
 properties you have listed in yours.  I'm guessing this is the root of my
 issue.  I'll give them a try.
 

Hmm, I guess its not only an issue of the mod_jk, as I restarted the
apache server and still had sessions in the jk connector with an age
of over 19 hours.

Or am I missing something?


Marcus

-- 

Live long and prosper.
-- Spock, Amok Time, stardate 3372.7

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



RE: apache question [255819:132349]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: peter thesing [EMAIL PROTECTED]
 Received: 10/7/2005 5:38 PM
 To: tomcat-user@jakarta.apache.org
 Subject: apache question

 Hi All.
 
 Perhaps has this question answered in previous mails but i could not 
 find it. I would like to put this question to the list...
 At home i have 2 webservers running . the one of my partner (iis) on 
 port 80 and mine at port 8000. I would like to continue with Apache2 
 because it supports php. perl and so on and i have build my website 
 around it. What i want to do is to include java server applets using 
 jakarta tomcat but without disabling Apache2.
 
 Can this be done and if so how?
 
 What additional configuration needs to be done to let's say httpd.conf
 Thanks in advance
 
 Peter
 
 ps
 
 since apache has no means, that i can discover, to answer  this 
 technical question perhaps someone on the list can direct me to the 
 proper way
 Thanks
 ;P
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached [255820:132350]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Marcus Franke [EMAIL PROTECTED]
 Received: 10/7/2005 5:39 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

 On Thu, Oct 06, 2005 at 09:40:38AM -0700, Rick wrote:
   Thanks Jean-Marc,
After checking over my workers.properties, orginally configured by someone
  else, it appears to be missing some of the connection timeout handling
  properties you have listed in yours.  I'm guessing this is the root of my
  issue.  I'll give them a try.
  
 
 Hmm, I guess its not only an issue of the mod_jk, as I restarted the
 apache server and still had sessions in the jk connector with an age
 of over 19 hours.
 
 Or am I missing something?
 
 
 Marcus
 
 -- 
 
 Live long and prosper.
   -- Spock, Amok Time, stardate 3372.7
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Embedded Tomcat and SSL?

2005-10-07 Thread lmuxer-mailinglists
I am using Tomcat as standalone and not with Apache.
I got it to work after playing with it for a while.

You have to set these undocumented properties to get SSL working
properly:

 if (isSSLEnabled) {
IntrospectionUtils.setProperty(httpConnector, sslProtocol,
TLS);
IntrospectionUtils.setProperty(httpConnector, keystoreFile, 
getPath()+/conf/tomcat.keystore);
IntrospectionUtils.setProperty(httpConnector, keystoreType,
JKS);
IntrospectionUtils.setProperty(httpConnector, clientAuth, 
false);
httpConnector.setProtocol( SSL);
   }

HTH

--- Mark [EMAIL PROTECTED] wrote:

 are you using Apace with Tomcat?  I have done embedded Tomcat and
 SSL,
 but it was Apache sitting in front of Tomcat.
 
 On 10/6/05, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I am using an embedded tomcat instance within my application. I am
  trying to set up a connector using SSL. When I start the server, it
  creates the connector and bind to the port successfully. When I
 request
  a page from the web browser, I get the following error in my
 browser:
 
  The connection to the server has terminated unexpectedly. Some
 data
  may have been transferred.
 
  The same scenario works fine with HTTP.
 
  Here is my code snippet:
  // APPPORT and isSSLEnabled are set correctly to 8443 and true.
  Connector httpConnector =
  this._server.createConnector((java.net.InetAddress)null,
 

Integer.parseInt(ApplicationResourcesUtil.getProperty(Constants.RESOURCEKEY_APPPORT)),isSSLEnabled);
 
  //add new Connector to set of Connectors for embedded server,
  associated with Engine
  this._server.addConnector(httpConnector);
  this._server.start();
 
  Looking at the tomcat website, they talk about registering
 keystore.
  What APIs do I use to programmatically specify the keystore file?
 Is
  there something else that needs to be configured before SSL will
 work
  in the embedded more?
 
  Thanks,
 
  -Andy
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: apache question [255819:132349]

2005-10-07 Thread Lyndon Tiu
Google is your friend.

also, to get you started:

http://jakarta.apache.org/tomcat/connectors-doc/index.html

On Fri, 7 Oct 2005 17:39:34  0100 tomcat-user@jakarta.apache.org wrote:
  -Original Message-
  From: peter thesing [EMAIL PROTECTED]
  Received: 10/7/2005 5:38 PM
  To: tomcat-user@jakarta.apache.org
  Subject: apache question
 
  Hi All.
 
  Perhaps has this question answered in previous mails but i could not
  find it. I would like to put this question to the list...
  At home i have 2 webservers running . the one of my partner (iis) on
  port 80 and mine at port 8000. I would like to continue with Apache2
  because it supports php. perl and so on and i have build my website
  around it. What i want to do is to include java server applets using
  jakarta tomcat but without disabling Apache2.
 
  Can this be done and if so how?
 
  What additional configuration needs to be done to let's say httpd.conf
  Thanks in advance
 
  Peter
 
  ps
 
  since apache has no means, that i can discover, to answer  this
  technical question perhaps someone on the list can direct me to the
  proper way
  Thanks
  ;P
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 Meridian Club
 Unit 5, Caxton Centre
 Porters Wood
 St Albans
 Herts
 UNITED KINGDOM
 AL3 6XT
 
 Tel: +44 1727 738855
 Fax: +44 1700 578955
 email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Lyndon Tiu

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



Re: Embedded Tomcat and SSL? [255821:132351]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: [EMAIL PROTECTED]
 Received: 10/7/2005 5:45 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org; Mark [EMAIL 
 PROTECTED]
 Subject: Re: Embedded Tomcat and SSL?

 I am using Tomcat as standalone and not with Apache.
 I got it to work after playing with it for a while.
 
 You have to set these undocumented properties to get SSL working
 properly:
 
  if (isSSLEnabled) {
 IntrospectionUtils.setProperty(httpConnector, sslProtocol,
 TLS);
 IntrospectionUtils.setProperty(httpConnector, keystoreFile, 
 getPath()+/conf/tomcat.keystore);
 IntrospectionUtils.setProperty(httpConnector, keystoreType,
 JKS);
 IntrospectionUtils.setProperty(httpConnector, clientAuth, 
 false);
 httpConnector.setProtocol( SSL);
}
 
 HTH
 
 --- Mark [EMAIL PROTECTED] wrote:
 
  are you using Apace with Tomcat?  I have done embedded Tomcat and
  SSL,
  but it was Apache sitting in front of Tomcat.
  
  On 10/6/05, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Hi,
  
   I am using an embedded tomcat instance within my application. I am
   trying to set up a connector using SSL. When I start the server, it
   creates the connector and bind to the port successfully. When I
  request
   a page from the web browser, I get the following error in my
  browser:
  
   The connection to the server has terminated unexpectedly. Some
  data
   may have been transferred.
  
   The same scenario works fine with HTTP.
  
   Here is my code snippet:
   // APPPORT and isSSLEnabled are set correctly to 8443 and true.
   Connector httpConnector =
   this._server.createConnector((java.net.InetAddress)null,
  
 
 Integer.parseInt(ApplicationResourcesUtil.getProperty(Constants.RESOURCEKEY_APPPORT)),isSSLEnabled);
  
   //add new Connector to set of Connectors for embedded server,
   associated with Engine
   this._server.addConnector(httpConnector);
   this._server.start();
  
   Looking at the tomcat website, they talk about registering
  keystore.
   What APIs do I use to programmatically specify the keystore file?
  Is
   there something else that needs to be configured before SSL will
  work
   in the embedded more?
  
   Thanks,
  
   -Andy
  
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Re: Can someone remove RTE - Meridian Club [EMAIL PROTECTED] from this list [255817:132347]

2005-10-07 Thread Glen Mazza
I sent an email to [EMAIL PROTECTED] about 15 minutes ago.  But 
they're all-volunteer, and no one may be in right now to take care of it.


Glen


-Original Message-
From: Larry Meadors [EMAIL PROTECTED]
Received: 10/7/2005 5:30 PM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Can someone remove RTE - Meridian Club [EMAIL PROTECTED] from this 
list

No, not my email address, I know how to subscribe/unsubscribe, thatnks.

This one needs to be removed: RTE - Meridian Club [EMAIL PROTECTED]

Please?

Larry

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






--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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




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



Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Marcus Franke
On Fri, Oct 07, 2005 at 05:24:27PM +0100, Allistair Crossley wrote:
 Hi,
 
 looks like jk is using commons logging, you'll have better success using a 
 log4j or commons-logging properties configuration to set the threshold to 
 ERROR. you may be able to do that in jk's config files too, i am sure there 
 is an error level setting. check out the jk docs.
 

Hello Allistair,


Ok, did not understand a word :)
Seems to be too late.

I now changed the debug value in the Connector now step by step down to Zero.
But no changes, the catalina.out file still fills with those timeout Infos.

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   minProcessors=50 maxProcessors=500 connectionTimeout=2
   protocol=AJP/1.3 /

I tried to modify the logger definition in the server.xml using verbosity=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt verbosity=0
  timestamp=true/


But its just the catalina_log and not the catalina.out which according to
the start scripts of the tomcat daemon is a redirection of stdout of the
daemon itself into the logfile.

Is there an option to make the tomcat daemon less noisy?



Thanks,
Marcus



-- 

History tends to exaggerate.
-- Col. Green, The Savage Curtain, stardate 5906.4

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



Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached [255825:132355]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Marcus Franke [EMAIL PROTECTED]
 Received: 10/7/2005 6:05 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached

 On Fri, Oct 07, 2005 at 05:24:27PM +0100, Allistair Crossley wrote:
  Hi,
  
  looks like jk is using commons logging, you'll have better success using a 
  log4j or commons-logging properties configuration to set the threshold to 
  ERROR. you may be able to do that in jk's config files too, i am sure there 
  is an error level setting. check out the jk docs.
  
 
 Hello Allistair,
 
 
 Ok, did not understand a word :)
 Seems to be too late.
 
 I now changed the debug value in the Connector now step by step down to Zero.
 But no changes, the catalina.out file still fills with those timeout Infos.
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=8443 debug=0
minProcessors=50 maxProcessors=500 
 connectionTimeout=2
protocol=AJP/1.3 /
 
 I tried to modify the logger definition in the server.xml using verbosity=0
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt verbosity=0
   timestamp=true/
 
 
 But its just the catalina_log and not the catalina.out which according to
 the start scripts of the tomcat daemon is a redirection of stdout of the
 daemon itself into the logfile.
 
 Is there an option to make the tomcat daemon less noisy?
 
 
 
 Thanks,
 Marcus
 
 
 
 -- 
 
 History tends to exaggerate.
   -- Col. Green, The Savage Curtain, stardate 5906.4
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: Executing custom action on deploy

2005-10-07 Thread Caldarale, Charles R
 From: Matteo Miraz [mailto:[EMAIL PROTECTED] 
 Subject: Executing custom action on deploy
 
 I have written such behaviour in a method, so what can I do 
 to execute it?

Sounds like you need a ContextListener.  Read the spec:
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html

Look at section 10.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Executing custom action on deploy [255827:132357]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Caldarale, Charles R [EMAIL PROTECTED]
 Received: 10/7/2005 6:09 PM
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: RE: Executing custom action on deploy

  From: Matteo Miraz [mailto:[EMAIL PROTECTED] 
  Subject: Executing custom action on deploy
  
  I have written such behaviour in a method, so what can I do 
  to execute it?
 
 Sounds like you need a ContextListener.  Read the spec:
 http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
 
 Look at section 10.
 
  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-07 Thread Rick
Hi Marcus,
  About that log entry that doesn't seem to be caught by the default
java.util.logging, I was wondering if it's a bug in the code per my original
post, noted below..  On all calls to log, isn't it required to do a check
for that log level before making the call... i.e.  isDebugEnabled(),
isInfoEnabled(), etc.   Maybe for some reason, log4j with filter without the
check? (speculation), if this is the case.. The below mentioned change may
fix the problem, I don't have the tomcat build environment setup or I would
try it.. Anyone else do their own tomcat builds that could try it quick?

  'org.apache.jk.common.ChannelSocket', the line reads...
 
  log.info( connection timeout reached);
 
  Should it not instead read...
 
  if(log.isInfoEnabled()) log.info( connection timeout reached); 

-Rick

-Original Message-
From: Marcus Franke [mailto:[EMAIL PROTECTED] 
Posted At: Friday, October 07, 2005 10:07 AM
Posted To: Tomcat Dev
Conversation: [5.5.9] Excessive jk INFO log msgs connection timeout
reached
Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached


On Fri, Oct 07, 2005 at 05:24:27PM +0100, Allistair Crossley wrote:
 Hi,
 
 looks like jk is using commons logging, you'll have better success using a
log4j or commons-logging properties configuration to set the threshold to
ERROR. you may be able to do that in jk's config files too, i am sure there
is an error level setting. check out the jk docs.
 

Hello Allistair,


Ok, did not understand a word :)
Seems to be too late.

I now changed the debug value in the Connector now step by step down to
Zero.
But no changes, the catalina.out file still fills with those timeout Infos.

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   minProcessors=50 maxProcessors=500
connectionTimeout=2
   protocol=AJP/1.3 /

I tried to modify the logger definition in the server.xml using
verbosity=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt verbosity=0
  timestamp=true/


But its just the catalina_log and not the catalina.out which according to
the start scripts of the tomcat daemon is a redirection of stdout of the
daemon itself into the logfile.

Is there an option to make the tomcat daemon less noisy?



Thanks,
Marcus



-- 

History tends to exaggerate.
-- Col. Green, The Savage Curtain, stardate 5906.4

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



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



RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached [255831:132361]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Rick [EMAIL PROTECTED]
 Received: 10/7/2005 6:35 PM
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

 Hi Marcus,
   About that log entry that doesn't seem to be caught by the default
 java.util.logging, I was wondering if it's a bug in the code per my original
 post, noted below..  On all calls to log, isn't it required to do a check
 for that log level before making the call... i.e.  isDebugEnabled(),
 isInfoEnabled(), etc.   Maybe for some reason, log4j with filter without the
 check? (speculation), if this is the case.. The below mentioned change may
 fix the problem, I don't have the tomcat build environment setup or I would
 try it.. Anyone else do their own tomcat builds that could try it quick?
 
   'org.apache.jk.common.ChannelSocket', the line reads...
  
 log.info( connection timeout reached);
  
   Should it not instead read...
  
 if(log.isInfoEnabled()) log.info( connection timeout reached); 
 
 -Rick
 
 -Original Message-
 From: Marcus Franke [mailto:[EMAIL PROTECTED] 
 Posted At: Friday, October 07, 2005 10:07 AM
 Posted To: Tomcat Dev
 Conversation: [5.5.9] Excessive jk INFO log msgs connection timeout
 reached
 Subject: Re: [5.5.9] Excessive jk INFO log msgs connection timeout reached
 
 
 On Fri, Oct 07, 2005 at 05:24:27PM +0100, Allistair Crossley wrote:
  Hi,
  
  looks like jk is using commons logging, you'll have better success using a
 log4j or commons-logging properties configuration to set the threshold to
 ERROR. you may be able to do that in jk's config files too, i am sure there
 is an error level setting. check out the jk docs.
  
 
 Hello Allistair,
 
 
 Ok, did not understand a word :)
 Seems to be too late.
 
 I now changed the debug value in the Connector now step by step down to
 Zero.
 But no changes, the catalina.out file still fills with those timeout Infos.
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=8443 debug=0
minProcessors=50 maxProcessors=500
 connectionTimeout=2
protocol=AJP/1.3 /
 
 I tried to modify the logger definition in the server.xml using
 verbosity=0
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt verbosity=0
   timestamp=true/
 
 
 But its just the catalina_log and not the catalina.out which according to
 the start scripts of the tomcat daemon is a redirection of stdout of the
 daemon itself into the logfile.
 
 Is there an option to make the tomcat daemon less noisy?
 
 
 
 Thanks,
 Marcus
 
 
 
 -- 
 
 History tends to exaggerate.
   -- Col. Green, The Savage Curtain, stardate 5906.4
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



Problems with graphics on Tomcat 5.5.9

2005-10-07 Thread Mauricio Fernandez A.
Hello

I have a web App with some jsp´s showing graphics generated by jfreechart,
in my windows dev station it works fine but in my linux production server it
was working fine to some days ago and now it doesn´t.

I have Tomcat 5.5.9, JDK 1.5.0_04, Red Hat Linux on a rack

Now i obtain a ServletException generated by this reason (sorry to send the
trace but I want to be specific):

java.lang.NoClassDefFoundError

sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:7
22)

sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment
.java:602)

sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58
)
sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174)
java.security.AccessController.doPrivileged(Native Method)
sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:94)
sun.awt.X11GraphicsEnvironment.init(X11GraphicsEnvironment.java:164)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
ssorImpl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
ctorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
java.lang.Class.newInstance0(Class.java:350)
java.lang.Class.newInstance(Class.java:303)

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
t.java:68)
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1243)
org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223)
org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173)
org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328)
org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:299)

com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:21
1)

org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
67)

Thanks

MauricioF


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



RE: Problems with graphics on Tomcat 5.5.9 [255835:132365]

2005-10-07 Thread RTE - Meridian Club
Many thanks for your email. This is an automated response acknowledging receipt.

Please be advised that Badge mailing commences beginning of October 2005.

Should your message require a response we will respond shortly.

Regards
Meridian Club


 -Original Message-
 From: Mauricio Fernandez A. [EMAIL PROTECTED]
 Received: 10/7/2005 7:14 PM
 To:  tomcat-user@jakarta.apache.org
 Subject: Problems with graphics on Tomcat 5.5.9

 Hello
 
 I have a web App with some jsp´s showing graphics generated by jfreechart,
 in my windows dev station it works fine but in my linux production server it
 was working fine to some days ago and now it doesn´t.
 
 I have Tomcat 5.5.9, JDK 1.5.0_04, Red Hat Linux on a rack
 
 Now i obtain a ServletException generated by this reason (sorry to send the
 trace but I want to be specific):
 
 java.lang.NoClassDefFoundError
   
 sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:7
 22)
   
 sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment
 .java:602)
   
 sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58
 )
   sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174)
   java.security.AccessController.doPrivileged(Native Method)
   sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:94)
   sun.awt.X11GraphicsEnvironment.init(X11GraphicsEnvironment.java:164)
   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
 ssorImpl.java:39)
   
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
 ctorAccessorImpl.java:27)
   java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   java.lang.Class.newInstance0(Class.java:350)
   java.lang.Class.newInstance(Class.java:303)
   
 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
 t.java:68)
   java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
   org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1243)
   org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223)
   org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173)
   org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328)
   org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:299)
   
 com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:21
 1)
   
 org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
 67)
 
 Thanks
 
 MauricioF
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
Meridian Club
Unit 5, Caxton Centre
Porters Wood
St Albans
Herts
UNITED KINGDOM
AL3 6XT

Tel: +44 1727 738855
Fax: +44 1700 578955
email: [EMAIL PROTECTED]


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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood. 

I'll be careful next time and use my eyes first before replying ;-)

Arup 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is 
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Somehow my apologetic message hasn't been delivered by the mail server as
yet.  

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 16:11
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood. 

I'll be careful next time and use my eyes first before replying ;-)

Arup 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is 
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread David Short
No worries.  Good luck in your new endeavor.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 8:50 AM
To: 'Arup Vidyerthy'; 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]


Somehow my apologetic message hasn't been delivered by the mail server as
yet.

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:11
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood.

I'll be careful next time and use my eyes first before replying ;-)

Arup

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

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



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

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



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





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



___
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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




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



Re: Problems with graphics on Tomcat 5.5.9

2005-10-07 Thread Brian Cook


You need to install the X11 libs for X.  The Java Advanced Imaging API 
calls the X libs on Linux to get font and scaling data.  You can try 
setting the JVM java.awt.headless property to true.  This will work for 
some instances.  But installing the X libs installed on your server is a 
more reliable option.


To set your java.awt.headless as true use the following line.
System.setProperty(java.awt.headless, true);



System.setProperty(java.awt.headless, true);

Mauricio Fernandez A. wrote:


Hello

I have a web App with some jsp´s showing graphics generated by jfreechart,
in my windows dev station it works fine but in my linux production server it
was working fine to some days ago and now it doesn´t.

I have Tomcat 5.5.9, JDK 1.5.0_04, Red Hat Linux on a rack

Now i obtain a ServletException generated by this reason (sorry to send the
trace but I want to be specific):

java.lang.NoClassDefFoundError

sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:7
22)

sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment
.java:602)

sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:58
)
sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:174)
java.security.AccessController.doPrivileged(Native Method)
sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:94)
sun.awt.X11GraphicsEnvironment.init(X11GraphicsEnvironment.java:164)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce
ssorImpl.java:39)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru
ctorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
java.lang.Class.newInstance0(Class.java:350)
java.lang.Class.newInstance(Class.java:303)

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen
t.java:68)
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1243)
org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223)
org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173)
org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328)
org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:299)

com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:21
1)

org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
67)

Thanks

MauricioF


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


 




--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900 



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

Re: Tracking Datasource Connection Usage?

2005-10-07 Thread Brian Cook

JWM wrote:

Two things you can do here.

   1. Set both removeAbandoned and logAbandoned  parameters to 
true.  This will reclaim most lost connections.  And log a trace of what 
code called a connection that was never closed.


2.  Use a finally block to close all of your Resultsets and 
connections.  This will insure they are closed even if your code throws 
an exception.


Example :

   ResultSet rs = null;
   Connection con  = null;
try {
   
   
   
   
}
catch(Exception e) {
   
}
finally {
   rs.close();
   con.close();
}


I started getting exceptions saying no connections were available on my JDBC
datasource  (org.gjt.mm.mysql.Driver).  The pool was definitely large enough
to handle the load.  So it appears that I'm not freeing the all the
connections as I should.  I noticed that I did not have the
'removeAbandoned' flag set on the Resource tag.  Changing that has
apparently fixed the out of connections problem.  But I really want to clean
up the code and fix it the right way.  I've got the close() statements in
place.  But obviously, I'm missing some of them somewhere.  Is there any
process for logging/tracking allocating and freeing connections (and absence
thereof.), available connections, etc?  Or are there any methods I can call
to give me this type of debug info?  What's the recommended way to debug
this?

Thanks.

JWM



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


 




--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900 



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

RE: Problems with graphics on Tomcat 5.5.9

2005-10-07 Thread Mauricio Fernandez A.
Do you refer to X11R6? I have a /usr/X11R6 dir in my server but when I do

#rpm -q X11
package X11 is not installed

#rpm -q X11R6
package X11R6 is not installed

And when i do

#whereis X11
X11: /usr/bin/X11 /etc/X11 /usr/lib/X11 /usr/include/X11

So I don´t understand what is about the X11 libs.

any idea?

thanks!

MauricioF


-Mensaje original-
De: Brian Cook [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 07 octubre, 2005 22:20
Para: Tomcat Users List
Asunto: Re: Problems with graphics on Tomcat 5.5.9



You need to install the X11 libs for X.  The Java Advanced Imaging API
calls the X libs on Linux to get font and scaling data.  You can try
setting the JVM java.awt.headless property to true.  This will work for
some instances.  But installing the X libs installed on your server is a
more reliable option.

To set your java.awt.headless as true use the following line.
 System.setProperty(java.awt.headless, true);



System.setProperty(java.awt.headless, true);



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



Re: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?

2005-10-07 Thread Darek Czarkowski
did you clean up your local cache?
the jar file might be a local version of the file. You might not be able
to see the new version until you remove the old one. (usually
~/.java/.deployment/javaws/)

-- 
Darek Czarkowski

Infinite Source Systems Corp.
Ph: 604 294 6557 (Ext. 113)
Fx: 604 294 6507
www.infinitesource.ca
[EMAIL PROTECTED]



ce.ca 
On Sat, 2005-10-08 at 06:05, Amadeo Alonso wrote:
 Hi list:
 
I apologize me last (first) email to the list with faults on date and 
 form 
Thanks to Mark Thomas for your explanations.
 
 The problem I attempt to solve is the next:
 
 When I demand the page 
 'http://expresiongrafica.caminos.upm.es/PAU/AppletDoc.html', which has an 
 Applet with a tag 'archive=doc.jar', Tomcat (?) v5.5 returns me the OLD 
 VERSION of 'doc.jar' (v1) with the old bugs, as I deduct from the 'Java 
 Console'.
 
 I have placed two connector tags  in 'server.xml' file to use ports :80 y 
 :8080 in the same way
 
 but
 
 http://expresiongrafica.caminos.upm.es:8080/PAU/AppletDoc.html   return de 
 rigth 'doc.jar' (v2),   OK:   
 
 http://expresiongrafica.caminos.upm.es:80/PAU/AppletDoc.html   return de 
 old   'doc.jar' (v1),   BAD: 
 
 using  localhost/..., localhost:80/... y localhost:8080/...  OK (v2). 
 
 
 How can I destroy the old version? where is it? What is it happening? Is 
 maybe a navigators problem?
  (I get  'similar' results with IE and Firefox )
 
 
 Thanks in advance
 
 Amadeo.
 Universidad Politécnica de Madrid.



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



[OT] RE: Problems with graphics on Tomcat 5.5.9

2005-10-07 Thread David N. Smith
Completely OT, but:

If you're going to search for X11 packages with rpm, use rpm -qa | grep [package
name or part].

I believe rpm -q [package name] is very limited and only tries to find a package
named exactly as you enter it.

--David

 Do you refer to X11R6? I have a /usr/X11R6 dir in my server but when I do

 #rpm -q X11
 package X11 is not installed

 #rpm -q X11R6
 package X11R6 is not installed

 And when i do

 #whereis X11
 X11: /usr/bin/X11 /etc/X11 /usr/lib/X11 /usr/include/X11

 So I don´t understand what is about the X11 libs.

 any idea?

 thanks!

 MauricioF


 -Mensaje original-
 De: Brian Cook [mailto:[EMAIL PROTECTED]
 Enviado el: viernes, 07 octubre, 2005 22:20
 Para: Tomcat Users List
 Asunto: Re: Problems with graphics on Tomcat 5.5.9



 You need to install the X11 libs for X.  The Java Advanced Imaging API
 calls the X libs on Linux to get font and scaling data.  You can try
 setting the JVM java.awt.headless property to true.  This will work for
 some instances.  But installing the X libs installed on your server is a
 more reliable option.

 To set your java.awt.headless as true use the following line.
  System.setProperty(java.awt.headless, true);



 System.setProperty(java.awt.headless, true);



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





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



Re: Database connections aren't being released...

2005-10-07 Thread Richard Road Runner

Hmm..  Thank you for the reply.  Yes we are using DBCP.

I discussed this with our team and we going to pursue this as a possible 
cause.


Thanks again!!


- Original Message - 
From: Darryl L. Miles [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 10:29 PM
Subject: Re: Database connections aren't being released...



Richard Road Runner wrote:

I am not sure that this is a Tomcat issue, but we are not sure what 
exactly is causing our problem.


We are running Tomcat 5.0.27.  We are using the most recent jconn2.jar 
driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC.


Over a period of time, the number of connections to the database continues 
to increase far beyond the possible number of users.  The only way to 
close the connections is to restart the database server.





Are you using DBCP ?

I have an issue with 5.5.9 and DBCP shipped with it I found 2 weeks ago. 
I would describe my problem as DBCP is not reusing database connections 
when it should but it instead creates a new one, until the SQL server has 
too many connections (or your DBCP hits upper parameter limits).


With TC and MySQL I can confirm this by logging my database handle close 
and watching what happens with SHOW PROCESSLIST sql command on the 
server.   Each request needs 1 database connection and the logging should 
confirm it returns (releases) the connection back to DBCP pool.  I have 
followed this path with the debugger and got inside DBCP to prove the 
release takes place.


I had put down the problem and just configured up my DBCP parameters to 
expire old connections as fast as possible and up the maximum limits. 
This wont work for me in production, maybe I switch to C3P0 connection 
pooling at that time.


Its just so difficult to help out and nail the problem with TCs refactored 
and repackaged DBCP, I would very much appreciate an SDK version of the 
full TC package that includes all source in the JARs.  I am doing a CVS 
build.xml now, but I think this will be for 5.5.12, I just need to work 
out how to fix the version for a 5.5.9 release and compare the two trees 
to maybe try and nail this one, or at least confirm the blame here is with 
DBCP.


--
Darryl L. Miles





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



RE: apache question

2005-10-07 Thread F.O. Bossert
Yoo,

Use mod_jk to send request through apache to tomcat, see tomcat page for
more info
Or study the server.xml file.

Greetings O.

-Original Message-
From: peter thesing [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 18:37
To: tomcat-user@jakarta.apache.org
Subject: apache question


Hi All.

Perhaps has this question answered in previous mails but i could not
find it. I would like to put this question to the list...
At home i have 2 webservers running . the one of my partner (iis) on
port 80 and mine at port 8000. I would like to continue with Apache2
because it supports php. perl and so on and i have build my website
around it. What i want to do is to include java server applets using
jakarta tomcat but without disabling Apache2.

Can this be done and if so how?

What additional configuration needs to be done to let's say httpd.conf
Thanks in advance

Peter

ps

since apache has no means, that i can discover, to answer  this
technical question perhaps someone on the list can direct me to the
proper way
Thanks
;P

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


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



RE: Database connections aren't being released...

2005-10-07 Thread George Sexton
Really,

http://findbugs.sourceforge.net/

It analyzes source code and points out where resources are not freed.

Of course the real problem with Findbugs is everyone is too embarrassed to
say how well it worked

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Richard Road Runner [mailto:[EMAIL PROTECTED] 
 Sent: Friday, October 07, 2005 4:41 PM
 To: Darryl L. Miles; Tomcat Users List
 Subject: Re: Database connections aren't being released...
 
 Hmm..  Thank you for the reply.  Yes we are using DBCP.
 
 I discussed this with our team and we going to pursue this as 
 a possible 
 cause.
 
 Thanks again!!
 
 
 - Original Message - 
 From: Darryl L. Miles [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, October 06, 2005 10:29 PM
 Subject: Re: Database connections aren't being released...
 
 
  Richard Road Runner wrote:
 
 I am not sure that this is a Tomcat issue, but we are not sure what 
 exactly is causing our problem.
 
 We are running Tomcat 5.0.27.  We are using the most recent 
 jconn2.jar 
 driver to connect to a Sybase SQL Anywhere Studio 7 
 database via JDBC.
 
 Over a period of time, the number of connections to the 
 database continues 
 to increase far beyond the possible number of users.  The 
 only way to 
 close the connections is to restart the database server.
 
 
 
  Are you using DBCP ?
 
  I have an issue with 5.5.9 and DBCP shipped with it I found 
 2 weeks ago. 
  I would describe my problem as DBCP is not reusing 
 database connections 
  when it should but it instead creates a new one, until the 
 SQL server has 
  too many connections (or your DBCP hits upper parameter limits).
 
  With TC and MySQL I can confirm this by logging my database 
 handle close 
  and watching what happens with SHOW PROCESSLIST sql 
 command on the 
  server.   Each request needs 1 database connection and the 
 logging should 
  confirm it returns (releases) the connection back to DBCP 
 pool.  I have 
  followed this path with the debugger and got inside DBCP to 
 prove the 
  release takes place.
 
  I had put down the problem and just configured up my DBCP 
 parameters to 
  expire old connections as fast as possible and up the 
 maximum limits. 
  This wont work for me in production, maybe I switch to C3P0 
 connection 
  pooling at that time.
 
  Its just so difficult to help out and nail the problem with 
 TCs refactored 
  and repackaged DBCP, I would very much appreciate an SDK 
 version of the 
  full TC package that includes all source in the JARs.  I am 
 doing a CVS 
  build.xml now, but I think this will be for 5.5.12, I just 
 need to work 
  out how to fix the version for a 5.5.9 release and compare 
 the two trees 
  to maybe try and nail this one, or at least confirm the 
 blame here is with 
  DBCP.
 
  -- 
  Darryl L. Miles
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Tracking Datasource Connection Usage?

2005-10-07 Thread JWM
Brian and others,

Good information.  Thanks.  What happens with result sets if they don't get
closed?  Do they live on forever as memory leaks, or do they get cleaned up
by GC when the object referencing them goes out of scope?  If a result set
is left open, does it prevent the connection from getting successfully
closed?

Thx.

JWM

-Original Message-
From: Brian Cook [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 3:38 PM
To: Tomcat Users List
Subject: Re: Tracking Datasource Connection Usage?

JWM wrote:

Two things you can do here.

1. Set both removeAbandoned and logAbandoned  parameters to 
true.  This will reclaim most lost connections.  And log a trace of what 
code called a connection that was never closed.

 2.  Use a finally block to close all of your Resultsets and 
connections.  This will insure they are closed even if your code throws 
an exception.

Example :

ResultSet rs = null;
Connection con  = null;
try {




}
catch(Exception e) {

}
finally {
rs.close();
con.close();
}

I started getting exceptions saying no connections were available on my
JDBC
datasource  (org.gjt.mm.mysql.Driver).  The pool was definitely large
enough
to handle the load.  So it appears that I'm not freeing the all the
connections as I should.  I noticed that I did not have the
'removeAbandoned' flag set on the Resource tag.  Changing that has
apparently fixed the out of connections problem.  But I really want to
clean
up the code and fix it the right way.  I've got the close() statements in
place.  But obviously, I'm missing some of them somewhere.  Is there any
process for logging/tracking allocating and freeing connections (and
absence
thereof.), available connections, etc?  Or are there any methods I can call
to give me this type of debug info?  What's the recommended way to debug
this?

Thanks.

JWM



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


  



-- 
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900 




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



Re: Tracking Datasource Connection Usage?

2005-10-07 Thread Kyle



Brian Cook wrote:


JWM wrote:

Two things you can do here.

   1. Set both removeAbandoned and logAbandoned  parameters to 
true.  This will reclaim most lost connections.  And log a trace of 
what code called a connection that was never closed.



See, I don't get all this removeAbandoned discussion.

I seem to recall reading somewhere that it doesn't actually do anything 
and the commons api docs seem to indicate the getter/setter's for 
removeAbandoned are deprecated. As is apparently logAbandoned.


K

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



Error: Connection was refused when attempting to contact 127.0.0.1

2005-10-07 Thread André
Hi people!

I'm facing this error with my Tomcat (version 4.0.6) on Debian.
It seems that is everything ok: I can access the JSP
and servlets examples, the tomcat docs and others
without any errors.
The problem occurs when I attempt to run an
application called maca_ad_web.war, that is available
at http://maca.sourceforge.net. 
I put the war file on the webapps folder; then  I
start tomcat (startup.sh); so, the folder maca_ad_web
is created. So, when I put the URL
 http://127.0.0.1:8080/maca_ad_web

I received the error listed.
Someone can help me?

André Thiago.




__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 
__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 

Re: Turning on debugging in Tomcat 5.5

2005-10-07 Thread Bill Barker

James Rome [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Most of the installed Tomcat classes have something like
 container.isDebugEnabled() {...}

 How do I enable these debug statements in Tomcat 5.5?


I'll assume that you are using Juli.  If you are using log4j, compare what 
I'm saying to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html 
to see what you need to do.

First you edit $CATALINA_HOME/conf/logging.properties and add and something 
like:
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myapp].level 
= FINE

s/Catalina/EngineName/ s/localhost/my.host.name/

Of course, if you really want to fill up your logs, you can do something 
like:
   org.apache.catalina.level = FINE



 Thanks,
 Jim 




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



Re: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-07 Thread Bill Barker

Mark [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi Mark,
 In my case servlet generates an output, so no JSP for now...
 Can I do it using filters? Or define and store user's prefs with
 encoding outside of tomcat and  in the session and use if it's exists
 in the session?

Other Mark's answer was a little incomplete.  If your Servlet uses 
response.getWriter, then the spec requires that you get a charset on the 
Response headers.  If your Servlet doesn't specify a charset in the 
response.setContentType, then a Filter something like:

   public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain chain)
  throws ServletException, IOException {
if(request instanceof HttpServletRequest) {
HttpServletRequest hreq = (HttpServletRequest)request;
HttpSession session = hreq.getSession();
String enc = (String)session.getAttribute(MY_ENC_ATTR_NAME);
if(enc == null) {
 enc = getCharSetForUser(hreq); // Your lookup from DB 
function
 if(enc != null) {
 session.setAttribute(MY_ENC_ATTR_NAME, enc);
 }
}
if(enc != null) {
response.setCharacterEncoding(enc);
}
}
chain.doFilter(request, response);
   }



 Thanks a lot!
 Mark.

 --- Mark Thomas [EMAIL PROTECTED] wrote:

 Mark wrote:
  Hello,
 
  In my application users enter data using different languages.
  The problem I'm facing is the browser sets the page encoding
 always
  to ISO-8859-1. (I guess this is default based on server OS)
 
  User can change encoding on the page (Browser settings) and
  everything looks OK but only for one page. On the next page
 encoding
  is back to ISO-8859-1.
  Is there any way to instruct tomcat not to send the page
 encoding?

 If you are using JSPs, no. The spec requires that the charset is
 set.

 Mark




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







 __
 Yahoo! for Good
 Donate to the Hurricane Katrina relief effort.
 http://store.yahoo.com/redcross-donate3/ 




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



  1   2   >