Re: JDBC type 4 Driver for MSSQL Server

2003-11-15 Thread epyonne
You didn't say which version of MS SQL Server, so I have to assume it's SQL
Server 2000.  The following 3 are the Type 4 Driver for MS SQLServer 2000
that I use:
msbase.jar
mssqlserver.jar
msutil.jar

I can't remember where I downloaded them, but a quick search on Google
should point you to the right place.

Hope this helps.



- Original Message -
From: "N.B.Bopanna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 10:27 PM
Subject: JDBC type 4 Driver for MSSQL Server


> hi all,
> Could anybody please tell me if i can get a JDBC type 4 Driver for MSSQL
> Server?
> If yes where can i get it. If any one has used it please comment.
> Bopanna
> RCS Technologies
>
>
>
> -
> 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: RE: JDBC type 4 Driver for MSSQL Server

2003-11-15 Thread Wade Chandler
MS SQL Server isn't mysql...not sure, but that post confused me.
Microsoft has a Type 4 SQL Server driver.  It requires the server have
an update ran against it, but the driver itself is pure java and a Type
4.

Wade.

-Original Message-
From: Budi Kurniawan [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 15, 2003 5:45 PM
To: Tomcat Users List
Subject: Re: RE: JDBC type 4 Driver for MSSQL Server


Connector J is a type 4 driver, written by Mark Matthew, who also wrote
the popular mm driver when he was a student. Now, he works for
Mysql.com.

You can find Ms SQL drivers here:
http://servlet.java.sun.com/products/jdbc/drivers

cheers,
budi



Author of
- How Tomcat Works (sample chapters downloadable from
www.brainysoftware.com) 
- JavaServer Faces Programming (McGraw-Hill Osborne Media)
- Java for the Web with Servlets, JSP, and EJB (NewRiders)
- Java Web Development with Servlets, JSP, and EJB, Second Edition (Sams
Publishing)



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



Re: RE: JDBC type 4 Driver for MSSQL Server

2003-11-15 Thread Budi Kurniawan
Connector J is a type 4 driver, written by Mark Matthew, who also wrote the popular mm 
driver when he was a student. Now, he works for Mysql.com.

You can find Ms SQL drivers here:
http://servlet.java.sun.com/products/jdbc/drivers

cheers,
budi



Author of
- How Tomcat Works (sample chapters downloadable from www.brainysoftware.com) 
- JavaServer Faces Programming (McGraw-Hill Osborne Media)
- Java for the Web with Servlets, JSP, and EJB (NewRiders)
- Java Web Development with Servlets, JSP, and EJB, Second Edition (Sams Publishing)


RE: How to monitor RAM Usage

2003-11-15 Thread Nathan Mcminn
I just put them in a simple jsp page as scriptlets.  That way I can view
the mem usage from wherever I happen to be.

Like this in your jsp page

<%out.println(Runtime.getRuntime().totalMemory());%/>



Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -Original Message-
> From: neal cabage [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 14, 2003 5:31 PM
> To: Tomcat Users List
> Subject: RE: How to monitor RAM Usage
> 
> 
> Thanks. How do I issue such a command?  Command line, etc?
>  
> Neal
> 
> 
> Nathan Mcminn <[EMAIL PROTECTED]> wrote:
> Neal,
> 
> This will get you the total amount of memory available to the 
> JVM tomcat is running in:
> Runtime.getRuntime().totalMemory()
> 
> And this will get you the amount free
> Runtime.getRuntime().freeMemory()
> 
> 
> Nathan McMinn
> Application Developer
> NequalsOne - HealthCare marketing tools 
> mailto:[EMAIL PROTECTED] > http://www.NequalsOne.com 
> 
> > 
> -Original Message-
> > 
> From: neal cabage [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 14, 2003 1:07 PM
> > To: Tomcat Users List
> > Subject: How to monitor RAM Usage
> > 
> > 
> > 
> > Does anyone know how I can montior RAM usage/availability on
> > Tomcat at any given time? 
> > 
> > I'm currently having a problem wherein Tomcat crashes about
> > once per week and gives the error Java.error.OutOfMemory but 
> > I can't see any diagnostics by which to establish any 
> > patterns. I also can't find this information on the Apache 
> > site, after having looked for 1/2 hour. 
> > 
> > Any thoughts/info would be greatly appreciates.
> > 
> > Thanks.
> > 
> > Neal
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Protect your identity with Yahoo! Mail AddressGuard
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> 

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



Re: Signal 11 causing Tomcat crash

2003-11-15 Thread Phil Steitz
Jim Goodspeed wrote:
Unfortunately we have also tried Sun's JVM and are
experiencing the same Signal 11 errors (I've included
two snippets of the Sun error - same error as the IBM
Sig 11, just in a different format).  Sometimes the
dump specifies the library in question, other times it
does not.
Thanks,
Jim
An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : 11 occurred at PC=0x1
Function=[Unknown.]
Library=(N/A)
An unexpected exception has been detected in native
code outside the VM.
Unexpected Signal : 11 occurred at PC=0x59DF83B0
Function=(null)+0x59DF83B0
Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1
Are you sure that the driver version and fixpack match the server?  DB2 
can do funny things when this is not the case.  See for example: 
http://dbforums.com/arch/39/2002/9/515834

Phil





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


Re: Tomcat startup script

2003-11-15 Thread tim
Robert, try this page
 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html

"Roberto Bottoni - AfterBit (TMP)" <[EMAIL PROTECTED]> wrote:
I'm looking for a startup script for Tomcat for starting it at system boot.

Thanks!

Roberto.


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


-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: j_security_check

2003-11-15 Thread Mark S. Morrison
Andoni,

I checked my login form and the only difference I observed was in the 
FORM tag:



Beyond this as a possible cause, we would need to check/review your 
context definitions relating to the  Tag, and your security 
constraints defined in web.xml. I am using a JDBCRealm, but in regards 
to the actual authentication I do not believe that there is any 
functional difference.

Hope this helps.

Mark

Andoni wrote:

Hello,

I am trying to implement a JNDIRealm with form-based security.

When I look at the output from my RequestDumperValve I see that the call to j_security_check is like: /jsp/j_security_check which is understandible as it is just on its own in the form tag thus:





Is there something I should put before it which none of the documentation refers to?

I am getting a 403 Access denied.

Thanks in advance,
Andoni.
 

--
Mark S. Morrison 
*Justice Information Systems*
*Engineering Vice President*
35 Robinson Lane
Newnan, Georgia, 30263
Office: 678-423-1835
Cell: 404-435-9301
Fax: 678-423-3938   International Police Association 
/"Servo Per Amikeco"/
Life Member
Membership Number 21020
US Section
Region 46


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


Re: Tomcat startup script

2003-11-15 Thread Ben Souther
On Friday 14 November 2003 07:21 am, you wrote:
> I'm looking for a startup script for Tomcat for starting it at system boot.
>
> Thanks!
>
> Roberto.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



#!/bin/sh
#
. /etc/rc.d/init.d/functions

TOMCAT_USER=nobody

# See how we were called.
case "$1" in
  start)
echo -n "Starting tomcat: "
su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/startup.sh'
echo
;;
  stop)
echo -n "Stopping tomcat: "
su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/shutdown.sh'
echo
;;
  restart)
$0 stop
$0 start
;;
  *)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0

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



Re: JNDI based Datasource - anybody got a working example?

2003-11-15 Thread Graham Leggett
Christopher Schultz wrote:

I was getting this same error and played around for the better part of 
two days to get this working.

Finally, I can do all of these things:

1. Use the Realm the way I want to
2. Have Torque use the same JNDI DataSource
(Just so you know, this is what I use for my torque JNDI setup:
[EMAIL PROTECTED]@.jndi.path=java:comp/env/@DATASOURCE_REF@ 

)

3. Browse the JNDI tree by hand (from a JSP within my context) and 
actually see the DataSource object in there.

Woo hoo!

I hope that helps.
You are an absolute legend!

One key thing that you mentioned, that is not in any of the docs, is 
that torque needs the JNDI path set absolute. ie 
java:comp/ev/jdbc/myDatabase works, but jdbc/myDatabase on its own does not.

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


Re: please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Christopher Schultz
Antony,
I have problem in using RequestDispatcher.forward() from servlets. My
knowledge is that even after calling this method servlet continues
processing the request and thus executes rest of the service method.
Your understanding is correct -- it's just a method call that returns.

But I
have seen that if a servlet is forwarding to same servlet it stops
responding unable to get a database connection from pool. (I have set
maxconncections to 1).
That's probably because your servlet looks like this:

try
{
conn = getConnection();
	// process

getRequestDispatcher().forward(...);
}
finally
{
conn.close();
}
This is a recipe for trouble, because you're still holding the 
connection when you forward to another servlet. If that servlet tries to 
get a connection, you have the potential for deadlock.

Good for you for setting your connection pool size to 1! Everyone should 
do this, because then you have the good fortune to find things like this 
in development environments instead of in production, and you try to 
figure out why all 25 of your connections seem to be tied up :)

Database connection is closed in service method in
the finally block which is coming after the forward() statement. What is
wrong ?.
You said it yourself: you are retaining the connection during the method 
call. Finally blocks run after all the code inside it done, not when the 
thread leaves the method. MEthod calls within try/finally blocks don't 
trigger the finally block to be called. You need to modify your code thus:

try
{
conn = getConnection();
// process
}
finally
{
conn.close();
}
if (iShouldForward)
getRequestDispatcher().forward(...);
else
getRequestDispatcher().redirect(...);
Another question how to remove a query string from a request before
forwarding it. (Actually I have to remove a textbox element from a form.)
I'm not sure you can do this... but, you can wrap the HttpServletRequest 
in an implementation that *you* write that can ignore that attribute. 
Seems pretty hacky. Another thing you could do is put a marker object in 
the request attributes that says "ignore the request parameter". Your 
other action, that should not see the element value, can check for that 
marker object and then ignore the parameter value.

-chris

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


Re: JNDI based Datasource - anybody got a working example?

2003-11-15 Thread Christopher Schultz
Graham,

I am trying to configure tomcat to provide a JNDI Datasource, both so 
that the container can provide Basic Authentication, and for the war 
file to use (via Torque).
I have done this (including Torque!). It took a bit of playing around, 
but I found that I had to do the following.

(Others please take note: I'd like to know if I could have gotton away 
with fewer steps... please let me know if that's the case)

1. Define a  in the  section of server.xml:



...

(I'm using ant to replace the DATSOURCE_REF marker with 
"jdbc/myDataSource").

I have deduced that Tomcat requires this to be defined at the global 
level because of where the authenticator runs -- which appears to be 
*outside* the context for which you want to authenticate users.

2. Put your  inside the  for which you want to authenticate:


Somewhat obviously, this sets up the Realm and allows the authentication 
to take place.

3. Add a  to the  section for my particular context:


This links a global resource to the context, and makes it available for 
use by the webapp.

4. Add a  section to my web.xml:


DataSource for my application
jdbc/myDataSource
javax.sql.DataSource
Container

I think this actually creates the "other side" of the link that it 
established with the  in the server.xml. I'm not entirely 
sure.

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
I was getting this same error and played around for the better part of 
two days to get this working.

Finally, I can do all of these things:

1. Use the Realm the way I want to
2. Have Torque use the same JNDI DataSource
(Just so you know, this is what I use for my torque JNDI setup:
[EMAIL PROTECTED]@.jndi.path=java:comp/env/@DATASOURCE_REF@
)
3. Browse the JNDI tree by hand (from a JSP within my context) and 
actually see the DataSource object in there.

Woo hoo!

I hope that helps.

-chris

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


Re: please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Antony Paul
Actually I have to remove a textbox element from a form.

Antony Paul
- Original Message -
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, November 15, 2003 5:33 PM
Subject: please explain behavior of Requestdispatcher.forward()


> Hi all,
> I have problem in using RequestDispatcher.forward() from servlets. My
> knowledge is that even after calling this method servlet continues
> processing the request and thus executes rest of the service method. But I
> have seen that if a servlet is forwarding to same servlet it stops
> responding unable to get a database connection from pool. (I have set
> maxconncections to 1).  Database connection is closed in service method in
> the finally block which is coming after the forward() statement. What is
> wrong ?. I am using Tomcat 4.1.27 and JDK 1.3.1.
> Another question how to remove a query string from a request before
> forwarding it.
>
> Antony Paul
>
> -
> 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: RUNNING Tomcat startup script, AND/OR TOMCAT.BAT

2003-11-15 Thread Harry Mantheakis
Hello

> I am not getting it when it comes to the tomcat.bat file.Windows 98
> In the file I have this.
> 
> set _CP=%CP%
> set _TOMCAT_HOME=C:\Tomcat
> 
> I do not know what to type in to replace the following line.
> set _CLASSPATH=%CLASSPATH%

I cannot help you with that - hopefully someone else will.

> in the autoexec.bat file I have this for java
> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_06\BIN;
> SET PATH=C:\jdk1.3.1_06;C:\jdk1.3.1_06\BIN;%PATH%
> SET 
CLASSPATH=.;C:\jdk1.3.1_06\lib\tools.jar;C:\jdk1.3.1_06\jre\lib\ext\servlet.ja
> r;%CLASSPATH%
> path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\;c:\dos;c:\ltc;c:\kronos;c:\kronos\kcc
> set JAVA_HOME=C:\jdk1.3.1_06

Your PATH need only point to $JAVA_HOME\bin - in addition to all the other
windows-specific items (!)

I would keep just the LAST 'path=C:\WINDOWS;...' item above (the penultimate
line) as it is (deleting the 'path=' and 'set path=' items before it).

Then AFTER that 'path=C:\WINDOWS;...' line I would add:

SET PATH=%PATH%;C:\jdk1.3.1_06\bin;

Assuming the 'C:\jdk1.3.1_06\bin' reference to be a valid one, of course :-)

As for the classpath, you should return the 'servlet.jar' to the
'$CATALINA_HOME\common\lib' directory, or at least remove it from the Java
extensions folder if you had previously made a copy of it.

Keeping it in the Java extensions folder is a recipe for trouble in my
experience (!)

Then your classpath variable should include the current directory reference
(the dot) and a reference to '$CATALINA_HOME\common\lib\servlet.jar' so that
you can compile your servlets.

Try this:

SET CLASSPATH=.;%CATALINA_HOME%\common\lib\servlet.jar

The $JAVA_HOME variables looks okay, BTW.

> The error that I receive i Out of environment space...

Just google: "windows 98" "environment space" "tomcat" (all in one query)
and you will see a JGuru posting that should help you. It is an MS-DOS
Prompt issue - you need to allocate a little bit more memory to DOS.

Good luck!

Harry Mantheakis
London, UK





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



please explain behavior of Requestdispatcher.forward()

2003-11-15 Thread Antony Paul
Hi all,
I have problem in using RequestDispatcher.forward() from servlets. My
knowledge is that even after calling this method servlet continues
processing the request and thus executes rest of the service method. But I
have seen that if a servlet is forwarding to same servlet it stops
responding unable to get a database connection from pool. (I have set
maxconncections to 1).  Database connection is closed in service method in
the finally block which is coming after the forward() statement. What is
wrong ?. I am using Tomcat 4.1.27 and JDK 1.3.1.
Another question how to remove a query string from a request before
forwarding it.

Antony Paul

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



JNDI based Datasource - anybody got a working example?

2003-11-15 Thread Graham Leggett
Hi all,

I am trying to configure tomcat to provide a JNDI Datasource, both so 
that the container can provide Basic Authentication, and for the war 
file to use (via Torque).

I have followed the instructions at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html, 
which claim to be "untested" - these instructions do not work. Any 
attempt at auth results in the following exception:

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
	at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:467)
	at 
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:315)
	at 
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:161)

Has anybody successfully managed to get tomcat to do this? If so, can 
you post an example to use?

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


Re: Help : Linux Debian

2003-11-15 Thread Harry Mantheakis
Hi Justin

> Lots of Debian users compile just about everything from souds.  I don't think
> that he means just Tomcat.  A lot of us recompile our kernel from source, our
> compiler from source, and so forth.  A lot of Linux users pick debian because
> it has a flexible package manager that will put up with us tinkering with our
> systems.

Thanks for that clarification.

Do you recompile Java too?

Really what I was asking (or hoping to get some pointer to :-) was what kind
of changes one might want to make in the Tomcat source before recompiling
it?

I am not expecting a nuts and bolts answer to this question - just some
general pointers.

Regards

Harry Mantheakis
London, UK


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



Re: Session Replication problems on Tomcat 5.0.12

2003-11-15 Thread Antonio Fiol Bonnín
Clear, simple, and to the point. Thank you very much!

I will download it from CVS right now,

Thanks again. Hope it helps solving our problem, but it surely will 
solve *some* problem.

Antonio Fiol

Filip Hanik wrote:

ok, remember that according to the spec, your passing in null, means remove
the previous one,
this is the code I added.
if ( value == null ) {
 removeAttribute(name);
 return;
}
Filip
- Original Message -
From: "Filip Hanik" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 1:22 PM
Subject: Re: Session Replication problems on Tomcat 5.0.12
you can not do it with session replication, since null doesn't implement
java.io.Serializable,
request.getSession().setAttribute("name",null);

I can modify my code to make it work with code like that

- Original Message -
From: "Antonio Fiol Bonnín" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 12:26 PM
Subject: Re: Session Replication problems on Tomcat 5.0.12
Wait! That's a good one!

I am not sure whether that situation exists or not in the app. In fact,
I don't see why it would be there, but...
Can't one store null as a value? Isn't this valid?

request.getSession().setAttribute("name",null);

About storing other classes, about a month ago I went through a thorough
check of all our application to ensure that every setAttribute was
executed with a Serializable parameter. Maybe one has slipped in since,
but I doubt it: the relevant code has been very stable for about two months.
Apart from that, I'm afraid we are not catching the exception. You are
giving me a lot of ideas to test on Monday morning.
Thank you very much.

Antonio Fiol

Filip Hanik wrote:

 

when you get the exception, why don't you actually print out the attribute
class,
maybe you are storing null or another class under the same name elsewhere
   

in
 

your app
- Original Message -
From: "Antonio Fiol Bonnín" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 11:53 AM
Subject: Re: Session Replication problems on Tomcat 5.0.12
Unfortunately, I cannot reproduce the error in a deterministic way. What
I know is that it sometimes spits the exception. I use JMeter to stress
the server a little bit, and the exception appears in localhost_log
(does this help?). The app logs to catalina.out.
What I mean is that it does not seem to me that it is the app catching
the exception and printing to the log but maybe a tomcat thread on the
receiving side (does that make sense?).
Would the stack trace be helpful? I will have it available on Monday
morning.
Anyway, do you advise to try 5.0.14 for our matters or is it better to
stay back on 5.0.12? I have just read about 5.0.14 proving "fairly
stable and successful"  ;-)  (From Y. Shapira, about an hour ago)
Thank you very much.

Antonio Fiol

Filip Hanik wrote:



   

I can not reproduce the error that you have, although I ran 5.0.14Beta,
 

but
 

the code is the same.

Filip

I created a JSP on my environment, that looks like this.

<%
request.getSession().setAttribute("test","test");
%>
ok
Tomcat 1 spits out

Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO: writeObject() storing session A8FD8BD50E14477CC57E3EBA6F9591B8
Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO:   storing attribute 'test' with value 'test'
Nov 14, 2003 11:12:58 AM org.apache.catalina.cluster.tcp.ReplicationValve
addClu
sterSendTime
INFO: Average cluster serialize/send time=16 ms for 1 requests (16ms).
Tomcat 2 spits out

Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO: Received SessionMessage of type=SESSION-MODIFIED
Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO: Received SessionMessage
sender=org.apache.catalina.cluster.mcast.McastMemb
er[tcp://10.0.2.76:4001,10.0.2.76,4001]
Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO: readObject() loading session A8FD8BD50E14477CC57E3EBA6F9591B8
Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO:   loading attribute 'test' with value 'test'
Nov 14, 2003 11:12:58 AM
org.apache.catalina.cluster.session.SimpleTcpReplicatio
nManager log
INFO: Received replicated session=ReplicatedSession
id=A8FD8BD50E14477CC57E3EBA6
F9591B8 ref=StandardSession[A8FD8BD50E14477CC57E3EBA6F9591B8]
 name=test; value=test
 LastAccess=1068837178625
- Original Message -
From: "Antonio Fiol Bonnín" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 10:51 AM
Subject: Re: Session Replication problems on Tomcat 5.0.12
Sorry. I forgot to mention that the attribute is, in fact, a String. And
Strings are, AFAICT, Serializable.
Something like:

Stri

Re: Tomcat startup script

2003-11-15 Thread Bill Barker
I'm ashamed to admit that I know this, but, for Win9x you need to increase
the settings for enviroment space.

"tim" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am also looking for the script. I have put it in once via system
properties on a w2000 machine that had a box to enter it into. But on W98 I
am not apt at editing the tomcat.bat file
> here it is. I do not know what to type.
>
> @echo off
>
rem 
-
> rem tomcat.bat - Start/Stop Script for the TOMCAT Server
> rem
> rem Environment Variable Prerequisites:
> rem
> rem   TOMCAT_HOME  (Optional) May point at your Tomcat distribution
> remdirectory.  If not present, the current working
> remdirectory is assumed.
> remNote: This batch file does not function properly
> remif TOMCAT_HOME contains spaces.
> rem
> rem   TOMCAT_OPTS  (Optional) Java runtime options used when the "start",
> rem"stop", or "run" command is executed
> rem
> rem   CLASSPATH(Optional) This batch file will automatically add
> remwhat Tomcat needs to the CLASSPATH.  This consists
> remof TOMCAT_HOME\classes and all the jar files in
> remTOMCAT_HOME\lib. This will include the "jaxp.jar"
> remand "parser.jar" files from the JAXP Reference
> remimplementation, and the "tools.jar" from the JDK.
> rem
> rem   JAVA_HOMEMust point at your Java Development Kit installation.
> rem
> rem $Id: tomcat.bat,v 1.24.2.7 2001/06/24 19:27:10 marcsaeg Exp $
>
rem 
-
>
> rem - Save Environment Variables That May
Change 
> set _CP=%CP%
> set _TOMCAT_HOME=%TOMCAT_HOME%
> set _CLASSPATH=%CLASSPATH%
>
> rem - Verify and Set Required Environment
Variables -
> if not "%JAVA_HOME%" == "" goto gotJavaHome
> echo You must set JAVA_HOME to point at your Java Development Kit
installation
> goto cleanup
> :gotJavaHome
> if not "%TOMCAT_HOME%" == "" goto gotTomcatHome
> set TOMCAT_HOME=.
> :gotTomcatHome
> if exist "%TOMCAT_HOME%\lib\servlet.jar" goto okTomcatHome
> echo Unable to locate servlet.jar, check the value of TOMCAT_HOME.
> goto cleanup
> :okTomcatHome
>
> rem - Prepare Appropriate Java Execution
Commands ---
> if not "%OS%" == "Windows_NT" goto noTitle
> set _SECSTARTJAVA=start "Secure Tomcat 3.2" "%JAVA_HOME%\bin\java"
> set _STARTJAVA=start "Tomcat 3.2" "%JAVA_HOME%\bin\java"
> set _RUNJAVA="%JAVA_HOME%\bin\java"
> goto setClasspath
> :noTitle
> set _SECSTARTJAVA=start "%JAVA_HOME%\bin\java"
> set _STARTJAVA=start "%JAVA_HOME%\bin\java"
> set _RUNJAVA="%JAVA_HOME%\bin\java"
>
> rem - Set Up The Runtime
Classpath --
> :setClasspath
> set CP=%TOMCAT_HOME%\classes
> rem Try to determine if TOMCAT_HOME contains spaces
> if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath
> echo Your TOMCAT_HOME appears to contain spaces.
> echo Unable to set CLASSPATH dynamically.
> goto staticClasspath
> :dynClasspath
> set _LIBJARS=
> for %%i in (%TOMCAT_HOME%\lib\*.*) do call %TOMCAT_HOME%\bin\cpappend.bat
%%i
> if not "%_LIBJARS%" == "" goto gotLibJars
> echo Unable to set CLASSPATH dynamically.
> if "%OS%" == "Windows_NT" goto staticClasspath
> echo Note: To set the CLASSPATH dynamically on Win9x systems
> echo   only DOS 8.3 names may be used in TOMCAT_HOME!
> goto staticClasspath
> :gotLibJars
> echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH.
> rem Note: _LIBJARS already contains a leading semicolon
> set CP=%CP%%_LIBJARS%
> goto chkClasspath
> :staticClasspath
> echo Setting your CLASSPATH statically.
> if exist "%TOMCAT_HOME%\lib\ant.jar" set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar
> if exist "%TOMCAT_HOME%\lib\jasper.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar
> if exist "%TOMCAT_HOME%\lib\jaxp.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar
> if exist "%TOMCAT_HOME%\lib\parser.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\parser.jar
> if exist "%TOMCAT_HOME%\lib\servlet.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
> if exist "%TOMCAT_HOME%\lib\webserver.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar
> :chkClasspath
> if "%CLASSPATH%" == "" goto noClasspath
> set CP=%CP%;%CLASSPATH%
> :noClasspath
> if not exist "%JAVA_HOME%\lib\tools.jar" goto installClasspath
> set CP=%CP%;%JAVA_HOME%\lib\tools.jar
> :installClasspath
> echo.
> echo Using CLASSPATH: %CP%
> echo.
> set CLASSPATH=%CP%
>
> rem - Execute The Requested
Command -
> if "%1" == "start" goto startServer
> if "%1" == "stop" goto stopServer
> if "%1" == "run" goto runServer
> if "%1" == "ant" goto runAnt
> if "%1" == "env" goto doEnv
> if "%1" == "jspc" goto runJspc
> :doUsage
> echo Usage:  tomcat ( ant ^| env ^| jspc ^| run ^| start ^| stop )
> echo Commands:
> echo  

Re: Tomcat 5 release date ?

2003-11-15 Thread Bill Barker
The JCP has posted the votes on both 154 (aka Servlet-2.4) & 152 (aka
JSP-2.0), the final specs should be out very soon.  Depending on the changes
in the specs from PFD-3, there may be another beta release, or TC 5.0.15 may
go GA :).

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Howdy,
Yup, read the list archives.  Or understand that it's the same as any
open-source project pretty much: When It's Ready.

Looks like no more than four weeks now, though, with J2EE 1.4 having
gone final and 5.0.14 proving fairly stable and successful.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 14, 2003 1:35 PM
>To: Tomcat Users List
>Cc: [EMAIL PROTECTED]
>Subject: Tomcat 5 release date ?
>
>Hi,
>
>Is there a way to find the projected released date for Tomcat 5 ?
>
>Thanks.
>
>
>-
>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]



Re: https --> http session problem

2003-11-15 Thread Bill Barker

"Andrew Mottaz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've run into the problem where a session cookie gets lost when you
> start on http and move to https.  The reason seems to be that
> 'secure=true' is set on the session cookie when you start on https,
> preventing the cookie from being passed to the http page.
>
>
> I found the following in the archives:
>
> You can maintain your session going http->https.  You can't maintain
> your
> session https->http (unless you previously did a http->https).
>
>
>   Is there any way to change the configuration to always use non-secure
> session cookies?

You can in 3.3.2 (since it is a +0.0.1 release change).  In all higher
versions of Tomcat, no.

>
> If there is not, is there a standard workaround?  I  hate the hack of
> redirecting to make sure that first access is not secure.

Start hating ;-).

>
> Thanks much,
>
> Andrew
>




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