Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri
Any idea? :(

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



Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
One of the reasons might be that you have stray threads that do not
stop when Tomcat tries to stop.

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



Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri
Artur Rataj ha scritto:

One of the reasons might be that you have stray threads that do not
stop when Tomcat tries to stop.

But Tomcat has not to stop.


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



Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
It might that it unloaded an app. You may turn off app
unloading/reloading in serwer.xml.
Or start and stop threads using listeners.

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



mod jk

2006-03-06 Thread Kaushal Shriyan
HI All

I am getting

[EMAIL PROTECTED]/apache/bin# ./apachectl start
Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
module not included in the server configuration
./apachectl start: httpd could not be started
[EMAIL PROTECTED]/apache/bin#

Please let me know where i am going wrong

Regards

Kaushal

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



Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri

Artur Rataj ha scritto:


It might that it unloaded an app. You may turn off app
unloading/reloading in serwer.xml.
 


How to do this?
Is the server.xml in conf/ ?
How to turn off?

Thank you a lot



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



Re: mod jk

2006-03-06 Thread Warren Pace

 
 From: Kaushal Shriyan [EMAIL PROTECTED]
 Date: 2006/03/06 Mon AM 05:08:31 EST
 To: users@tomcat.apache.org,  users@httpd.apache.org
 Subject: mod jk
 
 HI All
 
 I am getting
 
 [EMAIL PROTECTED]/apache/bin# ./apachectl start
 Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
 Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
 module not included in the server configuration
 ./apachectl start: httpd could not be started
 [EMAIL PROTECTED]/apache/bin#
 
 Please let me know where i am going wrong
 
Are you loading mod_jk dynamically?
The JkWorkersFile statement needs to appear after the LoadModule statement as 
such:
LoadModule jk_module /usr/lib/apache2/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties

 Regards
 
 Kaushal
 
 -
 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: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
To turn it off, set reloadable=false in the context definition of
your app. I do not know where you have it defined, it might be
tomcat's server.xml or context.xml of your app. I am not sure if it
will work -- I have used applications listeners to stop the threads,
which was very easy.

Artur

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



Can not look at the Tomcat server from another stations.

2006-03-06 Thread gomez_igo


Hi all users.

I have the next problem. I have installed and configured the Tomcat server, and
have start it, so when I type the direction http://server:8080/ on the
explorer, it shows me the initial page (index.jsp). When I try the same thing,
where server is my IP address, from another station, I can not visualize this
page, so I take the message that the page has not been found. I have been
trying from other PCs, but always with the same result. How can I access to the
this server from anywhere? I have to access the server in other way? Does
anyone knows what I have to change to access the server?

Any kind of help will be very appreciated.

Thank you very much.

Igor.


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



Re: Can not look at the Tomcat server from another stations.

2006-03-06 Thread David Delbecq
Hi,

Check in server.xml if you have configured a RemoteAddrValve. This is
this valve which could refuse remote connection based on ip.
If there is no such valve configured, then tomcat should respond to your
request, i suggest check firewalling configuration on server os.
If there is such a valve then either remove it either configure it
appropriately.

regards,

[EMAIL PROTECTED] a écrit :

Hi all users.

I have the next problem. I have installed and configured the Tomcat server, and
have start it, so when I type the direction http://server:8080/ on the
explorer, it shows me the initial page (index.jsp). When I try the same thing,
where server is my IP address, from another station, I can not visualize this
page, so I take the message that the page has not been found. I have been
trying from other PCs, but always with the same result. How can I access to the
this server from anywhere? I have to access the server in other way? Does
anyone knows what I have to change to access the server?

Any kind of help will be very appreciated.

Thank you very much.

Igor.


-
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: JMX via SSH tunnel does not work?

2006-03-06 Thread Mikolaj Rydzewski

Andreas Schildbach wrote:
I have set up the JMX server of JDK 1.5.0_06/Tomcat 5.5.15. It works 
fine locally, I'm testing with jconsole.


However, if I tunnel the JMX port over SSH, it does not work. I can 
connect to the port, but there is no flow of data. jconsole is 
hanging around for a minute, and then the connect dialog pops up. What 
is going wrong here?

http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
http://forum.java.sun.com/thread.jspa?threadID=289869messageID=1242288

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




smime.p7s
Description: S/MIME Cryptographic Signature


Re: mod jk

2006-03-06 Thread Kaushal Shriyan
Thanks Warren Pace

Its there I will paste u the httpd.conf file but while i restart

[EMAIL PROTECTED]/apache/bin# ./apachectl start
Syntax error on line 206 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
Cannot load /home/qrq/suds_20_dir/apache/libexec/mod_jk.so into
server: ld.so.1: /home/qrq/suds_20_dir/apache/bin/httpd: fatal:
relocation error: file /home/qrq/suds_20_dir/apache/libexec/mod_jk.so:
symbol dir_module: referenced symbol not found
./apachectl start: httpd could not be started

Regards

Kaushal



On 3/6/06, Warren Pace [EMAIL PROTECTED] wrote:

 
  From: Kaushal Shriyan [EMAIL PROTECTED]
  Date: 2006/03/06 Mon AM 05:08:31 EST
  To: users@tomcat.apache.org,  users@httpd.apache.org
  Subject: mod jk
 
  HI All
 
  I am getting
 
  [EMAIL PROTECTED]/apache/bin# ./apachectl start
  Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
  Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
  module not included in the server configuration
  ./apachectl start: httpd could not be started
  [EMAIL PROTECTED]/apache/bin#
 
  Please let me know where i am going wrong
 
 Are you loading mod_jk dynamically?
 The JkWorkersFile statement needs to appear after the LoadModule statement as 
 such:
 LoadModule jk_module /usr/lib/apache2/mod_jk.so
 JkWorkersFile /etc/apache2/workers.properties

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



AW: mod jk

2006-03-06 Thread Edao, Aliye
Hi,

The mod_jk you are using seems not to function properly. You can see that if 
you user the command:
ldd /home/qrq/suds_20_dir/apache/libexec/mod_jk.so (you should get something 
like -- not found ...

Recompile it or download a binary version suitable to 
your system form 
http://apache.speedbone.de/tomcat/tomcat-connectors/jk/binaries/



Mit freundlichem Gruß / kind regards

Dr. Aliye Edao  
 



-Ursprüngliche Nachricht-
Von: Kaushal Shriyan [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 6. März 2006 12:51
An: Tomcat Users List
Betreff: Re: mod jk

Thanks Warren Pace

Its there I will paste u the httpd.conf file but while i restart

[EMAIL PROTECTED]/apache/bin# ./apachectl start
Syntax error on line 206 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
Cannot load /home/qrq/suds_20_dir/apache/libexec/mod_jk.so into
server: ld.so.1: /home/qrq/suds_20_dir/apache/bin/httpd: fatal:
relocation error: file /home/qrq/suds_20_dir/apache/libexec/mod_jk.so:
symbol dir_module: referenced symbol not found
./apachectl start: httpd could not be started

Regards

Kaushal



On 3/6/06, Warren Pace [EMAIL PROTECTED] wrote:

 
  From: Kaushal Shriyan [EMAIL PROTECTED]
  Date: 2006/03/06 Mon AM 05:08:31 EST
  To: users@tomcat.apache.org,  users@httpd.apache.org
  Subject: mod jk
 
  HI All
 
  I am getting
 
  [EMAIL PROTECTED]/apache/bin# ./apachectl start
  Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
  Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
  module not included in the server configuration
  ./apachectl start: httpd could not be started
  [EMAIL PROTECTED]/apache/bin#
 
  Please let me know where i am going wrong
 
 Are you loading mod_jk dynamically?
 The JkWorkersFile statement needs to appear after the LoadModule statement as 
 such:
 LoadModule jk_module /usr/lib/apache2/mod_jk.so
 JkWorkersFile /etc/apache2/workers.properties

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


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



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


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



Re: JSP on Tomcat: application scope variable

2006-03-06 Thread Martin Gainty

Good Morning Rahul-
typically the properties file is located on your classpath
Anyone else?
Martin-
- Original Message - 
From: Rahul [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 05, 2006 3:42 PM
Subject: RE: JSP on Tomcat: application scope variable



Thanks. I used a singleton class and initialized it
from an impl of ServletContextListener.

If I place a properties file in WEB-INF/classes of my
webapp, I am unable to read it from my class:
FileNotFoundException. 
(Absolute path works fine though.) 

I have: 


//properties file in classes
myProps.load(new FileInputStream(test.properties));

or 


//properties file in classes/com/example/test
myProps.load(new
FileInputStream(com/example/test/test.properties));

Is this not the correct way to specify the path?

Thanks,
Rahul.

--- Tim Lucia [EMAIL PROTECTED] wrote:


Since they are in application scope, you can make
them part of a Singleton
pattern, i.e., make them static values of a class,
loaded by the
contextInitialized() method.  They could be
properties of the listener
itself, or to be more properly factored, you can
place them in their own
class.

Tim


-Original Message-
From: Rahul [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 05, 2006 2:46 AM

To: users@tomcat.apache.org
Subject: JSP on Tomcat: application scope variable

Hi, 


I have a simple web application which has two JSP
pages and some class files containing
implementation/logic. These are invoked from the JSP
files. 


I want to store some values e.g. properties from a
properties files in the application scope (or alike)
so that in my class files I can read these values. I
am considering reading these properties in an
implementation of ServletContextListener. 


Where should I store these values and how I can
access
them in my class files? 


Thanks,
Rahul.

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




-

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





-

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





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


-
To 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: JSP on Tomcat: application scope variable

2006-03-06 Thread Tim Lucia
Read this:

http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html

It is a how-to on loading properties from the classpath using classloaders.

Tim

-Original Message-
From: Rahul [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 05, 2006 3:42 PM
To: Tomcat Users List
Subject: RE: JSP on Tomcat: application scope variable

Thanks. I used a singleton class and initialized it
from an impl of ServletContextListener.

If I place a properties file in WEB-INF/classes of my
webapp, I am unable to read it from my class:
FileNotFoundException. 
(Absolute path works fine though.) 

I have: 

//properties file in classes
 myProps.load(new FileInputStream(test.properties));

 or 

//properties file in classes/com/example/test
 myProps.load(new
FileInputStream(com/example/test/test.properties));

Is this not the correct way to specify the path?

Thanks,
Rahul.

--- Tim Lucia [EMAIL PROTECTED] wrote:

 Since they are in application scope, you can make
 them part of a Singleton
 pattern, i.e., make them static values of a class,
 loaded by the
 contextInitialized() method.  They could be
 properties of the listener
 itself, or to be more properly factored, you can
 place them in their own
 class.
 
 Tim
 
 
 -Original Message-
 From: Rahul [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 05, 2006 2:46 AM
 To: users@tomcat.apache.org
 Subject: JSP on Tomcat: application scope variable
 
 Hi, 
 
 I have a simple web application which has two JSP
 pages and some class files containing
 implementation/logic. These are invoked from the JSP
 files. 
 
 I want to store some values e.g. properties from a
 properties files in the application scope (or alike)
 so that in my class files I can read these values. I
 am considering reading these properties in an
 implementation of ServletContextListener. 
 
 Where should I store these values and how I can
 access
 them in my class files? 
 
 Thanks,
 Rahul.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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

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


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

-
To 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: Form login UTF-8 username problem

2006-03-06 Thread Martin Gainty

Good Morning Dave-

The earlier comment about using DBCS UTF-16 holds true for CJK, 
Hebrew,Arabic or any character set using 2 or more bytes to represent a 
'character'
I think what daniel is alluding to in this response is the ability for 
others to mask certain characters

It sounds as if you might want to look at ssl..
using private/public keys or certificates
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security6.html
This will enable
Authentication - verifying client credentials
Confidentiality - Avoiding man in the middle interception
Integrity - Avoiding man in the middle modfication to the transmission

Keep us apprised,
Martin-
- Original Message - 
From: Dave [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org; [EMAIL PROTECTED]
Sent: Sunday, March 05, 2006 10:09 PM
Subject: RE: Form login UTF-8 username problem



Hi Daniel,

 I am not quite understanding. Is it a security hole?
 User needs a username and password to login to the web application.

 Thanks!
Daniel Blumenthal [EMAIL PROTECTED] wrote:
 As a security concern, you might not want to allow full UTF-8 usernames.
There are a number of invisible characters (from the soft hyphen to 
various

connector characters) which people can use to spoof other users' names.

Daniel



-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 1:50 PM
To: Tomcat Users List
Subject: Re: Form login UTF-8 username problem

Dave wrote:
 Web application using JBoss 4.0.3SP1 and servlets.
 I am using FORM authentication. Can username be UTF-8?
 I create an account, its username is in UTF-8 encoding,
chinese characters.
 But login was not successful. Can JBoss built-in
authentication handle UTF-8 encoding for username?

This looks like
http://issues.apache.org/bugzilla/show_bug.cgi?id=31198

It is fixed in 5.5.7+

Mark


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




-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 


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



TomcatProbe 1.1 released

2006-03-06 Thread Vlad.Ilyschenko
Hello guys,

I thought that you might be interested in this announcement.

TomcatProbe 1.1 new features include log file browser and connector
usage charts.

Log browser is a configuration- and maitenance free feature that enables
monitoring of Tomcat log files. It supports Log4J, Commons, Catalina and
JDK built-in loggers. You will be able to see and download easily all
log files Tomcat has created or can possibly create.

Connector usage charts display real-time Tomcat connector usage both in
terms of the number of requests received and the volume of traffic that
came in and out of the connector for the last 2 hours. This feature
should help to visualise load on your Tomcat instance.

This release also addresses some important issues with application
deployment, multi-lingual JSPs, referencing datasources via ResourceLink
and others.

Project web site:
http://www.tomcatprobe.org

Change log:
http://www.tomcatprobe.org/d/latest.shtml

Demo site (LOGIN: demo/demo)
http://www.tomcatprobelive.com

I hope you enjoy using it.

Best regards,
Vlad

The information contained in this email message may be confidential. If you are 
not the intended recipient, any use, interference with, disclosure or copying 
of this material is unauthorised and prohibited. Although this message and any 
attachments are believed to be free of viruses, no responsibility is accepted 
by Informa for any loss or damage arising in any way from receipt or use 
thereof.  Messages to and from the company are monitored for operational 
reasons and in accordance with lawful business practices. 
If you have received this message in error, please notify us by return and 
delete the message and any attachments.  Further enquiries/returns can be sent 
to [EMAIL PROTECTED]

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



Re: mod jk

2006-03-06 Thread Kaushal Shriyan
Thanks Aliye

I am getting this below information

[EMAIL PROTECTED]/apache_1.3.26/libexec# ldd
/home/qrq/suds_20_dir/apache_1.3.26/libexec/mod_jk.so
warning: ldd: /home/qrq/suds_20_dir/apache_1.3.26/libexec/mod_jk.so:
is not executable
   libc.so.1 = /usr/lib/libc.so.1
   libdl.so.1 =/usr/lib/libdl.so.1
   /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1


One more thing i would like to tell is that I have apache 1.3.26 running
but in the URL its for 1.3.33

Please let me know if you can give me prebuild binaries for 1.3.26
since I cant build from src

Thanks in Advance

Regards

Kaushal




On 3/6/06, Edao, Aliye [EMAIL PROTECTED] wrote:
 Hi,

 The mod_jk you are using seems not to function properly. You can see that if 
 you user the command:
 ldd /home/qrq/suds_20_dir/apache/libexec/mod_jk.so (you should get something 
 like -- not found ...

 Recompile it or download a binary version suitable to
 your system form 
 http://apache.speedbone.de/tomcat/tomcat-connectors/jk/binaries/


 
 Mit freundlichem Gruß / kind regards

 Dr. Aliye Edao




 -Ursprüngliche Nachricht-
 Von: Kaushal Shriyan [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 6. März 2006 12:51
 An: Tomcat Users List
 Betreff: Re: mod jk

 Thanks Warren Pace

 Its there I will paste u the httpd.conf file but while i restart

 [EMAIL PROTECTED]/apache/bin# ./apachectl start
 Syntax error on line 206 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
 Cannot load /home/qrq/suds_20_dir/apache/libexec/mod_jk.so into
 server: ld.so.1: /home/qrq/suds_20_dir/apache/bin/httpd: fatal:
 relocation error: file /home/qrq/suds_20_dir/apache/libexec/mod_jk.so:
 symbol dir_module: referenced symbol not found
 ./apachectl start: httpd could not be started

 Regards

 Kaushal



 On 3/6/06, Warren Pace [EMAIL PROTECTED] wrote:
 
  
   From: Kaushal Shriyan [EMAIL PROTECTED]
   Date: 2006/03/06 Mon AM 05:08:31 EST
   To: users@tomcat.apache.org,  users@httpd.apache.org
   Subject: mod jk
  
   HI All
  
   I am getting
  
   [EMAIL PROTECTED]/apache/bin# ./apachectl start
   Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
   Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
   module not included in the server configuration
   ./apachectl start: httpd could not be started
   [EMAIL PROTECTED]/apache/bin#
  
   Please let me know where i am going wrong
  
  Are you loading mod_jk dynamically?
  The JkWorkersFile statement needs to appear after the LoadModule statement 
  as such:
  LoadModule jk_module /usr/lib/apache2/mod_jk.so
  JkWorkersFile /etc/apache2/workers.properties
 
   Regards
  
   Kaushal
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



Re: Tomcat on CDROM (it works!) Vicaya 0.1

2006-03-06 Thread Mikolaj Rydzewski

Alexander E Genaud wrote:

I am running Tomcat 5.0 from a CDROM. In order for this to work on
different platforms I've tweaked the configurations and create a small
(100 KB) temp space on the user's hard drive for logs, work, java.io,
and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
to run with a JRE (classpath includes bootstrap.jar only).
  
I have similiar setup. Our production webapp with hsqldb works well 
directly from CD. I have slightly modified Tomcat 5.5.12 to accomplish 
this. You can find the 'magic' ant buildfile here: 
http://www.ceti.pl/~miki/komputery/tomcat_demo/



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




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Content-Encoding: chunked or Transfer-Encoding: chunked

2006-03-06 Thread COURTAULT Francois
 Hello,

The pb of Tomcat chunk support is not for the HTTP response: it is for HTTP 
request !!!

Do you know if it works too ?  Any way to test it ?

Regards. 

-Message d'origine-
De : Hadraba Petr [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 3 mars 2006 14:26
À : Tomcat Users List; Corobitsyn Roman
Objet : Re: Content-Encoding: chunked or Transfer-Encoding: chunked

Hi,

or generate text file using response.getWriter().println() and connect using 
telnet this way:
GET http://localhost:8080/context_path/servlet_path HTTP/1.1 HOST localhost:8080

And you will see headers sent by Tomcat

This works for me (specially the `chuncked' encoding)

PETR


On 3/3/06, Corobitsyn Roman [EMAIL PROTECTED] wrote:

 Hello COURTAULT,

 Friday, March 3, 2006, 1:47:19 PM, you wrote:

 CF Hello,

 CF Do you know if these options are supported by Tomcat 5.x ?

 CF Regards.

 Of course
 If 4.x support this feature, then 5.x supports one in 4.1.31 see 
 DefaultHeaders.java HttpRequestStream.java HttpResponseStream.java.
 To check this option put in ROOT any big file and try download id with 
 some download manager
 --
 Best regards,
  Coroba



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



Please Give The Definition of lbfactor

2006-03-06 Thread Mohan Wickramasinghe
Please give us exactly what and how the lbfactor should be set to load
balance between 10 workers equally.

We are confused with the settings
thanks



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



tomcat: can you control the encoding assumed by HttpServeltRequest.getParameter ?

2006-03-06 Thread sol myr
Hi,
   
  I'm using tomcat 5.5.15.
  I have a servelt which reads parameters from a  form  , using 
HttpServletRequest.getParameter().

  The catch is, parameters data (filled in by the user) is in Chinese.
  I noticed that even though my page encoding is unicode, the browser (IE6) 
seems to send the parameters in utf-8  (I'm not sure whether it's part of the 
HTTP spec, or is it and IE6 thing ?). 
   
  Unfortunately, Tomcat's implementation for HttpServletRequest.getParameter() 
returns garbage, because it does *not* assume that parameters are encoded in 
utf-8 (it seems to assume latin1, or something very similar). 
I did manage to forcefully convert the data, using the following ugly code:
  
   // supposed to be a chinese city. I get garbage, because browser sends
   // the city in utf-8, but tomcat seems to assume its 'latin1' :
   String city=request.getParameter(city); 
   
   // ugly convertion to utf-8:
   byte[] bytes=new byte[paramValue.length()];
   for(int i=0; ibytes.length; i++)
 bytes[i]=(byte) paramValue.charAt(i);
   String converted=new String(bytes, utf-8);
 // now converted seems to be the correct city


  I was wondering, is there a nicer way to do it ?
E.g. is there some tomcat configuration file, where you can tell it the 
request.getParameter() should parse the data assuming the browser sent it using 
utf-8 ?
   
  Thanks very much.



-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: tomcat: can you control the encoding assumed by HttpServeltRequest.getParameter ?

2006-03-06 Thread Mikolaj Rydzewski

sol myr wrote:

  I was wondering, is there a nicer way to do it ?
  

Use Filter to change request's encoding.

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




smime.p7s
Description: S/MIME Cryptographic Signature


Using a configuration file without path for an application deployed on tomcat

2006-03-06 Thread STEINER Stephan
Hi

I have developed a Java application which offers certain services to
Cisco IP phones. I've written it as a standalone java application to
separate processing logic and presentation. So basically I have a set of
classes, and two jsp frontend files that do very basic things. Since the
application can be run in standalone mode (for debugging purposes), I
have an xml configuration file which is assumed to be located in the
same directory as the application itself. Hence, my configuration reader
looks for a file config.xml without any path indication (since the path
can change). This works like a charm in the standalone configuration.
Then I added the jsp frontent using NetBeans. Netbeans has an integrated
Tomcat, and out of sheer luck I figured out that once my war is deployed
on the Netbeans Tomcat, my config.xml needs to be located not in the
path where the jar that contains the application logic (that one is put
in WEB-INF/lib where it belongs) but in the Tomcat bin directory. 

However, this no longer holds when I'm looking at a standalone Tomcat
installation. I've tried a bunch of different paths but with no luck. So
I'm wondering, if the app is looking for a config.xml without any path
indication whatsoever, where should I put it so that it will be find
once the jsp frontend starts the application? (and to go a little into
detail, the jsp is configuration oblivious and the application uses the
singleton pattern.. So in the jsp I'd write something like 
% mypackage.Application myApp = new mypackage.GetApplication();
   myApp.DoSomething(); %

And in mypackage.Application, I'd have

Static Application app = null;

Public static Application GetApplication()
{
if (app == null)
{
app = new Application()
app.loadConfig(config.xml);
}
return app;
}

So, where do I put config.xml so that loadConfig will find it? I presume
that if the NetBeans integrated tomcat mapps the local directory to the
bin directory, there should be something similar on a standalone tomcat
installation, should there not? And if this approach is doomed, then how
else can I get an xml configuration to the application without involving
the frontent jsp files?

Regards
Stephan

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



Tomcat 5.0.28 memory leak.

2006-03-06 Thread VRamchandani

Hello,

We recently upgraded from tomcat 4.1.24 to tomcat 5.0.28.I am running a
small application on the server and am running a small load test on it.
The application seems to run all right on tomcat 4.1.24 but fails on tomcat
5.0.28.The service breaks after a while when only 3 users are hitting it.
I have been re-searching and have read bugs related to memory leaks.Is
there a known bug in the 5 versions of tomcat which leads to a memory
leak??

I have tried various things - nothing seems to work.I tried memory
debugging using Jprobe which does show me that a char[] array size keeps
growing which eventually leads to a leak but then I tested with tomcat
4.1.24 and that showed similar behaviour but didn't break.Is garbage
collection not handled properly in the version 5 of tomact??

Please help.

Thanks,
Vinita


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



RE: Please Give The Definition of lbfactor

2006-03-06 Thread Tim Lucia
Don't set it (defaults to 1 for all.)  That will treat all workers equally,
regardless of the resources available on each worker's machine.

See http://tomcat.apache.org/connectors-doc/config/workers.html for complete
details.  

lbfactor (1)

Integer number used when the worker will be used inside load balancer
worker, this is the load-balancing factor for the worker. The load-balancing
factor is how much we expect this worker to work, or the worker's work
quota. Load balancing factor is compared with other workers that makes the
load balancer. For example if one worker has lb_factor 5 times higher then
other worker, then it will receive five times more requests.


Tim

-Original Message-
From: Mohan Wickramasinghe [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 9:59 AM
To: users@tomcat.apache.org
Subject: Please Give The Definition of lbfactor

Please give us exactly what and how the lbfactor should be set to load
balance between 10 workers equally.

We are confused with the settings
thanks



-
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: Can TOMCAT cache the file in jsp:include element?

2006-03-06 Thread Len Popp
If you use [EMAIL PROTECTED], the included file will be compiled along with
the rest of the JSP code, so it will only be read once rather than
every time the page is accessed.
--
Len

On 3/6/06, Mike Sabroff [EMAIL PROTECTED] wrote:
 You should use
 %@ include file=other.jsp % instead of jsp:include 
 The jsp:include is for dynamic content that changes a lot,
 the @ include file is for static content and will get you closer to
 where you want to be.
 as far as cacheing goes, I am not knowledgeable enough to answer that
 question reliably.

 Mike

 Xuekun Hu wrote:
  Hi,
 
  I'm a newbie of TOMCAT 5.5. I have some jsp scripts which inlucde some
  static files by using jsp:include element. I want to cache them to
  improve the performance. Can TOMCAT do that? If yes, how?
 
  I searched the docs, and found an attribute cachingAllowed in
  context container. Does the attribute work for jsp:include element?
 
  Thanks in advance.
 
  Thx, Xuekun
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 --
 Mike Sabroff
 Web Services
 Developer
 [EMAIL PROTECTED]
 920-568-8379


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



Help in server.xml

2006-03-06 Thread Devireddy, Nagendra Reddy (STSD)

Hi I am using tomcat for running two applications at different locations

First application app1 is under /opt/myweb/www/webapps and second
application is under /opt/nagendra/www/webapps

I am wondering whether the following conf will work ..
I am very new to this so please help me here if some thing is wrong

 Host name=localhost debug=0 appBase=/opt/myweb/www/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

 Host name=localhost debug=0 appBase=/opt/nagendra/www/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


I have not tried this .. Before trying I just want to confirm .. 

Please reply ..
Thanks and Regards,
Nagendra Reddy. D



Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-06 Thread Tom Bednarz

Hi Petr,

Thanks for your feedback. It still does not work for me, no matter where 
I put the damn JAR file. So I will use my own pooling class directly in 
my webapp based on Apaches DBCP which is part of Jakarta Commons. It is 
probably faster then fiddeling with this bloody driver configuaration.


I currently should use the pool from JSP's and not from Java code. 
However, it should not make a difference.


Just for your information regarding ASA and ASE: ASA is a database 
originally written by a company called WATCOM in Canada. I use the 
software for more then 10 years and it is one of the best DB engines 
money can buy. Even with large databases (several GB in size) it is 
faster then MS SQL Server. ASE is only faster if there are hundreds of 
concurrent users, but ASE has still many limitations in SQL syntax, db 
space management, datatypes etc. Also it only understands T-SQL while 
ASA understands both T-SQL and ANSI SQL.


Regarding JDBC: jConnect is a driver provided from SYBASE. It works on 
ASE as well as on ASA and uses the Tabular Data Stream TDS protocol. 
jConnect is quite slow and does NOT support scrollable cursors, but it 
is a pure java, level 4 driver. JDBCODBC.IDriver is a NATIVE library 
driver (level 3). It is NOT using bridge, it is using a native DLL or 
.SO on UNIX. To connect one needs to setup a ODBC datasource which may 
be painful, if you have to redistribute a client. (You need to integrate 
the entire ODBC stuff in your setup program).  This driver is relatively 
new (compared to jConnect) and was introduced with ASA 8 (I think). 
Currently we have ASA 9.x. Earlier version only could use jConnect.


Cheers

Thomas

Hadraba Petr wrote:


Hi,

I studied something about Sybase ASA and here are my pieces of knowledge:
- ASA is, unlike ASE, ODBC based insted of TDS
- the JDBC drivers are generic JDBC-to-ODBC bridge and can be used to
access _any_ database throw ODBC
- the JDBC drivers are not freely downloadable (I didn't find any)

- You can access ASA also throw jConnect (TDS based Sybase's JDBC drivers)
This solution is functional but the speed (power) is less -- Sybase
does not recomand to use jConnect drivers.

So, I tried to use my ASE under Tomcat (Currently, I'm successfuly
using PostgreSQL). The following solution works fine under Tomcat
standalone and Tomcat under Eclipse.

Small HOWTO for Tomcat 5.5.15/jdk1.5.0_06/Linux:
1. Locate your existing JDBC driver, or try use jConnect
(http://www.sybase.com/products/middleware/jconnectforjdbc)
2. Copy the driver jar(s) into ${CATALINA_HOME}/common/lib
3. Create your META-INF/context.xml
4. Make the resource references in the WEB-INF/web.xml
5. Use the data source(s) in your code

I saw the `Cannot load JDBC driver class' and it seens the drivers
must be in the common/lib directory.

Finally, here is my context.xml, web.xml and example lines using the database

Hope this helps

PETR


META-INF/context.xml
?xml version=1.0 encoding=UTF-8?
Context
   Resource
   auth=Container
   scope=Shareable
   description=Logging database connection
   name=jdbc/project/logger
   type=javax.sql.DataSource
   driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://127.0.0.1:5432/project
   username=uname
   password=password6
   maxIdle=20
   maxWait=5000
   maxActive=20
   validationQuery=SELECT version(); /
   Resource
   auth=Container
   scope=Shareable
   description=Test connection to the Sybase ASE server
   name=jdbc/project/sybase
   type=javax.sql.DataSource
   driverClassName=com.sybase.jdbc3.jdbc.SybDriver
   url=jdbc:sybase:Tds:ws:5000
   username=sa
   password=
   maxIdle=20
   maxWait=5000
   maxActive=20
   validationQuery= /
/Context


WEB-INF/web.xml
...
   resource-ref
   descriptionPROJECT client/description
   res-ref-namejdbc/project/logger/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   res-sharing-scopeShareable/res-sharing-scope
   /resource-ref
   resource-ref
   descriptionPROJECT client/description
   res-ref-namejdbc/project/sybase/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   res-sharing-scopeShareable/res-sharing-scope
   /resource-ref

/web-app

SAMPLE/code
...
final Context initCtx = new InitialContext();
final Context envCtx = (Context) 
initCtx.lookup(java:comp/env);

final DataSource dataSource = (DataSource) 
envCtx.lookup(databaseName);

final Connection conn = 

JAASRealm and MemoryRealm

2006-03-06 Thread MW Janssen
Hi,
 
I am busy with installing the manager and admin application on my production
server (thats running fine). The admin and manager applications works but I
cant login. I checked the error logs and i find the error
Mar 6, 2006 5:39:56 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error java.lang.SecurityException: Unable to locate a
login configuration. But I don't want (and use) JAASRealm but I want
MemoryRealm (users in tomcat_users.xml). I placed this in my server.xml
 
  GlobalNamingResources
 Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database that can
be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

Context path=/manager debug=0 privileged=true
docBase=C:\tomcat557\server\webapps\manager
  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127.0.0.1/
  ResourceLink name=users global=UserDatabase
type=org.apache.catalina.UserDatabase/
 /Context
 
So why Tomcat doesn't pick up the MemoryRealm but is looking for JAASRealm??
What do I need to do so Tomcat will pick up MemoryRealm??
 
Maarten
 
 
The error is:
 
Mar 6, 2006 5:39:56 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
 at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
 at java.security.AccessController.doPrivileged(Native Method)
 at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:
210)
 at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
 at javax.security.auth.login.LoginContext.init(LoginContext.java:403)
 at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:355)
 at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:181)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:446)
 at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.jav
a:275)
 at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80)
 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(StandardEngineValve.java
:107)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:738)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:526)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Unable to locate a login configuration
 at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
 at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95)

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3-3-2006
 


cgi-servlet environment parameters

2006-03-06 Thread Ken Gibson
Good morning.

 

I'm working with Tomcat 4.1.31 and am trying to catch 500 errors for
custom error pages. We host around 400 portals in one instance (kudos to
the developers, by the way, it runs great!) 

 

The idea is that the Perl script would create a site on the fly with
little content in the event of a 500. The original request, then, would
be something akin to http://mydomain.com/portal_a/index.jsp. I've got
the cgi-servlet set up to run a Perl script and have created a simple
JSP that returns 

 

response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR)

 

to create the 500 for testing. The Perl script is set to pick up the
original URL requested and return some content specific for portal_a.
However, the environment does not seem to contain the URL of the
original request (i.e., REQUEST_URI or PATH_INFO), as below:

 

runCGI(envp=[{HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7, HTTP_ACCEPT_ENC
DING=gzip,deflate, REQUEST_METHOD=GET, AUTH_TYPE=,
HTTP_ACCEPT_LANGUAGE=en-us,e ;q=0.5, SERVER_NAME=harrier.mesas.com,
SERVER_SOFTWARE=TOMCAT, HTTP_KEEP_ALIVE= 00,
HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7,
HTTP_HOST=harrier.mesas com:3233, GATEWAY_INTERFACE=CGI/1.1,
X_TOMCAT_SCRIPT_PATH=/private-1/portal/pro

uction35/www/500.cgi, REMOTE_ADDR=10.20.2.65, SERVER_PROTOCOL=HTTP/1.1,
PATH_IN O=, REMOTE_HOST=kengibson100625.mesas.mis, QUERY_STRING=var1=2,
HTTP_CONNECTION keep-alive, SERVER_PORT=3233,
HTTP_COOKIE=JSESSIONID=5065D8892D6F8D0FD891483596

283A5, CONTENT_TYPE=, CONTENT_LENGTH=,
HTTP_ACCEPT=text/xml,application/xml,app

ication/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5,
SCRIPT_ AME=/cgi-bin/500.cgi, REMOTE_USER=, REMOTE_IDENT=}],
command=/private-1/portal/

roduction35/www/500.cgi)

 

Oddly, adding bogus parameters to the end of the request (var1=2) gets
passed to the cgi-servlet in the QUERY_STRING parameter.

 

Any help in finding the original request is greatly appreciated. 

 

Thanks

 

 

Ken



Re: Help in server.xml

2006-03-06 Thread Tim Diggins

Hi Nagendra -

This won't work - two hosts means two hosts, so they have to have 
different names (this is virtual hosting).


If what you want to do is set up two different Contexts (Context is a 
webapp) under the same host, but you don't want to put the two contexts 
as subfolders of the same directory, then you need to specify the 
Context - either as a Context element under the Host (but this is an 
old deprecated style) or as a Context fragment (a bit of xml with just 
the Context you want.  You need to name the Context fragment after what 
you want the Context served at (e.g. for /thisapp call it 
thisapp.xml, for /this/that/theotherapp call it 
this#that#theotherapp.xml) and put it in the conf/Catalina/localhost/ 
directory (assuming you AREN'T running virtual hosting)


E.g. for your first app, something like:
Context docBase=/opt/myweb/www/webapps/app1/

This is all described at 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html (though may 
take a few reads through - I misunderstood this totally when I read it, 
but got put right on this list recently (thanks btw!)).


Tim


Devireddy, Nagendra Reddy (STSD) wrote:

Hi I am using tomcat for running two applications at different locations

First application app1 is under /opt/myweb/www/webapps and second
application is under /opt/nagendra/www/webapps

I am wondering whether the following conf will work ..
I am very new to this so please help me here if some thing is wrong

 Host name=localhost debug=0 appBase=/opt/myweb/www/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

 Host name=localhost debug=0 appBase=/opt/nagendra/www/webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


I have not tried this .. Before trying I just want to confirm .. 


Please reply ..
Thanks and Regards,
Nagendra Reddy. D





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



Problem with mod_jk/apache 1.3.34 Windows

2006-03-06 Thread Justin Greene
We have been trying to troubleshoot an issue with our production environment
in which our website become completely unresponsive.  First our environment:

Windows 2003 server Sp2 (multiple servers, happens on all of them at
different times)
Java JDK 1.5.0_06
Tomcat 5.5.8
mod_jk 1.2.15
Apache 1.3.34/Mod_SSL

Each server is using ajp/1.3 to connect apache to tomcat on 127.0.0.1

We are/have experiencing/ed two issues.  The first is a 'Server Busy Page'
being returned when we are under any load.  We traced this to what we are
99.99% sure is a mis-statement in the worker.properties documentation.

Do not use cachesize with values higher then 1 on Apache 2.x prefork or
Apache 1.3.x!

I believe that this only applies to Non-Windows installations.  (correct me
if I am wrong here) Apache 1.3.34 on Windows is multi-threaded and you must
set the cachesize = webserver child processes.  This change resolved the
'Server Busy Page' issue.  I believe that by only having 1 thread
essentially causes it to run in 

The real problem we are having is what appears to be hanging connections
between mod_jk and tomcat.  The symptom that we see is that the site becomes
unresponsive.  If we look in the Tomcat Manager at the 'server status' page
when this is happening we find numerous connections in the jk-127.0.0.1-8009
section that do not seem to be finishing.  The site seems to stop responding
when the number of 'hung' connections = maxthreads as set in server.xml.  Of
course changing the maxthreads lets us go longer without losing tomcat
because there are more threads available.

Sometimes a single Tomcat thread will hang as indicated below (this is from
one that is currently hung):
Stage: S
Time: 4644016
B Sent: 632 KB
B Received: 0 KB
Client: [client IP]
Vhost: [vhost of website]
Page: GET [page from server]

Notice the time on this.  I am not sure why this thread is not finishing,
this is a page that usually takes about 100ms to return the contents.
Checking the threads through jconsole I find the following for this thread
(I am pretty sure that this is the correct thread):

Name: TP-Processor23
State: RUNNABLE
Total blocked: 2,219  Total waited: 57,956

Stack trace: 
java.net.SocketOutputStream.socketWrite0(Native Method)
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:506)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:260)
org.apache.coyote.Response.doWrite(Response.java:551)
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:
361)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.ja
va:76)
com.seccas.servlet.GetMessagePartServlet.execute(GetMessagePartServlet.java:
226)
com.seccas.servlet.GetMessagePartServlet.doGet(GetMessagePartServlet.java:31
)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
java.lang.Thread.run(Thread.java:595)

Interestingly, if I restart Apache, the thread kills itself and everything
seems to be OK... So this makes me think this is an issue with mod_jk
speaking to tomcat, perhaps an ajp issue?

I had the same issue on another server (same environment), but it seemed to
block the whole server.  All the processes on this server were blocked by:

Name: TP-Processor20
State: RUNNABLE
Total blocked: 529  Total waited: 6,578

Stack trace: 
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)

Re: Form login UTF-8 username problem

2006-03-06 Thread Eric Haszlakiewicz
 Daniel Blumenthal [EMAIL PROTECTED] wrote:
   As a security concern, you might not want to allow full UTF-8 usernames.
 There are a number of invisible characters (from the soft hyphen to various
 connector characters) which people can use to spoof other users' names.

On Sun, Mar 05, 2006 at 07:09:52PM -0800, Dave wrote:
 Hi Daniel,

   I am not quite understanding. Is it a security hole?
   User needs a username and password to login to the web application.

It _can_ be a security hole, but it does not necessarily _have_ to be
one.  It certainly can make things a bit trickier to get right.

The problem is that two usernames that are actually different can
_look_ the same.  For example, say you are looking at two usernames, both
of which appear on your screen as joe-bob.  It is possible that one of
them uses an actual ascii hyphen character, while the other uses the
unicode soft-hyphen.
This can lead to all sorts of problems.  e.g. let's say joe-bob (the
soft-hyphen one) send you a message through your web-app (thus supposedly
proving he is authorized to ask) asking you to cancel his account.
You go and type joe-bob (with an ascii hyphen) into your delete-a-user
form and end up deleting the wrong user.

eric

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



Re: Problem with mod_jk/apache 1.3.34 Windows

2006-03-06 Thread Mladen Turk

Justin Greene wrote:


Windows 2003 server Sp2 (multiple servers, happens on all of them at
different times)
Java JDK 1.5.0_06
Tomcat 5.5.8
mod_jk 1.2.15
Apache 1.3.34/Mod_SSL


Do not use cachesize with values higher then 1 on Apache 2.x prefork or
Apache 1.3.x!

I believe that this only applies to Non-Windows installations.  (correct me
if I am wrong here) Apache 1.3.34 on Windows is multi-threaded and you must
set the cachesize = webserver child processes.  This change resolved the
'Server Busy Page' issue.  I believe that by only having 1 thread
essentially causes it to run in 



Right. cachesize=MaxClients on Windows.
On Apache2 it's set by querying the mpm if omitted.

Apache 1.3.x on Windows for production?
I must admit, you guys are very brave ;)

Regards,
Mladen.

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



Re: Problem with mod_jk/apache 1.3.34 Windows

2006-03-06 Thread Justin Greene

 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 12:33 PM
 To: Tomcat Users List
 Subject: Re: Problem with mod_jk/apache 1.3.34 Windows
 
 Justin Greene wrote:

SNIP

  Do not use cachesize with values higher then 1 on Apache 
 2.x prefork 
  or Apache 1.3.x!
  
  I believe that this only applies to Non-Windows installations.  
  (correct me if I am wrong here) Apache 1.3.34 on Windows is 
  multi-threaded and you must set the cachesize = webserver child 
  processes.  This change resolved the 'Server Busy Page' issue.  I 
  believe that by only having 1 thread essentially causes it to run in
  
 Right. cachesize=MaxClients on Windows.
 On Apache2 it's set by querying the mpm if omitted.

It would be nice if the docs reflected this :-)
 
 Apache 1.3.x on Windows for production?
 I must admit, you guys are very brave ;)

Been running for years and have found it quite stable, however our use is
very specific, static files, mod_jk and mod_[old version of cold fusion].
Very little room for anything to go wrong here.  The cold fusion mod
(v4.1.something) is not available for apache 2 mod so we are a little stuck
on 1.3.34 at the moment.

Justin

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



RE: Using a configuration file without path for an application deployed on tomcat

2006-03-06 Thread Duan, Nick
How about packaging the config.xml file within the jar file and import
it to your application via resource stream? See
Class.getResourceAsStream() or ClassLoader.getResourceAsStream() for
more details.

The limitation of this approach is that the configuration parameters
have to be predefined prior to deployment.

ND


-Original Message-
From: STEINER Stephan [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 10:28 AM
To: users@tomcat.apache.org
Subject: Using a configuration file without path for an application
deployed on tomcat

Hi

I have developed a Java application which offers certain services to
Cisco IP phones. I've written it as a standalone java application to
separate processing logic and presentation. So basically I have a set of
classes, and two jsp frontend files that do very basic things. Since the
application can be run in standalone mode (for debugging purposes), I
have an xml configuration file which is assumed to be located in the
same directory as the application itself. Hence, my configuration reader
looks for a file config.xml without any path indication (since the path
can change). This works like a charm in the standalone configuration.
Then I added the jsp frontent using NetBeans. Netbeans has an integrated
Tomcat, and out of sheer luck I figured out that once my war is deployed
on the Netbeans Tomcat, my config.xml needs to be located not in the
path where the jar that contains the application logic (that one is put
in WEB-INF/lib where it belongs) but in the Tomcat bin directory. 

However, this no longer holds when I'm looking at a standalone Tomcat
installation. I've tried a bunch of different paths but with no luck. So
I'm wondering, if the app is looking for a config.xml without any path
indication whatsoever, where should I put it so that it will be find
once the jsp frontend starts the application? (and to go a little into
detail, the jsp is configuration oblivious and the application uses the
singleton pattern.. So in the jsp I'd write something like 
% mypackage.Application myApp = new mypackage.GetApplication();
   myApp.DoSomething(); %

And in mypackage.Application, I'd have

Static Application app = null;

Public static Application GetApplication()
{
if (app == null)
{
app = new Application()
app.loadConfig(config.xml);
}
return app;
}

So, where do I put config.xml so that loadConfig will find it? I presume
that if the NetBeans integrated tomcat mapps the local directory to the
bin directory, there should be something similar on a standalone tomcat
installation, should there not? And if this approach is doomed, then how
else can I get an xml configuration to the application without involving
the frontent jsp files?

Regards
Stephan

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



mcastClusterDomain is missing

2006-03-06 Thread gurkan
Hi,
I have been trying to test Clustering with Tomcat5 and installed rpms from
jpackage.org and using these rpms:

tomcat5-servlet-2.4-api-5.0.30-11jpp, tomcat5-5.0.30-11jpp,
tomcat5-jasper-5.0.30-11jpp

I have been trying to use an example from OReilly site and I have three VMWARE
(virtual machines), one is LoadBalancer and other two are Cluster nodes.

When I tested the example I get the error below [Required property
mcastClusterDomain is missing]  and I have also pasted my server.xml, web.xml,
and rules.xml also.

Thanks for help.

ERROR:
***
Mar 7, 2006 1:04:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 7, 2006 1:04:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7075 ms
Mar 7, 2006 1:04:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 7, 2006 1:04:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0
Mar 7, 2006 1:04:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 7, 2006 1:04:12 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 7, 2006 1:04:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /balancer from URL
file:/var/lib/tomcat5/webapps/balancer
Mar 7, 2006 1:04:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 7, 2006 1:04:18 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 7, 2006 1:04:18 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=6/374  config=/usr/share/tomcat5/conf/jk2.properties
Mar 7, 2006 1:04:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7237 ms
log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.
2006-03-07 13:05:20,181 (WebPortalLogger.java:44)  -   NEW HTTP REQUEST  

2006-03-07 13:05:20,261 (WebPortalLogger.java:44)  -
TC-LB|balancer|testLB.jsp|Start Time  |03/07/2006 01:05:20:209 PM
2006-03-07 13:05:21,667 (WebPortalLogger.java:44)  - getServerInstance() : 1
2006-03-07 13:05:21,670 (WebPortalLogger.java:44)  - getMaxServerInstances() : 2
2006-03-07 13:05:21,674 (WebPortalLogger.java:44)  - 404692994 : 1
2006-03-07 13:05:21,678 (WebPortalLogger.java:44)  - Requested server instance
match..
java.lang.IllegalArgumentException: Required property mcastClusterDomain is
missing.
at
org.apache.catalina.cluster.mcast.McastService.hasProperty(McastService.java:252)
at
org.apache.catalina.cluster.mcast.McastService.setProperties(McastService.java:140)
at common.utilities.ServerUtil.isServerAlive(ServerUtil.java:36)
at
org.apache.webapp.balancer.rules.BaseLoadBalancingRule.isServerAlive(BaseLoadBalancingRule.java:89)
at
org.apache.webapp.balancer.rules.RandomRedirectRule.matches(RandomRedirectRule.java:41)
at org.apache.webapp.balancer.RuleChain.evaluate(RuleChain.java:100)
at
org.apache.webapp.balancer.BalancerFilter.doFilter(BalancerFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

**


LoadBalancer server.xml
**
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 

RE: TomcatProbe 1.1 released

2006-03-06 Thread Duan, Nick
What are the differences between Tomcat Manager and TomcatProbe?

Thanks!

ND

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 7:51 AM
To: users@tomcat.apache.org
Subject: TomcatProbe 1.1 released

Hello guys,

I thought that you might be interested in this announcement.

TomcatProbe 1.1 new features include log file browser and connector
usage charts.

Log browser is a configuration- and maitenance free feature that enables
monitoring of Tomcat log files. It supports Log4J, Commons, Catalina and
JDK built-in loggers. You will be able to see and download easily all
log files Tomcat has created or can possibly create.

Connector usage charts display real-time Tomcat connector usage both in
terms of the number of requests received and the volume of traffic that
came in and out of the connector for the last 2 hours. This feature
should help to visualise load on your Tomcat instance.

This release also addresses some important issues with application
deployment, multi-lingual JSPs, referencing datasources via ResourceLink
and others.

Project web site:
http://www.tomcatprobe.org

Change log:
http://www.tomcatprobe.org/d/latest.shtml

Demo site (LOGIN: demo/demo)
http://www.tomcatprobelive.com

I hope you enjoy using it.

Best regards,
Vlad


The information contained in this email message may be confidential. If
you are not the intended recipient, any use, interference with,
disclosure or copying of this material is unauthorised and prohibited.
Although this message and any attachments are believed to be free of
viruses, no responsibility is accepted by Informa for any loss or damage
arising in any way from receipt or use thereof.  Messages to and from
the company are monitored for operational reasons and in accordance with
lawful business practices. 
If you have received this message in error, please notify us by return
and delete the message and any attachments.  Further enquiries/returns
can be sent to [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: Tomcat on CDROM (it works!) Vicaya 0.1

2006-03-06 Thread Alexander E Genaud
Mikolaj,

Thanks a lot for the code. I had to run through the ant code manually
because I downloaded the latest Tomcat 5.5.16, and merged the 1.4.2
compatibility patch. I was unable to get the exe to work, so I wrote a
.bat based on your .sh (which I will soon make more generic). How did
you create the EXE, by the way? You might be interested to see the
Vicaya project. The intent is to run off ANY platform with no
installation. It handles some very strange Windows drive
configurations, loads the appropriate JRE, etc.

Thanks again,
Alex


A NON GENERIC batch file is here:

mkdir C:\Temp\tomcattemp
set tmpfile=C:\Temp\tomcattemp
mkdir C:\Temp\tomcattemp\work
set workdir=C:\Temp\tomcattemp\work
set curodir=%cd%
set CATALINA_HOME=%curodir%/tomcat5516
set CATALINA_BASE=%curodir%/tomcat5516
set CATALINA_TMPDIR=%workdir%
set JAVA_HOME=C:\j2sdk1.4.2_11
call %CATALINA_HOME%/bin/startup.bat




From: Mikolaj Rydzewski [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Date: Mon, 06 Mar 2006 14:45:04 +0100
Subject: Re: Tomcat on CDROM (it works!) Vicaya 0.1
Alexander E Genaud wrote:
 I am running Tomcat 5.0 from a CDROM. In order for this to work on
 different platforms I've tweaked the configurations and create a small
 (100 KB) temp space on the user's hard drive for logs, work, java.io,
 and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
 to run with a JRE (classpath includes bootstrap.jar only).

I have similiar setup. Our production webapp with hsqldb works well
directly from CD. I have slightly modified Tomcat 5.5.12 to accomplish
this. You can find the 'magic' ant buildfile here:
http://www.ceti.pl/~miki/komputery/tomcat_demo/


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


From: Alexander E Genaud [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Date: Mon, 6 Mar 2006 13:13:45 +0100
Subject: Tomcat on CDROM (it works!) Vicaya 0.1
Hello,

I am running Tomcat 5.0 from a CDROM. In order for this to work on
different platforms I've tweaked the configurations and create a small
(100 KB) temp space on the user's hard drive for logs, work, java.io,
and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
to run with a JRE (classpath includes bootstrap.jar only).

Whenever I set CATALINA_HOME and CATALINA_BASE to different values,
Tomcat 5.0 will not start. As long as they are exactly the same, all
works well. I presume I am doing something incorrect. None the less, I
have gotten around this by creating several CATALINA_HOME's which
differ only in conf/. In each server.xml I hard code the paths to
workDir, logs, etc. My start script locates an acceptable temp
location and starts the appropriate CATALINE_HOME.

For example if I can write to C:\Temp\mytemp, I set CATALINA_HOME to
servers/win_nt_c which contains a conf/server.xml pointing to C:\Temp.
On the other hand, if I can write to /tmp/mytemp, I set CATALINA_HOME
to servers/unix which contains a conf/server.xml pointing to
/tmp/mytemp. I also have another called servers/relative which uses
relative paths.

This hack actually works quite well, albeit resource wasteful:

http://sf.net/projects/vicaya

But this seems completely backward. Can anyone offer a better suggestion?

Also, I have been using Tomcat 5.0 because I am most familiar with it.
Does Tomcat 5.5 support Java 1.4.2 well? Some notes seem to imply that
Tomcat 5.5 has been designed for Java 5. Might Tomcat 5.5 offer a
better solution?

Thanks,
Alex

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



Re: cgi-servlet environment parameters

2006-03-06 Thread Mark Thomas
Ken Gibson wrote:
 However, the environment does not seem to contain the URL of the
 original request (i.e., REQUEST_URI or PATH_INFO), as below:

Looking at the 4.1.31 source, PATH_INFO should be there but
REQUEST_URI is never set.

Mark


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



getting a list of jar files located in shared/lib

2006-03-06 Thread Rajarshi Guha
Hi, I'm running Tomcat 5.5 on Fedora Core 4, with JDK 1.5

My problem is this:

I have a web service that depends on some libraries. These libraries are
placed in $CATALINA_HOME/shared/lib since I plan to have other web
services which will also require these libraries.

Now the problem is that one method in these libraries attempts, by
default, to get the classpath (by default the system classpath) and
looks for a specific set of classes. 

However the method can also be supplied a list of jars to examine

Now, when my web service runs, I can see that I don't have access to the
system classpath. Thus the default behavior of my library function will
not work.

Thus what  I would like to do is, from my webservice code, determine the
jars in $CATALINA_HOME/shared/lib and basically pass the file names to
my library method.

I looked at org.apache.catalina.loader.WebappLoader but it looks more
like a way to build my own loader rather than get information about
jars/clases available to my web service.

The thing is, I know that my web service is accessing the classes
located in the jars under $CATALINA_HOME/share/lib, since other methods
in the web service run fine.

What I can't see how to do is to get the list of jars/classes that are
available to the webservice from the shared/lib directory.

Any pointers would be greatly appreciated.

Thanks,

---
Rajarshi Guha [EMAIL PROTECTED] http://jijo.cjb.net
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
---
Despite the high cost of living, it remains popular.



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



Remote Web App Management

2006-03-06 Thread David Liles
I am wanting to be able to remotely start and stop a web app configured on 
TomCat 5.5.
 
The web app is not deployed within the TomCat directory structure. There are 
several web apps configured and running but none of them show up in the TomCat 
manager interface.
 
I have read the documentation regarding the Manager interface but it isn't 
clear to me as to how I need to get this to work.
 
Currently the context is configured in the server.xml but I have read this is 
frowned upon so I am moving each web app context to its own location under the 
Catalina directory (if this is correct).
 
Am I on the right path regarding the context configuration and how do I then 
have the ability to manage the web apps if they are physically located outside 
of the TomCat directory structure?
 
Thanks


tomcat and websphere compatibility

2006-03-06 Thread Long
Has anyone develop in Tomcat and deploy to Websphere?
It should be possible but how practical is it?

Are there any available resources I can use as a reference?

Thanks for any info,

Long


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



Getting the date from a Tomcat httpsession

2006-03-06 Thread Mark Whitby
Dear all,

Apologies if this isn't really relevant but I'm struggling for what to do!  I 
have a table in a MySQL database with a DATE column in the format -mm-dd 
(incidentally does anyone know how to change this?) and I'm trying to do a date 
entry and comparison using a Java Servlet.  However I can't for the life of me 
work out how to extract the current date using a Java Servlet and I've searched 
everywhere I can with no luck!

Does anyone know how to extract the current date using a Java Servlet Class in 
Tomcat so that I can enter it in the above mentionned MySQL table?

Many thanks

Mark

Re: mod_jk errors - are these normal?

2006-03-06 Thread Justin Greene
 -Original Message-
 From: michael thomas [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 4:42 PM
 To: Tomcat Users List
 Subject: TomcatUsers: Re: mod_jk errors - are these normal?
 
 --- Sven K�hler [EMAIL PROTECTED] wrote:
 
   [Wed Mar 01 20:00:42 2006] [error] 
   ajp_connection_tcp_get_message::jk_ajp_common.c
  (961):
   Can't receive the response message from tomcat,
   network problems or tomcat is down
  (10.0.0.9:8009),
   err=-113
   [Wed Mar 01 20:00:42 2006] [error] ajp_get_reply::jk_ajp_common.c 
   (1503): Tomcat is
  down
   or refused connection. No response has been sent
  to
   the client (yet)

SNIP

 2. It seems like people who have apache and tomcat
 running on the same server can get away without any
 errors.

We are running on the same server (windows) and get these error contantly...
Actually, our read:

[Mon Mar 06 16:32:22 2006] [error] jk_ajp_common.c (961): Can't receive the
response message from tomcat, network problems or tomcat is down
(127.0.0.1:8009), err=-54
[Mon Mar 06 16:32:22 2006] [error] jk_ajp_common.c (1503): Tomcat is down or
refused connection. No response has been sent to the client (yet)

Which is subely different.  Anyone have a reference to what the various
'err=' codes mean?

Justin

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



RE: cgi-servlet environment parameters

2006-03-06 Thread Ken Gibson
Thanks for the quick response. Is there a way to configure the
cgi-servlet that I've missed? The PATH_INFO variable is null in my
scenario; I've split it out from the other parameters below...

runCGI(envp=[{HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7, HTTP_ACCEPT_ENC
DING=gzip,deflate, REQUEST_METHOD=GET, AUTH_TYPE=,
HTTP_ACCEPT_LANGUAGE=en-us,e ;q=0.5, SERVER_NAME=harrier.mesas.com,
SERVER_SOFTWARE=TOMCAT, HTTP_KEEP_ALIVE= 00,
HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7,
HTTP_HOST=harrier.mesas com:3233, GATEWAY_INTERFACE=CGI/1.1,
X_TOMCAT_SCRIPT_PATH=/private-1/portal/pro
uction35/www/500.cgi, REMOTE_ADDR=10.20.2.65, SERVER_PROTOCOL=HTTP/1.1, 

PATH_INFO=, 

REMOTE_HOST=kengibson100625.mesas.mis, QUERY_STRING=var1=2,
HTTP_CONNECTION keep-alive, SERVER_PORT=3233,
HTTP_COOKIE=JSESSIONID=5065D8892D6F8D0FD891483596
283A5, CONTENT_TYPE=, CONTENT_LENGTH=,
HTTP_ACCEPT=text/xml,application/xml,app
ication/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5,
SCRIPT_ AME=/cgi-bin/500.cgi, REMOTE_USER=, REMOTE_IDENT=}],
command=/private-1/portal/
roduction35/www/500.cgi)

Since this is an older version of Tomcat, would you suggest a local mod
to force the PATH_INFO and/or REQUEST_URI? Unfortunately, upgrading
isn't really an option.

Thanks in advance for your help. 

Ken

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



Re: JMX via SSH tunnel does not work?

2006-03-06 Thread Andreas Schildbach

Hello Mikolaj,

I have set up the JMX server of JDK 1.5.0_06/Tomcat 5.5.15. It works 
fine locally, I'm testing with jconsole.


However, if I tunnel the JMX port over SSH, it does not work. I can 
connect to the port, but there is no flow of data. jconsole is 
hanging around for a minute, and then the connect dialog pops up. What 
is going wrong here?


http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
http://forum.java.sun.com/thread.jspa?threadID=289869messageID=1242288


I understand the problem, but do not know how to solve it. Can you give 
an example how the java.rmi.server.hostname and 
java.rmi.server.useLocalHostname properties on the client and the server 
should be set in this case?


Regards,

Andreas


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



Re: JMX via SSH tunnel does not work?

2006-03-06 Thread Justin Greene
We had issues using jconsole remotely a while back (jdk 1.5.0_02) that we
were never able to solve.  If memory serves, jconsole opens a connection on
the specified port to that Java instance.  An additional port or two (I
can't remember) are then opened and the ports that are used are somewhat
random making it very difficult to do this through anything that needs to
port forward or needs ports opened.  I do not remember if the additional
ports are opened by jconsole or the other way, but you can see it by
connecting locally and checking netstat for connections to/from the jconsole
process.  The only solution here is to be able to specify the additional
ports, but at the time there was no way to do this.  I have not looked into
the jconsole or JMX options since so I do not know if this was added.

Justin

 -Original Message-
 From: Andreas Schildbach [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 4:57 PM
 To: users@tomcat.apache.org
 Subject:Re: JMX via SSH tunnel does not work?
 
 Hello Mikolaj,
 
  I have set up the JMX server of JDK 1.5.0_06/Tomcat 
 5.5.15. It works
  fine locally, I'm testing with jconsole.
 
  However, if I tunnel the JMX port over SSH, it does not work. I can
  connect to the port, but there is no flow of data. jconsole is 
  hanging around for a minute, and then the connect dialog 
 pops up. What 
  is going wrong here?
  
  http://forum.java.sun.com/thread.jspa?threadID=565139tstart=30
  
 http://forum.java.sun.com/thread.jspa?threadID=289869messageID=124228
  8
 
 I understand the problem, but do not know how to solve it. 
 Can you give 
 an example how the java.rmi.server.hostname and 
 java.rmi.server.useLocalHostname properties on the client and 
 the server 
 should be set in this case?
 
 Regards,
 
 Andreas
 
 
 -
 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: Getting the date from a Tomcat httpsession

2006-03-06 Thread Steve Ochani
On 6 Mar 2006 at 21:37, Mark Whitby wrote:

 Dear all,

 Apologies if this isn't really relevant but I'm struggling for what to
 do!  I have a table in a MySQL database with a DATE column in the
 format -mm-dd (incidentally does anyone know how to change this?)
 and I'm trying to do a date entry and comparison using a Java Servlet.
  However I can't for the life of me work out how to extract the
 current date using a Java Servlet and I've searched everywhere I can
 with no luck!


Are you trying to retrieve a time field from a mysql database or are you trying 
to determine
the current date/time?
Or are you trying to get the date from a httpsession (as your subject 
indicates)?


If retrieving from a mysql db you can use

java.sql.Timestamp lastlogintime =  rs.getTimestamp(column-name);
(rs being a ResultSet)

If determing current time

java.sql.Timestamp now = new java.sql.Timestamp(System.currentTimeMillis());

-Steve O.


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
There's no obfuscated Perl contest because it's pointless.
 - Jeff Polk

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER Dept.
http://www.matcmp.ncc.edu




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



Re: JDBC DataSources with SYBASE Adaptive Server Anywhere

2006-03-06 Thread Hadraba Petr
Hello Thomas,

thank you for your informations! I will order ASA developer edition
and learn new database;-) Now, I'm looking for a database which
provides internationalization features; specially ORDER BY [(var)char
| text] column and I have no success:
ASE and localization -- it's a workaround.
PostgreSQL -- it's the same. You must define locale during database
storage creation:-(
Firebird -- currently I have no experience:-(
Oracle -- expensive:-(

So, maybe ASA will solve my problem

Regarding T-SQL: I don't know how you, but I find T-SQL great... Some
constructions are interesting

Regarding JDBC: Maybe the native library causes your problems. I'm
using only pure-Java drivers located in the common/lib with no
problems.

Regarding DBCP: I found DBCP classes in the stack traces during my
driver's debugging. And finally -- there is naming-factory-dbcp.jar in
the common/lib...

Regarding Tomcat and data sources: I found this more then obscure. I
have one question: If you write a webapp which uses database; where
shall I define the datasource names? Hardwiring is not a solution. And
put them (the definitions) into some configuration file into the
webapp war file?? Ofcourse, Tomcat have the admin app in which you can
define app-specific database cources... But Sun Java System App server
not... There are in the SJSAS only global resources... I must learn
more...

So, many many thanks for your informations; I'm sorry that I didn't help you:-(

Have a nice day

PETR


On 3/6/06, Tom Bednarz [EMAIL PROTECTED] wrote:
 Hi Petr,

 Thanks for your feedback. It still does not work for me, no matter where
 I put the damn JAR file. So I will use my own pooling class directly in
 my webapp based on Apaches DBCP which is part of Jakarta Commons. It is
 probably faster then fiddeling with this bloody driver configuaration.

 I currently should use the pool from JSP's and not from Java code.
 However, it should not make a difference.

 Just for your information regarding ASA and ASE: ASA is a database
 originally written by a company called WATCOM in Canada. I use the
 software for more then 10 years and it is one of the best DB engines
 money can buy. Even with large databases (several GB in size) it is
 faster then MS SQL Server. ASE is only faster if there are hundreds of
 concurrent users, but ASE has still many limitations in SQL syntax, db
 space management, datatypes etc. Also it only understands T-SQL while
 ASA understands both T-SQL and ANSI SQL.

 Regarding JDBC: jConnect is a driver provided from SYBASE. It works on
 ASE as well as on ASA and uses the Tabular Data Stream TDS protocol.
 jConnect is quite slow and does NOT support scrollable cursors, but it
 is a pure java, level 4 driver. JDBCODBC.IDriver is a NATIVE library
 driver (level 3). It is NOT using bridge, it is using a native DLL or
 .SO on UNIX. To connect one needs to setup a ODBC datasource which may
 be painful, if you have to redistribute a client. (You need to integrate
 the entire ODBC stuff in your setup program).  This driver is relatively
 new (compared to jConnect) and was introduced with ASA 8 (I think).
 Currently we have ASA 9.x. Earlier version only could use jConnect.

 Cheers

 Thomas

 Hadraba Petr wrote:

 Hi,
 
 I studied something about Sybase ASA and here are my pieces of knowledge:
 - ASA is, unlike ASE, ODBC based insted of TDS
 - the JDBC drivers are generic JDBC-to-ODBC bridge and can be used to
 access _any_ database throw ODBC
 - the JDBC drivers are not freely downloadable (I didn't find any)
 
 - You can access ASA also throw jConnect (TDS based Sybase's JDBC drivers)
 This solution is functional but the speed (power) is less -- Sybase
 does not recomand to use jConnect drivers.
 
 So, I tried to use my ASE under Tomcat (Currently, I'm successfuly
 using PostgreSQL). The following solution works fine under Tomcat
 standalone and Tomcat under Eclipse.
 
 Small HOWTO for Tomcat 5.5.15/jdk1.5.0_06/Linux:
 1. Locate your existing JDBC driver, or try use jConnect
 (http://www.sybase.com/products/middleware/jconnectforjdbc)
 2. Copy the driver jar(s) into ${CATALINA_HOME}/common/lib
 3. Create your META-INF/context.xml
 4. Make the resource references in the WEB-INF/web.xml
 5. Use the data source(s) in your code
 
 I saw the `Cannot load JDBC driver class' and it seens the drivers
 must be in the common/lib directory.
 
 Finally, here is my context.xml, web.xml and example lines using the database
 
 Hope this helps
 
 PETR
 
 
 META-INF/context.xml
 ?xml version=1.0 encoding=UTF-8?
 Context
 Resource
 auth=Container
 scope=Shareable
 description=Logging database connection
 name=jdbc/project/logger
 type=javax.sql.DataSource
 driverClassName=org.postgresql.Driver
 url=jdbc:postgresql://127.0.0.1:5432/project
 username=uname
 password=password6
 maxIdle=20
   

Re: cgi-servlet environment parameters

2006-03-06 Thread Mark Thomas
Ken Gibson wrote:
 Thanks for the quick response. Is there a way to configure the
 cgi-servlet that I've missed? The PATH_INFO variable is null in my
 scenario; I've split it out from the other parameters below...

I have just added REQUEST_URI to svn. I have also ported a couple of
patches from TC5. You could build it from source but to save you the
trouble I'll e-mail you a completely unofficial if it destroys your
computer you are on your own updated servlets-cgi.jar directly.

I suspect that the PATH_INFO is correctly null. It depends how the cgi
is called. Are you using a forward? If so, you may have hit the
requirements of SRV.8.4 which mean you see the PATH_INFO of the
request to the CGI, not the PATH_INFO of the original request.

Mark


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



ant reload question

2006-03-06 Thread Jesus Antonio Sanchez Antunez
Hi. When I compiled some classes using the ant task ReloadTask from the
sample build.xml, it doesn't reload
the new compiled classes in tomcat. The only way that I found it does that
is when I remove and reinstall the app.
Do I have to wait for that behaviour, or am I doing something wrong.


catalina.properties / shared.loader

2006-03-06 Thread Christian Nelson

Greetings,

I'm trying to add a new entry onto the shared.loader property in the 
file catalina.properties, one which is based on a java property e.g. 
-Datmos2.home=somedir:


shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${atmos2.home}/devices/*.jar

... with little luck.

I'm really just trying to take advantage of catalina's ability to load 
jars using wildcards, and in this case, jars that exist outside of the 
catalina installation.


What does the ${} notation in this properties file mean?  I looks like 
those are referring to Java system properties, but it's not clear if 
that's what they are or not.  Does anyone know?


Thanks!
Christian

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



Re: tomcat and websphere compatibility

2006-03-06 Thread Long
Hi Boris,

I agree the answer is very application specific. In my situation I
plan to support a struts-based Websphere application with data store
using an Oracle database.

Ideally the development environment should be as close to production
as possible, but this may not be possible.

My dev. env. might consist of struts, Tomcat 5.5 and MySql 4.x.

An immediate issue might be data type mismatch between the databases.
I am trying to assess the amount of work involved and see if it is worth
the effort.

Regards,

Long

 Hello,
 
 Long wrote:
  Has anyone develop in Tomcat and deploy to Websphere?

 No, but similar, we are developing in WSAD and have our production 
 environment in
 a) Apache http - Tomcat - WebSphere z/OS
 b) Apache http - Tomcat - WebSphere AIX
 c) Apache http - WebSphere Solaris
 It depends on the specific business application but everything depends 
 on the same framework.
  It should be possible but how practical is it?
 

 If you do not have an WSAD license, it does make sense because of many 
 free good tools.
  Are there any available resources I can use as a reference?

 Hm, eclipse webtools project.
 
 Regards
 Boris
 
 
 -
 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 can I set tomcat NOT Case Sensitive

2006-03-06 Thread Buddy wu
 I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
 I mean: when I write in browser's 'http://localhost/test.html'
equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
WINDOWS can but Linux/unix can't?
 thanks

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



Re: tomcat and websphere compatibility

2006-03-06 Thread amit srivastava
can any tell me the easy way to deploy an enterprise application written in
j2ee technology on tomcat sever.



On 3/7/06, Long [EMAIL PROTECTED] wrote:

 Hi Boris,

 I agree the answer is very application specific. In my situation I
 plan to support a struts-based Websphere application with data store
 using an Oracle database.

 Ideally the development environment should be as close to production
 as possible, but this may not be possible.

 My dev. env. might consist of struts, Tomcat 5.5 and MySql 4.x.

 An immediate issue might be data type mismatch between the databases.
 I am trying to assess the amount of work involved and see if it is worth
 the effort.

 Regards,

 Long

  Hello,
 
  Long wrote:
   Has anyone develop in Tomcat and deploy to Websphere?
  
  No, but similar, we are developing in WSAD and have our production
  environment in
  a) Apache http - Tomcat - WebSphere z/OS
  b) Apache http - Tomcat - WebSphere AIX
  c) Apache http - WebSphere Solaris
  It depends on the specific business application but everything depends
  on the same framework.
   It should be possible but how practical is it?
  
  
  If you do not have an WSAD license, it does make sense because of many
  free good tools.
   Are there any available resources I can use as a reference?
  
  Hm, eclipse webtools project.
 
  Regards
  Boris
 
 
  -
  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: How can I set tomcat NOT Case Sensitive

2006-03-06 Thread Long
Buddy wu wrote:
 I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
 I mean: when I write in browser's 'http://localhost/test.html'
equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
WINDOWS can but Linux/unix can't?

Right, url is case-insensitive under Windows because the file system
can't tell a difference between test.html and TEST.html. The difference
is there under Linux/UNIX.

Long


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



Re: tomcat and websphere compatibility

2006-03-06 Thread Long
amit srivastava wrote:
 can any tell me the easy way to deploy an enterprise application written in
 j2ee technology on tomcat sever.

Ant build can create a .war file (see ant dist) then all you have
to do is drop the war file in the webapps directory and your
app is deployed.

In my case, I wonder if war file can be deployed the same way
in Websphere...

Long


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



Re: How can I set tomcat NOT Case Sensitive

2006-03-06 Thread Buddy wu
2006/3/7, Long [EMAIL PROTECTED]:
 Buddy wu wrote:
  I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
  I mean: when I write in browser's 'http://localhost/test.html'
 equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
 WINDOWS can but Linux/unix can't?

 Right, url is case-insensitive under Windows because the file system
But, the FACT is that under Windows the URL is CASW-SENSITIVE, not
case-insecsitive , why?

I've tried, under Windows, test.html and TEST.html is diffrent in
tomcat server. Is there a parameter to set??

 can't tell a difference between test.html and TEST.html. The difference
 is there under Linux/UNIX.

 Long


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



out.flush() not working with mod_jk

2006-03-06 Thread Sven Köhler
Hi,

take a look at the following JSP-page:

[EMAIL PROTECTED] contentType=text/plain%
%
out.println(this should appear immediatly);
out.flush();

Thread.sleep(3000);

out.println(this should appear after 3 seconds);
%

If i load the page with FireFox directly by connecting to my Tomcat on
port 8080, it works fine. But if i load the page via apache/mod_jk on
port 80 it doesn't work.

mod_jk connects to the tomcat that also listenes on port 8080.


So something's pretty wrong here, don't you think?
Is it a bug? Or a configuration issue?


Greetings
  Sven


P.S.: Tomcat 5.5.15, Apache 2.0.55, mod_jk 1.2.15


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