RE: voting for 5.0.29?

2004-10-27 Thread Allistair Crossley
from the website ...

06 October 2004 - Tomcat 5.5.3-alpha Released 
06 October 2004 - Tomcat 5.0.29-beta Released 

nothing since these dates.

Allistair 

 -Original Message-
 From: Ronald Klop [mailto:[EMAIL PROTECTED]
 Sent: 27 October 2004 09:28
 To: [EMAIL PROTECTED]
 Subject: voting for 5.0.29?
 
 
 Sorry if I missed something, but what was the result of the 
 vote if 5.0.29 is stable or beta?
 Does somebody has a link to the mail thread?
 
 Ronald.
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Database connection pooling

2004-10-27 Thread Allistair Crossley
looks like you are using the 5.0 docs rather than 5.5 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html

   
 Context ...
  ...
  Resource name=jdbc/EmployeeDB auth=Container
type=javax.sql.DataSource username=dbusername password=dbpassword
driverClassName=org.hsql.jdbcDriver url=jdbc:HypersonicSQL:database
maxActive=8 maxIdle=4/
  ...
/Context

 

Allistair

 -Original Message-
 From: Nat Titman [mailto:[EMAIL PROTECTED]
 Sent: 27 October 2004 12:22
 To: [EMAIL PROTECTED]
 Subject: Database connection pooling
 
 
 Hi,
 
 I'm attempting to integrate database connection pooling into an 
 exisiting JSP-based web application.
 
 I'm running Tomcat 5.5.2 Server, with J2SE 1.5.0 and a MySQL database 
 (version 11.18) accessed through the com.mysql.jdbc package.
 
 I've followed MySQL instructions from this page:
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasourc
 e-examples-howto.html
 
 I made the changes to server.xml and the web app's web.xml, changing 
 variables to match the database name, user name and password of the 
 correct database. I ensured the MySQL package was in common/lib/.
 
 My DAO objects now have constructors of the following form, which was 
 adapted from code found online ('broadband' is the database name):
 
private Connection myConn;
private DataSource dataSource;
 
/**
 *  Constructs the data accessor using the connection pool
 *
 *  @exception SQLException thrown for SQL errors
 */
public SearchDAO() throws SQLException {
 
  try {
 
// retrieve datasource
Context init = new InitialContext();
Context ctx = (Context) init.lookup(java:comp/env);
dataSource = (DataSource) ctx.lookup(jdbc/broadband);
 
// get connection
synchronized (dataSource) {
 
myConn = dataSource.getConnection();
 
}
 
  } catch (NamingException ex) {
 
System.err.println(
  new SearchDAO: Cannot retrieve 
 java:comp/env/jdbc/broadband: 
  + ex);
 
  } catch (SQLException excep) {
 
System.err.println(
  new SearchDAO: Could not get connection:  + excep);
 
  } catch (Exception e) {
 
System.err.println(new SearchDAO:  + e);
 
// System.out.println (In the catch block : );
//e.printStackTrace();
 
  }
 
}
 
 The constructor throws the following exception:
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
 driver of class '' for connect URL 'null'
 
 The connect URL is present in server.xml and is correct for 
 the database.
 
 My only guess at this point is that the howto document above asks for 
 the Context tag to be added to server.xml between the example close 
 Context and the first open Host tag, however there wasn't an example 
 Context tag in server.xml and there appears to be a 
 context.xml file in 
 the same directory. I'm wondering if Contexts have moved to a 
 different 
 file in a recent version of Tomcat? It's just a wild guess 
 (and I've no 
 idea how to add the Context to context.xml as there's already 
 a Context 
 tag in there and no higher level tag around it).
 
 Any help would be greatly appreciated. Sorry if I'm wasting your time 
 with an obvious or frequently asked question, I've googled and read 
 quite a few documents, but I think I'm just at the 'stabbing in the 
 dark' point and could do with guru guidance.
 
 Thanks,
 
 
 Nat.
 
 -- 
 Nat Titman
 Developer
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6462
 www.choosemcs.co.uk
 
 Confidentiality: This e-mail and its attachments are intended
 for the above named only and may be confidential. If they have
 come to you in error you must take no action based on them,
 nor must you copy or show them to anyone; please reply to this
 e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been
 created in the knowledge that Internet e-mail is not a 100%
 secure communications medium. We advise that you understand
 and observe this lack of security when e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this
 e-mail and attachments are free from any virus, we advise that
 in keeping with good computing practice the recipient should
 ensure they are actually virus free.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



RE: ENCTYPE + SetCharacterEncodingFilter = no go joe for Tomcat 5.0.28

2004-10-26 Thread Allistair Crossley
When a form has the ENCTYPE=multipart/form-data specified, the data sent is not 
accessible via the request.getParameter method. You should only really need the 
ENCTYPE when the form is posting files.

This is nothing to do with Tomcat. You need to decode the data using something like 
Commons FileUpload 1.0 or similar. 

Cheers, Allistair.

 When using ENCTYPE=multipart/form-data in a form on a jsp page, text
 sent ignores the SetCharacterEncodingFilter which is calling
 request.setCharacterEncoding(UTF-8);
 
 I thought about getting parameter values by using 
 
 String field = request.getParameter(whatever);
 field=new String(field.getBytes
 (UTF-8));
 
 Does this seem a reasonable approach or is should the
 SetCharacterEncodingFilter *really* be setting the charEncoding?
 
 I don't want to be creating a new string for every parameter unless
 necessary.
 
 When ENCTYPE is not set, all works as expected.
 
 This problem is seen on Tomcat 5.0.28, but not 4.x versions.  I
 understand something changed around 5.0.27 for UTF-8 handeling but am
 not sure if that is realated. 
 
 -- 
 Shawn [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: MySQL upgrade Problem

2004-10-26 Thread Allistair Crossley
i don't know much about this but you mention the things that are different like dollar 
in password .. but have you tried setting the password to how it was when you used to 
use it? and putting appBase back as it was. You say you changed nothing but you've 
changed several things. Did you also upgrade your driver JAR?

Allistair 

 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Sent: 26 October 2004 16:04
 To: Tomcat Users List
 Subject: MySQL upgrade Problem
 
 
 Hi,
 
 I just upgraded from MySql 3.x to 4.0 and now I can't make 
 connections work
 from Tomcat. I have read a bunch of stuff on the Web about 
 this or similar
 problems, but, even though it worked before,  I can't make it 
 work now.
 
 I specify my connection info in server.xml and context.xml 
 just like I used
 to (below). The only difference is (?) the new MySql, and the 
 fact that I am
 trying to use a new, different password (with a dollar sign 
 in it). (Oh,
 and, I set appBase outside the Tomcat home directory.)  On 
 Tomcat startup, I
 get:
 
 JDBCRealm[Catalina]:
 Exception opening database connection
 java.sql.SQLException: Invalid authorization specification: 
 Access denied
 for user: '[EMAIL PROTECTED]' (Using password: YES)
 at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:659)...
 
 I can login manually to MySql using the same user and password.
 I can access the database directly from Java programs which 
 make their own
 connection.
 
 Any ideas what's going wrong?
 
 web.xml:
 -
  Realm className=org.apache.catalina.realm.JDBCRealm
 debug=99
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://127.0.0.1:3306/xxx
 connectionName=yyy
 connectionPassword=$zzz
 userTable=portal_user
  userNameCol=clientName
  userCredCol=clientPassword
 userRoleTable=portal_role
  roleNameCol=clientRole
 digest=md5 /
 
 conext.xml:
 ---
Resource name=jdbc/portal auth=Container
 type=javax.sql.DataSource/
 
 ResourceParams name=jdbc/portal
   parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
 parameter
 nameusername/name
 valueyyy/value
 /parameter
 parameter
 namepassword/name
 value$zzz/value
 /parameter
 parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 
 valuejdbc:mysql://127.0.0.1:3306/xxx?autoReconnect=true/value
 /parameter
 parameter
 namemaxActive/name
 value10/value
 /parameter
 parameter
 namemaxIdle/name
 value5/value
 /parameter
   parameter
namemaxWait/name
value1/value
   /parameter
 /ResourceParams
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



discussion on webapp reload in production environments

2004-10-25 Thread Allistair Crossley
Hi,

Yoav, you suggested we should pick up this thread here in the list rather than the 
bugzilla report at http://issues.apache.org/bugzilla/show_bug.cgi?id=26372

I have copied the last 4 replies for any interested parties to start following this 
thread.

I look forward to hearing the position on webapp reloading in terms of desirable 
behaviour and the specification when you have time to do so.

All the best, Allistair.

YOAV
I'd point out it's only 'dying' when you're trying the 
app reload, nor normal usage.  This feature is not mandated by the Spec so we're not 
obliged to provided it in the first place: it's caused mostly trouble 
and has very limited usage in production environments.  So if you have patches 
for it, that's great, but the common usage scenario for Tomcat doesn't include 
webapp reload, and so doesn't suffer from this issue at all.

ME
I am interested in your comment that reload of webapp is mostly trouble and limited in 
production environments though. My understanding was that if you 
want to make a build to production or a patch of some files, you would use ant 
or similar as we do here to reconstruct the WAR to deploy. Does this not 
require tomcat being able to reload? In fact, we tell the business the intranet 
will be down for 5 minutes and post a message page up for inbound requests. We 
stop tomcat, delete the old war and expanded war files and place the new war 
and startup tomcat again. We constantly get irked by the fact that if a bug is 
on production we have to wait until the evening to patch it whereas our ASP 
coutnerparts can so easily hot-patch. We also use JSP precompilation to improve 
performance so it's not so easy to patch JSPs either.

REMY
I hope hot deployment and redeployment is a reality. However, there are issues
when the webapp tries to interact with some services which reside in the system
classloader (logging here). Packaging webapps a little differently could solve
the problems for now.

YOAV
Allistair, I'll be glad to continue this discussion on the mailing list and try 
and explain why I think reloading an app in-place has only limited usage in production 
environments.  This (Bugzilla) is not the right forum for 
discussions.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: error while starting Tomcat5 service

2004-10-25 Thread Allistair Crossley
I thought you had to have Tomcat 5.5 with JDK 5.0. If you are using Tomcat 5.0 there 
is a compatibility download that should be installed. 

If that is not your problem, try uninstalling the service and use the 
tomcat/bin/service.bat install method.

Allistair.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 25 October 2004 09:45
 To: [EMAIL PROTECTED]
 Subject: RE: error while starting Tomcat5 service
 
 
 Hi,
 I'm still waiting for ur reply.
 Please reply me
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 18, 2004 6:36 PM
 To: Tomcat Users List
 Subject: RE: error while starting Tomcat5 service
 
 
 Hi,
 HTML emails don't work on ASF lists (in general), so we can't see your
 image.  If there's a full error with stack trace in any of 
 your logs, post
 that.
 
 I worked with EMC for a few months about seven years ago.  ;) 
  Though not in
 India, but in their HQ here outside Boston.  Good company, 
 was some wicked
 cool hardware reliability stuff at the time.
 
 Yoav Shapira http://www.yoavshapira.com
  
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 18, 2004 6:44 AM
 To: [EMAIL PROTECTED]
 Subject: error while starting Tomcat5 service
 
 Hi,
 I have installed Tomcat5.0 on Windows XP professional with 
 Sun's JDK 1.5
 I'm getting the following error dialog box while starting the 
 tomcat 5.0
 service.
 tomcat-problem.JPG 
 It says the specified service doesn't exist as an installed 
 service. Unable
 to open Tomcat5
 With best regards:
 Ashutosh Sharma
  
 EMC Data Storage Systems (India) Private Limited 
 No. 12, Subramanya Arcade, Tower B,Bannerghatta Road, 
 Bangalore - 560 076.
 Tel. +91-80-26788930 x 6296
  
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is 
 confidential, proprietary
 and/or privileged.  This e-mail is intended only for the 
 individual(s) to
 whom it is addressed, and may not be saved, copied, printed, 
 disclosed or
 used by anyone else.  If you are not the(an) intended 
 recipient, please
 immediately delete this e-mail from your computer system and 
 notify the
 sender.  Thank you.
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Configuration Management, JSP Recompiles, War Files

2004-10-25 Thread Allistair Crossley
your suggestion is precisely what we do here, but it still leads to 5 minutes downtime 
(web server nice maintenance page, removing old war, unpacking new war takes time). 

do any application servers support hot deploying if that is correct term, i.e user 
requests are served by the older webapp until the new webapp is ready?

 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: 25 October 2004 12:18
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Configuration Management, JSP Recompiles, War Files
 
 
 On Sun, Oct 24, 2004 at 11:00:38PM -0400, Steven J. Owens wrote:
 :  I'm interested in hearing how people are dealing with
 : configuration management issues.
 : 
 :  We've been running into some problems with JSP recompiles,
 : particularly when the changed JSP is an included JSP.
 : [snip]
 
 Simplify your life: rely on formal releases instead of updating
 piecemeal (e.g. tweaking a JSP on a live site).
 
 In theory, you should be able to automate the following:
 1/ pull a release label from source code control
 2/ build the code, package it up into a WAR file (this includes JSP
 precompiles)
 3/ push the new WAR out to your Tomcat server(s)
 4/ stop Tomcat, clear the work dir, restart Tomcat
 
 For rollback purposes, you'll want a step 3.5: stash the original WAR
 file somewhere.
 
 
 :  This reminds me of another question; I'm beginning to wonder if
 : we wouldn't be wiser to use a dozen separate tomcat installations.
 
 I'm all for app separation.  Even if they stay the same/similar for
 their entire lifetime, management of separate apps is easier.  Either
 that, or find some way to deploy a single app but use 
 creative branding
 so each customer gets their own look'n'feel.
 
 
 : I
 : know that in theory using the same tomcat installation for multiple
 : webapps is supposed to be standard,
 
 Says who?
 
 
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: discussion on webapp reload in production environments

2004-10-25 Thread Allistair Crossley
Ok, understood. Thanks for taking the time to explain.

Allistair.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 25 October 2004 14:08
 To: Tomcat Users List
 Subject: RE: discussion on webapp reload in production environments
 
 
 
 Hi,
 Yeah.  Webapp reload is a great thought and sometimes possible to do
 in-place in true-hotswap fashion.  Unfortunately in the real 
 world there
 are several factors which prevent this from really happening.  They
 include:
 
 Libraries that use static resources in such a way they can't be
 reloaded.  Libraries that use System resources (as in System
 classloader) in such a way they can't be reloaded.  Libraries 
 that spawn
 off their own threads and don't manage them properly.  These 
 things can
 be hard to track, and can be in your code, the library code, 
 or the way
 your code uses the library.  This is exemplified in Bugzilla 26372.
 
 Another reason is that real apps frequently do a lot of things on
 startup (and sometimes shutdown).  So the reload even if it worked
 perfectly would take an unacceptable amount of time.  So sites that
 really can't afford downtime don't do in-place reloading.  They have
 either a server cluster where they update server at a time, taking it
 off the cluster for the update instead of doing an in-memory 
 reload, or
 they much with context paths, e.g. /appv1, /appv2, and /app with /app
 being just forwarding filter.  Both of these approaches have been
 explained and successfully used on this list in the past.  There are
 other approaches as well when you throw other pieces into the 
 mix, such
 as Apache, Squid, etc.
 
 So I'm sure there are people out there doing webapp reload 
 in-memory in
 true hotswap fashion, and that's great for them.  But I think they're
 the minority and that the state of the industry right now means it's
 extremely difficult to do it perfectly.  Most of things the container
 can't solve for you.  And that's why we take the approach of 
 addressing
 the issues that are shown conclusively to be Tomcat bugs, and not
 jumping through hoops to cover faults created by other libraries,
 because that ultimately reduces the maintainability, speed, 
 and quality
 of Tomcat itself.
 
 By the way, these arguments are not Tomcat-specific (except 
 for the last
 sentence above obviously ;)).  I've had the same experience 
 with the $$$
 servers I use.  In-memory webapp reload is a good goal, great 
 marketing,
 and sometimes works well in real life, but not that often.  YMMV.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 25, 2004 4:34 AM
 To: [EMAIL PROTECTED]
 Subject: discussion on webapp reload in production environments
 
 Hi,
 
 Yoav, you suggested we should pick up this thread here in the list
 rather
 than the bugzilla report at
 http://issues.apache.org/bugzilla/show_bug.cgi?id=26372
 
 I have copied the last 4 replies for any interested parties to start
 following this thread.
 
 I look forward to hearing the position on webapp reloading 
 in terms of
 desirable behaviour and the specification when you have time 
 to do so.
 
 All the best, Allistair.
 
 YOAV
 I'd point out it's only 'dying' when you're trying the
 app reload, nor normal usage.  This feature is not mandated 
 by the Spec
 so
 we're not obliged to provided it in the first place: it's 
 caused mostly
 trouble
 and has very limited usage in production environments.  So 
 if you have
 patches
 for it, that's great, but the common usage scenario for 
 Tomcat doesn't
 include
 webapp reload, and so doesn't suffer from this issue at all.
 
 ME
 I am interested in your comment that reload of webapp is 
 mostly trouble
 and
 limited in production environments though. My understanding 
 was that if
 you
 want to make a build to production or a patch of some files, 
 you would
 use
 ant
 or similar as we do here to reconstruct the WAR to deploy. Does this
 not
 require tomcat being able to reload? In fact, we tell the 
 business the
 intranet
 will be down for 5 minutes and post a message page up for inbound
 requests.
 We
 stop tomcat, delete the old war and expanded war files and place the
 new
 war
 and startup tomcat again. We constantly get irked by the 
 fact that if a
 bug
 is
 on production we have to wait until the evening to patch it 
 whereas our
 ASP
 coutnerparts can so easily hot-patch. We also use JSP 
 precompilation to
 improve
 performance so it's not so easy to patch JSPs either.
 
 REMY
 I hope hot deployment and redeployment is a reality. 
 However, there are
 issues
 when the webapp tries to interact with some services which reside in
 the
 system
 classloader (logging here). Packaging webapps a little differently
 could
 solve
 the problems for now.
 
 YOAV
 Allistair, I'll be glad to continue this discussion on the 
 mailing list
 and
 try
 and explain why I think reloading an app in-place has

Deploy of single class into reloadable context throws LifecycleException with no recovery

2004-09-22 Thread Allistair Crossley
Hi Guys,

Version: 5.0.28

Scenario:

One of our web applications has context reload=true set so that we can deploy single 
class patches (side question: is there a better way of hot-deploying single-class 
patching?)

However, every time we copy the new class over the existing class, Tomcat begins to 
reload but throws the following exception stack trace about 6 times in a row (in 
stdout) and the UI presents error 503 application unavailable on requests. 

Tomcat never recovers from this and we have to restart the service.

INFO: Reloading this Context has started
22-Sep-2004 10:02:25 org.apache.catalina.core.StandardContext reload
SEVERE: Cannot find message associated with key standardContext.stoppingContext
LifecycleException:  Manager has not yet been started
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:680)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4474)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3015)
at 
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4629)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Unknown Source)
22-Sep-2004 10:02:25 org.apache.catalina.core.StandardContext start
INFO: Container StandardContext[] has already been started
22-Sep-2004 10:02:36 org.apache.catalina.core.StandardContext reload

Kind regards, Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Deploy of single class into reloadable context throws LifecycleException with no recovery

2004-09-22 Thread Allistair Crossley
Hey no problem :)

It's interesting that I cannot produce the same problem on my local instance of 
Tomcat; this was on the production server I was referrring to. The only difference 
between the two is that the production instance has no JSPs - they are all 
precompiled, but that's it .. they are both reloadable contexts. 

I will have a go at your fix on the production server after hours for obvious reasons!

Cheers!

Allistair

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 22 September 2004 16:08
 To: Tomcat Users List
 Subject: RE: Deploy of single class into reloadable context throws
 LifecycleException with no recovery
 
 
 
 Hi,
 
 One of our web applications has context reload=true set so that we
 can
 deploy single class patches (side question: is there a better way of
 hot-
 deploying single-class patching?)
 
 You could turn off reloadable and instead use the Manager app 
 to reload
 your webapps.  It's not necessarily better, there are pros and cons.
 Especially for development, your approach is fine.
 
 Tomcat never recovers from this and we have to restart the service.
 
 INFO: Reloading this Context has started
 22-Sep-2004 10:02:25 org.apache.catalina.core.StandardContext reload
 SEVERE: Cannot find message associated with key
 standardContext.stoppingContext
 
 Hmm, I wonder if the resource is missing.  Yup, sure like it.  That's
 probably me being careless ;(  
 
 Quick workaround: take $CATALINA_HOME/server/lib/catalina.jar, unpack
 it, edit org/apache/catalina/core/LocalStrings.properties, add a line
 for standardContext.stoppingContext to the file with whatever message
 you want, repack jar, put back in $CATALINA_HOME/server/lib, restart
 server.  Let us know if that fixes the problem.
 
 Proper solution: I'll open a Bugzilla ticket for this and fix it right
 away, so that CVS and future Tomcat releases don't have this problem.
 
 Sorry about that, and thanks for reporting it.
 
 Yoav
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Suggestion: A dedicated TOMCAT forum!

2004-09-21 Thread Allistair Crossley
i think you would need a forum that was capable of subscribing to new posts. with the 
mailing list, everybody is forced (kind of) to read new messages whereas a forum takes 
more effort to go to and then to find the new messages. 

on the negative side, it can get on my nerves with all the emails coming in, but I 
still like to be informed. i think a forum would be good, but with the option to 
subscribe or unsubscribe from pushing new message notifications out.

ADC

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 21 September 2004 14:13
 To: Tomcat Users List
 Subject: RE: Suggestion: A dedicated TOMCAT forum!
 
 
 
 Hi,
 Stop hijacking threads, please.  Sheesh.
 
 As to the Forum suggestion: one was indeed started a long time ago.  I
 don't know if it was an advertising problem or simple inertia 
 that made
 the Forum not so active.  The mailing list has only grown in activity,
 OTOH.  So I'm not sure where to go here.
 
 If we have a Forum AND a mailing list, that leads to confusion: two
 places to post questions, two places to look for answers, etc.  Should
 we drop the mailing list?  I wouldn't be so quick to do that ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Suresh Akula [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 9:08 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Suggestion: A dedicated TOMCAT forum!
 
 I am using Windows XP professional OS but there is no folder 
 like logs
 in
 entire Tomcat folder structure. Please help in resolving the 
 issue. Is
 there
 something wrong class while setting classpatch. In my classpath i
 inculded
 all the jars which are under C:\Tomcat\common\lib folder.
 
 Thanks a lot
 
 
 
 From: John Najarian [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Suggestion: A dedicated TOMCAT forum!
 Date: Mon, 20 Sep 2004 20:52:13 -0700
 
 What OS are you running?  Windows?
 
 Have you checked the logs?  They're under:
 C:\{tomcat installation}\logs
 
 -Original Message-
 From: Suresh Akula [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 20, 2004 8:30 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Suggestion: A dedicated TOMCAT forum!
 
 Hi
 I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat
 and
 set
 
 the ENV variable
 CATALINA_HOME and JAVA_HOME and also included all the jars available
 in
 C:\Tomcat\Common\lib folder in the classpath. But when i go 
 to command
 prompt C:\Tomcat\bin and execute startup.bat a black window comes up
 and
 disappears but my server never starts.On the command window where i
 executed
 
 startup there appears 4 lines as follows
 Using CATALINA_BASE:   C:\Tomca
 Using CATALINA_HOME:   C:\Tomca
 Using CATALINA_TMPDIR: C:\Tomca
 Using JAVA_HOME:   C:\Java
 but am not able to start the server
 Can anyone please help me on this.
 
 
 Thanks
 Suresh Akula
 
  From: nyhgan [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED],  Peng Tuck
 Kwok
  [EMAIL PROTECTED]
  Subject: Re: Suggestion: A dedicated TOMCAT forum!
  Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
  
  Hi,
  
  I didn't know that there is already a TOMCAT forum.  It is sad to
 see
 that
  the activity is so low there. Maybe that is because no one knows
 about
 its
  existence. I hope the tomcat team can publish the forum url in the
 release
  note and also on the tomcat website.
  
  thanks!
  
  nyhgan
  
  
  
  
  Peng Tuck Kwok [EMAIL PROTECTED] wrote:
  You mean like the one here : 
 http://nagoya.apache.org/jive/index.jsp
 ?
  Activity seems low if you ask me. Don't know what the 
 plans are for
 the
  forum.
  
  
  On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
: I believe that having an open discussion forum is the first
 step
  toward such a goal as it will attract a vast number of 
 new users to
 the
  tomcat world.
   
[EMAIL PROTECTED]
   
??
   
-QM
   
--
   
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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, 

RE: jk2 and file upload

2004-09-17 Thread Allistair Crossley
apparently in the bugzilla report this has been fixed in the connectors CVS HEAD

ADC

 -Original Message-
 From: juhani [mailto:[EMAIL PROTECTED]
 Sent: 17 September 2004 05:28
 To: [EMAIL PROTECTED]
 Subject: jk2 and file upload
 
 
 Hi! As curren jk2 has problem with file upload i am asking does
 anybody know when next version will be available or is there any
 workaround?
 
 Software used: 
  Windows server 2003
  IIS 6
  Tomcat 5.0.28
  jk2.0.4-win32-IIS
 
 
   
 __
 Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.
 http://mobile.yahoo.com/maildemo 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: jk2 and file upload

2004-09-17 Thread Allistair Crossley
yes we are successfully for the most part also but every now and again jk2 causes a 
stream terminated unexpectedly error.

we use Commons FileUpload too but that is not the problem, it' JK2 and this is 
mentioned is fixed in CVS HEAD (again, because it was fixed before but people 
continued to have issues).

ADC

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 17 September 2004 08:26
 To: [EMAIL PROTECTED]
 Subject: RE: jk2 and file upload
 
 
  
 
 -Original Message-
 From: juhani
 
 Hi! As curren jk2 has problem with file upload i am asking 
 does anybody know when next version will be available or is 
 there any workaround?
 
 Software used: 
  Windows server 2003
  IIS 6
  Tomcat 5.0.28
  jk2.0.4-win32-IIS
 
 I'm successfully uploading n files, mix of javascript 
 and servlet, using
 http://jakarta.apache.org/commons/fileupload/
 
 I'm currently using win2k, tc 5.0.27
 but will move over to rhel.
 HTH DaveP
 
 -- 
 DISCLAIMER: 
 
 NOTICE: The information contained in this email and any 
 attachments is 
 confidential and may be privileged. If you are not the intended 
 recipient you should not use, disclose, distribute or copy any of the 
 content of it or of any attachment; you are requested to notify the 
 sender immediately of your receipt of the email and then to delete it 
 and any attachments from your system. 
 
 RNIB endeavours to ensure that emails and any attachments 
 generated by 
 its staff are free from viruses or other contaminants. However, it 
 cannot accept any responsibility for any  such which are transmitted.
 We therefore recommend you scan all attachments. 
 
 Please note that the statements and views expressed in this email and 
 any attachments are those of the author and do not 
 necessarily represent 
 those of RNIB. 
 
 RNIB Registered Charity Number: 226227 
 
 Website: http://www.rnib.org.uk 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Allistair Crossley
shame about the surname lol (sorry xeth just kidding)
ADC

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 17 September 2004 13:17
 To: Tomcat Users List; Xeth Waxman
 Subject: RE: Traversing up a directory using RequestDispatcher
 
 
 
 Hi,
 First of all, Xeth is the best name I've seen in a long time -- cool!
 
 I have a bizarre issue.  Using Tomcat 5.0.12, I have an 
 application in
 the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard.
 After loggin in, I am trying to forward a request to jsp page in that
 directory.  However, RequestDispatcher apparently uses the directory
 C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need
 to go up a directory in my forward request (something like url =
 ../ChargeCard/index.jsp;)  However, RequestDispatcher requires a /
 to start off the url, so I can't use the ../ start to go up a
 directory.  Does anyone have an idea how I would do this?  I 
 tried url
 = /../ChargeCard/index.jsp;, but that results in a
 NullPointerException being thrown.  All help is appreciated!
 
 The RequestDispatcher's behavior is constrained by the Servlet
 Specification.  Its JavaDoc has an explanation on how it resolves
 relative links: the leading slash for the getRequestDispatcher call is
 not really absolute, it's relative to the webapp's docBase.
 
 There's no reason Tomcat would use ROOT as the docBase, unless you're
 actually in the root webapp.  What is the docBase for your webapp?
 (Hint: it's not c:\jakarta-tomcat-5.0.12\webapps, it's a subdirectory
 under it, unless you've explicitly defined a Context with the webapp
 docBase) (in which case, if you kept the default Host 
 appBase, you have
 a bad configuration).
 
 Yoav
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
they didn't in 5.5.0 either. i would have thought something so critical would have 
been corrected by now but looks like not ;)

ADC

 -Original Message-
 From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
 Sent: 16 September 2004 15:58
 To: [EMAIL PROTECTED]
 Subject: tomcat v5.5.2 doesn't read ResourceParams ?
 
 
 Hi, 
 
 I've been trying out tomcat v5.5.2alpha since yesterday, and from my
 findings, it appears that it doesn't read the content of the
 ResourceParams. At least when I look at the datasource with the admin
 webapp, it has empty url, driverClassname etc.
 
 Have anyone seen similar results? I've added a copy of what 
 I've put in
 conf/server.xml.
 
 
   GlobalNamingResources
 
 Resource name=Repository auth=Container 
 type=javax.sql.DataSource
 description=repository datasource definition /
 ResourceParams name=Repository
 parameter
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 namemaxActive/name
 value100/value
 /parameter
 parameter
 namemaxIdle/name
 value30/value
 /parameter
 parameter
 namemaxWait/name
 value1/value
 /parameter
 
 parameter
 nameusername/name
 valuetorgeir/value
 /parameter
 parameter
 namepassword/name
 value/value
 /parameter
 parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 valuejdbc:mysql://localhost/repository/value
 /parameter
 /ResourceParams
   /GlobalNamingResources
 
 -- 
 Torgeir Veimo [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
yes, i was surprised that 5.5 was released without database capability. i'm not sure 
what the reasoning is.

 -Original Message-
 From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
 Sent: 16 September 2004 16:04
 To: Tomcat Users List
 Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
 
 
 On Thu, 2004-09-16 at 10:59 -0400, Shapira, Yoav wrote:
  Hi,
  ResourceParams are gone.  See the updated docs:
  
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
 e-examples
  -howto.html.
 
 Aha, thanx!
 
 I think this should be put in big red letters somewhere
 
 -- 
 Torgeir Veimo [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
that could also do it ;)

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 16 September 2004 16:00
 To: Tomcat Users List
 Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
 
 
 
 Hi,
 ResourceParams are gone.  See the updated docs:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
 e-examples
 -howto.html.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 16, 2004 10:58 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat v5.5.2 doesn't read ResourceParams ?
 
 Hi,
 
 I've been trying out tomcat v5.5.2alpha since yesterday, and from my
 findings, it appears that it doesn't read the content of the
 ResourceParams. At least when I look at the datasource with the admin
 webapp, it has empty url, driverClassname etc.
 
 Have anyone seen similar results? I've added a copy of what 
 I've put in
 conf/server.xml.
 
 
   GlobalNamingResources
 
 Resource name=Repository auth=Container
 type=javax.sql.DataSource
 description=repository datasource definition /
 ResourceParams name=Repository
 parameter
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 namemaxActive/name
 value100/value
 /parameter
 parameter
 namemaxIdle/name
 value30/value
 /parameter
 parameter
 namemaxWait/name
 value1/value
 /parameter
 
 parameter
 nameusername/name
 valuetorgeir/value
 /parameter
 parameter
 namepassword/name
 value/value
 /parameter
 parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name
 valuejdbc:mysql://localhost/repository/value
 /parameter
 /ResourceParams
   /GlobalNamingResources
 
 --
 Torgeir Veimo [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
lol, yeah sorry. i tell you why i thought there was a problem and that was when 5.5.0 
went out and i plugged in my app, all my database refs were coming up as null and so 
on. i told the list and remy said (to paraphrase) that there was a problem with 
resource params but not that they had been taken out. but yes i should have checked 
the docs.

*the shame, the shame*

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 16 September 2004 16:13
 To: Tomcat Users List
 Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
 
 
 
 Hola,
 
 yes, i was surprised that 5.5 was released without database 
 capability.
 i'm
 not sure what the reasoning is.
 
 Man, what did you have for breakfast? ;)  (Or lunch, or whatever the
 most recent meal is at your current location ;)).  Tomcat 5.5 has at
 least the same DB capabilities as Tomcat 5.0, in an easier and less
 verbose configuration format.  No DB capabilities were removed.
 
 Yoav
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: [OFF-TOPIC]RE: Some pretty basic Tomcat ConnectionPoolingQuestions????

2004-09-14 Thread Allistair Crossley
 1. We should rename the DBConnection class to DBConnectionFactory. I
 have often wondered what a factory is in this sense, could you
 elaborate?

charles answered this very well :)

 2. Adding a finalize() method in the external class 
 -- wouldn't that nullify the DataSource before we are 
 finished with it?
 -- isn't that doubling up with the destroy() method?
 -- how much better would it be to nullify the DataSource in a
 finalize() method, a destroy() method or both?

overriding the Object.finalize method ensures that the JRE will perform the statements 
contained within it. You don't actually need to do this if you think the JRE will 
spot when your objects are ready for GC, but sometimes it's good to explicitly do it. 
I normally write an interface called DisposableObject that defines 1 method

public void destroy()

I override finalize to just call this method. That way, either an external call OR a 
JRE call will get to destroy() to clean up any internal resources for sure.

finalize will only be called when all references to the factory are lost and therefore 
the JRE starts to GC it. Yes it would double up if you have a destroy method but see 
my last commment on linking the two.

 3. I'd like to find out more about 'adding a static reference 
 to itself
 and adding a static method called getInstance()' 
 -- how much more efficient would that be?
 -- how do I implement that?
 /question

here's a good tutorial on Singletons

http://www.javaworld.com/javaworld/jw-04-2003/jw-0425-designpatterns.html

hope this helps, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Allistair Crossley
definately wasteful. try changing your DBConnection object (which should be called 
DBConnectionFactory) and maintaining DataSource as a class member. Then in yuor 
constructor for DBConnectionFactory acquire the datasource from JNDI. Ensure you add a 
finalize() method to nullify your datasource too for good measure. You could also use 
the DBConnectionFactory as a singleton by adding a static reference to itself and 
adding a static method called getInstance but that's another topic

ADC

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 13 September 2004 14:03
 To: Tomcat Users List
 Subject: RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat
 ConnectionPooling Questions
 
 
 
 Hi,
 It's inefficient to do the DataSource lookup (an expensive operation)
 every time you need a connection.  See Luke's approach in the other
 message with a similar subject.
 
 And please don't put my name in subject lines -- there are a ton of
 other people here who can give great advice on this basic design issue
 ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: Saturday, September 11, 2004 12:43 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat
 ConnectionPooling Questions
 
 This is what I do and would like to have feedbacks:
 
 import java.sql.Connection;
 import java.sql.SQLException;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import javax.sql.DataSource;
 
 public class DBConnection
 {
public static Connection getDBConnection() throws
 SQLException
{
   Connection conn = null;
 
   try
   {
  InitialContext ctx = new InitialContext();
  DataSource ds = ( DataSource ) ctx.lookup(
 java:comp/env/jdbc/MySQLDB );
 
  try
  {
 conn = ds.getConnection();
  }
  catch( SQLException e )
  {
 System.out.println( Open connection
 failure:  + e.getMessage() );
  }
   }
   catch( NamingException nEx )
   {
  nEx.printStackTrace();
   }
   return conn;
}
 }
 
 --- Luke (Terry) Vanderfluit [EMAIL PROTECTED]
 wrote:
 
  Hi Yoav and all,
 
  Thanks for your reply,
 
   But you went a bit too far: the DataSource lookup
  is potentially
   expensive.  That you can do in the init() method
  and keep a reference to
   the DataSource, because keeping that reference
  doesn't use a connection
   resource.
   Then in your servlet methods, get a connection
  from the DataSource, use
   it, and release it.
   In your servlet destroy method, null out your
  DataSource reference.
   So the DataSource lookup is done once, the
  DataSource reference is kept
   as a private non-static member variable of the
  servlet class, and the
   Connenctions are used only within methods, they're
  not class member
   variables.
 
  So now I have changed my code to:
  1. Declaration of private global variables:
  code
 private Context ctx = null;
 private DataSource ds = null;
 private Connection conn;
  /code
 
  2. an init() method:
  code
  // init does DataSource lookup
 public void init(ServletConfig config) throws
  ServletException {
super.init(config);
try {
   ctx = new InitialContext();
   if(ctx == null) {
  throw new Exception(No Context);
   }
   ds =
  (DataSource)ctx.lookup(java:comp/env/jdbc/mb);
} // end try block
catch(Exception e) {
   e.printStackTrace();
}
 } // end init()
  /code
 
  3. an openConnection() method:
  code
 private void openConnection() {
try {
   if(ds != null) {
  conn = ds.getConnection();
  if(conn != null) {
 message = Got Connection to DB  +
  conn.toString();
 }
  }
   } // end try block
catch(Exception e) {
   e.printStackTrace();
   }
} //end method openConnection()
  /code
 
  4. a destroy() method that nulls the DataSource:
  code
 public void destroy() {
 ds = null;
 }
  /code
 
  remarks
  -the conn.close() is called in the methods that call
  openConnection().
  -I'm thinking of doing an 'include' for the
  openConnection method, so I
  don't have the code for the same method sitting in
  multiple classes.
  Would that be a good idea? (maintainability, yes but
  in terms of
  overhead?)
  /remarks
 
  Would this be the 'leanest' scenario for a database
  connection?
  thanks again,
  Luke
 
  --
  
  Luke (Terry) Vanderfluit
  Mobile: 0421 276 282
  
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 

RE: Name jdbc is not bound in this Context

2004-09-09 Thread Allistair Crossley
i agree, when I define my 5 JNDI datasources within

  /conf/Catalina/localhost/webapp.xml

on startup of tomcat I get a bunch of error messages saying JDBC is not bound for all 
my resources. 

I have a servlet context listener that configures a bunch of manager objects each of 
which attempts to init its private datasource via JNDI resolution. It appears to me 
that Tomcat is not ready with its JNDI resources yet and manages to call the servlet 
context listener before JNDI is bound.

after these errors, Tomcat appears to initialise my webapp again, and this time the 
JNDI resources are available and my app works.

odd.

 -Original Message-
 From: Kelly C. Goedert [mailto:[EMAIL PROTECTED]
 Sent: 09 September 2004 15:09
 To: Tomcat Users List
 Subject: Re: Name jdbc is not bound in this Context
 
 
 I fixed this on the code and it still didn't work. I put my 
 datasource 
 as a global resource and used ResourceLink than the error 
 stoped. But 
 when it is not global it doesn't, I don't know why.
 
 Kelly.
 
 
 Shapira, Yoav wrote:
 
 Hi,
 
   
 
 I'm getting this error  Name jdbc is not bound in this 
 Context on my
 application. My tomcat version is 5.0.27.
 
 The servlet that is causing this error is trying to access 
 a database
 with the following code:
 
 protected IDatabaseConnection getConnection() throws Exception {
 
Context ic = new InitialContext();
Context ctx = (Context) ic.lookup(java:comp/env);
DataSource ds = (DataSource) ic.lookup(jdbc/boxes-cactus);
 
con = new DatabaseDataSourceConnection( ds);
 
return con;
 
 
 
 Sometimes people miss the basic things: how about ctx.lookup 
 instead of
 ic.lookup on the 2nd call? ;)
 
 Yoav
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5.5.1 Installation Help

2004-09-09 Thread Allistair Crossley
you can grab it at the binaries page at 

http://jakarta.apache.org/site/binindex.cgi

either

5.5.1 Compat zip PGP MD5 
5.5.1 Compat tar.gz PGP MD5 

ADC

 -Original Message-
 From: Venkat  Radha Venkataramanan 
 [mailto:[EMAIL PROTECTED]
 Sent: 09 September 2004 17:15
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5.5.1 Installation Help
 
 
 Hello:
 
  
 
 I installed Tomcat 5.5.1 on a Windows XP Professional (SP2). The
 installation went without a hitch.
 
  
 
 The Release notes refers to a file Running.txt that I have 
 to read if I am
 uing JRE 1.4 (I am actually using JRE 1.4.2). I read on the 
 Tomcat page that
 I have to installa some compatibility modules. I 
 
  
 
  
 
 Can somebody send me this file or tell me what I should do to 
 complete my
 installation?
 
  
 
 Thanks.
 
  
 
 Venkat
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Ben,

file.encoding is a JVM parameter specified e.g

java -Dfile.encoding=Cp1252 SomeClass

There is no need to set this in server.xml when you can do this in the startup scripts 
for TC. You could even try within Java code

System.setProperty(file.encoding, Cp1252);

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 10:44
 To: Tomcat User List
 Subject: Setting JVM == file.encoding = Cp1252
 
 
 Dear list,
 
 I am new to Java and to TC. When I write all the java.system 
 properties
 to the logfile on my windows machine, I see I am using
 
 file.encoding = Cp1252
 
 on my linux machine this is
 
 file.encoding = iso-8859-15
 
 
 I know I can configure this jvm paramter in the 
 catalina.bat/sh file, but
 is there a way of doing this inside the server.xml or something ?
 
 regards,
 
 Ben
 
 
 +---+
 | GIStec GmbH - Ihr Partner für GIS - Technologie   |
 |   |
 | Ben Bookey|
 | [EMAIL PROTECTED]   Fraunhoferstraße 5  |
 | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt   |
 | Fax 0 61 51 / 155 - 259   http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
hi ben, 

the jvm always operates with utf. Data transferred into or out of the jvm  is in a 
format matching the file.encoding property.

i don't understand why you wish to change the file.encoding. the jvm file encoding 
should really match your file system, that's why on windows it is Cp1252 and on linux 
iso-8859-15.

the file.encoding will not affect the way your request encoding or database encoding 
aligns.

why don't you email me your web.xml, your jsp, your servlet, your JNDI or database 
connectivity config and I will take a look.

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 11:12
 To: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 Me yet again..
 would it be a good idea to convert all my app config files to 
 utf8 too, once
 I change this file.enoding setting?
 
 regards
 Ben
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 11:46
 An: Tomcat Users List; [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 Ben,
 
 file.encoding is a JVM parameter specified e.g
 
 java -Dfile.encoding=Cp1252 SomeClass
 
 There is no need to set this in server.xml when you can do this in the
 startup scripts for TC. You could even try within Java code
 
 System.setProperty(file.encoding, Cp1252);
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 10:44
  To: Tomcat User List
  Subject: Setting JVM == file.encoding = Cp1252
 
 
  Dear list,
 
  I am new to Java and to TC. When I write all the java.system
  properties
  to the logfile on my windows machine, I see I am using
 
  file.encoding = Cp1252
 
  on my linux machine this is
 
  file.encoding = iso-8859-15
 
 
  I know I can configure this jvm paramter in the
  catalina.bat/sh file, but
  is there a way of doing this inside the server.xml or something ?
 
  regards,
 
  Ben
 
 
  
 +---+
  | GIStec GmbH - Ihr Partner für GIS - Technologie   
 |
  |   
 |
  | Ben Bookey
 |
  | [EMAIL PROTECTED]   Fraunhoferstraße 5  
 |
  | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt   
 |
  | Fax 0 61 51 / 155 - 259   
http://www.gistec-online.de |
 |   |
 | http://www.ingeoic.de  http://www.geo-watermarking.de |
 +---+


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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
Hi Ben,

You appear to be right that this euro encoding is a right bastard. I have no idea how 
I have it working on our production server now.

I have created a mini-webapp for anyone on this list who cares to have a go at this;

www.adcworks.com/encode.zip

Unzip this into an encode folder in your tomcat webapps. Source is included in 
WEB-INF. 

Request the url

http://yourserver/encode/encode.jsp

5 euro symbols should be in the text field. submit this and it goes to a servlet that 
encodes the request as Cp1252 which includes euro. it then sends the string down the 
response stream as Cp1252 and it gets mashed up.

I have tried setting all encoding to utf-8 also but no go.

I have to admit I am stumped now

Anyone..? Anyone..? Bueller..? Bueller..?

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 12:29
 To: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 yep. still end up with â?¬ being shown in my UTF-8 html/jsp 
 page, sent from
 the server as parameter.
 regards
 Ben
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 13:04
 An: [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 have you tried UTF-8 rather than UTF8 as page encoding?
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 12:02
  To: Allistair Crossley
  Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 
  Hi Allistair,
 
  Thanks for the reply. Please find attached my test scripts,
  which is an
  attempt at using utf-8.
 
  Its just a simple .jsp page which posts a value to the
  servlet in UTF-8,
  and the result is posted back to the edit page. Currently,
  although setting
  my htmlmeta tag, the EUR symbol is recieved back and is 
 not displayed
  correctly. I believe one I can do this round trip, it should
  work when I
  write to the database.
 
  regards
  Ben
 
 
 
 
  -Ursprüngliche Nachricht-
  Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 8. September 2004 12:41
  An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
  hi ben,
 
  the jvm always operates with utf. Data transferred into or
  out of the jvm
  is in a format matching the file.encoding property.
 
  i don't understand why you wish to change the file.encoding.
  the jvm file
  encoding should really match your file system, that's why on
  windows it is
  Cp1252 and on linux iso-8859-15.
 
  the file.encoding will not affect the way your request
  encoding or database
  encoding aligns.
 
  why don't you email me your web.xml, your jsp, your servlet,
  your JNDI or
  database connectivity config and I will take a look.
 
  ADC
 
   -Original Message-
   From: Ben Bookey [mailto:[EMAIL PROTECTED]
   Sent: 08 September 2004 11:12
   To: Allistair Crossley
   Subject: AW: Setting JVM == file.encoding = Cp1252
  
  
   Me yet again..
   would it be a good idea to convert all my app config files to
   utf8 too, once
   I change this file.enoding setting?
  
   regards
   Ben
  
   -Ursprüngliche Nachricht-
   Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
   Gesendet: Mittwoch, 8. September 2004 11:46
   An: Tomcat Users List; [EMAIL PROTECTED]
   Betreff: RE: Setting JVM == file.encoding = Cp1252
  
  
   Ben,
  
   file.encoding is a JVM parameter specified e.g
  
   java -Dfile.encoding=Cp1252 SomeClass
  
   There is no need to set this in server.xml when you can do
  this in the
   startup scripts for TC. You could even try within Java code
  
   System.setProperty(file.encoding, Cp1252);
  
   ADC
  
-Original Message-
From: Ben Bookey [mailto:[EMAIL PROTECTED]
Sent: 08 September 2004 10:44
To: Tomcat User List
Subject: Setting JVM == file.encoding = Cp1252
   
   
Dear list,
   
I am new to Java and to TC. When I write all the java.system
properties
to the logfile on my windows machine, I see I am using
   
file.encoding = Cp1252
   
on my linux machine this is
   
file.encoding = iso-8859-15
   
   
I know I can configure this jvm paramter in the
catalina.bat/sh file, but
is there a way of doing this inside the server.xml or 
 something ?
   
regards,
   
Ben
   
   
   
  
  
 +---+
| GIStec GmbH - Ihr Partner für GIS - Technologie
   |
|
   |
| Ben Bookey
   |
| [EMAIL PROTECTED]   Fraunhoferstraße 5
   |
| Tel 0 61 51 / 155 - 254   D-64283 Darmstadt
   |
| Fax 0 61 51 / 155 - 259
  http://www.gistec-online.de |
   |
  |
   | http://www.ingeoic.de
 http://www.geo-watermarking.de

RE: Setting JVM == file.encoding = Cp1252

2004-09-08 Thread Allistair Crossley
lol, good good .. now why doesn't my version work lol ;)

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 08 September 2004 17:23
 To: Tomcat User List
 Cc: Allistair Crossley
 Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
 
 Dear Allistair, (et.al)
 
 Many many many thanks for ALL your help. The problem has 
 disapeared! oh
 joy, oh rapture unforseen
 
 The problem seemed to disapear when I inserted a filter-mapping where
 servlets are mapped, for the incoming request filter which 
 converts all
 request objects to utf-8 for the application, which was 
 missing from my
 web.xml. Then I set the various page-encoding , etc. (see below)
 
 //v///
 //
 /v//v
 %@ page language=java%
 %@ page contentType=text/html;UTF-8%
 %@ page pageEncoding=UTF-8%
 html
 head
  meta http-equiv=Content-Type 
 content=text/html;charset=utf-8
  titleencoding data test./title
 /head
 
 body  bgcolor=#F3F3F3
 brbrbr
 %
 String reqURL = 
 /InGeoWebEntryTool/servlet/EncodingValidationServlet;
 String strEncodeTest=;
 
 if (request.getParameter(text)!=null 
 !request.getParameter(text).equalsIgnoreCase()){
 strEncodeTest = request.getParameter(text);
 }
 %
 FORM action=%=reqURL% accept-charset='UTF-8' method=post
  input  type=text name=encodeTest 
 value=%=strEncodeTest% size=98
  input type=submit value=post to server style=WIDTH: 120px
 /FORM
 /body
 /html
 
 //v///
 //
 /v//v
 
 Now i have this working using utf-8.  I am sure this will now 
 work for all
 encodings, but I think we shall stick with utf-8.
 
 
 regards,
 
 Ben
 
 
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. September 2004 12:41
 An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
 hi ben,
 
 the jvm always operates with utf. Data transferred into or 
 out of the jvm
 is in a format matching the file.encoding property.
 
 i don't understand why you wish to change the file.encoding. 
 the jvm file
 encoding should really match your file system, that's why on 
 windows it is
 Cp1252 and on linux iso-8859-15.
 
 the file.encoding will not affect the way your request 
 encoding or database
 encoding aligns.
 
 why don't you email me your web.xml, your jsp, your servlet, 
 your JNDI or
 database connectivity config and I will take a look.
 
 ADC
 
  -Original Message-
  From: Ben Bookey [mailto:[EMAIL PROTECTED]
  Sent: 08 September 2004 11:12
  To: Allistair Crossley
  Subject: AW: Setting JVM == file.encoding = Cp1252
 
 
  Me yet again..
  would it be a good idea to convert all my app config files to
  utf8 too, once
  I change this file.enoding setting?
 
  regards
  Ben
 
  -Ursprüngliche Nachricht-
  Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 8. September 2004 11:46
  An: Tomcat Users List; [EMAIL PROTECTED]
  Betreff: RE: Setting JVM == file.encoding = Cp1252
 
 
  Ben,
 
  file.encoding is a JVM parameter specified e.g
 
  java -Dfile.encoding=Cp1252 SomeClass
 
  There is no need to set this in server.xml when you can do 
 this in the
  startup scripts for TC. You could even try within Java code
 
  System.setProperty(file.encoding, Cp1252);
 
  ADC
 
   -Original Message-
   From: Ben Bookey [mailto:[EMAIL PROTECTED]
   Sent: 08 September 2004 10:44
   To: Tomcat User List
   Subject: Setting JVM == file.encoding = Cp1252
  
  
   Dear list,
  
   I am new to Java and to TC. When I write all the java.system
   properties
   to the logfile on my windows machine, I see I am using
  
   file.encoding = Cp1252
  
   on my linux machine this is
  
   file.encoding = iso-8859-15
  
  
   I know I can configure this jvm paramter in the
   catalina.bat/sh file, but
   is there a way of doing this inside the server.xml or something ?
  
   regards,
  
   Ben
  
  
  
  
 +---+
   | GIStec GmbH - Ihr Partner für GIS - Technologie
  |
   |
  |
   | Ben Bookey
  |
   | [EMAIL PROTECTED]   Fraunhoferstraße 5
  |
   | Tel 0 61 51 / 155 - 254   D-64283 Darmstadt
  |
   | Fax 0 61 51 / 155 - 259
 http://www.gistec-online.de |
  |   
 |
  | http://www.ingeoic.de  
http://www.geo-watermarking.de |
 +---+


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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE

RE: Performance issue

2004-09-07 Thread Allistair Crossley
it's an interesting one and one that we found too between our dev 1 cpu, w2k, 512mb 
ram, tomcat 5.0.19 and production 2 cpu, w2k, 1gb ram, tomcat 5.0.19. In both cases we 
use a content management system backend and sql server. 

for us we found that the volume of content in our cms on the production box was 10 
times that of the development box and so this slowed the cms down making it look like 
tomcat was taking its time. also the sql server load on production is larger so 
database ops take longer.

you ought to consider whether any dependent backend systems like cms, database, crm 
etc.. are used in a different way between dev and production. i do not think your 
problem is tomcat.

cheers, ADC

 -Original Message-
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Sent: 07 September 2004 08:30
 To: 'Tomcat Users List'
 Subject: Performance issue
 
 
 Hello all,
 
 Maybe a rare question but it's very important for us. What's the case:
 
 * I have a development environment running our applications 
 (simple server,
 WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize appr. 320 MB)
 * I have a production environment running our applications 
 (extended server,
 WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize appr. 1 GB, 4
 processors)
 
 Now in our applications we have some jsp pages (i.e. 
 searchpages). So what's
 my problem. When I reload a page (submit some action the the 
 form/actionbean
 of struts) it's faster on our development system than on our 
 production
 system. So normally it's should be so that jsp files should 
 be faster on our
 production environment because the server is a lot bigger. 
 On the other
 hand the compilation of jsp's is faster (as expected) on the 
 production
 environment. Are there some settings in server.xml (or 
 web.xml) that causes
 this???
 
 Thx in advanced!
 
 Maarten
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Performance issue

2004-09-07 Thread Allistair Crossley
by load i meant that the production server may be having its cpu/memory used by other 
processes. are you saying that dev and prod servers are doing nothing else but serving 
your webapp? if not you should list all the differences, e.g what applications or 
software is each server running - are there any differences? you can take a basic look 
at the cpu and memory usage on both servers using the windows task manager.

what does your search page search for? does it search a database? does that same 
database get searched by dev and prod?

ADC

 Hi ADC,
 
 First of all I use connection pooling (JSQLConnect) and put 
 values in cache
 (hashmaps) so constant data retrieved once and deliver many. 
 Let give an
 example of which pages this is happening:
 
 search.jsp: this jsp has multiple dropdownboxes. The data 
 will be retrieved
 from the server in a Vector and this data is qua volume on both (the
 development as production) server the same. That means that 
 all the content
 of the dropdownlists are the same. So I may expect that there is no
 difference in volume?? Or do you ment something different 
 with that?? On a
 reload the data within the dropdownlists are retrieved from 
 the servercache
 (lookup data is stored in a HashMap). So I don't know that's 
 the problem.
 How do you solve this problem?? The problem now is that one 
 applications
 causes an error (i don't know what, since there is nothing 
 within the log)
 and tomcat restarts.
 
 Maarten
 
 
 
 -Oorspronkelijk bericht-
 Van: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Verzonden: Tuesday, September 07, 2004 9:01 AM
 Aan: Tomcat Users List; [EMAIL PROTECTED]
 Onderwerp: RE: Performance issue
 
 
 it's an interesting one and one that we found too between our 
 dev 1 cpu,
 w2k, 512mb ram, tomcat 5.0.19 and production 2 cpu, w2k, 1gb 
 ram, tomcat
 5.0.19. In both cases we use a content management system 
 backend and sql
 server. 
 
 for us we found that the volume of content in our cms on the 
 production box
 was 10 times that of the development box and so this slowed 
 the cms down
 making it look like tomcat was taking its time. also the sql 
 server load on
 production is larger so database ops take longer.
 
 you ought to consider whether any dependent backend systems like cms,
 database, crm etc.. are used in a different way between dev 
 and production.
 i do not think your problem is tomcat.
 
 cheers, ADC
 
  -Original Message-
  From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
  Sent: 07 September 2004 08:30
  To: 'Tomcat Users List'
  Subject: Performance issue
  
  
  Hello all,
  
  Maybe a rare question but it's very important for us. 
 What's the case:
  
  * I have a development environment running our applications 
  (simple server,
  WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize appr. 320 MB)
  * I have a production environment running our applications 
  (extended server,
  WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize appr. 1 GB, 4
  processors)
  
  Now in our applications we have some jsp pages (i.e. 
  searchpages). So what's
  my problem. When I reload a page (submit some action the the 
  form/actionbean
  of struts) it's faster on our development system than on our 
  production
  system. So normally it's should be so that jsp files should 
  be faster on our
  production environment because the server is a lot bigger. 
  On the other
  hand the compilation of jsp's is faster (as expected) on the 
  production
  environment. Are there some settings in server.xml (or 
  web.xml) that causes
  this???
  
  Thx in advanced!
  
  Maarten
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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: Performance issue

2004-09-07 Thread Allistair Crossley
are your dev and prod running the same number of web applications with the same number 
of users?

try jprofiler/jprobe or optimizeit to see what is going on

 -Original Message-
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Sent: 07 September 2004 09:31
 To: 'Tomcat Users List'
 Subject: RE: Performance issue
 
 
 First of all our production server is only serving our 
 webapps. Nothing else
 (only emailserver installed as well). The searchpage search 
 in the DB. The
 DB are also seperated of course. But we can leave out the db 
 since the data
 is stored in hashmaps and i use connection pooling too. It 
 isnt the search
 that give a problem, since searching is must faster in our production
 environment. It's just reloading a jsp. That means a jsp page 
 with some
 dropdownlists. This is the same on production as development 
 as well. When I
 reload the page on the development server, it;s click and 
 it's there. On the
 productionserver he needs some time (max 1 second) to reload 
 the page. It
 seems it had to do something with cashing ore something???
 
 Maarten
 
 -Oorspronkelijk bericht-
 Van: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Verzonden: Tuesday, September 07, 2004 9:27 AM
 Aan: Tomcat Users List
 Onderwerp: RE: Performance issue
 
 
 by load i meant that the production server may be having its 
 cpu/memory used
 by other processes. are you saying that dev and prod servers are doing
 nothing else but serving your webapp? if not you should list all the
 differences, e.g what applications or software is each server 
 running - are
 there any differences? you can take a basic look at the cpu 
 and memory usage
 on both servers using the windows task manager.
 
 what does your search page search for? does it search a 
 database? does that
 same database get searched by dev and prod?
 
 ADC
 
  Hi ADC,
  
  First of all I use connection pooling (JSQLConnect) and put 
  values in cache
  (hashmaps) so constant data retrieved once and deliver many. 
  Let give an
  example of which pages this is happening:
  
  search.jsp: this jsp has multiple dropdownboxes. The data 
  will be retrieved
  from the server in a Vector and this data is qua volume on both (the
  development as production) server the same. That means that 
  all the content
  of the dropdownlists are the same. So I may expect that there is no
  difference in volume?? Or do you ment something different 
  with that?? On a
  reload the data within the dropdownlists are retrieved from 
  the servercache
  (lookup data is stored in a HashMap). So I don't know that's 
  the problem.
  How do you solve this problem?? The problem now is that one 
  applications
  causes an error (i don't know what, since there is nothing 
  within the log)
  and tomcat restarts.
  
  Maarten
  
  
  
  -Oorspronkelijk bericht-
  Van: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Verzonden: Tuesday, September 07, 2004 9:01 AM
  Aan: Tomcat Users List; [EMAIL PROTECTED]
  Onderwerp: RE: Performance issue
  
  
  it's an interesting one and one that we found too between our 
  dev 1 cpu,
  w2k, 512mb ram, tomcat 5.0.19 and production 2 cpu, w2k, 1gb 
  ram, tomcat
  5.0.19. In both cases we use a content management system 
  backend and sql
  server. 
  
  for us we found that the volume of content in our cms on the 
  production box
  was 10 times that of the development box and so this slowed 
  the cms down
  making it look like tomcat was taking its time. also the sql 
  server load on
  production is larger so database ops take longer.
  
  you ought to consider whether any dependent backend systems 
 like cms,
  database, crm etc.. are used in a different way between dev 
  and production.
  i do not think your problem is tomcat.
  
  cheers, ADC
  
   -Original Message-
   From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
   Sent: 07 September 2004 08:30
   To: 'Tomcat Users List'
   Subject: Performance issue
   
   
   Hello all,
   
   Maybe a rare question but it's very important for us. 
  What's the case:
   
   * I have a development environment running our applications 
   (simple server,
   WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize 
 appr. 320 MB)
   * I have a production environment running our applications 
   (extended server,
   WIN 2000 Server, Tomcat 4.0.24, struts, max memorysize 
 appr. 1 GB, 4
   processors)
   
   Now in our applications we have some jsp pages (i.e. 
   searchpages). So what's
   my problem. When I reload a page (submit some action the the 
   form/actionbean
   of struts) it's faster on our development system than on our 
   production
   system. So normally it's should be so that jsp files should 
   be faster on our
   production environment because the server is a lot bigger. 
   On the other
   hand the compilation of jsp's is faster (as expected) on the 
   production
   environment. Are there some settings in server.xml (or 
   web.xml) that causes

RE: Tomcat 5.5.0 - Child name is not unique error

2004-09-07 Thread Allistair Crossley
this is a bug in 5.5.0 and you will have to wait for 5.5.1 which I believe Yoav said 
might be out today :p 

ADC

 -Original Message-
 From: helena rato [mailto:[EMAIL PROTECTED]
 Sent: 07 September 2004 16:01
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5.5.0 - Child name is not unique error
 
 
 Hi all,
  
 Here is the problem description:
  
 I have Linux RedHat 9 (kernel 2.4.20-8).
 I have Java jdk 1.5.0
 I have installed tomcat 5.5.0
  
 I create a brand new web app, I call it 'blabli' :
  
 mkdir $CATALINA_HOME/webapps/blabli
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib
  
 In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml 
 file, as follows:
 
 [EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 display-nameServlet 2.4 Examples/display-name
 description
   Servlet 2.4 Examples.
 /description
 /web-app
  
 I re-start tomcat.
  
 At this point, tomcat runs fine. 
  
 Now, I add a logger using a context tag in 
 $CATALINA_HOME/conf/server.xml.
  
 The code added to $CATALINA_HOME/conf/server.xml is:
  
 Context path=/blabli docBase=blabli
 debug=5 reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_blabli_log. suffix=.txt
   timestamp=true/
 /Context
  
 I re-start tomcat.
  
 And I get a strange error!
  
 The error in catalina.out is:
  
 [GC 3771K-3357K(5044K), 0.0031900 secs]
 Sep 7, 2004 10:51:21 AM 
 org.apache.catalina.startup.HostConfig deployDirectory
 SEVERE: Error deploying web application directory blabli
 java.lang.IllegalArgumentException: addChild:  Child name 
 '/blabli' is not unique
 at 
 org.apache.catalina.core.ContainerBase.addChildInternal(Contai
 nerBase.java:749)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
 java:739)
  
  
  
  
 Thank-you in advance for any clue!
  
 Helena
 
   
 -
 Do you Yahoo!?
 Yahoo! Mail is new and improved - Check it out!
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5.5.0 - Child name is not unique error

2004-09-07 Thread Allistair Crossley
sorry yoav .. i thought this was a bug that we discussed the other day.

ADC

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 07 September 2004 16:04
 To: Tomcat Users List
 Subject: RE: Tomcat 5.5.0 - Child name is not unique error
 
 
 
 Hi,
 There's nothing strange about this error: you can't have two webapps
 wieh the same path.  You couldn't in Tomcat 4.x or 5.0.x, and 
 you can't
 in 5.5.x. ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: helena rato [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 07, 2004 11:01 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5.5.0 - Child name is not unique error
 
 Hi all,
 
 Here is the problem description:
 
 I have Linux RedHat 9 (kernel 2.4.20-8).
 I have Java jdk 1.5.0
 I have installed tomcat 5.5.0
 
 I create a brand new web app, I call it 'blabli' :
 
 mkdir $CATALINA_HOME/webapps/blabli
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes
 mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib
 
 In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as
 follows:
 
 [EMAIL PROTECTED] root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 display-nameServlet 2.4 Examples/display-name
 description
   Servlet 2.4 Examples.
 /description
 /web-app
 
 I re-start tomcat.
 
 At this point, tomcat runs fine.
 
 Now, I add a logger using a context tag in
 $CATALINA_HOME/conf/server.xml.
 
 The code added to $CATALINA_HOME/conf/server.xml is:
 
 Context path=/blabli docBase=blabli
 debug=5 reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_blabli_log. suffix=.txt
   timestamp=true/
 /Context
 
 I re-start tomcat.
 
 And I get a strange error!
 
 The error in catalina.out is:
 
 [GC 3771K-3357K(5044K), 0.0031900 secs]
 Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig
 deployDirectory
 SEVERE: Error deploying web application directory blabli
 java.lang.IllegalArgumentException: addChild:  Child name 
 '/blabli' is
 not
 unique
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(Conta
 inerBase.j
 ava:
 749)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase
 .java:739)
 
 
 
 
 Thank-you in advance for any clue!
 
 Helena
 
 
 -
 Do you Yahoo!?
 Yahoo! Mail is new and improved - Check it out!
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Real problem posting Euro symbol from jsp page, using TC 5.0

2004-09-06 Thread Allistair Crossley
Hi Ben,

OK, here is my setup. Can you do the same for yours considering the various layers I 
have drawn below. You did not mention in your post if you are using the request filter 
servlet to ensure request encoding is set to utf-8. Remember, Tomcat defaults to 
ISO-8859-1 for inbound requests. I am not sure if it pays attention to the form accept 
encoding, so be sure to use the filter. Someone else may have a better way or confirm 
whether form accept-encoding works on forms. I suppose you could test this in your 
Servlet by printing request.getCharacterEncoding(). This needs to be UTF-8 if all is 
well. Can you confirm this?

==
Windows 2000
--
   | JVM [file.encoding = utf-8]
   ---
   | TOMCAT
--
DB | DB URL CHARSET | SERVLET | SERVLET FILTER | JSP
--
Cp1252 | Cp1252 |-| set req. utf-8 | utf-8
==



 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 06 September 2004 11:19
 To: Tomcat User List
 Cc: Allistair Crossley; [EMAIL PROTECTED]
 Subject: Real problem posting Euro symbol from jsp page, using TC 5.0
 
 
 
 Dear TC profis, (allistair and Nikola)
 
 I have had this problem for a week (aaahhh!), and would 
 really appreciate
 ANY help or pointers to what I may be doing wrong.
 
 When I post a EUR value from a form from either Netscape 6.0 or 
 IE 6.0, and do
 a system.out.println in my test
 servlet there is always something other than the Euro symbol 
 arriving in my
 test servlet.  Most often is a ? which indicates the browser-client
 is posting using ISO8859-1
 
 Please take a look at the simple jsp pages below, which is 
 using UTF-8. ( in
 another test I have also changed all the various
 encoding parameters to ISO8859-15, but there is still no Euro 
 symbol on the
 server).!
 
 PLEASE. WHAT AM I 
 DOING WRONG ??
 
 :-(
 
 Ben
 
 '=
 ==
 ==
 %@ page language=java%
 %@ page contentType=text/html;charset=utf-8%
 %@ page pageEncoding=utf-8%
 html
 head
  META NAME=GENERATOR CONTENT=test page for encoding
 http-equiv=Content-Type content=text/html charset='utf-8'
  titleencoding data test./title
 /head
 
 body  bgcolor=#F3F3F3
 brbrbr
 %
 String reqURL = 
 /InGeoWebEntryTool/servlet/EncodingValidationServlet;
 String strEncodeTest=;
 %
 FORM action=%=reqURL% ACCEPTCHARSET='utf-8' method=post
  input  type=text name=encodeTest 
 value=%=strEncodeTest% size=98
  input type=submit value=update style=WIDTH: 120px
 /FORM
 /body
 /html
 
 '=
 ==
 ===
 Here are some system properties from my server.
 
 file.encoding = Cp1252
 java.specification.version = 1.4
 catalina.home = D:\Program Files\NetBeans3.6\jakarta-tomcat-5.0.19
 java.version = 1.4.2
 sun.cpu.endian = little
 sun.io.unicode.encoding = UnicodeLittle
 
 '=
 ==
 ===
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: ????? +++ problem saving Euro symbol character to database from my JSP form using TC5

2004-09-03 Thread Allistair Crossley
What is your database URL? Are you ensuring that a charset is specified on your 
database connectivity? This charset should be Cp1252 for Windows-1250. Find a row in 
the database with a euro character and ask yourself how that euro character got there? 
If it got there using an encoding different from the response encoding then you will 
get your ?. In order to solve this problem you need to make sure you have test data 
correctly encoded to match your database encoding. Then work backwards to the UI. Make 
sure the db URL charset matches the database. Then use a JSP with pageEncoding and 
charset of utf-8 OR try Cp1252 OR try Windows-1250. I don't think you need to worry 
about changing your DB encoding .. it seems to me that you either have incorrectly 
encoded data in the database which is throwing you red herrings when you get the UI 
encoding right OR your UI is just mal-configured.

 1. I have a Windows-1250 oracle database, and I am using TC 
 5. and jsp/html
 pages
 to perform updates/inserts. Despite using iso-8859-15 in my 
 jsp/html, the
 client
 is still posting a ? (question mark symbol) instead of a Euro symbol.
 Anybody know what is happening ?
 
 
 2. If I do change our product database, from Windows-1250 to 
 UTF-8, how will
 this affect existing applications I wonder writing to the 
 database using
 Windows-1250 or iso-8859-1.
 I guess because utf-8 is backward compatable it should not affect the
 existing apps. making
 updates or inserts?
 
 
 Would appreciate any help !
 
 thanks
 BEn
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5 service on windows

2004-09-03 Thread Allistair Crossley
did you have a tomcat service installed already? did you have the services window open 
when you ran this? try checking there are no tomcat services and closing the services 
window and trying again.

ADC

 -Original Message-
 From: Andras Balogh [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2004 11:28
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5 service on windows
 
 
 Hello all,
 
 I have downloaded the Tomcat 5.0.28. distibution for windows 
 (jakarta-tomcat-5.0.28.exe) and tried
 to install tomcat as service and checked the service option in the 
 install wizard.
 Tomcat wasn't installed as service and i tried manual with the 
 service.bat script:
 Here is the output i get:
 D:\Tomcat 5.0\binservice install
 Installing the service 'Tomcat5' ...
 Using CATALINA_HOME:D:\Tomcat 5.0
 Using JAVA_HOME:D:\j2sdk1.4.1_05
 [2004-09-03 12:09:45] [349  prunsrv.c] [error]
 The system cannot find the file specified.
 [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
 Load configuration failed
 [2004-09-03 12:09:45] [349  prunsrv.c] [error]
 The system cannot find the file specified.
 [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
 Load configuration failed
 The service 'Tomcat5' has been installed.
 
 The service is still  not added, i think because of the error i have.
 As a note i have on the server an older Tomcat 4.1.27 but is not 
 running and i modified CATALINA_HOME to point
 to the new tomcat (D:\Tomcat 5.0).
 
 What could be wrong?
 
 Thank you,
 Andras.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



TC 5.5 exceptions on shutdown and restart

2004-09-03 Thread Allistair Crossley
Hi Guys,

I can create a couple of exceptions with TC 5.5 on shutdown as described below;

SCENARIO 1
==

1. I start TC 5.5 using the service with no error messages until it says finally :
INFO: Server startup in 8843 ms

2. I wait 1 minute

3. I shutdown the service. The additional logging is;

03-Sep-2004 16:09:31 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
03-Sep-2004 16:09:32 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1636e4e')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@df0438')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@18e261d')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@10efd7c')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@12412e7')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1552b76')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
java.lang.reflect.InvocationTargetException
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:582)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:875)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1104)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1076)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:425)
at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2001)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:594)
at org.apache.catalina.startup.Catalina.start(Catalina.java:569)
... 6 more

SCENARIO 2
==

1. I start TC 5.5 using the service with no error messages until it says finally :
INFO: Server startup in 9890 ms

2. I restart the service and get a bunch of BindExceptions in addition to the same 
InvocationTargetException as in SCENARIO 1.

03-Sep-2004 16:12:41 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
03-Sep-2004 16:12:42 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@bb494b')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1c8efd1')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@f892a4')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', 

RE: Tomcat 5 service on windows

2004-09-03 Thread Allistair Crossley
did you run the service.bat unmodified? this can also happen when you have spaces in 
some of the properties for the service name.

ADC

 -Original Message-
 From: Nelson, Jerry W, Contractor 146CF, SCB
 [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2004 16:25
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 5 service on windows
 
 
 I HAVE THE SAME PROBLEM...In my case, I am the computer 
 administrator and
 Tomcat has NEVER been installed previous to this. I have not 
 seen ANY good
 solutions to this, so I learned to live with the DOS based service.
 
 //SIGNED//
  
 Jerry Nelson
 
 -Original Message-
 From: John Villar [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 6:27 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 5 service on windows
 
 
 Do you have permission to write on the registry? you need to 
 have write 
 access to some key (don't remember specifically what is the key right 
 now) in the registry to install tomcat as a service.
 
 Allistair Crossley escribió:
 
 did you have a tomcat service installed already? did you 
 have the services
 window open when you ran this? try checking there are no 
 tomcat services and
 closing the services window and trying again.
 
 ADC
 
   
 
 -Original Message-
 From: Andras Balogh [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2004 11:28
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5 service on windows
 
 
 Hello all,
 
 I have downloaded the Tomcat 5.0.28. distibution for windows 
 (jakarta-tomcat-5.0.28.exe) and tried
 to install tomcat as service and checked the service option in the 
 install wizard.
 Tomcat wasn't installed as service and i tried manual with the 
 service.bat script:
 Here is the output i get:
 D:\Tomcat 5.0\binservice install
 Installing the service 'Tomcat5' ...
 Using CATALINA_HOME:D:\Tomcat 5.0
 Using JAVA_HOME:D:\j2sdk1.4.1_05
 [2004-09-03 12:09:45] [349  prunsrv.c] [error]
 The system cannot find the file specified.
 [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
 Load configuration failed
 [2004-09-03 12:09:45] [349  prunsrv.c] [error]
 The system cannot find the file specified.
 [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
 Load configuration failed
 The service 'Tomcat5' has been installed.
 
 The service is still  not added, i think because of the 
 error i have.
 As a note i have on the server an older Tomcat 4.1.27 
 but is not 
 running and i modified CATALINA_HOME to point
 to the new tomcat (D:\Tomcat 5.0).
 
 What could be wrong?
 
 Thank you,
 Andras.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
   
 
 
 -- 
 John Villar
 Gerente de Proyectos
 Computadores Flor Hard Soft 2058 C.A.
 www.florhard.com
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5 service on windows

2004-09-03 Thread Allistair Crossley
also, you may try removal anyway and reinstall ...

service.bat remove

and then

service.bat install

if you checked the box on the install then maybe it _did_ do something that needs to 
be removed first (wild stab in the dark!)

:p

ADC

 -Original Message-
 From: Allistair Crossley 
 Sent: 03 September 2004 16:28
 To: Tomcat Users List
 Subject: RE: Tomcat 5 service on windows
 
 
 did you run the service.bat unmodified? this can also happen 
 when you have spaces in some of the properties for the service name.
 
 ADC
 
  -Original Message-
  From: Nelson, Jerry W, Contractor 146CF, SCB
  [mailto:[EMAIL PROTECTED]
  Sent: 03 September 2004 16:25
  To: 'Tomcat Users List'
  Subject: RE: Tomcat 5 service on windows
  
  
  I HAVE THE SAME PROBLEM...In my case, I am the computer 
  administrator and
  Tomcat has NEVER been installed previous to this. I have not 
  seen ANY good
  solutions to this, so I learned to live with the DOS based service.
  
  //SIGNED//
   
  Jerry Nelson
  
  -Original Message-
  From: John Villar [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 03, 2004 6:27 AM
  To: Tomcat Users List
  Subject: Re: Tomcat 5 service on windows
  
  
  Do you have permission to write on the registry? you need to 
  have write 
  access to some key (don't remember specifically what is the 
 key right 
  now) in the registry to install tomcat as a service.
  
  Allistair Crossley escribió:
  
  did you have a tomcat service installed already? did you 
  have the services
  window open when you ran this? try checking there are no 
  tomcat services and
  closing the services window and trying again.
  
  ADC
  

  
  -Original Message-
  From: Andras Balogh [mailto:[EMAIL PROTECTED]
  Sent: 03 September 2004 11:28
  To: [EMAIL PROTECTED]
  Subject: Tomcat 5 service on windows
  
  
  Hello all,
  
  I have downloaded the Tomcat 5.0.28. distibution for windows 
  (jakarta-tomcat-5.0.28.exe) and tried
  to install tomcat as service and checked the service 
 option in the 
  install wizard.
  Tomcat wasn't installed as service and i tried manual with the 
  service.bat script:
  Here is the output i get:
  D:\Tomcat 5.0\binservice install
  Installing the service 'Tomcat5' ...
  Using CATALINA_HOME:D:\Tomcat 5.0
  Using JAVA_HOME:D:\j2sdk1.4.1_05
  [2004-09-03 12:09:45] [349  prunsrv.c] [error]
  The system cannot find the file specified.
  [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
  Load configuration failed
  [2004-09-03 12:09:45] [349  prunsrv.c] [error]
  The system cannot find the file specified.
  [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
  Load configuration failed
  The service 'Tomcat5' has been installed.
  
  The service is still  not added, i think because of the 
  error i have.
  As a note i have on the server an older Tomcat 4.1.27 
  but is not 
  running and i modified CATALINA_HOME to point
  to the new tomcat (D:\Tomcat 5.0).
  
  What could be wrong?
  
  Thank you,
  Andras.
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
  
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  

  
  
  -- 
  John Villar
  Gerente de Proyectos
  Computadores Flor Hard Soft 2058 C.A.
  www.florhard.com
  
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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 5 service on windows

2004-09-03 Thread Allistair Crossley
did you try my suggestion re: service remove and then service install?

ADC

 -Original Message-
 From: Nelson, Jerry W, Contractor 146CF, SCB
 [mailto:[EMAIL PROTECTED]
 Sent: 03 September 2004 17:12
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 5 service on windows
 
 
 Yes, ran service.bat completely unmodified.  I still have to 
 run startup.bat
 to get tomcat to work.
 
 //SIGNED//
  
 Jerry Nelson
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 8:31 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 5 service on windows
 
 
 also, you may try removal anyway and reinstall ...
 
 service.bat remove
 
 and then
 
 service.bat install
 
 if you checked the box on the install then maybe it _did_ do 
 something that
 needs to be removed first (wild stab in the dark!)
 
 :p
 
 ADC
 
  -Original Message-
  From: Allistair Crossley 
  Sent: 03 September 2004 16:28
  To: Tomcat Users List
  Subject: RE: Tomcat 5 service on windows
  
  
  did you run the service.bat unmodified? this can also happen 
  when you have spaces in some of the properties for the service name.
  
  ADC
  
   -Original Message-
   From: Nelson, Jerry W, Contractor 146CF, SCB
   [mailto:[EMAIL PROTECTED]
   Sent: 03 September 2004 16:25
   To: 'Tomcat Users List'
   Subject: RE: Tomcat 5 service on windows
   
   
   I HAVE THE SAME PROBLEM...In my case, I am the computer 
   administrator and
   Tomcat has NEVER been installed previous to this. I have not 
   seen ANY good
   solutions to this, so I learned to live with the DOS 
 based service.
   
   //SIGNED//

   Jerry Nelson
   
   -Original Message-
   From: John Villar [mailto:[EMAIL PROTECTED]
   Sent: Friday, September 03, 2004 6:27 AM
   To: Tomcat Users List
   Subject: Re: Tomcat 5 service on windows
   
   
   Do you have permission to write on the registry? you need to 
   have write 
   access to some key (don't remember specifically what is the 
  key right 
   now) in the registry to install tomcat as a service.
   
   Allistair Crossley escribió:
   
   did you have a tomcat service installed already? did you 
   have the services
   window open when you ran this? try checking there are no 
   tomcat services and
   closing the services window and trying again.
   
   ADC
   
 
   
   -Original Message-
   From: Andras Balogh [mailto:[EMAIL PROTECTED]
   Sent: 03 September 2004 11:28
   To: [EMAIL PROTECTED]
   Subject: Tomcat 5 service on windows
   
   
   Hello all,
   
   I have downloaded the Tomcat 5.0.28. distibution 
 for windows 
   (jakarta-tomcat-5.0.28.exe) and tried
   to install tomcat as service and checked the service 
  option in the 
   install wizard.
   Tomcat wasn't installed as service and i tried manual with the 
   service.bat script:
   Here is the output i get:
   D:\Tomcat 5.0\binservice install
   Installing the service 'Tomcat5' ...
   Using CATALINA_HOME:D:\Tomcat 5.0
   Using JAVA_HOME:D:\j2sdk1.4.1_05
   [2004-09-03 12:09:45] [349  prunsrv.c] [error]
   The system cannot find the file specified.
   [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
   Load configuration failed
   [2004-09-03 12:09:45] [349  prunsrv.c] [error]
   The system cannot find the file specified.
   [2004-09-03 12:09:45] [1037 prunsrv.c] [error]
   Load configuration failed
   The service 'Tomcat5' has been installed.
   
   The service is still  not added, i think because of the 
   error i have.
   As a note i have on the server an older Tomcat 4.1.27 
   but is not 
   running and i modified CATALINA_HOME to point
   to the new tomcat (D:\Tomcat 5.0).
   
   What could be wrong?
   
   Thank you,
   Andras.
   
   
   
   -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
   
   
   
   
   
   
   FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
   ---
   QAS Ltd.
   Developers of QuickAddress Software
   a href=http://www.qas.com;www.qas.com/a
   Registered in England: No 2582055
   Registered in Australia: No 082 851 474
   ---
   /FONT
   
   
   
  
 -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
  [EMAIL PROTECTED]
   
   
   
 
   
   
   -- 
   John Villar
   Gerente de Proyectos
   Computadores Flor Hard Soft 2058 C.A.
   www.florhard.com
   
   
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
  ---
  QAS Ltd.
  Developers of QuickAddress Software

RE: SOLVED! RE: Why request.getRemoteUser() returns NULL ?

2004-09-02 Thread Allistair Crossley
Pleased you found a solution. Just to note however that the JK2 ISAPI filter for IIS 
does work with just 1 line change to jk2.properties IF you want to use NTLM. 

You solution of getting IIS-REMOTE-USER variables makes your webapp dependent on IIS 
wheras JK2 sets request.getRemoteUser() and therefore removes that dependency.

After that, configuring JK2 ISAPI is added to IIS in the same way as any other ISAPI 
module including JSPISAPI. The registry settings for JK2 are annoying but no more so 
than any other installer.

Allistair

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 08:56
 To: Tomcat Users List
 Subject: SOLVED! RE: Why request.getRemoteUser() returns NULL ?
 
 
 I found it!
 
 Thanks to Akash Kava.. 
 
 to get User: request.getHeader(IIS-REMOTE-USER);
 to get Host: request.getHeader(IIS-REMOTE-ADDR);
 
 if you're using Tomcat+IIS thru jspisapi filter.. 
 it make use of NTLM authentication...
 
 no need for jcifs filter.. no need to change server.xml or web.xml or
 jk2.properties...
 
 Thanks Akash!!!
 
 Also watch out for JWEBEX (JWX)... it will replace JSP...
 It has features of .NET!
 Fast coding, auto login, auto integration with IIS, it will 
 replace jsp,
 
 it can be used with existing tomcat without any new changes
 
 yes! go JAVA!
 
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 7:14 PM
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 Hi,
 
 Ah! tomcatAuthentication=false is configured in JK2 which is what I am
 using - JK2 ISAPI filter for IIS ...
 
 http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/instal
 lhowto.htm
 l
 
 Perhaps this is a problem with your Jspisapi filter. Try changing to
 JK2.
 
 You do not need JCIFS since IIS will automatically put the Windows
 authenticated user into the request. 
 
 ADC.
 
  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED]
  Sent: 01 September 2004 11:47
  To: Tomcat Users List
  Subject: RE: Why request.getRemoteUser() returns NULL ?
  
  
  im using tomcat5.0.25 and IIS via Jspisapi filter...
  
  are you using jcifs in your authentication to get
  request.getRemoteUser() to work?
  
  i tried removing tomcatAuthentication=false in server.xml 
 but to no 
  avail. it still fails. =|
  
  by changing the jk2.properties file, i don't need to include jcifs 
  filter in web.xml?
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 01, 2004 6:24 PM
  To: Tomcat Users List
  Subject: RE: Why request.getRemoteUser() returns NULL ?
  
  
  remove the tomcatAuthentication=false attributes from 
 server.xml and
 
  use only jk2.properties? we do not have 
 tomcatAuthentication=false 
  in the server.xml and it works that way. are you connecting via a
  webserver? are you using AJP?
  
  ADC
  
   -Original Message-
   From: Aris Javier [mailto:[EMAIL PROTECTED]
   Sent: 01 September 2004 10:26
   To: Tomcat Users List
   Subject: RE: Why request.getRemoteUser() returns NULL ?
   
   
   i removed the comment, but still request.getRemoteUser()
  returns NULL.
  
   =|
   
   here's my server.xml;
   Server port=8005 shutdown=SHUTDOWN debug=0
 Listener
   className=org.apache.catalina.mbeans.ServerLifecycleListener
   debug=0/
 Listener 
   className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
   Listener
   debug=0/
   
 !-- Global JNDI resources --
 GlobalNamingResources
   
   !-- Test entry for demonstration purposes --
   Environment name=simpleValue type=java.lang.Integer
   value=30/
   
   !-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
   /Resource
   ResourceParams name=UserDatabase
 parameter
   namefactory/name

   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
 /parameter
   /ResourceParams
   
 /GlobalNamingResources
 Service name=Catalina
 Connector port=8080 maxThreads=150 minSpareThreads=25
   maxSpareThreads=75
  enableLookups=false redirectPort=8443 
   acceptCount=100
  debug=0 connectionTimeout=2 
  disableUploadTimeout=true
   tomcatAuthentication=false
   /
   
 Connector port=8009
  enableLookups=false redirectPort=8443 debug=0
  protocol=AJP/1.3 tomcatAuthentication=false /
   Engine name=Catalina defaultHost=localhost debug=0
   
 Logger className=org.apache.catalina.logger.FileLogger
 prefix

RE: Upgrade to 5.0.27 Causes Performance Problems

2004-09-02 Thread Allistair Crossley
Hi Mike,

The standard-fare answer to this type of question is to get a profiler and measure 
where the cpu is going inside the code itself. did you not test this on your 
development server before launching the upgrade?

ADC

 -Original Message-
 From: Mike Scott [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 12:51
 To: [EMAIL PROTECTED]
 Subject: Upgrade to 5.0.27 Causes Performance Problems
 
 
 Upgrading to Tomcat 5.0.27 on Solaris 8, from 3.3 (a big 
 jump, I know),
 and in live use we're seeing its CPU usage run away after a 
 few minutes.
 If I use prstat -L to look at the individual threads, it's 
 java/2 that's
 getting all the CPU time. If I then send the java process a SIGQUIT
 signal to get it to dump a complete stack trace, I get output 
 including
 a line like VM Thread prio=5 tid=0x00126830 nid=0x2 
 runnable, which I
 believe is the java/2 thread, but with no stack trace for that thread.
 
 Does anyone have any ideas about what's going on, or any other
 diagnostics to try?
 
 -- 
 Mike Scott
 
 __
 __
 This email has been scanned for all viruses by the 
 MessageLabs service. 
 __
 __
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
Hi Guys

Decided to give TC 5.5 / JDK 5 B2 a whirl today with our web application on my local 
machine and am having some teething troubles;

1/ Jasper has an issue with JSP page imports where the imported packages are not used. 
This is throwing an exception. 

2/ Had the error mentioned earlier about ROOT child '' cannot be deployed because it 
was shared by another context. I just removed the ROOT folder from webapps to get rid 
of that problem.

3/ None of my JNDI resources configured in 
tomcat.home/conf/Catalina/localhost/mywebapp.xml are being recognised. This was copied 
direct from my TC 5.0.25 installation ... should this still work? Database JAR is in 
common/lib. Getting lots of

Cannot create JDBC driver of class '' for connect URL 'null' errors and also in STDOUT

WARNING: Error during context /mywebapp restart
java.lang.NullPointerException
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1031)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1123)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:729)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1511)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1520)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1500)
at java.lang.Thread.run(Thread.java:595)

4/ The logging suggestion at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger.html did not work for 
me. I have log4j.properties in my webapp classes ... does this override any other 
log4j config like in this example?

Cheers for any insight into the JNDI problem :)

ADC.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
  1/ Jasper has an issue with JSP page imports where the 
 imported packages are not used. This is throwing an exception.
 
 Did you look at the generated source ?

No, I just removed the imports from my JSP that it was complaining about and it went 
away. Would you like me to put them back in and then look at the generated source for 
you?
 
  2/ Had the error mentioned earlier about ROOT child '' 
 cannot be deployed because it was shared by another context. 
 I just removed the ROOT folder from webapps to get rid of 
 that problem.
 
 Does everyone really think it's a good idea to have Context elements
 in server.xml ?

I don't and I have not. This error occurred with an out of the box server.xml with 
_no_ Context elements. All I did was have ROOT and my own webapp in the webapps folder 
and then add mywebapp.xml into the conf/C/l/ folder. I think the clash came because my 
webapp using a path of  which seems to be what ROOT tries to do also. Just removing 
ROOT from webapps sorts this out.
 
  3/ None of my JNDI resources configured in 
 tomcat.home/conf/Catalina/localhost/mywebapp.xml are being 
 recognised. This was copied direct from my TC 5.0.25 
 installation ... should this still work? Database JAR is in 
 common/lib. Getting lots of
  
  Cannot create JDBC driver of class '' for connect URL 
 'null' errors and also in STDOUT
 
 I noticed the ResourceLink element didn't work at all in 5.5.0: the
 digester rule was simply missing. Besides that, there could be an
 issue with the tweaked DBCP, but that would be surprising.

Is there anything I can do to get Resources working in the meantime again or shall I 
wait for the next TC 5.5 release. 
 
 Which happens if the host doesn't have a child with that name, which
 is not normal. How can you possibly get that ?

No idea :) Like I say I have not touched the server.xml _one bit_ after installation. 
All I did was add my webapp into webapps and put its config file which just defines 
jndi resources into conf/C/l.

  4/ The logging suggestion at 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/logger.
html did not work for me. I have log4j.properties in my webapp classes ... does this 
override any other log4j config like in this example?

I'm going to try adding

log4j.logger.org.apache.catalina.=debug, STDOUT

into my webapp log4j and see what that does but first I need my webapp to work :)

If I can be of any help please let me know what you want me to find out..

FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
Hi Remy,

1/ Jasper has an issue with JSP page imports where the
   imported packages are not used. This is throwing an exception.
  
   Did you look at the generated source ?
  
  No, I just removed the imports from my JSP that it was 
 complaining about and it went away. Would you like me to put 
 them back in and then look at the generated source for you?
 
 Were the imports not actually used if you were able to remove them
 without problems ? What was the error output ? (why do I have to ask
 this question ?)

OK. The JSP in question is my error page (e.g isErrorPage=true) which prints out the 
exception in a more aesthetic manner. The reason this page was being thrown at me is 
because of all the other issues with the JNDI connectivity. Initially when I first 
started 5.5 the error message was a JasperException telling me that various package 
imports were not being used. Now, I never thought that was a crime (just not very good 
programming) but 5.5 decided to blow up because of these imports. Since the imports 
were not actually used, I decided to remove them from the JSP and this solved the 
error, and now I can see my nice error page - but remember I am seeing it in the first 
place because all my database connectivity is broken. I am guessing that as soon as 
JNDI is fixed and my webapp can proceed to fully start up, quite a number of my JSPs 
will break due to unused package imports. I am guessing this must be a change in 
Jasper because 5.0 was happy to render JSPs with unused package imports (as is any 
Java application code).
 
2/ Had the error mentioned earlier about ROOT child ''
   cannot be deployed because it was shared by another context.
   I just removed the ROOT folder from webapps to get rid of
   that problem.
  
   Does everyone really think it's a good idea to have 
 Context elements
   in server.xml ?
  
  I don't and I have not. This error occurred with an out of 
 the box server.xml with _no_ Context elements. All I did was 
 have ROOT and my own webapp in the webapps folder and then 
 add mywebapp.xml into the conf/C/l/ folder. I think the clash 
 came because my webapp using a path of  which seems to be 
 what ROOT tries to do also. Just removing ROOT from webapps 
 sorts this out.
 
 You really need to describe issues accurately (I always find your
 reports extremely weird, unfortunately). I think what you did is that
 you copied over your existing configuration, which will cause
 problems.

I'm sorry you find my posts weird. I've been unlucky with some of the problems I have 
had with TC I guess. I do try and do everything properly.

Here is an exact description of what I did to cause this problem including my stdout 
after starting TC.

1. Downloaded 5.5 as zip, installed Java 5 SDK
2. Unzipped to c:\jakarta-tomcat
3. Copied c:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\iq.xml to 
c:\jakarta-tomcat-5.5.0\conf\Catalina\localhost\iq.xml (this iq.xml file is my web 
application. It contains my Context as the following header + all my JNDI resources 
...)

Context path= docBase=/iq reloadable=true

4. Copied c:\jakarta-tomcat-5.0.25\webapps\iq to c:\jakarta-tomcat\webapps\iq
5. Copied my database jTDS JAR into c:\jakarta-tomcat\common\lib\jtds.jar
6. Ran c:\jakarta-tomcat\bin\service.bat ensuring use of new Java 5 SDK
7. Started TC service.
8. Opened STDOUT log ...

02-Sep-2004 16:34:55 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
02-Sep-2004 16:34:55 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1532 ms
02-Sep-2004 16:34:56 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
02-Sep-2004 16:34:56 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
02-Sep-2004 16:34:56 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
**Start of LogManager static initializer
*** configurationOptionStr=log4j.properties
log4j:INFO Using URL 
[file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.properties] for automatic 
log4j configuration of repository named [default].
log4j:ERROR Could not find value for key log4j.appender.CoreLogicA
log4j:ERROR Could not instantiate appender named CoreLogicA.
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log
log4j:INFO sdf is [EMAIL PROTECTED]
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-stats-content-access.log
log4j:INFO sdf is [EMAIL PROTECTED]
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-admin.log
log4j:INFO sdf is [EMAIL PROTECTED]
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-dto.log
log4j:INFO sdf is [EMAIL PROTECTED]
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-holiday-forms.log

RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
As regards the JasperException, I have just placed an unused package import to 
org.apache.struts back into my error page so that I can post it to you;

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The import org.apache.struts is never used



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:538)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:785)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)

org.apache.jsp.layout.application_jsp._jspService(org.apache.jsp.layout.application_jsp:314)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.qas.newmedia.common.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146)


 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 16:15
 To: Allistair Crossley
 Subject: Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
 
 
 On Thu, 2 Sep 2004 15:11:38 +0100, Allistair Crossley
 [EMAIL PROTECTED] wrote:
1/ Jasper has an issue with JSP page imports where the
   imported packages are not used. This is throwing an exception.
  
   Did you look at the generated source ?
  
  No, I just removed the imports from my JSP that it was 
 complaining about and it went away. Would you like me to put 
 them back in and then look at the generated source for you?
 
 Were the imports not actually used if you were able to remove them
 without problems ? What was the error output ? (why do I have to ask
 this question ?)
 
2/ Had the error mentioned earlier about ROOT child ''
   cannot be deployed because it was shared by another context.
   I just removed the ROOT folder from webapps to get rid of
   that problem.
  
   Does everyone really think it's a good idea to have 
 Context elements
   in server.xml ?
  
  I don't and I have not. This error occurred with an out of 
 the box server.xml with _no_ Context elements. All I did was 
 have ROOT and my own webapp in the webapps folder and then 
 add mywebapp.xml into the conf/C/l/ folder. I think the clash 
 came because my webapp using a path of  which seems to be 
 what ROOT tries to do also. Just removing ROOT from webapps 
 sorts this out.
 
 You really need to describe issues accurately (I always find your
 reports extremely weird, unfortunately). I think what you did is that
 you copied over your existing configuration, which will cause
 problems.
 
 -- 
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com

RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
yes, TC 5.5 needs Java 5.0 SDK. Remy also suggested privately that this must be the 
cause, that the warnings given by the compiler are being interpreted by Jasper as 
exceptions...

About that, I think it's that the warnings are reported as issues by
the compiler, and so Jasper thinks the compilation failed (new
compiler = brand new integration = a few stupid bugs).

ADC

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 17:05
 To: Tomcat Users List
 Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
 
 
 
 Did you change the jdk (vendor/version) ?
 
 As this looks more like an error message that's generated by 
 the java compiler (jvac, jikes, ...).
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 02, 2004 5:47 PM
  To: Remy Maucherat; [EMAIL PROTECTED]
  Subject: RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
  
  
  As regards the JasperException, I have just placed an unused 
  package import to org.apache.struts back into my error page 
  so that I can post it to you;
  
  org.apache.jasper.JasperException: Unable to compile class for JSP
  
  Generated servlet error:
  The import org.apache.struts is never used
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Allistair Crossley
:p cool, thanks Remy!

ADC

 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]
 Sent: 02 September 2004 17:01
 To: [EMAIL PROTECTED]
 Subject: Re: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)
 
 
 On Thu, 2 Sep 2004 16:41:14 +0100, Allistair Crossley
 [EMAIL PROTECTED] wrote:
  Hi Remy,
  
  1/ Jasper has an issue with JSP page imports where the
 imported packages are not used. This is throwing an exception.

 Did you look at the generated source ?
   
No, I just removed the imports from my JSP that it was
   complaining about and it went away. Would you like me to put
   them back in and then look at the generated source for you?
  
   Were the imports not actually used if you were able to remove them
   without problems ? What was the error output ? (why do I 
 have to ask
   this question ?)
  
  OK. The JSP in question is my error page (e.g 
 isErrorPage=true) which prints out the exception in a more 
 aesthetic manner. The reason this page was being thrown at me 
 is because of all the other issues with the JNDI 
 connectivity. Initially when I first started 5.5 the error 
 message was a JasperException telling me that various package 
 imports were not being used. Now, I never thought that was a 
 crime (just not very good programming) but 5.5 decided to 
 blow up because of these imports. Since the imports were not 
 actually used, I decided to remove them from the JSP and this 
 solved the error, and now I can see my nice error page - but 
 remember I am seeing it in the first place because all my 
 database connectivity is broken. I am guessing that as soon 
 as JNDI is fixed and my webapp can proceed to fully start up, 
 quite a number of my JSPs will break due to unused package 
 imports. I am guessing this must be a change in Jasper 
 because 5.0 was happy to render JSPs with unused package 
 imports (as is any Java application code).
 
 I think the warnings are interpreted as errors then.
 
  2/ Had the error mentioned earlier about ROOT child ''
 cannot be deployed because it was shared by another context.
 I just removed the ROOT folder from webapps to get rid of
 that problem.

 Does everyone really think it's a good idea to have
   Context elements
 in server.xml ?
   
I don't and I have not. This error occurred with an out of
   the box server.xml with _no_ Context elements. All I did was
   have ROOT and my own webapp in the webapps folder and then
   add mywebapp.xml into the conf/C/l/ folder. I think the clash
   came because my webapp using a path of  which seems to be
   what ROOT tries to do also. Just removing ROOT from webapps
   sorts this out.
  
   You really need to describe issues accurately (I always find your
   reports extremely weird, unfortunately). I think what you 
 did is that
   you copied over your existing configuration, which will cause
   problems.
  
  I'm sorry you find my posts weird. I've been unlucky with 
 some of the problems I have had with TC I guess. I do try and 
 do everything properly.
  
  Here is an exact description of what I did to cause this 
 problem including my stdout after starting TC.
  
  1. Downloaded 5.5 as zip, installed Java 5 SDK
  2. Unzipped to c:\jakarta-tomcat
  3. Copied 
 c:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\iq.xml to 
 c:\jakarta-tomcat-5.5.0\conf\Catalina\localhost\iq.xml (this 
 iq.xml file is my web application. It contains my Context as 
 the following header + all my JNDI resources ...)
  
  Context path= docBase=/iq reloadable=true
  
  4. Copied c:\jakarta-tomcat-5.0.25\webapps\iq to 
 c:\jakarta-tomcat\webapps\iq
  5. Copied my database jTDS JAR into 
 c:\jakarta-tomcat\common\lib\jtds.jar
  6. Ran c:\jakarta-tomcat\bin\service.bat ensuring use of 
 new Java 5 SDK
  7. Started TC service.
  8. Opened STDOUT log ...
  
  02-Sep-2004 16:34:55 org.apache.coyote.http11.Http11Protocol init
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  02-Sep-2004 16:34:55 org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 1532 ms
  02-Sep-2004 16:34:56 org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  02-Sep-2004 16:34:56 org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
  02-Sep-2004 16:34:56 org.apache.catalina.core.StandardHost start
  INFO: XML validation disabled
  **Start of LogManager static initializer
  *** configurationOptionStr=log4j.properties
  log4j:INFO Using URL 
 [file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.prop
 erties] for automatic log4j configuration of repository named 
 [default].
  log4j:ERROR Could not find value for key log4j.appender.CoreLogicA
  log4j:ERROR Could not instantiate appender named CoreLogicA.
  log4j:WARN No such property [datePattern] in 
 org.apache.log4j.RollingFileAppender.
  log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log
  log4j:INFO sdf is [EMAIL PROTECTED

RE: JSP/HTML Encoding

2004-09-01 Thread Allistair Crossley
The filter I sent you ensures that the request is encoded as UTF-8 which includes 
the euro character. When you are posting your forms with the euro character I believe 
your request is set to ISO-8859-1 and you lose the information, hence the ?. 

pageEncoding just sets the response encoding for the client and does not affect the 
other direction, i.e client = server.

I am not sure if there is another setting where request character encoding can be set. 
Perhaps a more experienced Tomcat user knows this

Cheers!

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 31 August 2004 17:06
 To: Allistair Crossley
 Cc: Tomcat User List
 Subject: AW: JSP/HTML Encoding
 
 
 Hi Allistair
 
 +++ Many thanks for your help. +++
 
 I apologise when I ask some stupid questions...
 :)
 
 1) I am not exactly sure what the benefit is, of seeing if 
 the client is
 posting a utf8 encoded response ? Surely, the server controls 
 anyway what
 encoding the html pages are in so if i post with Latin9 then 
 the client can
 either read it or not. I guess this filter is useful in the 
 case that the
 client browser doesnt support the character encoding 
 (something hopefully
 similar) and posts the request in another character-code. The 
 filter can
 then be used to see if this is happening or not ?
 
 
 2) I would assume that Tomcat( being java) would always use 
 either utf8 or
 utf16 so making the necessity of setting a jvm tomcat 
 property unnecessary ?
 
 
 
 regards
 Ben
 
 
 
 -Ursprüngliche Nachricht-
 Von: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 31. August 2004 17:32
 An: [EMAIL PROTECTED]
 Betreff: RE: JSP/HTML Encoding
 
 
 Hm, tell a lie Ben...I've just checked our startup options 
 and we don't seem
 to do that anymore ... however if you were to do it ..
 add -Dfile.encoding=utf8
 
 rem Set extra parameters
 %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions
 -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOM
 E%;-Djava.endo
 rsed.dirs=%CATALINA_HOME%\common\endorsed;-Xrs;-Xms128m;-Xmx3
 84m;-Duser.dir
 =%CATALINA_HOME%;-Dfile.encoding=utf8 --StartMode jvm --StopMode jvm
 
 I think you just need to make sure you use utf8 at the UI. 
 Our databases are
 all Windows Cp1252 which also include the euro symbol.
 
 I also forgot to mention we put an explicit filter on all 
 inbound requests
 that set the inbound encoding to utf-8. Try adding this 
 filter to web.xml
 
   filter
   filter-nameSet Character Encoding/filter-name
 
 filter-classcom.qas.newmedia.common.filters.SetCharacterEnco
 dingFilter/fi
 lter-class
   init-param
   param-nameencoding/param-name
   param-valueUTF-8/param-value
   /init-param
   /filter
 
 with the code ...
 
 /*
  * $Header:
 /home/cvs/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/
filters/SetCha
 racterEncodingFilter.java,v 1.1 2001/07/24 00:26:55 craigmcc Exp $
  * $Revision: 1.1 $
  * $Date: 2001/07/24 00:26:55 $
  *
  * 
 
  *
  * The Apache Software License, Version 1.1
  *
  * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
  *notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above 
 copyright
  *notice, this list of conditions and the following disclaimer in
  *the documentation and/or other materials provided with the
  *distribution.
  *
  * 3. The end-user documentation included with the redistribution, if
  *any, must include the following acknowlegement:
  *   This product includes software developed by the
  *Apache Software Foundation (http://www.apache.org/).
  *Alternately, this acknowlegement may appear in the 
 software itself,
  *if and wherever such third-party acknowlegements 
 normally appear.
  *
  * 4. The names The Jakarta Project, Tomcat, and Apache Software
  *Foundation must not be used to endorse or promote 
 products derived
  *from this software without prior written permission. For written
  *permission, please contact [EMAIL PROTECTED]
  *
  * 5. Products derived from this software may not be called Apache
  *nor may Apache appear in their names without prior written
  *permission of the Apache Group.
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL

RE: Why request.getRemoteUser() returns NULL ?

2004-09-01 Thread Allistair Crossley
we do it by adding 

request.tomcatAuthentication=false

into tomcat/conf/jk2.properties

if you are using IIS then you also need to set Windows Integrated Authentication on 
your default website.

ADC

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 08:04
 To: [EMAIL PROTECTED]
 Subject: Why request.getRemoteUser() returns NULL ?
 
 
 i found this in jguru...
  
 Connector port=8009 protocol=AJP/1.3
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 redirectPort= 8443 tomcatAuthentication=false 
  
 it stated there that if i do this in server.xml, 
 request.getRemoteUser()
 will not equal to NULL.. ?
  
 i did, but request.getRemoteUser() returns NULL 
  
 please, anybody.. do you know how to get request.getRemoteUser() to
 work?
  
 i need it badly! please!
  
 aris
  
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: ++ Best practive ?? ++ (JSP--Servlet--Database) character encoding.

2004-09-01 Thread Allistair Crossley
We had to look at several areas:

1. JSP pageEncoding

%@ page contentType=text/html; charset=UTF-8 %

This ensures that the JSPs will display pretty much everything. Actually, our SQL 
Server database runs Latin1_General_CI_AS (which does include euro). 
2. Database Connection URL

jdbc:jtds:sqlserver://intratestgbr:1433/db_iQ;charset=Cp1252;TDS=7.0

We discovered that we _had_ to talk to the database using an encoding it understood. 
It turned out that Cp1252 was actually Latin1_General_CI_AS, so we make sure the 
character encoding is set on our database driver.

3. Request Character Encoding

Taken from http://weblogs.java.net/pub/wlg/1078

Submitting information via a HTML form. Most browsers don't appear to send back a 
charset in the request that corresponds to the encoding that was used to format the 
page. In this case, the request character encoding defaults to ISO-8859-1 meaning that 
there's potentially a mismatch between form data being sent (in UTF-8) and information 
retrieved from the request (in ISO-8859-1) using the getParameter() method on the 
HttpServletRequest class. To fix this, all you need to do is explicitly set the 
character encoding of the request before accessing data. 

request.setCharacterEncoding(UTF-8);

This is what the filter code I sent you does for all requests.

I hope this clears up your issue!

Alles gut, ich wuensche Dir Glueck!

ADC.


 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 09:37
 To: Allistair Crossley
 Cc: Tomcat User List
 Subject: How to pre-determine the browser request character encoding
 type
 
 
 Hi Alistair,
 
 I hope you find time to do your work more questions :)
 
 Why should the IE client which is definitely reading/parsing as
 ISO-8859-15(i can see this in the IE menu bar), then post to 
 the server
 converting the Euro to a questionmark . its rather stupid of 
 IE isn't it,
 its definitely reading as ISO-8859-15 then posts anyway as 
 ISO-8859-1 ?
 
 Could you explain in simple english, how the filter ensures 
 that the request
 is in utf8 encoded.


 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 09:37
 To: Tomcat User List
 Cc: Allistair Crossley
 Subject: ++ Best practive ?? ++ (JSP--Servlet--Database) character
 encoding.
 
 
 
 Dear list,
 
 We have a web-based jsp-servlet application performing 
 updates, deletes and
 inserts into an oracle database running with Tomcat 5. We 
 want to support
 both
 american, and european customer client locales, so we want to 
 use either
 ISO-8859-15 or utf-8. But we are having problems saving the 
 Euro symbol when
 using ISO-8859-15 encoding.
 
 I had previously assumed that because java works with unicode 
 as default,
 that all data entered in a HTML form would be saved therefore 
 as UTF-8 into
 the database. (i.e. as soon as a value is assigned to  the a 
 java dataobject
 e.g. string or int). I am beginning to think this not to be 
 case, and that
 all data is saved in the database based on the original 
 encoding as posted
 by the browser. Please can someone explain what is really 
 going on?? Do i
 need to have some code which, checks the browser encoding in the HTTP
 header, and then convert/parse accordingly to a chosen 
 standard. This will
 then avoid the situation that our database could end up 
 containing records
 in different character encoding systems, which I suspect is 
 what is now
 happening.
 
 In addition, how does TC deal with framsets containing many 
 html pages. Are
 they all treated individually (in theory allowing many 
 character encodings
 to be used in each HTML frame), or as one unit.
 
 I LOOK very much forward to any reply on this matter.
 
 Sincerely,
 
 
 Ben Bookey
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Why request.getRemoteUser() returns NULL ?

2004-09-01 Thread Allistair Crossley
you have

# request.tomcatAuthentication=false

which means that line is commented out and not used. Change it to

request.tomcatAuthentication=false

ADC

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 10:00
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 i added request.tomcatAuthentication=false inside 
 jk2.properties... and
 set
 windows integrated authentication on my website.
 
 but still... request.getRemoteUser() returns NULL... =|
 
 here's my jk2.properties file;
 
 ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
 ## WHEN YOU EDIT THE FILE.
 
 ## COMMENTS WILL BE _LOST_
 
 ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 
 # Set the desired handler list
 # handler.list=apr,request,channelJni
 #
 # Override the default port for the socketChannel
 # channelSocket.port=8019
 # Default: 
 # channelUnix.file=${jkHome}/work/jk2.socket
 # Just to check if the the config  is working
 # shm.file=${jkHome}/work/jk2.shm
 
 # In order to enable jni use any channelJni directive
 # channelJni.disabled = 0
 # And one of the following directives:
 
 # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 
 # If set to inprocess the mod_jk2 will Register natives itself
 # This will enable the starting of the Tomcat from mod_jk2
 # apr.jniModeSo=inprocess
 
 # request.tomcatAuthentication=false
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 4:21 PM
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 we do it by adding 
 
 request.tomcatAuthentication=false
 
 into tomcat/conf/jk2.properties
 
 if you are using IIS then you also need to set Windows Integrated
 Authentication on your default website.
 
 ADC
 
  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED]
  Sent: 01 September 2004 08:04
  To: [EMAIL PROTECTED]
  Subject: Why request.getRemoteUser() returns NULL ?
  
  
  i found this in jguru...
   
  Connector port=8009 protocol=AJP/1.3 
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  redirectPort= 8443 tomcatAuthentication=false
   
  it stated there that if i do this in server.xml,
  request.getRemoteUser()
  will not equal to NULL.. ?
   
  i did, but request.getRemoteUser() returns NULL
   
  please, anybody.. do you know how to get request.getRemoteUser() to 
  work?
   
  i need it badly! please!
   
  aris
   
   
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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: Why request.getRemoteUser() returns NULL ?

2004-09-01 Thread Allistair Crossley
try removing the


Allistair Crossley
New Media Group, QAS Ltd
Telephone: 020 7819 5343

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 10:26
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 i removed the comment, but still request.getRemoteUser() returns NULL.
 =|
 
 here's my server.xml;
 Server port=8005 shutdown=SHUTDOWN debug=0
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
 Listener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
  
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
   Service name=Catalina
   Connector port=8080 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
enableLookups=false redirectPort=8443
 acceptCount=100
debug=0 connectionTimeout=2 
disableUploadTimeout=true 
 tomcatAuthentication=false
 /
 
   Connector port=8009
enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 tomcatAuthentication=false /
 Engine name=Catalina defaultHost=localhost debug=0
 
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=catalina_log. suffix=.txt
   timestamp=true/
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  debug=0 resourceName=UserDatabase/
 
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 Context path=/eqms docBase=eqms debug=5 
 reloadable=true
 crossContext=true
   Logger 
 className=org.apache.catalina.logger.FileLogger
prefix=localhost_eqms_log. suffix=.txt
timestamp=true/
 
   Resource name=jdbc/EQMS_DS
auth=Container
type=javax.sql.DataSource/
 
   ResourceParams name=jdbc/EQMS_DS
   parameter
   namefactory/name
  
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
 
   !-- Maximum number of dB connections in pool. Make
 sure you
  configure your mysqld max_connections 
 large enough
 to handle
  all of your db connections. Set to 0 for 
 no limit.
  --
   parameter
   namemaxActive/name
   value100/value
   /parameter
 
   !-- Maximum number of idle dB connections to retain
 in pool.
  Set to 0 for no limit.
  --
   parameter
   namemaxIdle/name
   value30/value
   /parameter
 
   !-- Maximum time to wait for a dB connection to
 become available
  in ms, in this example 10 seconds. An 
 Exception is
 thrown if
  this timeout is exceeded.  Set to -1 to wait
 indefinitely.
  --
   parameter
   namemaxWait/name
   value1/value
   /parameter
 
   !-- MySQL dB username and password for dB 
 connections
   parameter
   nameusername/name
   valuejavauser/value
   /parameter
   parameter
   namepassword/name
   valuejavadude/value
   /parameter
   --
   !-- Class name for ACCESS JDBC driver --
   parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
   /parameter
 
   !-- The JDBC connection url for connecting to your
 MySQL dB.
  The autoReconnect=true argument to the url makes
 sure

RE: Why request.getRemoteUser() returns NULL ?

2004-09-01 Thread Allistair Crossley
 
   !-- The JDBC connection url for connecting to your
 MySQL dB.
  The autoReconnect=true argument to the url makes
 sure that the
  mm.mysql JDBC Driver will automatically reconnect
 if mysqld closed the
  connection.  mysqld by default closes idle
 connections after 8 hours.
  --
   parameter
   nameurl/name
   valuejdbc:odbc:EQMS_DS/value
/parameter
   /ResourceParams
 /Context
  
   /Host
 
 /Engine
 
   /Service
 
 /Server
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 5:09 PM
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 you have
 
 # request.tomcatAuthentication=false
 
 which means that line is commented out and not used. Change it to
 
 request.tomcatAuthentication=false
 
 ADC
 
  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED]
  Sent: 01 September 2004 10:00
  To: Tomcat Users List
  Subject: RE: Why request.getRemoteUser() returns NULL ?
  
  
  i added request.tomcatAuthentication=false inside
  jk2.properties... and
  set
  windows integrated authentication on my website.
  
  but still... request.getRemoteUser() returns NULL... =|
  
  here's my jk2.properties file;
  
  ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT 
 IS STOPED 
  ## WHEN YOU EDIT THE FILE.
  
  ## COMMENTS WILL BE _LOST_
  
  ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
  
  # Set the desired handler list
  # handler.list=apr,request,channelJni
  #
  # Override the default port for the socketChannel
  # channelSocket.port=8019
  # Default:
  # channelUnix.file=${jkHome}/work/jk2.socket
  # Just to check if the the config  is working
  # shm.file=${jkHome}/work/jk2.shm
  
  # In order to enable jni use any channelJni directive
  # channelJni.disabled = 0
  # And one of the following directives:
  
  # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
  
  # If set to inprocess the mod_jk2 will Register natives 
 itself # This 
  will enable the starting of the Tomcat from mod_jk2 # 
  apr.jniModeSo=inprocess
  
  # request.tomcatAuthentication=false
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 01, 2004 4:21 PM
  To: Tomcat Users List
  Subject: RE: Why request.getRemoteUser() returns NULL ?
  
  
  we do it by adding
  
  request.tomcatAuthentication=false
  
  into tomcat/conf/jk2.properties
  
  if you are using IIS then you also need to set Windows Integrated 
  Authentication on your default website.
  
  ADC
  
   -Original Message-
   From: Aris Javier [mailto:[EMAIL PROTECTED]
   Sent: 01 September 2004 08:04
   To: [EMAIL PROTECTED]
   Subject: Why request.getRemoteUser() returns NULL ?
   
   
   i found this in jguru...

   Connector port=8009 protocol=AJP/1.3
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   redirectPort= 8443 tomcatAuthentication=false

   it stated there that if i do this in server.xml,
   request.getRemoteUser()
   will not equal to NULL.. ?

   i did, but request.getRemoteUser() returns NULL

   please, anybody.. do you know how to get 
 request.getRemoteUser() to
   work?

   i need it badly! please!

   aris


   
  
  
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
  
  
  
 -
  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]
 
 

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



RE: Why request.getRemoteUser() returns NULL ?

2004-09-01 Thread Allistair Crossley
Hi,

Ah! tomcatAuthentication=false is configured in JK2 which is what I am using - JK2 
ISAPI filter for IIS ...

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

Perhaps this is a problem with your Jspisapi filter. Try changing to JK2.

You do not need JCIFS since IIS will automatically put the Windows authenticated user 
into the request. 

ADC.

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 11:47
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 im using tomcat5.0.25 and IIS via Jspisapi filter... 
 
 are you using jcifs in your authentication to get
 request.getRemoteUser() to work?
 
 i tried removing tomcatAuthentication=false in server.xml but to no
 avail. it
 still fails. =|
 
 by changing the jk2.properties file, i don't need to include jcifs
 filter in web.xml? 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 6:24 PM
 To: Tomcat Users List
 Subject: RE: Why request.getRemoteUser() returns NULL ?
 
 
 remove the tomcatAuthentication=false attributes from server.xml and
 use only jk2.properties? we do not have 
 tomcatAuthentication=false in
 the server.xml and it works that way. are you connecting via a
 webserver? are you using AJP?
 
 ADC
 
  -Original Message-
  From: Aris Javier [mailto:[EMAIL PROTECTED]
  Sent: 01 September 2004 10:26
  To: Tomcat Users List
  Subject: RE: Why request.getRemoteUser() returns NULL ?
  
  
  i removed the comment, but still request.getRemoteUser() 
 returns NULL.
 
  =|
  
  here's my server.xml;
  Server port=8005 shutdown=SHUTDOWN debug=0
Listener 
  className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener 
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
  Listener
  debug=0/
  
!-- Global JNDI resources --
GlobalNamingResources
  
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer 
  value=30/
  
  !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
  /Resource
  ResourceParams name=UserDatabase
parameter
  namefactory/name
   
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
/parameter
  /ResourceParams
  
/GlobalNamingResources
Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25 
  maxSpareThreads=75
 enableLookups=false redirectPort=8443 
  acceptCount=100
 debug=0 connectionTimeout=2 
 disableUploadTimeout=true
  tomcatAuthentication=false
  /
  
Connector port=8009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 tomcatAuthentication=false /
  Engine name=Catalina defaultHost=localhost debug=0
  
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt
timestamp=true/
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   debug=0 resourceName=UserDatabase/
  
Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
  
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log.
  suffix=.txt
  timestamp=true/
  
  Context path=/eqms docBase=eqms debug=5
  reloadable=true
  crossContext=true
Logger 
  className=org.apache.catalina.logger.FileLogger
 prefix=localhost_eqms_log. suffix=.txt
 timestamp=true/
  
Resource name=jdbc/EQMS_DS
 auth=Container
 type=javax.sql.DataSource/
  
ResourceParams name=jdbc/EQMS_DS
parameter
namefactory/name
   
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
  
!-- Maximum number of dB connections in 
 pool. Make 
  sure you
   configure your mysqld max_connections
  large enough
  to handle
   all of your db connections. Set to 0 for 
  no limit.
   --
parameter
namemaxActive/name
value100/value
/parameter
  
!-- Maximum number of idle dB 
 connections to retain
 
  in pool.
   Set

RE: Tomcat 5.5

2004-09-01 Thread Allistair Crossley
from the jakarta site..

The Tomcat Team announces the immediate availability of Apache Jakarta Tomcat 5.5.0. 

This is the first release of the new Tomcat 5.5 branch, and as such it is not yet 
stable. We expect significant additional changes, including possible changes to 
packaging, dependencies, and Tomcat internal APIs, before the first 5.5 stable release 
is made. 

Allistair

 -Original Message-
 From: Schalk Neethling [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2004 17:17
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5.5
 
 
 Hey there
 
 Is release 5.5 of Tomcat a stable - production release?
 
 -- 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 Global: www.volume4.com
 South-Africa: www.volume4.co.za
  
 This message contains information that is considered to be 
 sensitive or confidential and may not be forwarded or 
 disclosed to any other party without the permission of the 
 sender. If you received this message in error, please notify 
 me immediately so that I can correct and delete the original 
 email. Thank you.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: JSP/HTML Encoding

2004-08-31 Thread Allistair Crossley
we've got euro working using utf-8 page/char encoding. You can also use Cp1252 on 
Windows.

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 31 August 2004 16:00
 To: Tomcat User List
 Subject: JSP/HTML Encoding
 
 
 
 
 Dear List,
 
 I am having unexpected results when setting the encoding of my
 inputForm.jsp, to iso-8859-15 (changing from
 iso-8859-15 to iso-8859-1 will allow me to use the Euro 
 symbol and a few
 others). When i give a Euro symbol into a form input control, 
 the client
 ends up saving a question-mark instead, which is exactly what 
 happens then I
 leave the standard iso-8859-1 encoding(the jsp default). I am 
 using Tomcat 5
 and Internet Explorer 6.x which supports charset=iso-8859-15.
 
 Here is my jsp page header attributes.
 
 %@ page language=java errorPage=myErrorPage.jsp
 pageEncoding=iso-8859-15 contentType=text/html; 
 charset=iso-8859-15%
 
 If by setting the above jsp attributes, do I still need to 
 set (inside the
 htmlhead tag) like this ?
 
 meta http-equiv=Content-Type content=text/html; 
 charset=iso-8859-15/
 
 Another factor which might be affecting the encoding of my 
 input form, is
 that its a page within a frameset, and it could be that the 
 parent frame
 HTML page might be incorrectly pre-determining the encoding 
 of the whole
 frameset overriding the child frame settings.
 
 
 kind regards,
 Ben Bookey
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: JSP/HTML Encoding

2004-08-31 Thread Allistair Crossley
make sure also that you set file.encoding=utf8 in tomcat's startup options so that the 
jvm also operates in that mode.

ADC

 -Original Message-
 From: Ben Bookey [mailto:[EMAIL PROTECTED]
 Sent: 31 August 2004 16:00
 To: Tomcat User List
 Subject: JSP/HTML Encoding
 
 
 
 
 Dear List,
 
 I am having unexpected results when setting the encoding of my
 inputForm.jsp, to iso-8859-15 (changing from
 iso-8859-15 to iso-8859-1 will allow me to use the Euro 
 symbol and a few
 others). When i give a Euro symbol into a form input control, 
 the client
 ends up saving a question-mark instead, which is exactly what 
 happens then I
 leave the standard iso-8859-1 encoding(the jsp default). I am 
 using Tomcat 5
 and Internet Explorer 6.x which supports charset=iso-8859-15.
 
 Here is my jsp page header attributes.
 
 %@ page language=java errorPage=myErrorPage.jsp
 pageEncoding=iso-8859-15 contentType=text/html; 
 charset=iso-8859-15%
 
 If by setting the above jsp attributes, do I still need to 
 set (inside the
 htmlhead tag) like this ?
 
 meta http-equiv=Content-Type content=text/html; 
 charset=iso-8859-15/
 
 Another factor which might be affecting the encoding of my 
 input form, is
 that its a page within a frameset, and it could be that the 
 parent frame
 HTML page might be incorrectly pre-determining the encoding 
 of the whole
 frameset overriding the child frame settings.
 
 
 kind regards,
 Ben Bookey
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat 5 JK2 IIS 5

2004-08-25 Thread Allistair Crossley
OK, I have now done a TC5.0.27-JK2-IIS5 config about 5 times in the past 2 weeks on 
our developer machines so it does work ;) Here are my files:

tomcat_home/conf/jk2.properties
=

only contains the following lines, the rest is commented out. The following lines 
allow IIS to send Windows Integrated Security in the request to Tomcat. The second I 
am not sure about but it used to fix a known bug.

request.tomcatAuthentication=false
request.registerRequests=false

tomcat_home/conf/workers2.properties
==

You do have to have context and worker for URI mappings.

[logger]
level=INFO

[logger.file:0]
level=INFO
file=c:\\jakarta-tomcat-5.0.25\\logs\\jk2.log
 
[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0 

[shm]
file=c:\\jakarta-tomcat-5.0.25\\work\\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/*.do]
info=do
context=/
worker=ajp13:localhost:8009

[uri:/*.jsp]
info=jsp
context=/

Registry


I notice the name of your redirector is not the name of how it is distributed by the 
way.

HKEY_LOCAL_MACHINE
  + SOFTWARE
+ Apache Software Foundation
  + Jakarta Isapi Redirector
+ 2.0
  extensionUri = /jakarta/isapi_redirector2.dll
  logLevel = info
  serverRoot = c:\jakarta-tomcat-5.0.27
  workersFile = c:\jakarta-tomcat-5.0.27\conf\workers2.properties

IIS
===

- Ensure you have created a virtual directory and pointed it at the 
isapi_redirector2.dll folder, call it jakarta and make sure execute permission is set.

- Add the ISAPI filter called jakarta and browse to the dll

- ALWAYS make sure you totally restart IIS after a change in the configuration. And I 
don't mean the stop/play buttons, I mean click the server and do Restart IIS.

Hope this helps

Allistair.

 -Original Message-
 From: William L. Thomson Jr. [mailto:[EMAIL PROTECTED]
 Sent: 24 August 2004 21:14
 To: tomcat-user
 Subject: Re: Tomcat 5 JK2 IIS 5
 
 
 Also in the workers2.properties file I have seen uri entries 
 with ether
 worker or context. Neither both.
 
 
 [uri:/*.jsp]
 Context=/
 
 [uri:/servlet/*]
 Context=/
 
 or
 
 [uri:/*.jsp]
 worker=ajp13:localhost:8009
 
 [uri:/servlet/*]
 worker=ajp13:localhost:8009
 
 
 The log I posted makes me seem to think it's a context issue. But
 everything works perfectly in Tomcat via it's web server 8080. If
 contexts or something else as wrong it should be wrong there as well?
 
 Do you need to specify contexts or a worker for each uri?
 
 -- 
 Sincerely,
 William L. Thomson Jr.
 Support Group
 Obsidian-Studios, Inc.
 http://www.obsidian-studios.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: java and tomcat books

2004-08-25 Thread Allistair Crossley
Professional Tomcat 5 by Wrox Publishing (www.wrox.com) I got it last night and it's 
really good.

Allistair Crossley

 -Original Message-
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 Sent: 25 August 2004 14:27
 To: [EMAIL PROTECTED]
 Subject: java and tomcat books
 
 
 looking for some information on Tomcat administration and some Java 
 programming books, what would people suggest.
 
 _
 MSN® Calendar keeps you organized and takes the effort out of 
 scheduling 
 get-togethers. 
 http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994;
 DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
   Start enjoying all the benefits of MSN® Premium right now 
 and get the 
 first two months FREE*.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: java and tomcat books

2004-08-25 Thread Allistair Crossley
Not really, I think TC 5 changed a whole lot from 4. Go with the O'Reilly one.

Allistair Crossley
New Media Group, QAS Ltd
Telephone: 020 7819 5343

 -Original Message-
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 Sent: 25 August 2004 14:59
 To: [EMAIL PROTECTED]
 Subject: RE: java and tomcat books
 
 
 If the Tomcat version I am on is 4.x will that still help?
 
 
 From: Allistair Crossley [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: java and tomcat books
 Date: Wed, 25 Aug 2004 14:38:43 +0100
 
 Professional Tomcat 5 by Wrox Publishing (www.wrox.com) I 
 got it last night 
 and it's really good.
 
 Allistair Crossley
 
   -Original Message-
   From: Didier McGillis [mailto:[EMAIL PROTECTED]
   Sent: 25 August 2004 14:27
   To: [EMAIL PROTECTED]
   Subject: java and tomcat books
  
  
   looking for some information on Tomcat administration and 
 some Java
   programming books, what would people suggest.
  
   _
   MSN® Calendar keeps you organized and takes the effort out of
   scheduling
   get-togethers.
   http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994;
   DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines
 Start enjoying all the benefits of MSN® Premium right now
   and get the
   first two months FREE*.
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Take advantage of powerful junk e-mail filters built on 
 patented Microsoft® 
 SmartScreen Technology. 
 http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994;
 DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
   Start enjoying all the benefits of MSN® Premium right now 
 and get the 
 first two months FREE*.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: [OFF-TOPIC] RE: Is there a way to set the size of ResultSet from MS SQL Serve r

2004-08-20 Thread Allistair Crossley
jTDS is the fastest driver for SQL Server. We use it for some heavy traffic and found 
it faster than the MS driver. 

Allistair Crossley

 -Original Message-
 From: Brad McEvoy [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2004 01:17
 To: 'Tomcat Users List'
 Subject: [OFF-TOPIC] RE: Is there a way to set the size of ResultSet
 from MS SQL Serve r
 
 
 
 thats true, but now i think about it, why would anyone use 
 the JDBC driver
 to connect to SQL Server? The JDBC driver is the worst one 
 i've used and the
 MS native driver is probably the best.
 
 Out of curiosity I profiled the difference setFetchSize 
 makes. Set to 100 on
 Oracle it improves the time to iterate over 1000 records by 
 5-10% compared
 to not using it at all, and actually slows it down by that 
 much if a large
 fetch size (1000) is set. This surprised me because i first 
 started using
 this on a project with sql server with the native driver and 
 it made a huge
 improvement
 
 -Original Message-
 From: John Villar [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 19 August 2004 10:26 PM
 To: Tomcat Users List
 Subject: Re: Is there a way to set the size of ResultSet from MS SQL
 Serve r
 
 
 However, that would work only if the driver you're using uses the 
 FetchSize as a hint for caching records. In JDBC caching is primarily 
 the responsability of the Driver.
 
 Brad McEvoy escribió:
 
 something like this should do the trick
 
 ...
 PreparedStatement pstmt =
 con.prepareStatement(sql,ResultSet.TYPE_FORWARD_ONLY,ResultSe
 t.CONCUR_READ_
 O
 NLY);
 pstmt.setFetchSize(100);
 ResultSet rs = pstmt.executeQuery();
 ...
 
 
 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 19 August 2004 2:04 PM
 To: Tomcat Users List
 Subject: Re: Is there a way to set the size of ResultSet from MS SQL
 Server
 
 
 On Wed, Aug 18, 2004 at 04:50:32PM -0700, Daxin Zuo wrote:
 : I use JDBC in JSP/Java with MS SQL Server.
 : Is there a way to set the Fetch Size (set to 10, 100,..) 
 of ResultSet (as
 : ADO CacheSize  in ASP)?
 
 This sounds like a configuration specific to your database, 
 either with
 a custom SQL statement (a la HSQLDB) or with a JDBC URL param...
 
 Unless you mean you want to limit the results using the clause
 LIMIT x in your SQL.
 
 -QM
 
   
 
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: application deploys twice

2004-08-20 Thread Allistair Crossley
Do you not need an explicit declaration for a Context so that can you define JNDI 
resources though? Are you saying autoDeploy cannot work if you have a webapp that uses 
JNDI resources in a context XML file?

Sorry if I am interpreting this wrong :) 

Allistair Crossley

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2004 14:14
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: application deploys twice
 
 
 
 Hi,
 The usual reason for this is a server with autoDeploy on (which is the
 default) and also an explicit declaration for the Context.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Jignesh Patel [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 20, 2004 5:17 PM
 To: Tomcat Users List
 Subject: application deploys twice
 
 Hi All,
 We are using tomcat5.0.19 and struts1.1.
 
 Whenever we deploys our application it deploys twice.
 We couldn't able to identify the reason, why this is happening.
 
 Can anybody give insight to us.
 
 We are not deploying war file as well as we are not 
 deploying in server
 we are setting context path in server.xml.
 
 -Jignesh
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Performance implications of running direct from WAR?

2004-08-20 Thread Allistair Crossley
Hi Guys,

Are there any performance implications of running straight from a WAR for Tomcat? Does 
it uncompress the WAR each time .. how is this handled?

Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Performance implications of running direct from WAR?

2004-08-20 Thread Allistair Crossley
So are you saying Host unpackWAR=false ..  still means the files are deployed 
somewhere?

Allistair Crossley

 -Original Message-
 From: John Villar [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2004 15:40
 To: Tomcat Users List
 Subject: Re: Performance implications of running direct from WAR?
 
 
 The only performance hit is the first thime when the war is 
 deployed on 
 the context path, from there on your app runs from the 
 deployed files.
 
 Allistair Crossley escribió:
 
 Hi Guys,
 
 Are there any performance implications of running straight 
 from a WAR for Tomcat? Does it uncompress the WAR each time 
 .. how is this handled?
 
 Cheers, Allistair
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Performance implications of running direct from WAR?

2004-08-20 Thread Allistair Crossley
I'm struggling with the TC manager app/docs etc... and thought if just one file sat 
there I could deloy a new one easily and quickly. My Ant DIST target generates me a 
WAR. In an ideal world I would like to be able to either use a web UI to upload, or 
drop this WAR on top of the existing one in webapps and have Tomcat undeploy the old 
and deploy the new. I am just not getting how to do this. Everytime I deploy I stop 
Tomcat, delete the old war and expanded files and put the new WAR in webapps and 
restart tomcat where it then expands all the files. of course, it still does not work, 
and I have to restart tomcat to get it to to actually start seeing the files as it 
were to serve requests.

Allistair Crossley

 -Original Message-
 From: John Villar [mailto:[EMAIL PROTECTED]
 Sent: 20 August 2004 15:48
 To: Tomcat Users List
 Subject: Re: Performance implications of running direct from WAR?
 
 
 
 So are you saying Host unpackWAR=false ..  still means 
 the files are deployed somewhere?
   
 
 in that case it probably represents an unnecesary performance hit, 
 because what i said before is for the default tomcat configuration, 
 which i assumed was yours why would you want tomcat to not unpack 
 the war files?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Odd characters inserted in response after JSPC

2004-08-19 Thread Allistair Crossley
Thanks. I copied the code in the JSP over to the homepage JSP and resaved and it 
works. Must have been the JSP file encoding like you say.

Allistair Crossley
New Media Group, QAS Ltd
Telephone: 020 7819 5343

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2004 11:53
 To: Tomcat Users List
 Subject: Re: Odd characters inserted in response after JSPC
 
 
 I had the same problem working with a Unicode file. I don't 
 know what my 
 editor was doing - I just used vi and killed the character 
 and all worked well.
 
 -Tim
 
 Allistair Crossley wrote:
 
  Hi Guys
  
  I have compiled all my JSPs with JSPC. I have found that 3 
 odd characters occur at the very start of most of my my 
 responses which use a certain template JSP ...
  
   
  
  I use 2 layouts, one for home and one for other pages. This 
 problem is not happening on the home page although both that 
 and the page layout use the same JSP code
  
  The home class code shows the following:
  
  _jspx_out = out;
  out.write(\r\n\r\n\r\n\r\n\r\n!DOCTYPE html 
 PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ 
 \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r
 \n\r\nhtml 
 xmlns=\http://www.w3.org/1999/xhtml\;\r\n\r\n\thead\r\n\t\
 ttitleiQ : The QAS Intranet/title\r\n\t\tlink 
 rel=\stylesheet\ href=\/resources/skins/);
  
  Whilst the page class code has 3 output numbers \357\273\277 !?:
  
  _jspx_out = out;
  
 out.write(\357\273\277\r\n\r\n\r\n\r\n\r\n!DOCTYPE html 
 PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ 
 \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r
 \n\r\nhtml 
 xmlns=\http://www.w3.org/1999/xhtml\;\r\n\thead 
 \r\n\t\ttitleiQ : );
  
  The JSP top sections in both home and page JSPs are
  
  %@ page contentType=text/html; charset=UTF-8 %
  %@ page language=java errorPage=/views/error/error.jsp %
  %@ taglib uri=/WEB-INF/iq.tld prefix=iq %
  %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
  
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 
 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
 Any ideas why JSPC is adding these?
 

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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: How to submit new Tomcat documentation updates.

2004-08-19 Thread Allistair Crossley
Got em. Thanks Tim!

Allistair Crossley

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2004 11:47
 To: Tomcat Users List
 Subject: Re: How to submit new Tomcat documentation updates.
 
 
 Look at the xdocs directories. All the docs are xml files. 
 Then they get 
 passed through an xslt stylesheet.
 
 -Tim
 
 Allistair Crossley wrote:
 
  Hi Guys
  
  So far, I have been able to checkout from CVS the various 
 modules for Tomcat to look at the source code. I cannot find 
 a clear step-by-step for how one would get the latest 
 documentation, e.g Jasper HowTo, and then submit changes to it.
  
  If anyone has the time to detail a few steps (you can 
 assume I can use CVS) on what to do, as I would like to 
 submit a documentation update
  
  Cheers, AC
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



[OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
Hey,

I am putting a page caching stategy into place per user session. However, there are 
times when I need to refresh all the caches for all users. For example, let's say 5 
users have a cached version of page 5. An external event causes page 5 to invalidate. 
I need an effective strategy to flush all sessions with page 5 cached.

Thoughts appreciated, Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
I should have explained some more I guess. I am currently using OSCACHE at the UI 
layer to cached search results strings per page ID in application scope. It is very 
effective indeed. The search results come from a content management system. When users 
interact with the CMS, events are fired to a listener and I can determine which page 
in the cache needs updating.

However I realised this morning that search results per row are security contolled. 
Therefore user A's search results for page 5 are not necessarily the same as user B's. 

Hence the need for user-level caching. I used my own caching Hashes before but OSCACHE 
is very powerful. OSCACHE's cache JSP tag also provides only application and session 
scope, therefore I was thinking session caching must be the only other solution for my 
problem. But I need to be able to programmatically flush many user sessions. Perhaps I 
need to store the caches created per session somewhere so I can grab them.

Allistair Crossley

 -Original Message-
 From: Michiel Toneman [mailto:[EMAIL PROTECTED]
 Sent: 19 August 2004 09:57
 To: Tomcat Users List
 Subject: Re: [OFFTOPIC] Removing attribute from all HttpSessions
 
 
 Bad caching strategy.
 
 Try using a singleton cache backed by a HashMap. Have an invalidation 
 method that takes a pagekey as argument. Create a simple get(pagekey) 
 that checks for invalidation and refills the cache entry when 
 necessary.
 
 No need to go iterating over sessions...
 
 Just my $0.02 :-)
 
 Michiel
 
 Allistair Crossley wrote:
 
 Hey,
 
 I am putting a page caching stategy into place per user 
 session. However, there are times when I need to refresh all 
 the caches for all users. For example, let's say 5 users have 
 a cached version of page 5. An external event causes page 5 
 to invalidate. I need an effective strategy to flush all 
 sessions with page 5 cached.
 
 Thoughts appreciated, Allistair.
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 -- 
 
 Michiel Toneman  Software Engineer   Bibit Global Payment Services
 Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
 Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
Thanks Tim. Done that ... any reason why sessionCreated is always called twice?

2004-08-19 12:31:02,920 - DEBUG (com.qas.newmedia.intranet.iq.IQSessionListener:31) - 
new session: 0E3C9F21B145FF21903D8D35E540217F
2004-08-19 12:31:02,920 - DEBUG (com.qas.newmedia.intranet.iq.IQSessionListener:31) - 
new session: 0E3C9F21B145FF21903D8D35E540217F

Also, sessionDestroyed I am guessing is not actually called when a user closes their 
browser but on session timeout after inactivity correct?

Allistair Crossley

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 19 August 2004 11:48
 To: Tomcat Users List
 Subject: Re: [OFFTOPIC] Removing attribute from all HttpSessions
 
 
 Look at the SessionListeners to register all the sessions 
 that match your 
 criteria into a map. Then whatever is listening on your 
 invalidation strategy 
 can update the map. (Actually - the sessions in the map)
 
 -Tim
 
 Allistair Crossley wrote:
 
  Hey,
  
  I am putting a page caching stategy into place per user 
 session. However, there are times when I need to refresh all 
 the caches for all users. For example, let's say 5 users have 
 a cached version of page 5. An external event causes page 5 
 to invalidate. I need an effective strategy to flush all 
 sessions with page 5 cached.
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Allistair Crossley
hi,

does anyone have any idea why each request to my application goes through twice each 
time? I am basing this on my log4j logs which show each logging entry twice for 
requests

e.g here is 1 click to the web app

2004-08-19 15:46:06,066 - DEBUG (iq.actions.LoadPageAction:136) - cached 
cache_sr_5_pg_1
2004-08-19 15:46:06,066 - DEBUG (iq.actions.LoadPageAction:136) - cached 
cache_sr_5_pg_1
2004-08-19 15:46:07,237 - DEBUG (iq.actions.LoadPageAction:136) - cached 
cache_sr_100_pg_1
2004-08-19 15:46:07,237 - DEBUG (iq.actions.LoadPageAction:136) - cached 
cache_sr_100_pg_1

cheers


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



How to submit new Tomcat documentation updates.

2004-08-18 Thread Allistair Crossley
Hi Guys

So far, I have been able to checkout from CVS the various modules for Tomcat to look 
at the source code. I cannot find a clear step-by-step for how one would get the 
latest documentation, e.g Jasper HowTo, and then submit changes to it.

If anyone has the time to detail a few steps (you can assume I can use CVS) on what to 
do, as I would like to submit a documentation update

Cheers, AC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Odd characters inserted in response after JSPC

2004-08-18 Thread Allistair Crossley
Hi Guys

I have compiled all my JSPs with JSPC. I have found that 3 odd characters occur at the 
very start of most of my my responses which use a certain template JSP ...

 

I use 2 layouts, one for home and one for other pages. This problem is not happening 
on the home page although both that and the page layout use the same JSP code

The home class code shows the following:

_jspx_out = out;
out.write(\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 
Transitional//EN\ 
\http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml 
xmlns=\http://www.w3.org/1999/xhtml\;\r\n\r\n\thead\r\n\t\ttitleiQ : The QAS 
Intranet/title\r\n\t\tlink rel=\stylesheet\ href=\/resources/skins/);

Whilst the page class code has 3 output numbers \357\273\277 !?:

_jspx_out = out;
out.write(\357\273\277\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD 
XHTML 1.0 Transitional//EN\ 
\http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml 
xmlns=\http://www.w3.org/1999/xhtml\;\r\n\thead \r\n\t\ttitleiQ : );

The JSP top sections in both home and page JSPs are

%@ page contentType=text/html; charset=UTF-8 %
%@ page language=java errorPage=/views/error/error.jsp %
%@ taglib uri=/WEB-INF/iq.tld prefix=iq %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

Any ideas why JSPC is adding these?

Cheers, Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Odd characters inserted in response after JSPC : more info

2004-08-18 Thread Allistair Crossley
OK, I just totally wiped the whole page jsp file and then ran JSPC and it generated 12 
errors on a blank file complaining about unclosed string literals. Looking at the JAVA 
file JSPC generated for the blank JSP you can see it is still trying to output 3 chars 
but  don't know why.

package org.apache.jsp.layout;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class page_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {

JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;


try {
  _jspxFactory = JspFactory.getDefaultFactory();
  response.setContentType(text/html);
  pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
  _jspx_page_context = pageContext;
  application = pageContext.getServletContext();
  config = pageContext.getServletConfig();
  session = pageContext.getSession();
  out = pageContext.getOut();
  _jspx_out = out;

  out.write('ï');
  out.write('»');
  out.write('¿');
} catch (Throwable t) {
  if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null  out.getBufferSize() != 0)
  out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
  }
} finally {
  if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
  }
}


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: can't use EL c:out value=${obj.names}....

2004-08-16 Thread Allistair Crossley
You shouldn't even need to use c:out to output values either. When it works, you can 
just use ${obj.attr} directly in your HTML/JSP. The web XML is the likely cause.

 -Original Message-
 From: Andrew Watters [mailto:[EMAIL PROTECTED]
 Sent: 16 August 2004 13:12
 To: Tomcat Users List
 Subject: Re: can't use EL c:out value=${obj.names}
 
 
 Hi Tobias
 
 I've previously had the same problem. The cause, in my case, 
 was that I 
 was declaring servlet spec 2.3 in web.xml. I changed this to 
 2.4 and it 
 resolved the problem. The declaration I have is
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 
 Hope that helps
 
 Regards
 Andrew
 
 
 Tobias Eriksson wrote:
 
 Hi
 
  For some reason I'm having difficulties getting something 
 as simple as
 this to work, see below.
 
  The result I get is this, see below. It seems to me that the
 VALUE-attribute is not evaluated. I've downloaded the 
 JSTL-package from
 apache's homepage and I've included the tld and jar files in 
 the WEB-INF
 dir.
 
  I am not sure what to try next, so any pointers would be 
 appreciated.
 
 Regards
 
  Tobias
 
  
 
 ***
 
  
 
 This is my JSP page. 
 77 
 ${ttt.val} 
 Name: ${ttt.val}
 Parameter values passed to this page for each parameter: 
 
 ${current.key} 
 
 ${aVal} 
 
  
 
  
 
  
 
 **
 
  
 
  
 
 %@ page language=java import=java.lang.*,java.util.* %
 
 %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
 
  
 
 html
 
   head
 
 base href=%=basePath%
 
 
 
 titleMy JSP Tag-test page/title
 
 
 
   /head
 
  
 
   body
 
   
 
 This is my JSP page. br
 
 
 
 jsp:useBean id=ttt class=com.comopt.support.beans.TestBean
 scope=request /
 
 jsp:getProperty name=ttt property=val /
 
 BR
 
 c:out value=${ttt.val} /
 
 BR
 
 c:forEach items=${ttt.Names} var=aname
 
Name: c:out value=${ttt.val} /BR
 
 /c:forEach
 
  
 
  
 
 bParameter values passed to this page for each parameter: /b
 
 table border=2
 
 c:forEach var=current items=${param}
 
 tr
 
 td
 
 bc:out value=${current.key} //b
 
 /td
 
 c:forEach var=aVal items=${paramValues[current.key]}
 
 td
 
 c:out value=${aVal} /
 
 /td
 
 /c:forEach
 
 /tr
 
 /c:forEach
 
 /table
 
  
 
  
 
   /body
 
 /html
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Debugging Tomcat

2004-08-12 Thread Allistair Crossley
Hi Guys,

I have two questions relating to debugging TC tht I hope you can help with;

1) Everywhere in the documentation on Tomcat and in the comments for server.xml, when 
the debug attribute is discussed, it will always say a higher number means more 
output. I find this statement reasonably confusing. It raises quite a lot of 
questions about what the maximum number is and what that translates to in terms of 
logging output.

2) Looking in the TC source last night I found that the kind of logging I would like 
to be output is always encapsulated with a if (log.isLogEnabled()) statement. I would 
like to know which log this translates to, and how to enable it.

I have tried setting ALL debug attributes within server.xml to 4 but this does not 
yield the logging statements I am looking for from (2).

Help appreciated,

Allistair Crossley

 -Original Message-
 From: César Martínez Cabanas [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2004 07:33
 To: Tomcat Users List
 Subject: RE: Apache 1.3.29 + Tomcat 5 ...IMPOSIBLE!!!
 
 
 But the real problem is the versions no the combination 
 between tomcat 
 a apache
 I install  tomcat 4 and apache 1.3.x - and tomcat 3... and 
 tomcat 4 and 
 apache 2...
 
 but tomcat 5 - and apache 1.3.29.
 I had a problem with ajp13Connector appear in the tomcat 
 5's API 
 but no in his jar files.WHY?
 
 
 
 
 At 09.05 11/8/04, you wrote:
 Hola,
 Perhaps one of the links here would be useful?
 http://wiki.apache.org/jakarta-tomcat/Tomcat/Links
 
 
 Yoav Shapira
 Millennium Research Informatics
 
 
  -Original Message-
  From: César Martínez Cabanas [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 11, 2004 8:59 AM
  To: [EMAIL PROTECTED]
  Subject: Apache 1.3.29 + Tomcat 5 ...IMPOSIBLE!!!
  
   Hi list
  
   I have been fighting with tomcat twice a days 
 without success.
   Can you help me??
   Why doesn´t ajp13Connector exist in tomcat 5
   How can i connect Apache 1.3.29 and Tomcat 5 in debian???
  
   Do you know the solution
  
   thanks
  
  César Martínez Cabanas
  
  Telematics Laboratory
  Center for Innovation and Services
  (CIS Galicia)
  Telf.:  +34 981 33 71 33 / +34 981 33 71 25
  Fax: +34 981 33 71 71
  
  
  
 -
  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]
 
 César Martínez Cabanas
 
 Lab. de Telemática
 Centro de Innovación y Servicios de Galicia
 (CIS Galicia)
 Telf.: 981 33 71 25 / 981 33 71 33
 Fax: 981 33 71 71
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Debugging Tomcat

2004-08-12 Thread Allistair Crossley
Hi,

Yes, the Log that is created internally is a commons-logging Log acquired from 
commons-logging LogFactory. However, the isLogEnabled() flag must be set somewhere in 
a Tomcat configuration file no? I'm not aware of any logging configuration file for 
commons-logging within the Tomcat dist - I only know of the debug attributes on the 
various elements of server.xml but none of those has yielded the logging statements 
within the TC code.

I am not sure which unrelated message you are referring to but if you clarify I'd be 
happy to explain!

Allistair

 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2004 13:26
 To: Tomcat Users List
 Subject: Re: Debugging Tomcat
 
 
 On Thu, Aug 12, 2004 at 08:58:21AM +0100, Allistair Crossley wrote:
 : 1) Everywhere in the documentation on Tomcat and in the comments for
 : server.xml, when the debug attribute is discussed, it will 
 always say a
 : higher number means more output. I find this statement 
 reasonably confusing.
 : It raises quite a lot of questions about what the maximum 
 number is and what
 : that translates to in terms of logging output.
 
 I can tell you what it means: not a whole lot, at least not 
 these days.
 
 I understand most Tomcat logging is done via commons-logging so you'd
 tune that config for output instead.
 
 
 : 2) Looking in the TC source last night I found that the 
 kind of logging I
 : would like to be output is always encapsulated with a if 
 (log.isLogEnabled())
 : statement. I would like to know which log this translates 
 to, and how to
 : enable it.
 
 What type of variable is log? ;)
 
 btw, what was with the completely unrelated message at the bottom of
 your last post?
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Debugging Tomcat

2004-08-12 Thread Allistair Crossley
Hm,

Sorry that this is kinda straying into log4j territory now. Adding the following to my 
web application log4j.properties

log4j.logger.org.apache.catalina=debug, R

starts to yield _some_ logging, e.g

2004-08-12 15:23:34,283 - DEBUG (org.apache.catalina.session.StandardManager:653) - 
Force random number initialization completed
2004-08-12 15:23:34,283 - DEBUG (org.apache.catalina.session.StandardManager:653) - 
Force random number initialization completed
2004-08-12 15:23:34,283 - DEBUG (org.apache.catalina.session.StandardManager:359) - 
Start: Loading persisted sessions
2004-08-12 15:23:34,283 - DEBUG (org.apache.catalina.session.StandardManager:359) - 
Start: Loading persisted sessions

Although why there is 2 of everything I have no idea.

What I am really interested in is the logging from 
log4j.logger.org.apache.catalina.load so I can see what class is being loaded when 
ThreadDeath occurs. I'm going to try and look at this problem if I can but this is my 
first ever look at Tomcat source so I am hopeful but not optimistic ;)

I tried adding a log4j.properties and log4j jar to commons/lib as the FAQ suggests to 
get TC logging but no new log is created and no logging of the load package happens 
(boo).

Do TC developers not have the logging switched on when developing?

Allistair Crossley
New Media Group, QAS Ltd
Telephone: 020 7819 5343

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 12 August 2004 13:43
 To: Tomcat Users List
 Subject: RE: Debugging Tomcat
 
 
 Hi,
 
 1) Everywhere in the documentation on Tomcat and in the comments for
 server.xml, when the debug attribute is discussed, it will always say
 a
 higher number means more output. I find this statement reasonably
 confusing. It raises quite a lot of questions about what the maximum
 number
 is and what that translates to in terms of logging output.
 
 The number is from 0-99, 0 meaning no logging and being the 
 default, 99
 meaning all the logging the component can generate *via that 
 mechanism*.
 Which brings us to our next point, that most Tomcat logging 
 is now done
 via commons-logging.  To configure Tomcat's logging via 
 commons-logging,
 see 
 http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.
 
 (log.isLogEnabled()) statement. I would like to know which log this
 translates to, and how to enable it.
 
 Those are from commons-logging.  The log variable is an instance of
 org.apache.commons.logging.Log corresponding to the class' logger.
 
 I have tried setting ALL debug attributes within server.xml to 4 but
 this
 does not yield the logging statements I am looking for from (2).
 
 Read the above FAQ entry, then set org.apache.catalian = DEBUG in the
 logging configuration file, and set debug=99 for all components in
 server.xml that support that attribute.  That's the most 
 logging you're
 going to get.
 
 Yoav Shapira
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: 5.0.19 Memory Leak?

2004-08-11 Thread Allistair Crossley
yep, it was adding 

request.registerRequests=false

to your CATALINA_HOME/conf/jk2.properties file

Allistair

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 11 August 2004 13:43
 To: Tomcat Users List
 Subject: RE: 5.0.19 Memory Leak?
 
 
 Hola,
 The recommendation is pretty much always to use the latest stable
 release.  There are rarely (but occasionally, they do exist) valid
 reasons to stay back [given time and deployment constraints 
 of course].
 
 Specifically with 5.0.19, there was something with the jmx registering
 requests that could be turned off in the connector configuration to
 alleviate the memory leak, which is significant.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Sunitha Kumar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 11, 2004 1:49 AM
 To: Tomcat Users List
 Subject: 5.0.19 Memory Leak?
 
 Hey folks:
 There was a thread which mentioned that there have been 
 memory leaks in
 5.0.19. Is this a known issue? If so, is the recommendation 
 to move to
 5.0.25?
 thanks,
 -sunitha
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



ThreadDeath bug 27371

2004-08-11 Thread Allistair Crossley
Hey Yoav,

Did you see the latest update to the ThreadDeath bug @ 
http://issues.apache.org/bugzilla/show_bug.cgi?id=27371

One of our developers here is getting this error on his local TC 5.0.25 every single 
compile without fail, and the spooky thing is - this is a brand new TC image from my 
local TC and I never get the problem. The other developer intermittently gets it. And 
we are all running the exact same PCs.

So .. if you need a use case, we can do it here for you although cannot explain what 
is different about his setup.

Cheers, Allistair


 -Original Message-
 From: Alex [mailto:[EMAIL PROTECTED]
 Sent: 10 August 2004 10:58
 To: Tomcat Users List
 Subject: Re: isapi_redirector2.dll - IIS redirecting to 
 multiple Tomcat
 instances
 
 
 
 Matt, incase no one has helped out -- You don't need to use the lb
 stuff if you don't want.  Enjoy.
 
 [shm:]
 info=Shared memory file. Required for multiprocess servers
 file=E:\\Apache\\Tomcat5\\work\\jk2.shm
 size=1048576
 
 [lb:lb]
 info=Default load balancer 0.
 sticky_session=1
 
 [lb:lb1]
 info=Default load balancer 1.
 sticky_session=1
 
 [channel.socket:spprod1]
 info=Ajp13 forwarding over socket - spprod1
 port=8009
 host=10.99.116.1
 lb_factor=100
 tomcatId=10.99.116.1:8009
 group=lb
 type=ajp13
 
 [channel.socket:spprod2]
 info=Ajp13 forwarding over socket - spprod2
 port=8009
 host=10.99.116.2
 lb_factor=100
 tomcatId=10.99.116.2:8009
 group=lb1
 type=ajp13
 
 [uri:/test1/*]
 info=hi mom
 worker=lb:lb
 context=/somecontext
 
 [uri:/test2/*]
 info=hi mom
 worker=lb:lb1
 context=/someothercontext
 
 
 
 On Tue, 3 Aug 2004, Matt Krevs wrote:
 
  Date: Tue, 3 Aug 2004 15:32:30 +1000
  From: Matt Krevs [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: isapi_redirector2.dll - IIS redirecting to multiple Tomcat
  instances
 
  Hi all,
 
  I'm using isapi_redirector2.dll to redirect webapp requests 
 on my IIS
  server to tomcat.
 
  Is it possible to make this single redirector redirect requests to
  different
  instances of tomcat (depending on uri)?
 
  For example, a request to IIS for /app1/ should go to 
 localhost:8080
  and a request for /app2/ should go to localhost:8081.
 
  I'm using Windows, so if this is possible, what would my registry
  entries look
  like (ie: serverRoot key), and what would my 
 workers2.properties look
  like?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: ThreadDeath bug 27371

2004-08-11 Thread Allistair Crossley
When you say informational do you mean that you are under the impression it is just a 
warning and that it does not crash tomcat? Because, tomcat totally bombs out and hangs 
/ does not serve any requests after this error occurs despite the fact that the stack 
trace says tomcat won't crash.

Cheers!

Allistair


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 11 August 2004 17:27
 To: Tomcat Users List
 Subject: RE: ThreadDeath bug 27371
 
 
 Hola,
 Thanks for posting the update and offering to help test.  I 
 haven't been
 watching this issue: once I realized that the exception is purely
 informational my interest in the topic dropped to negligible. 
  It'll be
 good to reproduce and fix, but I'm fully occupied with more important
 stuff.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 11, 2004 12:17 PM
 To: Tomcat Users List
 Subject: ThreadDeath bug 27371
 
 Hey Yoav,
 
 Did you see the latest update to the ThreadDeath bug @
 http://issues.apache.org/bugzilla/show_bug.cgi?id=27371
 
 One of our developers here is getting this error on his 
 local TC 5.0.25
 every single compile without fail, and the spooky thing is - 
 this is a
 brand new TC image from my local TC and I never get the problem. The
 other
 developer intermittently gets it. And we are all running the 
 exact same
 PCs.
 
 So .. if you need a use case, we can do it here for you 
 although cannot
 explain what is different about his setup.
 
 Cheers, Allistair
 
 
  -Original Message-
  From: Alex [mailto:[EMAIL PROTECTED]
  Sent: 10 August 2004 10:58
  To: Tomcat Users List
  Subject: Re: isapi_redirector2.dll - IIS redirecting to
  multiple Tomcat
  instances
 
 
 
  Matt, incase no one has helped out -- You don't need to use the lb
  stuff if you don't want.  Enjoy.
 
  [shm:]
  info=Shared memory file. Required for multiprocess servers
  file=E:\\Apache\\Tomcat5\\work\\jk2.shm
  size=1048576
 
  [lb:lb]
  info=Default load balancer 0.
  sticky_session=1
 
  [lb:lb1]
  info=Default load balancer 1.
  sticky_session=1
 
  [channel.socket:spprod1]
  info=Ajp13 forwarding over socket - spprod1
  port=8009
  host=10.99.116.1
  lb_factor=100
  tomcatId=10.99.116.1:8009
  group=lb
  type=ajp13
 
  [channel.socket:spprod2]
  info=Ajp13 forwarding over socket - spprod2
  port=8009
  host=10.99.116.2
  lb_factor=100
  tomcatId=10.99.116.2:8009
  group=lb1
  type=ajp13
 
  [uri:/test1/*]
  info=hi mom
  worker=lb:lb
  context=/somecontext
 
  [uri:/test2/*]
  info=hi mom
  worker=lb:lb1
  context=/someothercontext
 
 
 
  On Tue, 3 Aug 2004, Matt Krevs wrote:
 
   Date: Tue, 3 Aug 2004 15:32:30 +1000
   From: Matt Krevs [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: isapi_redirector2.dll - IIS redirecting to 
 multiple Tomcat
   instances
  
   Hi all,
  
   I'm using isapi_redirector2.dll to redirect webapp requests
  on my IIS
   server to tomcat.
  
   Is it possible to make this single redirector redirect 
 requests to
   different
   instances of tomcat (depending on uri)?
  
   For example, a request to IIS for /app1/ should go to
  localhost:8080
   and a request for /app2/ should go to localhost:8081.
  
   I'm using Windows, so if this is possible, what would my registry
   entries look
   like (ie: serverRoot key), and what would my
  workers2.properties look
   like?
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 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]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: how to read a text file and store into mysql databse --JAVA

2004-08-10 Thread Allistair Crossley
are you off your rocker? this is a tomcat mailing list.

 -Original Message-
 From: Maruthi [mailto:[EMAIL PROTECTED]
 Sent: 10 August 2004 16:17
 To: [EMAIL PROTECTED]
 Subject: how to read a text file and store into mysql databse --JAVA
 
 
 Hello Everybody,
 I have text file (ram.txt) in C:\temp directory.I need to 
 read the text file and store in mysql database using JAVA.In 
 mySQL database i described the field as BLOB(binary large 
 object) in the Table.
 Can anybody help me how to read the text file and store the 
 content into the mysql database table.
 Thank you very much,
 Maruthi.
 
   
 -
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: How to Upload a File Using JSP?.(Snippest of code needed)

2004-08-10 Thread Allistair Crossley
taken directly from one of our struts actions ...

   // parse the upload using Commons File Upload 1.0

if (FileUpload.isMultipartContent(request)) {

List items = null;

try {
DiskFileUpload upload = new DiskFileUpload();
items = upload.parseRequest(request);
} catch (FileUploadException fuE) {
logger.error(user.getUsername() + : error.checkin.parse;  + 
fuE.getMessage());
errors.add(ActionErrors.GLOBAL_ERROR, 
new ActionMessage(error.checkin.parse));
break DO_CHECKIN;
}

if (items == null || items.size() == 0) {
logger.error(user.getUsername() + : error.checkin.parse; no 
items);
errors.add(ActionErrors.GLOBAL_ERROR, 
new ActionMessage(error.checkin.parse));
break DO_CHECKIN;
}

// create a new Checkin wrapper and populate, set in request

Iterator iterator = items.iterator();
FileItem primaryFile = null;
while (iterator.hasNext()) {
FileItem item = (FileItem) iterator.next();

// capture the actual upload file
if (! item.isFormField()) {
primaryFile = item;
}
}

Allistair Crossley



 -Original Message-
 From: Maruthi [mailto:[EMAIL PROTECTED]
 Sent: 10 August 2004 14:07
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: How to Upload a File Using JSP?.(Snippest of code needed)
 
 
 Hello Yoav,
 Thanks for your reply.I already gone throuth the link.But i 
 am getting some problems as there is no clear example how to proceed.
  
 A  clear example to upload a file from HTML form would be helpful.
  
 Thanks for your time,
 Maruthi.
 
 Shapira, Yoav [EMAIL PROTECTED] wrote:
 Hi,
 Check out the Jakarta Commons Fileupload examples at
 http://jakarta.apache.org/commons/fileupload/.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Maruthi [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 10, 2004 5:05 AM
 To: [EMAIL PROTECTED]
 Subject: How to Upload a File Using JSP?.(Snippest of code needed)
 
 Hello Everybody,
 I got some problem regarding file uploading using JSP.
 
 In my JSP I have a form which contains 2 textboxes and other text box
 for
 uploading a file.I need to store the information of 2 text
 boxes,uploaded
 file in the mysql databse.I am looking for the code for uploading a
 file
 using JSP.
 
 Please see below for my code.In this code i need to include the code
 for
 uploading a file.
 
 Any help in this regard would be greatly appreciated..Pl 
 reply in this
 regard.
 Thank you,
 Maruthi.
 
 =
 
 
 
 
 
 
 
 
 
 prefix='jetspeed'
 %
 
 
 try
   {
 
if(request.getMethod().equals(POST))
{
 String cpu1=request.getParameter(cpu);
   String architecture1=  request.getParameter(architecture);
 
 
   Class.forName(org.gjt.mm.mysql.Driver);
Connection
 con=DriverManager.getConnection(Jdbc:mysql://localhost:3306/
 Thesiswork
 ,r
 oot,);
Statement st=con.createStatement();
 
   String str=INSERT into submitjobs
 VALUES('+cpu1+','+architecture1+','+file1+');
 int i=st.executeUpdate(str);
System.out.println(Number of Rows inserted into
 AddGridNodes Table  is:  +i+
 );
 
 
out.println( Confirmation-Added Grid
 Nodes );
  out.println( 
 );
  out.println( face=Verdana,Geneva,Arial
 color=white size=4ADD JOBS);
  out.println();
 
  out.println( 
 );
  out.println(The Details Belongs to
 Job: +cpu1+  is added to the
 Database..!.
 );
 
  out.println();
  out.println();
  out.println();
  out.println();
 
st.close();
con.close();
 
 
   }else
   {
   %
  
  method=POST
 
 
  
  
 
  size=4SUBMIT JOBS
  
 
  
 
  
  
  size=2CPU:*

   [input] 
  
 
  
  size=2Architecture:*

   [input] size=20
  
 
  
  size=2Execute PBS File:*

   [input] 
  
 
 
 
 
 
  
  
 
 
 
   [input] 
 
 
  
  
  
  
 
 
} //else
}catch (Exception e)
{
   Log.error(e);
  return;
   }
 %
 
 
 
 
 -
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 -
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE

[OFF TOPIC] J2EE/Tomcat Build Process

2004-08-09 Thread Allistair Crossley
Hi All,

I am currently trying to streamline our team's build process here using Tomcat as our 
servlet container. 

For a while the way I had it setup was that we had 1 instance of TC running on a dev 
server and 1 instance on production. Each developer would checkout only the code they 
will work on from VSS. They would not have read-only latest version copies of the 
other source on their disks. They would then use an Ant build script to compile their 
checked out classes directly to TC's classes, and a separate Ant target for copying 
JSPs and so on to the webapp folder.

This method as far as I was concerned got around the code overwrite problem - where if 
both developers had a version of all source using a Get Latest Version, each time they 
compile they would overwrite the same instance compiled classes.

Recently, I have installed a TC per developer on the server. My idea is that we will 
use the Eclipse VSS plugin and WILL all perform Get Latest Version. However, because 
each dev has their own dev instance, they will not overwrite any changes by other 
developers on source they have not got checked out.

Then, I am thinking, each developer must only ever checkin stable compilable source, 
so that when other devs Get Latest Version from the root of the source tree, it will 
still compile.

When I do a build, I am thinking that all source must be checked in, then a Get Latest 
Version, then run an Ant script to compile and generate a WAR for staging and 
production deployment.

Finally, I have just this second had a call from IT saying the 3 instances on our dev  
server are brining virtual memory to its knees - which begs another question - should 
each developer have a locally installed TC rather than server based? 

I would be very interested in others' development/deploy processes with mult-developer 
Tomcat environments to cross-check my ideas. 

Kindest Regards, Allistair.





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Problems with file encoding

2004-08-09 Thread Allistair Crossley
You still can. If you look in catalina.bat ...

%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%

So, just make sure you set %CATALINA_OPTS% e.g

SET CATALINA_OPTS=-Dfile.encoding=ISO8859-1

If you are using a Windows Service you need to modify service.bat

Allistair.

 -Original Message-
 From: Francisco José Arnau Vives [mailto:[EMAIL PROTECTED]
 Sent: 09 August 2004 09:10
 To: [EMAIL PROTECTED]
 Subject: Problems with file encoding
 
 
 One month ago, I have installed tomcat.5.0.25 over my 
 production server. In
 older versions of tomcat I included the lines
 ''CATALINA_OPTS=-Dfile.encoding=ISO8859-1 in my init script 
 of tomcat in
 order to solve little problems in the encoding of files, but 
 now with this
 version I have problems with the encoding of files and wheh I insert
 caracters as (á.é,í...) in forms. can you help me with this matter?
  
 __
 __
 
 Este mensaje se dirige exclusivamente a su destinatario y 
 puede contener
 información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
 indicado, queda notificado de que la utilización, divulgación 
 y/o copia
 sin autorización está prohibida en virtud de la legislación vigente.
 Si ha recibido este mensaje por error, le rogamos que nos lo comunique
 inmediatamente por esta misma vía y proceda a su destrucción.
  
 This message is intended exclusively for its addressee and may contain
 information that is CONFIDENTIAL and protected by 
 professional privilege.
 If you are not the intended recipient you are hereby notified that any
 dissemination, copy or disclosure of this communication is strictly
 prohibited by law. If this message has been received in error, please
 immediately notify us via e-mail and delete it.
 __
 __
 
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: worker2.properties conf

2004-08-06 Thread Allistair Crossley
try the following out .. i've not tested it though :p

[logger]
level=INFO

[logger.file:0]
level=INFO
file=d:\\jakarta-tomcat-5.0.25\\logs\\jk2.log
 
[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0 

[shm]
file=d:\\jakarta-tomcat-5.0.25\\work\\jk2.shm
size=1048576


 Tomcat Development Instance 1

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/samples/*]
info=sample to jsp-samples
context=/jsp-samples
worker=ajp13:localhost:8009


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Allistair Crossley
Hi Guys,

Our developers use the same log4j configuration file, but have separate instances of 
tomcat on the server. At the moment we have to do a search and replace for the File 
attribute to make sure the directory is correct per developer instance.

At the moment this works for an instance ...

log4j.appender.ErrorsA.File=d:/jakarta-tomcat-5.0.25/logs/iq2-sys-errors.log

I have set my user.dir property with

-Duser.dir=%CATALINA_HOME%

And printing the value in a JSP gives

d:\jakarta-tomcat-5.0.25

Yet when trying

# trying to go forward into tomcat logs from relative user.dir
log4j.appender.ErrorsA.File=logs/iq2-sys-errors.log

give error 

java.io.FileNotFoundException: logs\iq2-core-actions.log (The system cannot find the 
path specified)

Thanks, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Cannot get log4j logs into tomcat logs folder using relative mechanism

2004-08-06 Thread Allistair Crossley
Great, that worked, thanks. By the way Yoav, I have added the LogFactory.shutdown() to 
the context listeners and will be keeping an eye on whether the ThreadDeath problem 
occurs again.

I'll update the bug next week with my findings.

Cheers, Allistair

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 06 August 2004 14:05
 To: Tomcat Users List
 Subject: RE: Cannot get log4j logs into tomcat logs folder using
 relative mechanism
 
 
 
 Hi,
 You have to include the variable as ${varName} in your File attribute,
 e.g. ${user.dir}/logs/myLog.  See
 http://marc.theaimsgroup.com/?l=log4j-userm=108609662415067w=2.
 
 However, I recommend a more robust approach.  Maybe this is because I
 dislike relying on platform-specific settings like environment
 variables.  But anyways, use Ant to do this for you.  Have ant fill in
 the File attribute value when you're deploying your webapp.  
 You can do
 this with filter tokens and build.properties files for every 
 developer.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 06, 2004 7:43 AM
 To: [EMAIL PROTECTED]
 Subject: Cannot get log4j logs into tomcat logs folder using relative
 mechanism
 
 Hi Guys,
 
 Our developers use the same log4j configuration file, but 
 have separate
 instances of tomcat on the server. At the moment we have to 
 do a search
 and
 replace for the File attribute to make sure the directory is correct
 per
 developer instance.
 
 At the moment this works for an instance ...
 
 log4j.appender.ErrorsA.File=d:/jakarta-tomcat-5.0.25/logs/iq2-sys-
 errors.log
 
 I have set my user.dir property with
 
 -Duser.dir=%CATALINA_HOME%
 
 And printing the value in a JSP gives
 
 d:\jakarta-tomcat-5.0.25
 
 Yet when trying
 
 # trying to go forward into tomcat logs from relative user.dir
 log4j.appender.ErrorsA.File=logs/iq2-sys-errors.log
 
 give error
 
 java.io.FileNotFoundException: logs\iq2-core-actions.log (The system
 cannot
 find the path specified)
 
 Thanks, Allistair
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: log4j SEVERE ThreadDeath in Tomcat 5.0.25

2004-08-06 Thread Allistair Crossley
Hi Yoav,

I'm afraid no success using this method;

public void contextDestroyed(ServletContextEvent scE) { 
LogManager.shutdown();
LogFactory.releaseAll();
logger.info(Renewals Application Destroyed);
}

The following stack trace occurred after a recompile of a class...

06-Aug-2004 16:11:01 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
06-Aug-2004 16:11:02 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already (the 
eventual following stack trace is caused by an error thrown for debugging purposes as 
well as to attempt to terminate the thread which caused the illegal access, and has no 
functional impact)
06-Aug-2004 16:11:02 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already (the 
eventual following stack trace is caused by an error thrown for debugging purposes as 
well as to attempt to terminate the thread which caused the illegal access, and has no 
functional impact)
06-Aug-2004 16:11:02 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
SEVERE: Exception invoking periodic operation: 
java.lang.ThreadDeath
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1270)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:241)
at org.apache.log4j.Category.forcedLog(Category.java:431)
at org.apache.log4j.Category.log(Category.java:966)
at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:195)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:706)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4226)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
at 
org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4584)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1651)
at java.lang.Thread.run(Unknown Source)


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



workers2.properties - uri mapping requests with ports to different tomcats

2004-08-05 Thread Allistair Crossley
Hi,

I have setup 2 Tomcat instances on the same server. JK2 ISAPI is installed on IIS and 
running fine routing all intratestgbr URIs to Tomcat 8009. I have setup anothe website 
on IIS with JK2 also, but running on port 84. I now want to map URIs that use port 84 
to Tomcat 8011.

The following entries in my workers2.properties file BOTH route to Tomcat 8009 (my 
first instance). I wonder if it is possible to use the fact that I have a port on the 
URL to route to different AJP tomcat ports???

Thanks!

 Tomcat Development Instance 1

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:intratestgbr/*.do]
info=do
context=/
worker=ajp13:localhost:8009

[uri:intratestgbr/*.jsp]
info=jsp
context=/

 Tomcat Staging Instance

[channel.socket:localhost:8011]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8011

[ajp13:localhost:8011]
channel=channel.socket:localhost:8011

[uri:intratestgbr:84/*.do]
info=do
context=/
worker=ajp13:localhost:8011

[uri:intratestgbr:84/*.jsp]
info=jsp
context=/


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: java.lang.OutOfMemoryError

2004-08-05 Thread Allistair Crossley
We had memory loss with 5.0.19. We profiled a 5.0.19 web app and found that memory was 
not being garbage collected too well. As soon as we upgraded this went away and was 
proven by th profiling. Start by trying out 5.0.27 and see how it goes. If it still 
happens then take Yoav's advice and profile you app using the (now freeware and 
excellent) JProbe (www.quest.com) and go from there.

ADC

 -Original Message-
 From: Matt He [mailto:[EMAIL PROTECTED]
 Sent: 05 August 2004 15:43
 To: Tomcat Users List
 Subject: java.lang.OutOfMemoryError
 
 
 
 Hi,
 
 We upgraded our Tomcat server from 3.0 to 5.1.19 about two 
 months ago (linux
 machine). Since then it frequently crashed (twice a week). It 
 seems like the
 crash was caused a web crawler. This web crawler generate 
 many threads and
 quickly drained server memory. The log file showed
 java.lang.OutOfMemoryError. When we use Tomcat 3, this 
 crawler didn't cause
 this problem.
 
 
 Does anyone have any suggestion on how to solve this problem 
 (we don't want
 to block this crawler)?
 
 
 Thanks.
 
 
 Matt
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Strage Behaviour - Tomcat Memory Leak

2004-08-05 Thread Allistair Crossley
As Yoav points out, this is quite normal. I also run JProbe and if you just 
leave it alone, very small memory usage is made and at regular intervals the GC will 
jump in, producing your saw tooth (since the GC will only jump in when it really 
thinks the heap needs clearing out is why it gets quite high).
 
Also when you say the heap is totally filled I don;t think you mean that the 
total memory available to Tomcat is filled, e.g 128-512MB or whatever. What you mean 
is that the heap used is filled and I bet that heap size is actually only about 7Mb or 
so if as you claim it is just a startup of Tomcat. Therefore it is quite possible that 
it looks alarming but it is not really.
 
Cheers, ADC. 
 
-Original Message- 
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Thu 05/08/2004 17:55 
To: Tomcat Users List 
Cc: 
Subject: Re: Strage Behaviour - Tomcat Memory Leak



I've used JProfiler in the past and I found it somewhat unreliable,
since it is pretty heavy weight. I should say it was based on a half
dozen tests using JProfiler and not a scientific evaluation.

it was the free eval version a couple years back. I find optimizeIt
more reliable for me and a little less heavy weight. I've use
OptimizeIt in the past and tomcat without any requests shows flat
memory usage. in other words constant.


peter


On Thu, 5 Aug 2004 13:39:44 -0300, Roberto Rios
[EMAIL PROTECTED] wrote:
 Hi,

 I was doing an evaluation of JProfiler in order see the improvements did
 since the last time I used it. I has a feature (like other profilers) that
 shows the heap usage in real time.

 As I always do, I have installed a new copy of tomcat, with NO changes. I
 have just unziped it into a directory (by the way, I am using winXP,
 J2SDK1.4.2_05, JProfiler 3.1 and tomcat 4.1.30/5.0.25).

 So I started JProfiler, that automatically starts tomcat (I have tested it
 against 4.1.30 and 5.0.25 - same behaviour), and I also started the heap
 monitor (that JProfiler calls VM Telemetry).

 What I saw, IMHO, is very strange: time to times (around every 30 minutes)
 the heap is totally filled, and the garbage collector runs. So the graph
 looks like a saw:

  /|  /|  /|  /
 / | / | / | /
 /  |/  |/  |/

 What is strange, is that I does't touch tomcat. I just start it. Nothing is
 running under it (except the default applications: manager, examples,
 etc Anyway, I have cleaned the server.xml and webapps, removing the
 manager, admin and examples app. Same bahaviour again).

 IMHO, the heap usage should be a flat line if nothing is running under
 tomcat. Something like (the initial increase is due to tomcat startup) this:

  /--
 /
 /

 My conclusion, is that OR tomcat has a huge memory leak, OR JProfiler isn't
 reliable.

 Does anyone has an explanation about this behaviour? Is it know? Maybe a
 listener, logger, etc?

 TIA,

 Bob

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT

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

Can I change Tomcat's default character encoding?

2004-05-24 Thread Allistair Crossley
We are having a host of problems with character encoding at the moment. Somehow 
between the UI and the Struts Action our euro symbols are being turned into question 
marks. I have fiddled with the JVM file.encoding, using JSP page directives for 
content type and much else besides. I thought Java strings were UTF-8 by default.

Anyway, I stripped off the JSP page directive for encoding and it appears the tomcat 
default becomes Latin 1 ISO-8859-1. The euro character does not appear in this charset 
and I need Cp1252 to be default. 

Can I change Tomcat's default charset?

Thanks ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Bug? Repost: JkCoyoteHandler Error

2004-05-20 Thread Allistair Crossley
Hi All,

This is a repost of an issue we are still experiencing on the production server. I 
found a similar post re: tomcat 4 that was a bug (although cannot find in bugzilla 
now). The same thing happens to us .. 

I have been looking through our production server logs and the following error block 
is repeated an awful lot, like every 6 minutes or so and sometimes 6 times per minute.

06-May-2004 14:38:50 org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code 
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:489)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:697)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:487)
at org.apache.coyote.Response.action(Response.java:226)
at org.apache.coyote.Response.finish(Response.java:348)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:344)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:534)
06-May-2004 14:38:50 org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0

The difficult part is that no user has reported any errors to us and I have never seen 
an error arise from using the system, so I am a little puzzled at where this is coming 
from and despite not having errors reveal themselves or being reported, I still want 
to get to the bottom of them and remove the cause if possible.

The system is now fairly basic:

IIS + NTLM Auth
  -- JK2
-- Tomcat 5.0.19

If anyone could suggest what this error may be, why I may be getting it or how I can 
go about getting better resolution on the root cause I would be very grateful,

Cheers, Allistair.


The post I found on Google is as follows but the 2 bugs listed below are no longer 
there...

http://nagoya.apache.org/bugzilla/show_bug.cgi?idW35 
http://nagoya.apache.org/bugzilla/show_bug.cgi?idF63 

 -Original Message- 
 From: Boemio, Neil (IT, FGIC) [mailto:Neil.Boemio@(protected)] 
 Sent: 07 ßíóàðè 2004 ?. 22:16 
 To: Tomcat Users List 
 Subject: Tomcat: Connection reset by peer: socket write error 
 
 
 My W2K, Apache 2.0.47, Tomcat 4.1.27, JK2 2.0.43 setup works 
 fine . for a while. After an hour, a few hours, maybe 
 minutes (I don 't really see a pattern), my JSP pages will 
 hang. When I restart the Tomcat service, everything is fine 
 again until the next hang. 
 
 Here 's the sequence: 
 
 About every minute in the jk2.log, I get this set or errors 
 over and over again. This doesn 't seem to be directly 
 related to my problem because this happens even when 
 everything is OK  but I thought I would include it as well: 
 
 [Wed Jan 07 14:19:27 2004] (error ) [jk_channel_socket.c 
 (557)] channelSocket.receive(): Error receiving message body 
 -1 0 [Wed Jan 07 14:19:27 2004] (error ) [jk_workerEnv.c 
 (482)] workerEnv.processCallbacks() Error reading reply [Wed 
 Jan 07 14:19:27 2004] (error ) [jk_worker_ajp13.c (416)] 
 ajp13.service() ajpGetReply recoverable error 12 [Wed Jan 
 07 14:19:49 2004] (error ) [jk_channel_socket.c (557)] 
 channelSocket.receive(): Error receiving message body -1 0 
 [Wed Jan 07 14:19:49 2004] (error ) [jk_workerEnv.c (482)] 
 workerEnv.processCallbacks() Error reading reply [Wed Jan 07 
 14:19:49 2004] (error ) [jk_worker_ajp13.c (416)] 
 ajp13.service() ajpGetReply recoverable error 12 
 
 When the problem occurs, I get this in the Tomcat Error Log: 
 
 Jan 7, 2004 2:21:25 PM org.apache.jk.server.JkCoyoteHandler action 
 SEVERE: Error in action code 
 java.net.SocketException: Connection reset by peer: socket write error 
at java.net.SocketOutputStream.socketWrite0(Native Method) 
at java.net.SocketOutputStream.socketWrite(Unknown Source) 
at java.net.SocketOutputStream.write(Unknown Source) 
at 
 org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) 
at 
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) 
at 
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) 
at org.apache.coyote.Response.action(Response.java:222) 
at org.apache.coyote.Response.finish(Response.java:343) 
at 
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) 
at 
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) 
at 
 

JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error

2004-05-13 Thread Allistair Crossley
Well, since using 2.0.4 this error has been unheard of until today. A user has been 
trying to upload a document and tried 4 times and constantly got the Stream ended 
unexpectedly error from JK2 connector. The document is Word and 140K. I have tested 
with other users trying to upload this item and there has not been a problem, it seems 
restricted to this particular user!?

Does this ring any bells for anyone?

Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Showing an error page when Tomcat is down using IIS + JK2

2004-05-10 Thread Allistair Crossley
Hi Guys

I am trying to get IIS to display a nice HTML page when Tomcat is not running. We use 
JK2 to push requests between IIS and Tomcat. 

I am able to specify custom pages for IIS HTTP codes but when I stop Tomcat I get the 
Intenet Explorer message

Cannot find server or DNS Error
Internet Explorer
Which I cannot customise in IIS. The only way to get the fact that Tomcat is down into 
a 404 which I can customise is to remove the JK2 ISAPI filter from IIS whilst I do 
whatever it is I am doing.
This is not practical because sometimes I am restarting Tomcat, or Tomcat may well go 
down on its own (not that it ever has).

Your thoughts appreciated, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



JkCoyoteHandler Error

2004-05-06 Thread Allistair Crossley
Hi All,

I have been looking through our production server logs and the following error block 
is repeated an awful lot, like every 6 minutes or so and sometimes 6 times per minute.

06-May-2004 14:38:50 org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code 
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:489)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:697)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:487)
at org.apache.coyote.Response.action(Response.java:226)
at org.apache.coyote.Response.finish(Response.java:348)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:344)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:534)
06-May-2004 14:38:50 org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0

The difficult part is that no user has reported any errors to us and I have never seen 
an error arise from using the system, so I am a little puzzled at where this is coming 
from and despite not having errors reveal themselves or being reported, I still want 
to get to the bottom of them and remove the cause if possible.

The system is now fairly basic:

IIS + NTLM Auth
  -- JK2
-- Tomcat 5.0.19
  -- JNDI SQL Server port 1433
  -- Content Management System port 

If anyone could suggest what this error may be, why I may be getting it or how I can 
go about getting better resolution on the root cause I would be very grateful,

Cheers, Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: URL Mapping Question

2004-04-23 Thread Allistair Crossley
You definately did a hard IIS restart..? I have done simple stop/start ones using the 
controls and found this does not reload the mappings. 

-Original Message-
From: Varley, Roger [mailto:[EMAIL PROTECTED]
Sent: 23 April 2004 13:51
To: [EMAIL PROTECTED]
Subject: URL Mapping Question


Hi

I have Tomcat 4.4.18 running behind Microsofts IIS web server. In IIS I have two 
virtual directories defined InboundA and InboundB both of which are mapped to the same 
physical directory $TOMCAT_HOME/webapps/Inbound.

In workers2.properties I have added the lines ...
[uri:/InboundA/*]
context=/Inbound
[uri:/InboundB/*]
context=/Inbound

and I have added the context Inbound to the server.xml in $TOMCAT/conf

After restarting IIS and Tomcat, the Tomcat manger application sees the Inbound 
context loaded and I can run the servlets contained in the context by accessing Tomcat 
directly via port 8080 (http://hostname:8080/Inbound/servletname, however when I 
use the browser to access http://hostname/InboundA/servletname or InboundB I get a 
404 response from IIS rather than a response from Tomcat which implies that the 
forwarding is not taking place.

What am I missing?

Regards
Roger


__
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive this 
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group liability 
cannot be triggered for the message content. Although the 
sender endeavours to maintain a computer virus-free network, the sender 
does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted.
__

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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Allistair Crossley
the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem to have 
commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Cannot use JK2 with Tomcat5 and IIS 5

2004-04-22 Thread Allistair Crossley
i spent years trying to get my workers file going so i understand ;)

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:17
To: 'Tomcat Users List'
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5


Worked.. (I commented out the channel line probably in trying to fix a
different error previously)..

Thanks Allistair!!  Your help was invaluable as frustration was certainly
eroding my focus.

moran

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 22, 2004 11:01 AM
To: Tomcat Users List
Subject: RE: Cannot use JK2 with Tomcat5 and IIS 5

the following is my workers2.properties for Tomcat 5 / IIS 5 / JK2. You seem
to have commented out the channel socket to 8009.

[shm]
file=d:\Tomcat 5.0.18\work\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

[uri:/*.do]
info=do
context=/

[uri:/*.jsp]
info=jsp
context=/

[uri:/tomcat-docs/*]
info=docs
context=/tomcat-docs

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

-Original Message-
From: Moran Ben-David [mailto:[EMAIL PROTECTED]
Sent: 22 April 2004 16:03
To: 'Tomcat Users List'
Subject: Cannot use JK2 with Tomcat5 and IIS 5


Having an awfull time climbing the tomcat/iis/jk2 learning curve..

Can anyone explain to me why my worker's file gives me the following error:

Error: [jk_worker_ajp13.c (871)]: ajp13.init(): No channel
localhost:8009

Workers2.properts:

[logger.file:0]
level=INFO
file=E:/Programs/Tomcat5.0/logs/iis_jk2.log

[shm:]
info=Shared memory file. Required for multiprocess servers
file=E:\Programs\Tomcat5.0\work\jk2.shm
size=100

# from tutorial #1
#[channel.socket:localhost:8009]
#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
#tomcatId=localhost:8009

# from tutorial #2
[ajp13:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
channel=channel.socket:localhost:8009

[uri:/jsp-examples/*]
info=JSP examples, map requests for all JSP pages to Tomcat.
context=/jsp-examples

[uri:/servlets-examples/*]
info=Servlet examples, map requests for all servlets to Tomcat.
context=/servlets-examples

Thanks,
Moran Ben-David


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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 5 : java.lang.OutOfMemoryError

2004-04-20 Thread Allistair Crossley
The standard response to this type of question is are you closing your database 
connections, are you releasing references to objects being created. I can't imagine 
what you are doing that manages to wipe out 1200M memory ;) Oh and use a profiler 
comes up too for this type of question :)

-Original Message-
From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
Sent: 20 April 2004 11:05
To: Tomcat-User-ML
Subject: Tomcat 5 : java.lang.OutOfMemoryError


Hi all,

I have Tomcat 5.0.18 with one java web application and database Access 2000.

When one Servlet/JSP try to make heavy query to database, tomcat shows
this error message :


HTTP Status 500 -




type Exception report

message

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

exception

javax.servlet.ServletException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)

org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(visconsumi_jsp
.java:789)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.OutOfMemoryError


--

I've tried to modify the catilina.bat file, increased start memory  by set :

set CATALINA_OPTS= -server -Xmx1200M -Xms1200M -Xss256k

but i still having the same problem

How can I solve it?


Thans in advance for your kind attention,


Francesco.



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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



<    1   2   3   4   5   6   7   >