Re: Logout-Problem

2004-04-13 Thread Paul Mansfield
On Tue, 2004-04-13 at 09:54, [EMAIL PROTECTED] wrote:
 In our application the user has to log in. When he wants to log out in a
 servlet I call session.invalidate() to kill the session and redirects to
 the login page. The session is definitly not existing anymore, but the user
 can't login until a timeout.
 
 When I disable cookies on the client, everything works fine. So it seems
 that there is any information in the cookie that is not totally removed.

I presume you're using forms/session authentication.

do you have any local session data which you can set to null?
do you create a cookie yourself on the client, whose timeout you can set
to 1 second and thus force it to expire?

if you're using opera, there's bugs in its cookie handling, especially
when you set the privacy to a high level.

Paul


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



Re: Tomcat for FreeBSD

2004-04-13 Thread Paul Mansfield
On Tue, 2004-04-13 at 10:09, Ronald Klop wrote:
 If you have installed the FreeBSD ports collection (which you probably have), than 
 do this:


AOL
me too... we are using tomcat-5 on freebsd-current.

works well, no complaints

Paul


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



Re: servlet error

2004-04-08 Thread Paul Mansfield
On Thu, 2004-04-08 at 12:44, Moahmed A. Shalaby wrote:
 Hii
 I was using Oracle Application sever 4.0.8 to run my servlets , but 
 When i'm executing my servlet using NetBeans IDE 3.5 and Tomcat it raise
 the following error :
 
 java.lang.NoSuchMethodError: main
 Exception in thread main
 how could i solve it ???
 thank you

classpath problem?
also check file permissions?

look for the full stack trace in a log file?


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



[Fwd: Re: servlet error]

2004-04-08 Thread Paul Mansfield
error messages from sci.de domain mail system...

xlink - you're in the RIPE records for the IP address of the mail
handler for sci.de

some retard signed up to the Tomcat Users List
([EMAIL PROTECTED]) and then killed the mailbox without
unsubscribing

and now anyone who emails the list gets back the stupid error message
below which is completely useless for removing the subscription

will the retard in charge of the sci.de mail machine please 
a) fix the machine to generate useful error messages
b) find out what the subscribed email address WAS and have it removed?

List-Unsubscribe:  mailto:[EMAIL PROTECTED]


-Forwarded Message-
From: . [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: servlet error
Date: Thu, 08 Apr 2004 13:46:22 +0200

Das von Ihnen gewählte E-Mail-Postfach ist ungültig. Ihre Email wurde nicht an den 
Empfänger weitergeleitet. Für Rückfragen kontaktieren Sie bitte

The email-address you choose does not exist.
The recipient did not receive your email. For more information please contact

SCI Verkehr GmbH
Hardefuststr. 11 - 13
50677 Köln / Cologne
Germany
Tel. +49 (0) 221 93178 0



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



Re: mod_jk leaks file handles on apache graceful restart?

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 01:41, David Rees wrote:
 Run strings on your binary and grep for 1.2 `strings mod_jk.so | grep
 1.2`.  The other way is to look at the output of mod_status (commonly
 accessible at http://example.com/server-status)

not forgetting to modify apache.conf (or httpd.conf depending) and
enable server-status and server-info functions, and put your IP address
into the allow.

Paul


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



build from scratch - was Re: Hi

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:04, werner S. Teunissen wrote:
 Hi, 
 
 I  need to setup a tomcat environmet manually,
 
 I run Redhat 7.3 and I want toinstall from scratch not using the rpm's
 but use the src's build them and install.
 
 How do I do that?
 
there were recent postings on this list only yesterday


top tip: make the subject of emails relevant to the topic

next top tip: check the archives before asking the same old question



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



Re: Where to set JAVA_OPTS

2004-04-07 Thread Paul Mansfield
On Wed, 2004-04-07 at 14:43, Jon Wingfield wrote:
 No need to change the script. I normally set an Environment variable in 
 the same place I define JAVA_HOME
 
 Go to Control Panel \ System \ Advanced tab \ Environment variables...
 Well, that's where it is on XP, which i'm currently running.

same on Windows 2000




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



session tracking using uri not cookies (was How can I maintain state with Axis

2004-04-07 Thread Paul Mansfield
With recent discussions about session management, I recalled long time
ago reading about URI rewriting for when the client doesn't handle
cookies properly, and found a useful article about it

http://access1.sun.com/techarticles/sessions.iws.html

URL rewriting is the ability to use sessions and session information if
cookies have been disallowed or are not available on the client.  URL
rewriting can also be useful when, for example, proxy or firewall
servers change or disallow cookies.  Cookies are small bits of data
stored by the client; for example by a Web browser.  

OK, this is for sun's iplanet, but the information might still be
relevant to tomcat.

Paul


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



Re: RedHat Enterprise breaks encoding

2004-04-06 Thread Paul Mansfield

My boss who's an expert on redhat brokeness told me about all the
problems with various versions of redhat, so I built everything from
scratch from source in this order

- openssl
- openssh
- apache 1.3.28
- tomcat 5.0.1x - latest
- modjk

all into /usr/local

it was very stable. It ran jetspeed OK, albeit with all the speed and
memory-demands that jetspeed runs at!

I wouldn't recommend trusting any redhat-built library at all. YMMV.

There again, I use suse for my desktop. and also get into dependency
hell. I use debian for my firewall, which I like, and we're using
freebsd for our live servers and that throws up even more interesting
issues. :-(

Paul


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



Re: A couple of performance related questions

2004-04-05 Thread Paul Mansfield
On Sat, 2004-04-03 at 18:57, Randy Paries wrote:
 BTW, yesterday someone sent out to the list a chart of times for connectors.

 I accidentally deleted it and can not find it on the archive. Could someone
 that still has that please email it to me directly?

you really ought to run your own benchmarks before going live. All the
benchmarks I've seen indicate that java's performance can vary hugely
from platform to platform, between Pentium3 and P4 for example.

I wrote a simple TimeTrack class which my jsps call during the course
of execution, and then at the end print the track to allow
benchmarking of pages, and I quickly realised that the dominating effect
was a slow DB link to an oracle server in another country - plain JSPs
were being turned round in less than 10ms but the DB overhead was 300ms.

Paul


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



Re: any standart way to keep passwords encripted???

2004-04-05 Thread Paul Mansfield
On Sat, 2004-04-03 at 02:10, Parsons Technical Services wrote:
 And if I am in control of the server, then I have access to that certificate
 as well.
 
 The point is simply that with proper permissions your password is as safe as
 it needs to be. If someone gets to it, you have way bigger problems on your
 hands.


you could always use a smartcard or usb crypto dongle, such that the
private key never gets out... however, you still need to establish a
session with the key and that needs a password.




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



Re: calling native code

2004-04-05 Thread Paul Mansfield
On Mon, 2004-04-05 at 13:12, Astrid Wagner wrote:
 added to the LD_LIBRARY_PATH
 when Apache is started (apachectl) but when I restart tomcat this 
 directory is no longer in it
 which leads to a
 java.lang.UnsatisfiedLinkError:
 error. Where can I modify the LD_LIBRARY_PATH within tomcat ?
 When I restart Apache, the LD_LIBRARY_PATH is correct but I get a
 
 ClassDefNotFound exeception
 
 for the class that calls the c-interface (IprShellInterface.class 
 package com.mot.sps.ipr.common).
 I have installed that class in 
 CATALINA_HOME/common/classes/com/mot/sps/ipr/common/IprShellInterface.class.

I ran into this problem with linux and tomcat5. I tried every variant of
LD_LIRBARY_PATH but no joy. Then I put this line into catalina.sh and
everything worked:
JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so

I put my library.so files into /usr/local/jakarta-tomcat/so

take a look at 
http://www.rgagnon.com/javadetails/java-0348.html

HTH
Paul


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



Re: calling native code

2004-04-05 Thread Paul Mansfield
On Mon, 2004-04-05 at 13:25, Astrid Wagner wrote:
 Hi,
 
 I just found out that setting the LD_LIBRARY_PATH var on the shell

hmmm, that didn't work for me, so maybe it's a tomcat4 thing.




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



Re: Apache 2 Tomcat 5 connector location and configuration

2004-04-05 Thread Paul Mansfield
On Mon, 2004-04-05 at 16:08, Myles Moutoux wrote:
 I have checked the archives and there is nothing for tomcat 5, which is 
 supposed to be the newest release. I have also seen quite a few of the 

I agree that tomcat5 + mod_jk2 documentation is very lacking, yes,
there's discussions on the mailing lists etc, but surely it should be
prominent on the tomcat site itself?
It was my biggest pain to get going too. I tried to rely on the official
jakarta.apache.org website and of course drew mostly blank.


Anyway, I found the following doco which helped a lot, altho' it talks
about freebsd the info is still useful

http://www.thinlizard.com/lizard/modjk2.html

then
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat





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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2004-04-05 Thread Paul Mansfield
On Mon, 2004-04-05 at 18:35, Kumar Abhay-CAK203C wrote:
 Hi,
 
 I am getting following error while creating Connection Pool using above code:
 
 Error Caught while creating a connection in EPP dB: = 
 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, 
 cause: Io exception: Connection 
 refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4

sounds like either firewall blocking conn's, or bad username/password in
your config

try an manual telnet dbserver portnum to verify the former




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



RE: Connection Pool setup.

2004-04-02 Thread Paul Mansfield
On Fri, 2004-04-02 at 13:47, Kal Govindu wrote:
 I'd like to know how to implement connection pooling in my
 application.
 This is what I had done so far.  Pls let me know what I need to change


you don't have to write any database pooling functions, it comes built
in!

http://jakarta.apache.org//tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

basically, add some stuff to the server.xml file (and restart)

then in your app (note paranoid cleaning up of database handles!):
Connection con = null;
Statement stmt = null;
ResultSet rst = null;
try
{
Context ctx = new InitialContext();
if(ctx == null )
{
System.err.println(No Context\n);
}
else
{
DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/MySQLDB);
if (ds != null)
{
con = ds.getConnection();
stmt = con.createStatement();
String sql = select ;
rst = stmt.executeQuery(sqlStmt.toString());
while rst.next()
{
blah blah
}
   rst.close(); rst = null;
   stmt.close(); stmt = null;
}
}
}
catch (java.sql.SQLException sqle)
{
if (rst != null)
try { rst.close(); rst = null; } catch (SQLException
sqle3) { }
if (stmt != null)
try { stmt.close(); stmt = null;} catch (SQLException
sqle2) { }
}


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



Re: Unix utils for Windows?

2004-04-02 Thread Paul Mansfield
On Fri, 2004-04-02 at 17:03, Shaw, Laurence wrote:
 Does anyone know where I can find a workable version awk for Windows,( and for that 
 matter most common [U}[Lin]ix utilities) that will run on a windows 2000 box? I was 
 attempting to run the makefile for Apache Server using MS C++  but at the end of the 
 build it  tries to execute an awk script to build the config file for the server and 
 errors because awk can not be found in my environment. I'd prefer not to have to run 
 in a unix shell on a windows box, but...

cygwin




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



Re: How to set up JAVA_OPTS while running tomcat as a service

2004-04-02 Thread Paul Mansfield
On Fri, 2004-04-02 at 17:54, Mandy Joss wrote:
 I am running Tomcat 4.1.24 as service but under stress I get 
 OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m 
 -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I 
 specify JAVA_OPTS so that Tomcat running as service will look at them.

I put the settings into the catalina.sh file, e.g.

 
 # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $
 # -
  
 JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so




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



Re: [OT] The Way Java Handles Date

2004-04-02 Thread Paul Mansfield
On Fri, 2004-04-02 at 17:47, Yansheng Lin wrote:
 Hi, Just wondering if anyone found this aspect of Java annoying.  I know this is
 usually a faq, and a lot of people have put a lot of efforts making it better.
 But I just find that the learning curve is a bit too steep for new comers.  And
 it hasn't been improve in j2sdk-1.5 either, at least from the interface point of
 view.  For example, a developer still has to go through the whole Calendar and
 DateFormat process to get a Date from a String 

yeah, it's a pain, took me a while to get what I wanted (especially to
get the right locale)... but java.sql.Date can be a nice shortcut if
you're not fussy about presentation!




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