HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Hi,
 I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:

 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
 userTable=users userNameCol=user_name userCredCol=user_pass
  userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K

But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
 Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
   ...

So, it seem Parser regard user as leeson;password, not leeson. But if I grant 
leeson all privileges but without password, the tomcat could work.

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 
tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 
that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 
to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior to the crash, available memory 
will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am 
assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about 
with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes 
every
10 minutes.  Any help or suggestions would be appreciated. RP2C Inc
http://www.rp2c.com [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: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Thanks very much!
Y, I have tried. But always throw org.xml.sax.SAXParseException said a ;
is needed to end the quote of  password.
Any advice?


- Original Message - 
From: Emmanuel G. Dialynas [EMAIL PROTECTED]
To: engp0510 [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 6:07 PM
Subject: Re: HELP!! TOMCAT and MYSQL


Try:


connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword=



At 04:32 ìì 03/08/03 +0800, engp0510 wrote:
Hi,
  I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
  userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K

But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
  Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
...

So, it seem Parser regard user as leeson;password, not leeson. But if
I grant leeson all privileges but without password, the tomcat could work.


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



RE: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Stuart MacPherson
Split the user and pass off of the URL, and into separate properties...
stu


-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED] 
Sent: 03 August 2003 11:40
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Emmanuel G.
Dialynas
Subject: Re: HELP!! TOMCAT and MYSQL

Thanks very much!
Y, I have tried. But always throw org.xml.sax.SAXParseException said a ;
is needed to end the quote of  password.
Any advice?


- Original Message - 
From: Emmanuel G. Dialynas [EMAIL PROTECTED]
To: engp0510 [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 6:07 PM
Subject: Re: HELP!! TOMCAT and MYSQL


Try:


connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword=



At 04:32 ìì 03/08/03 +0800, engp0510 wrote:
Hi,
  I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
  userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K

But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
  Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
...

So, it seem Parser regard user as leeson;password, not leeson. But if
I grant leeson all privileges but without password, the tomcat could work.


-
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: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Thanks Stuart.
I always do this when I use JDBC in normal application.
But during configing the Tomcat Server.XML, there is no instruction about
separated properties for this REALM.

Regards

- Original Message - 
From: Stuart MacPherson [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED];
[EMAIL PROTECTED]; 'Emmanuel G. Dialynas' [EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 7:12 PM
Subject: RE: HELP!! TOMCAT and MYSQL


Split the user and pass off of the URL, and into separate properties...
stu


-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED]
Sent: 03 August 2003 11:40
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Emmanuel G.
Dialynas
Subject: Re: HELP!! TOMCAT and MYSQL

Thanks very much!
Y, I have tried. But always throw org.xml.sax.SAXParseException said a ;
is needed to end the quote of  password.
Any advice?


- Original Message - 
From: Emmanuel G. Dialynas [EMAIL PROTECTED]
To: engp0510 [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 6:07 PM
Subject: Re: HELP!! TOMCAT and MYSQL


Try:


connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword=



At 04:32 ìì 03/08/03 +0800, engp0510 wrote:
Hi,
  I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
  userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K

But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
  Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
...

So, it seem Parser regard user as leeson;password, not leeson. But if
I grant leeson all privileges but without password, the tomcat could work.


-
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: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Zille Hassan
I have got the binaries for linux, does anyone know how do I install those binaries on 
linux workstation. I don't know much about linux and I need to know what the commands 
are and how to do it. 
There is nothing in the Readme File that lets me know how to install the Binaries on 
linux machines


Zill-e-Hassan
UMG-IT
Tel: +966 2 6512111
Ext: 1219
Fax: + 966 2 6571171
United Matbouli Group-Matbouli Plaza-1st Floor-PO Box556 Jeddah 21421


-Original Message-
From: Stuart MacPherson [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 2:13 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]; 'Emmanuel G. Dialynas'
Subject: RE: HELP!! TOMCAT and MYSQL

Split the user and pass off of the URL, and into separate properties...
stu


-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED] 
Sent: 03 August 2003 11:40
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Emmanuel G.
Dialynas
Subject: Re: HELP!! TOMCAT and MYSQL

Thanks very much!
Y, I have tried. But always throw org.xml.sax.SAXParseException said a ;
is needed to end the quote of  password.
Any advice?


- Original Message - 
From: Emmanuel G. Dialynas [EMAIL PROTECTED]
To: engp0510 [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 6:07 PM
Subject: Re: HELP!! TOMCAT and MYSQL


Try:


connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword=



At 04:32 ìì 03/08/03 +0800, engp0510 wrote:
Hi,
  I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
  userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K

But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
  Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
...

So, it seem Parser regard user as leeson;password, not leeson. But if
I grant leeson all privileges but without password, the tomcat could work.


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



UTF-8 problems

2003-08-03 Thread Nathan Coast
Hi,

I have an text fields in a form that will contain UTF-8 characters e.g. 
''.  I can retrieve utf-8 chars from the db and display them correctly 
in jsps via tomcat.  The only problem comes with submiting forms to 
tomcat.  request.getParameter() returns the incorrect value for the char 
e.g. '' instead of ''.

AFAIK the default encoding of java is UTF-8 so I'm not to sure where to 
look. Anyone have any suggestions as to what I have to do?

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


RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I agree with your view on memory usage on a client, but what I am not clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if so,
what happens when the limit is exceeded, or it attempts to. What we see now
is a gradual increase in memory usage over a 10 - 15 minute period, followed
by an abend of the Tomcat service. If we run the Tomcat session in a window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:26 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 
tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 
that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 
to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior to the crash, available memory 
will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am 
assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about 
with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app 

Mapping environment-etries to database-table?

2003-08-03 Thread Philipp Leusmann
Hello,

In my Application I do some configuration via environment-entries in the
server.xml.
Is there any standard way to map this env-table to a database-table? This
would be quite comfortable for my customer to edit the preferences via a
database-connected servlet instead of editing the server.xml.

Thanks,
 Philipp



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



RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
The settings are not controlled in the startup.bat - if you want to 
control them from the command line, you set the environment variable 
JAVA_OPTS with them.  The default settings for a Sun JVM is to allow a 
max heap of 64m - if you try to exceed this, 
java.lang.OutOfMemoryException s will be thrown and by and large the whole 
thing will fall over.  You can probably see these in the log file if you 
look.  Again if you havent specified anything in the service setup, it 
will probably run with 64m of memory as well.

Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 14:27
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I agree with your view on memory usage on a client, but what I am not 
clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if 
so,
what happens when the limit is exceeded, or it attempts to. What we see 
now
is a gradual increase in memory usage over a 10 - 15 minute period, 
followed
by an abend of the Tomcat service. If we run the Tomcat session in a 
window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:26 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 

tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 

that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 

to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior to the 

Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Tim Funk
If you need to run NT as a service, use this tool to set it up. It makes life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/

-Tim
http://jakarta.apache.org/tomcat/faq/windows.html
Robert Porter wrote:
I agree with your view on memory usage on a client, but what I am not clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if so,
what happens when the limit is exceeded, or it attempts to. What we see now
is a gradual increase in memory usage over a 10 - 15 minute period, followed
by an abend of the Tomcat service. If we run the Tomcat session in a window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!
Cheers,

Bob Porter


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


Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
thanks been looking for something like that for ages!





Tim Funk [EMAIL PROTECTED]
03/08/2003 16:52
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes 
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
clear
 on is do those settings constitute a hard limit for Tomcat/JVM? And if 
so,
 what happens when the limit is exceeded, or it attempts to. What we see 
now
 is a gradual increase in memory usage over a 10 - 15 minute period, 
followed
 by an abend of the Tomcat service. If we run the Tomcat session in a 
window,
 using the stock Startup.bat file included with the binary distribution
 memory usage stays flat. This is what led me to wonder if some of these
 memory parameters to the JVM (during the install of the service) might 
be
 required. I am guessing that the stock install of the service does not 
set
 any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


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




RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
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 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


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




Programmatic authentication into the Servlet Container

2003-08-03 Thread kapil khanna
How do i programmatically authenticate to the servlet container usin Tomcat?
I was unable to find the appropriate API call to do so.
The reason i need this is because the web app that i have has a self
registration feature (like most other web apps). Currently without making
the API call, i first take the username/password from the user. Then i make
the appropriate entries to the user  user role table (Am using JDBCRealm),
After which a client side redirect is sent to access a protected page. The
container, intercepts the request and forwards to the login screen (am using
form based authentication). The user enters their credentials and gets
logged into the app.
As you can see that during registration the user needs to first register,
and then login.  This is big inconvenience and a usability issue. To avoid
this i would like the user to register after which i want to
programmatically log the user to the servlet container, thus avoiding the
user to enter redundant info twice.






RE: Tomcat IBM SSL Provider

2003-08-03 Thread McClure, Timothy J(IndSys, GE Interlogix)
I am still having trouble trying to use Tomcat with the IBM JVM 1.4 on AIX.  I took 
the 4.1.26 jsse package and replaced to tomcat-util 4.1.24 jsse package files.  I was 
running everything with 4.1.24 except for the 4.1.26 jsse package.  When I brought 
Tomcat up I received some reflection error.  I then just decide to use the 
tomcat-util.jar 4.1.26 with Tomcat 4.1.24.  This seems to work better however I 
receive a SunX509 algorithm not found IO error.  I have the Sun JSSE jars in my Tomcat 
Server lib and I entered them into the java.security file.  I also had 
algorithm=IbmX509 set in the right place in my server.xml file.  Tomcat seems to 
want to use SunX509 no matter what.  I would greatly appreciate any help someone could 
give regarding this issue.

Tim

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 11:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat IBM SSL Provider


4.1.26 is currently in it's evaluation period to determine what it's
stability rating will be.  The official release is likely to be the end of
the week, or early next week.  In the mean time, it is currently living at
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.26-alpha/,
for anyone that wants to help out in the evaluation.  Don't be scared off by
the alpha label:  That's just what it gets called until the evaluation
period is over.

McClure, Timothy J(IndSys, GE Interlogix) [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
We are using what I thought was the lastest 4.1.24.  I did not see an option
for download 4.1.26 on the jakarta web page.

Tim

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 11:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat IBM SSL Provider


It mostly works in 4.1.26 (you still need the JSSE jar, but Tomcat won't use
it).  It should work completely in 4.1.27.  If you are impatient, you can
always grap the CVS code from
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse and
compile it.

To work with the IBM JVM, you also need to remember to set
'alogrithm=IbmX509' in the SocketFactory element in server.xml.

McClure, Timothy J(IndSys, GE Interlogix) [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
I am running Tomcat on AIX using JVM 1.4.  When Tomcat comes up with SSL
enabled it is looking for the Sun provider.  I copied the Sun JSSE 1.3 jar
into the Tomcat lib and this error went away.  However I am having problems
because I generated the certificate using the AIX keytool which used the IBM
provider.  This causes and IO Exception because the Sun provider is trying
to use the certificate created by the IBM provider.  The bottom line is how
do I get Tomcat to use IBM as it's SSL provider

Tim McClure
[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]



Tomcat 4.1.18 JSP reload issue

2003-08-03 Thread Greg H
We are running Tomcat 4.1.18 on Solaris 8 and have
been having issues with JSP reloading. We have 4
instances of Tomcat running on two boxes. There are
two instances on each box that are load balanced
through mod_jk. Because we are a content based site,
and most of our content is not database driven, we
deploy new JSP files at various intervals throughout
the day. At first we left the instances in development
mode which forced the JSP files to reload, but also
caused the Tomcat instances to fail under load. When
we turned the development settings to false and then
enabled reloading with checkInterval of 60 seconds we
had serious issues with JSP reloading. Sometimes the
instances would pick up the changes and then at others
none of the servers would pick up changes to the JSP
files. At first we thought it may be a timestamp
issue, but we were wrong as file edits on the machines
will still not force tomcat to reload the JSP. The
only way we can guarantee that all of the servers are
showing the proper content is to restart the
instances. At the current time we schedule restarts at
various intervals during the day but we need to fix
the problem. Has anyone had a similiar problem? 

At this point we are willing to try anything. I
appreciate any and all suggestions.

TIA,
Greg

 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



error-page directive has no effect

2003-08-03 Thread pete . storey
Hi,
ive got a problem currently with the error-page directive doing nothing 
when I use it in an app (on either tomcat 4.1.18 or .27).  At the bottom 
of my app's web.xml, I have the following tag:


  error-page
error-code500/error-code
location/errorPages/500x.jsp/location
  /error-page

This corresponds to a working page, however this tag is completely 
ignored.  As a result, in order to get any 500 errors to be handled 
properly, I have to put an @page errorPage directive in the top of every 
JSP - this doesnt of course work for servlets, so presents a problem then.

Has anyone any idea why it wouldnt work?  I have had this problem thinking 
about it before which meant that any Struts actions would not get handled 
by the error handler.  I ended up having to write a filter which caught 
them for me and forwarded the request to the error page with the exception 
held as a request attribute - this is obviously far from ideal!!

thanks
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923

Problem with allowLinking=true

2003-08-03 Thread Bongrip
I have the following symbolic link under webapps/ROOT

lrwxrwxrwx1 root root  9 Aug  2 10:08 orca - /mnt/orca

/mnt/orca is an NFS mounted filesytems containing some web content.

I added allowLinking=true to the ROOT context in conf/server.xml 
!-- Tomcat Root Context --
Context path= docBase=ROOT debug=0 reloadable=true 
allowLinking=true /

I then restarted the tomcat server and tried to access 
http://localhost/orca/ and I get error 404. I am running the HTTP 
connector on port 80. Nothing else seems to be logged anywhere.

10.250.200.68 - - [03/Aug/2003:11:28:58 -0800] GET /orca/ HTTP/1.1 404 683

What am I doing wrong? I am running jakarta-tomcat-4.1.18 and using 
j2sdk1.4.0_02. The OS is Red Hat 8.0.

Thanks for any help,
CC
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Running external C routine from a servlet ? The solution...

2003-08-03 Thread Michel Jubault
Hi Rick !

I've found a better way to precise the default directory for a particular
subprocess :
rather than using : exec(String command) to launch your process,
use : exec (String command, null, File directory) where directory is the
default dir for your external routine !!
It's working well for me !!

For building a near relative path to save files, I'v found :
String external_dir_path = System.getProperty(catalina.home) +
 System.getProperty(file.separator) + webapps +
 System.getProperty(file.separator) + myapp +
 System.getProperty(file.separator) + WEB-INF +
 System.getProperty(file.separator) + classes +
 System.getProperty(file.separator) + external +   --- or whatever
you want !!
 System.getProperty(file.separator);
Yes, it's relative to tomcat home, but it's better than absolute path 
It makes your webapp easier to adapt to another system (other server, linux,
windows,...).

Thanks again for your help !
Regards
Michel


- Original Message -
From: Bradberry, Rick [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 4:23 PM
Subject: RE: Running external C routine from a servlet ? Please help me 


 Michel,

 I had a similar problem creating files in a servlet. I found that in my
 case, the relative
 path start in the directory where tomcat is started. I changed the startup
 script to do a
 cd to $tomcat_home then called bin/startup.sh.

 Hope this helps

 Rick Bradberry
 NCR WCS Managed Services
 Telephone: 937-848-2203
 Cell Phone: 937-367-1879
 efax: 413-674-7094


 -Original Message-
 From: Michel Jubault [mailto:[EMAIL PROTECTED]
 Sent: Saturday, August 02, 2003 9:45 AM
 To: [EMAIL PROTECTED]
 Subject: Running external C routine from a servlet ? Please help me 


 Hi there !

 I'm running a little C program from a servlet. I'm using runtime, process
 and exec to do this. I gather the result in an inputstream. In fact
there's
 no pb on that.
 The problem is rather a path problem. All servlets in my app are using
 relative path to found the others and properties file ie the working
 directory is myapp/WEB-INF/classes. But for C program the default path is
 always the home path ie /root or /home/user.
 I must build the complete absolute path to launch my C routine. I don't
 understand why the default path isn't the classes path as for servlet.
 I'm running under linux Red HAT 7.3, java 1.4.1_02, Tomcat 4.1.24.

 Is there any config  file to modify in tomcat, linux or java?

 Please help !

 Many thanks in advance !

 Michel



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



Configuration of Customer Resource Factory in JNDI

2003-08-03 Thread Paul Worrall
I am using Tomcat 4.1.12-LE-jdk14 and am trying to create a resource to
return an org.apache.ojb.broker.PersistenceBroker object from the Apache
OJB 1.0.rc3 distribution using my own implementation of the
javax.naming.spi.ObjectFactory class called FLGPersistentBrokerFactory.
Although Tomcat starts OK and appears to register my factory class when
I come to use it in the web app I get:-
 
JNDI lookup failed : javax.naming.NamingException: Cannot create
resource instance
 

All the details are presented below.  If anyone can help it would be
much appreciated.  I have looked long and hard at all the lists and
documentation and can't resolve the problem.
 
TIA
 
Paul W.
 

My factory class is defined in server.xml as such...
 
  !-- Global JNDI resources --
  GlobalNamingResources
Resource name=bean/FLGPersistenceBrokerFactory
 auth=Container
 type=org.apache.ojb.broker.PersistenceBroker
 description=Global provider of Apache OJB PersistentBroker Objects
/Resource
ResourceParams name=bean/FLGPersistenceBrokerFactory
parameter
 namefactory/name
 valuecom.flg.smsport.m.FLGPersistenceBrokerFactory/value
/parameter
/ResourceParams
 
  /GlobalNamingResources
 

My web.xml resources in my web app are defined as so
 
  resource-ref
descriptionObject factory for Apache OJB
PersistenceBroker's/description
res-ref-namebean/FLGPersistenceBrokerFactory/res-ref-name
   res-typeorg.apache.ojb.broker.PersistenceBroker/res-type
res-authCONTAINER/res-auth
  /resource-ref
 

My factory class code is...
 

import java.util.*;
import javax.naming.Context;
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.RefAddr;
import javax.naming.Reference;
import javax.naming.spi.ObjectFactory;
 
import org.apache.ojb.broker.*;
import org.apache.ojb.broker.query.*;
 

/**
 *
 * @author  worrallp
 */
public class FLGPersistenceBrokerFactory implements
javax.naming.spi.ObjectFactory {

public Object getObjectInstance(Object obj, javax.naming.Name name,
javax.naming.Context context, java.util.Hashtable hashtable)
throws NamingException {

Object broker = null;

try {
System.out.println(Factory object
getObjectInstance method called..);
   broker = (Object)
PersistenceBrokerFactory.defaultPersistenceBroker();
  }
  catch (Throwable t) {
   t.printStackTrace();   
  }

return broker;

}

}
 
  
 
I have some test code to inspect the JNDI tree in a servlet and get an
instance of PersistenceBroker
 

 try {
Context envCtx = (Context) ctx.lookup(java:comp/env);
out.println(listBindings() on bean Context : );
NamingEnumeration enum = envCtx.listBindings(bean);
while (enum.hasMoreElements()) {
out.print(Binding : );
out.println(enum.nextElement().toString());
}

PersistenceBroker broker = (PersistenceBroker)
envCtx.lookup(bean/FLGPersistenceBrokerFactory);
out.print(Broker from FLGPersistenceBrokerFactory:  +
broker);

} catch (NamingException e) {
out.println(JNDI lookup failed :  + e);
} catch( Throwable e) {
out.print(Something failed. + e);
}
 

Produces.
 
listBindings() on bean Context : 
Binding : FLGPersistenceBrokerFactory:
org.apache.naming.ResourceRef:ResourceRef[className=org.apache.ojb.broke
r.PersistenceBroker,factoryClassLocation=null,factoryClassName=org.apach
e.naming.factory.ResourceFactory,{type=description,content=Object
factory for Apache OJB
PersistenceBroker's},{type=scope,content=Shareable},{type=auth,content=C
ONTAINER}]
JNDI lookup failed : javax.naming.NamingException: Cannot create
resource instance
 
 

 


RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I reinstalled Tomcat using the ServiceCfg tool mentioned previously and
badda boom badda bing! No more creeping memory loss, at least not over the
past several hours.  I set some limits on memory usage etc.  Am now trying
to determine what exactly, I have to pass as parameters to the tomcat.exe
service installation tool.  

I feel like I am missing something obvious, when you install the Tomcat
service with the provided tomcat.exe what happens to all the JVM parameters?
Are they set in the registry? Environment, where?

But, I can at last see daylight again!  Thanks to all for your help!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


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



Configuration Error?

2003-08-03 Thread Sekhmet
I am really having a bad time using Apache Tomcat for the first time...
But I won't give up... Just need help...
I have a JSP page that works with a javabean (a simple test page), just
look at the code:
 
%@ page contentType=text/html; charset=iso-8859-1 language=java
import=java.sql.* errorPage= %
html
head
jsp:useBean class=mybeans.lineBean id=bean= scope=page /
 
titleUsing JavaBeans/title
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1
/head
 
body
 
%= bean0.stars(20) %
Welcome to JavaBeans!
%= bean0.doubleLine(30) %
 
/body
/html

When I try this page I get the following error:
 
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unsupported encoding: 

at
org.apache.jasper.compiler.ParserController.getReader(ParserController.j
ava:440)

at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
209)

at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)

at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)

at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spServlet.java:176)

at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:188)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)

at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)

at java.lang.Thread.run(Thread.java:536)



I have this page on Tomcat/ROOT/ directory and the class at
Tomcat/ROOT/WEB-INF/mybeans.

Do I have anything misconfigured? I'm busting my head off since
yesterday over this...

Can anyone help me? Thankx!

 


Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
Hi,

is there a way to set the filename in a servlet when sending a file with
response.setContentType(binary/octet-stream); and sending binary data with
the ServletoutputStream?

Thanks,
 Philipp



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



Re: Setting filename when sending binary/octet-stream

2003-08-03 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#saveas

Be warned that this may not work for all browsers or might not work for 
different versions or patch levels of the same browser.

-Tim

Philipp Leusmann wrote:
Hi,

is there a way to set the filename in a servlet when sending a file with
response.setContentType(binary/octet-stream); and sending binary data with
the ServletoutputStream?
Thanks,
 Philipp
 


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


AW: Setting filename when sending binary/octet-stream

2003-08-03 Thread Philipp Leusmann
Better than nothing.
Thanks

 -Ursprungliche Nachricht-
 Von: Tim Funk [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 4. August 2003 00:33
 An: Tomcat Users List
 Betreff: Re: Setting filename when sending binary/octet-stream


 http://jakarta.apache.org/tomcat/faq/misc.html#saveas

 Be warned that this may not work for all browsers or might not work for
 different versions or patch levels of the same browser.

 -Tim

 Philipp Leusmann wrote:
  Hi,
 
  is there a way to set the filename in a servlet when sending a file with
  response.setContentType(binary/octet-stream); and sending
 binary data with
  the ServletoutputStream?
 
  Thanks,
   Philipp
 
 


 -
 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 4.1.18 JSP reload issue

2003-08-03 Thread Tim Funk
Sorry if this sounds stupid but, can you reproduce with 4.1.27? (Maybe by 
luck this issue is already fixed before more probing questions)

-Tim

Greg H wrote:
We are running Tomcat 4.1.18 on Solaris 8 and have
been having issues with JSP reloading. We have 4
instances of Tomcat running on two boxes. There are
two instances on each box that are load balanced
through mod_jk. Because we are a content based site,
and most of our content is not database driven, we
deploy new JSP files at various intervals throughout
the day. At first we left the instances in development
mode which forced the JSP files to reload, but also
caused the Tomcat instances to fail under load. When
we turned the development settings to false and then
enabled reloading with checkInterval of 60 seconds we
had serious issues with JSP reloading. Sometimes the
instances would pick up the changes and then at others
none of the servers would pick up changes to the JSP
files. At first we thought it may be a timestamp
issue, but we were wrong as file edits on the machines
will still not force tomcat to reload the JSP. The
only way we can guarantee that all of the servers are
showing the proper content is to restart the
instances. At the current time we schedule restarts at
various intervals during the day but we need to fix
the problem. Has anyone had a similiar problem? 

At this point we are willing to try anything. I
appreciate any and all suggestions.
TIA,
Greg
 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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: Programmatic authentication into the Servlet Container

2003-08-03 Thread Tim Funk
There is no API available to webapps for this functionality.

To get around this gap, you'll probably need to look at writing your own 
Valve. What and how - I am am unsure based on the description below.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.html
-Tim

kapil khanna wrote:
How do i programmatically authenticate to the servlet container usin Tomcat?
I was unable to find the appropriate API call to do so.
The reason i need this is because the web app that i have has a self
registration feature (like most other web apps). Currently without making
the API call, i first take the username/password from the user. Then i make
the appropriate entries to the user  user role table (Am using JDBCRealm),
After which a client side redirect is sent to access a protected page. The
container, intercepts the request and forwards to the login screen (am using
form based authentication). The user enters their credentials and gets
logged into the app.
As you can see that during registration the user needs to first register,
and then login.  This is big inconvenience and a usability issue. To avoid
this i would like the user to register after which i want to
programmatically log the user to the servlet container, thus avoiding the
user to enter redundant info twice.
 


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


RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Appears I spoke to soon.  While memory usage is much better during the
application execution, it still eventually begins a steep climb in terms of
memory consumption, even with setting the various memory parameters on the
JVM.  What is most baffling to me is that this behavior does not occur when
Tomcat is not running as a service.  Anyone have any clues??

Bob Porter

-Original Message-
From: Robert Porter [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:39 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1x running as NT Service Issue


I reinstalled Tomcat using the ServiceCfg tool mentioned previously and
badda boom badda bing! No more creeping memory loss, at least not over the
past several hours.  I set some limits on memory usage etc.  Am now trying
to determine what exactly, I have to pass as parameters to the tomcat.exe
service installation tool.  

I feel like I am missing something obvious, when you install the Tomcat
service with the provided tomcat.exe what happens to all the JVM parameters?
Are they set in the registry? Environment, where?

But, I can at last see daylight again!  Thanks to all for your help!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


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



JVM tuning

2003-08-03 Thread pete . storey
Has anyone got any clues on JVM tuning for Tomcat on Windows 2000, Sun 141 
or 142?  Im playing with some of the young/old generation and GC settings 
but am having trouble deciding what is best.  I think that I should 
probably push out the young generation to be a larger than normal amount 
as many of the objects created are very transitory, and I have seen lots 
of GC activity going on there.

On that note, has anyone tried the Sun GC portal?  Im a bit baffled as to 
how to create a log file for it - turning on the switches is all very well 
and prints to the screen OK but it doesnt seem to log to the .out files?

cheers
Pete

[ERR] Re: Post-authentication tasks

2003-08-03 Thread postmaster
Transmit Report:

 To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
---BeginMessage---
If this is not an appropriate list to ask design questions, could someone
point me to a more suitable resource?  Perhaps the tomcat-dev list?

Thank you,

-Sasha Borodin

On 7/28/03 11:35, Sasha Borodin [EMAIL PROTECTED] wrote:

 I'd like to get some suggestions for performing post-authentication tasks
 while using Container Managed Authentication.
 
 Craig Berry suggested a filter that checks the session for necessary
 attributes, and creates them if they're missing.  This check would be
 performed on every request however.
 
 Has anyone implemented a different approach to this problem?  I'd like to
 find a solution in which the extra tasks are performed just ONCE, somehow
 triggered by the container authentication.  Please reference my previous
 post on a filter vs. session attribute listener approach.
 
 Thanks for any suggestions.
 
 -Sasha Borodin
 
 
 -
 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]

---End Message---


Re: UTF-8 problems

2003-08-03 Thread Tang Guangyu
This problem was caused by your browser. The browser will use its own
encoding to encode form values post back. You need set proper encoding to
request - request.setEncoding(BROWSER_ENCODING). Or you can write a filter
to simplify your work.

- Original Message -
From: Nathan Coast [EMAIL PROTECTED]
To: tomcat user [EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 9:11 PM
Subject: UTF-8 problems


 Hi,

 I have an text fields in a form that will contain UTF-8 characters e.g.
 ''.  I can retrieve utf-8 chars from the db and display them correctly
 in jsps via tomcat.  The only problem comes with submiting forms to
 tomcat.  request.getParameter() returns the incorrect value for the char
 e.g. '' instead of ''.

 AFAIK the default encoding of java is UTF-8 so I'm not to sure where to
 look. Anyone have any suggestions as to what I have to do?

 thanks
 Nathan


 -
 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 startup problems

2003-08-03 Thread Tang Guangyu
It seems caused by a wrong user realm configuration. Check server.xml under
%TOMCAT_HOME%/conf, remove or correct user realm part.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 8:26 AM
Subject: Tomcat startup problems


 Hello,
 I am running WIN98 trying to get Tomcat to run.  It installs with no
problems, but then when I proceed to execute the startup batch file I get a
bunch of JAVA errors, Following is the contents of my catalina_log files.
Any help would be greatly appreciated.
 -Brad

 --LOG FILE---
 2003-08-02 15:51:43 UserDatabaseRealm[Standalone]: Exception looking up
UserDatabase under key UserDatabase
 javax.naming.NamingException: The reference to entity worD must end with
the ';' delimiter.
 at org.apache.naming.NamingContext.lookup(NamingContext.java:844)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302
)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)





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



OFF-TOPIC: using .htpasswd and OpenSSL

2003-08-03 Thread achana
Hi All.
I use .htpasswd to protect some directories/vhosts which are
OpenSSL-enabled.
Ideally I would like to use MD5 rather than Basic for logging on.
How does this work togethr with the OpenSSL encryption ? 
This odd idea lingers in the back of my mind that OpenSSL might encrypt
the encrypted password again, which is silly.
TIA :-)

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



Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Emmanuel G. Dialynas
Try:

connectionURL=jdbc:mysql://localhost/authority?user=leesonpassword=



At 04:32 ìì 03/08/03 +0800, engp0510 wrote:
Hi,
 I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional.
In Server.XML of Tomcat, I use:
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/authority?user=leeson;password=
 userTable=users userNameCol=user_name 
userCredCol=user_pass
  userRoleTable=user_roles roleNameCol=role_name /

In MySQL, I set all user must access database with password and grant user
'leeson' with all privileges @ localhost. I can use leeson and password to
log into
MySQL. All setting of MySQL will work well when I login MySQL using CMD on
Win2K
But when I start tomcat-standalone, there is always  :

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorizatio
n specification: Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using
password: NO)
LifecycleException:  Exception opening database connection:
java.sql.SQLException: Invalid authorization specification:
 Access denied for user: 'leeson;[EMAIL PROTECTED]' (Using password: NO)
   ...
So, it seem Parser regard user as leeson;password, not leeson. But if 
I grant leeson all privileges but without password, the tomcat could work.


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


[ERR] Re: rename workers2.properties file?

2003-08-03 Thread postmaster
Transmit Report:

 To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
---BeginMessage---
Hi,

Although I haven't heard of anyone doing this you could add in your
httpd.conf:

JkSet config.file /full/system/path/to/workers2.properties

I don't see why you couldn't change that to anything you want.

-e

On Mon, 28 Jul 2003, Sullivan, Patrick wrote:

 With mod_jk it was easy to have a unique file name but with mod_jk2 I do not see a 
 directive to change the file name from workers2.properties, can it be done?


 Thank you,

 Patrick Sullivan
 Centura Health




 This communication is for the use of the intended recipient only.  It may contain 
 information that is privileged and confidential.  If you are not the intended 
 recipient of this communication, any disclosure, copying, further distribution or 
 use thereof is prohibited.  If you have received this communication in error, please 
 advise me by return e-mail or by telephone and delete/destroy it.


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

---End Message---


Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

engp0510 wrote:

 Thanks very much!
 Y, I have tried. But always throw org.xml.sax.SAXParseException said a ;
 is needed to end the quote of  password.
 Any advice?
Tomcat's config file is in XML. The 'XML way' to produce an ampersand
() is to use the entity amp;

So...Your connection URL would look like:

 connectionURL=jdbc:mysql://localhost/authority?user=leesonamp;password=

Regards,

-Mark
- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 557 2388
www.mysql.com

Are you MySQL Certified?
http://www.mysql.com/certification/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/LSbhtvXNTca6JD8RAkYKAJ94rLovzLHUodq+n6vYwFBplig+GwCffI+h
ESAxHAD4u1/gYfi5MTWvg58=
=pqqc
-END PGP SIGNATURE-


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



RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much the
same configuration from what you describe but with drastically different
results.  

I am checking on JVM settings, and I will try what you suggest.  The laptops
are Dell and IBM late models with 256 MB of memory and large fast drives so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?

-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes every
10 minutes.  Any help or suggestions would be appreciated. RP2C Inc
http://www.rp2c.com [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]