SSL on Tomcat 4.0 with IBM JDK 1.3.0

2001-12-19 Thread Mihai Gheorghiu

I managed to start Tomcat 4.0.1 on my RH 7.0 box only after I replaced Sun's
JDK 1.3.1 with IBM's JDK 1.3.0.
This also avoids errors in some other packages (I'm experimenting with
Velocity).
So, if I want to have an SSL connection to TC 4.0.1 on IBM JDK 1.3.0, what
do I need to do?
Thank you all.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem with TOMCAT 3.3 : can't find tools.jar of my JDK 1.3.0

2001-12-03 Thread LEBRETON Philippe

I have install TOMCAT 3.3 and jdk 1.3.0
TOMCAT_HOME and JAVA_HOME is set.
and when i go to the examples URL i have a error :
java.lang.NoClassDefFoundError: sun/tools/javac/Main

i start tomcat with : bin/tomcat.sh start,
and the display that  CLASSPATH= $TOMCAT_HOME/lib
nothing for the JDK???

it is a bug ?

help me

thanks

Philippe LEBRETON


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problem with TOMCAT 3.3 : can't find tools.jar of my JDK 1.3.0

2001-12-03 Thread David Morsberger

I had the same problem and here is what I found:


I found where Tomcat is trying to add the tools.jar file. The line contains:

System.getProperty( java.home ) + /../lib/tools.jar

A println(java.home =  + System.getProperty( java.home )) in a test
program returns:

java.home = /usr/bin/../opt/java130/bin/../jre

jre was a link instead of a directory. This made the ../lib unpredictable. I
moved the jre around and now it works. The jre link was made to install an
fast jvm on the node.

Hope this helps,
Dave

 From: LEBRETON Philippe [EMAIL PROTECTED]
 Organization: CTI des Pays de Loire
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Date: Mon, 03 Dec 2001 11:22:05 +0100
 To: Tomcat [EMAIL PROTECTED]
 Subject: Problem with TOMCAT 3.3 : can't find tools.jar of my JDK 1.3.0
 
 I have install TOMCAT 3.3 and jdk 1.3.0
 TOMCAT_HOME and JAVA_HOME is set.
 and when i go to the examples URL i have a error :
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 
 i start tomcat with : bin/tomcat.sh start,
 and the display that  CLASSPATH= $TOMCAT_HOME/lib
 nothing for the JDK???
 
 it is a bug ?
 
 help me
 
 thanks
 
 Philippe LEBRETON
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JDK 1.3.0...

2001-07-17 Thread Everitt, Andrew

All olg JDKs are available on the Sun site, you just have to know where to
look, try going to:
http://java.sun.com/j2se/1.3.0/

Cheers,
Andi

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: 17 July 2001 14:05
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: JDK 1.3.0...
 
 
 I have 1.3.0_02 for linux if you want - or anyone else for 
 that matter.
 
 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$ 
 
 cheesr
 dim
 
 On Tue, 17 Jul 2001, Adam Fowler wrote:
 
  Hey all,
  
  Sorry about sending this from a non-subscribed account - 
 I'm at work 8o)
  
  I know a few people were looking for Java 2 SDK version 1.3 
 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants 
 it. I'm still
  looking for the linux version to put up.
  
  Hope this helps,
  
  Adam.
  
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  
  
  
 



RE: JDK 1.3.0...

2001-07-17 Thread Cory Powers

Or go to the archive at http://java.sun.com/products/archive/index.html

-Original Message-
From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JDK 1.3.0...


All olg JDKs are available on the Sun site, you just have to know where to
look, try going to:
http://java.sun.com/j2se/1.3.0/

Cheers,
Andi

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: 17 July 2001 14:05
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: JDK 1.3.0...
 
 
 I have 1.3.0_02 for linux if you want - or anyone else for 
 that matter.
 
 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$ 
 
 cheesr
 dim
 
 On Tue, 17 Jul 2001, Adam Fowler wrote:
 
  Hey all,
  
  Sorry about sending this from a non-subscribed account - 
 I'm at work 8o)
  
  I know a few people were looking for Java 2 SDK version 1.3 
 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants 
 it. I'm still
  looking for the linux version to put up.
  
  Hope this helps,
  
  Adam.
  
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  
  
  
 



Re: JDK 1.3.0...

2001-07-17 Thread Adam Fowler

That'd be great 8o)

Adam.

On Tuesday 17 July 2001 13:05, you wrote:
 I have 1.3.0_02 for linux if you want - or anyone else for that matter.

 [dim@dim dim]$ java -version
 java version 1.3.0_02
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
 Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
 [dim@dim dim]$

 cheesr
 dim

 On Tue, 17 Jul 2001, Adam Fowler wrote:
  Hey all,
 
  Sorry about sending this from a non-subscribed account - I'm at work 8o)
 
  I know a few people were looking for Java 2 SDK version 1.3 as opposed to
  1.3.1. A friend of mine, Paul, has the Windows install at
  http://users.aber.ac.uk/pms/jdk/index.html if anyone wants it. I'm still
  looking for the linux version to put up.
 
  Hope this helps,
 
  Adam.
 
  
  Adam Fowler
  Help Desk Live Project
  Information Services
  University of Wales, Aberystwyth
  E-mail: [EMAIL PROTECTED]
  



Re: JDK 1.3.0...

2001-07-17 Thread Adam Fowler

Excellent, thanks guys I'll put that info on my site 8o)

Adam.

On Tuesday 17 July 2001 14:37, you wrote:
 Or go to the archive at http://java.sun.com/products/archive/index.html

 -Original Message-
 From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:35 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: JDK 1.3.0...


 All olg JDKs are available on the Sun site, you just have to know where to
 look, try going to:
 http://java.sun.com/j2se/1.3.0/

 Cheers,
 Andi
 
 Andrew Everitt
 Xerox Mobile Solutions, Cambridge. UK

  -Original Message-
  From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
  Sent: 17 July 2001 14:05
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: JDK 1.3.0...
 
 
  I have 1.3.0_02 for linux if you want - or anyone else for
  that matter.
 
  [dim@dim dim]$ java -version
  java version 1.3.0_02
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
  Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
  [dim@dim dim]$
 
  cheesr
  dim
 
  On Tue, 17 Jul 2001, Adam Fowler wrote:
   Hey all,
  
   Sorry about sending this from a non-subscribed account -
 
  I'm at work 8o)
 
   I know a few people were looking for Java 2 SDK version 1.3
 
  as opposed to
 
   1.3.1. A friend of mine, Paul, has the Windows install at
   http://users.aber.ac.uk/pms/jdk/index.html if anyone wants
 
  it. I'm still
 
   looking for the linux version to put up.
  
   Hope this helps,
  
   Adam.
  
   
   Adam Fowler
   Help Desk Live Project
   Information Services
   University of Wales, Aberystwyth
   E-mail: [EMAIL PROTECTED]
   



Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread David Knaack

Greetings,

I'm running Tomcat 3.1 with several virtual hosts, and
with Sun's JDK1.2.2 I had no problems.  However, I needed
to upgrade to JDK1.3.0 for another package, and now when
I start up Tomcat I'm getting about 11 instances of 'java'
starting along with each virtual host.

With 5 virtual hosts I've got over 50 java processes running,
which I'd like to get rid of.

Am I doing something to cause the extra processes to start,
or is it a bug or what?

Thanks
DK
--
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again, 101 little bugs in the code.





Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread David Knaack

From: "David Knaack" [EMAIL PROTECTED]
 I'm running Tomcat 3.1 with several virtual hosts, and
 with Sun's JDK1.2.2 I had no problems.  

Oops, I should mention that I'm running on RedHat 6.2.




Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread Elijah Roberts

On Wednesday October 25, 2000 David Knaack wrote:
 Greetings,
 
 I'm running Tomcat 3.1 with several virtual hosts, and
 with Sun's JDK1.2.2 I had no problems.  However, I needed
 to upgrade to JDK1.3.0 for another package, and now when
 I start up Tomcat I'm getting about 11 instances of 'java'
 starting along with each virtual host.
 
 With 5 virtual hosts I've got over 50 java processes running,
 which I'd like to get rid of.
 
 Am I doing something to cause the extra processes to start,
 or is it a bug or what?

Are using jdk1.3 for Linux? If so they aren't really processes, they're
threads. It's just that in Linux with the ps command it lists each thread
as a seperate processes. As far as I can tell, most of the memory is
shared, so it really isn't using as many resources as it seems,
hopefully. If you're not using Linux, just ignore me...

Elijah Roberts
[EMAIL PROTECTED]




Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread Paul Russell

On Wed, Oct 25, 2000 at 03:15:51PM -0500, David Knaack wrote:
 From: "David Knaack" [EMAIL PROTECTED]
  I'm running Tomcat 3.1 with several virtual hosts, and
  with Sun's JDK1.2.2 I had no problems.  
 Oops, I should mention that I'm running on RedHat 6.2.

Heh. In which case, don't panic. Linux reports each thread
as a separate process, when in fact threads in linux are
incredibly light. Memory also seems to be massivly misreported,
to the point where I once had tomcat aparently using nearly
400 MB of ram (I was load testing, so there were a lot of threads),
which is 'somewhat unlikely' given I was on a laptop with 196MB
of ram and 128MB of swap. Look at the amount of ram *free* on
the server, if that is low, it might be worth upgrading it...


Paul
-- 
Paul Russell   [EMAIL PROTECTED]
Technical Director,   http://www.luminas.co.uk
Luminas Ltd.



Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread David Knaack

From: "Paul Russell" [EMAIL PROTECTED]
 On Wed, Oct 25, 2000 at 03:15:51PM -0500, David Knaack wrote:
  From: "David Knaack" [EMAIL PROTECTED]
   I'm running Tomcat 3.1 with several virtual hosts, and
   with Sun's JDK1.2.2 I had no problems.  
  Oops, I should mention that I'm running on RedHat 6.2.
 
 Heh. In which case, don't panic. Linux reports each thread
 as a separate process, when in fact threads in linux are
 incredibly light. Memory also seems to be massivly misreported,

Kind of looks like the threads are reported as using the
same resources as the parent, so each set of 11 related
java threads all report ~12Mb used, (summing to over
130Mb), when the correct figure is actually closer to 12Mb
total?

Interesting, someone ought to fix that.

 Look at the amount of ram *free* on
 the server, if that is low, it might be worth upgrading it...

Well, 'free' reports the following:

5 tomcats up for ~20 hours, light load
 total   used   free 
Mem:127908 120840   7068 
Swap:   232900   8360 224540
./tomcat all stop
Mem:127908  73488  54420   
Swap:   232900   7776 225124
./tomcat all start
Mem:127908 104380  23528
Swap:   232900   7776 225124
hit each site once
Mem:127908 111984  15924   
Swap:   232900   7752 225148

So it looks like under normal circumstances I'm running
pretty light on real memory, but next to nothing has
been swapped out.  I guess thats good?

Thanks for the assistance!
DK




Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread Paul Russell

On Wed, Oct 25, 2000 at 04:21:13PM -0500, David Knaack wrote:
 Kind of looks like the threads are reported as using the
 same resources as the parent, so each set of 11 related
 java threads all report ~12Mb used, (summing to over
 130Mb), when the correct figure is actually closer to 12Mb
 total?

Yep.

 Interesting, someone ought to fix that.

Indeed. It's one of those tough things where it's difficult to
know whether it's actually wrong (Threads and processes in linux
are very similar, and the processes *are* using that much ram,
and it's not shared in the traditional sense) or not. I suspect
in truth it's a bug in the 'ps' and 'top' utils, which should
probably check if the processes are full processes or LWPs
(threads). I'd look into it, but I'm an OO programmer, so the
kernel scares me ;)

  Look at the amount of ram *free* on
  the server, if that is low, it might be worth upgrading it...
 So it looks like under normal circumstances I'm running
 pretty light on real memory, but next to nothing has
 been swapped out.  I guess thats good?

That's not *too* bad. Linux caches stuff. lots. If you've got
a lot of ram free for a while, you'll end up with half your
inode tables and blocks in ram. If your machine has lots in
swap, it's time to worry. yours looks healthy. What VM are you
running, out of interest - it's interesting that you save a fair
bit of ram when you restart tomcat? If you're running a JIT/Hotspot
compiler, it's almost certainly nothing to worry about (they
learn what needs optimising and will eat ram to make things run
faster, if necessary.)


Paul

-- 
Paul Russell   [EMAIL PROTECTED]
Technical Director,   http://www.luminas.co.uk
Luminas Ltd.



[tomcat-user] Re: Sun JDK 1.3.0 and multiple 'java' startups?

2000-10-25 Thread kenneth topp


okay.. memory usage now.  3 things to note.

1) What you see is not what is happening (under unix).  Here is a
good general guide (although written as reference for GNOME project):

 http://mail.gnome.org/pipermail/gnome-list/1999-September/031795.html

2) Java allocates memory for it's own purposes (ie: for being it's own
cpu/os virtual thingy).  It's default heap can be large, although it tends
to be set small for x86 jvm's as vendors relieze that boxes average ~
128mb, and you don't want to set it too big.

3) now java's heap:  Imagine that you run your
virtual CPU in software, and your virtual CPU get's swapped by the OS,
then forget about any application running on the virtual CPU.. 

run :
 java -X

see: 
-Xmssizeset initial Java heap size
-Xmxsizeset maximum Java heap size

These values are critical for good performance.  If java process swaps
you're in big trouble.  I would think the OS needs to have hooks into
userspace for the jvm to handle swapping gracefully... No one seems to
mention this mess right now.

Anycase, just fyi..

Kenneth Topp

---
 to unsubscribe: [EMAIL PROTECTED]
 for more info: http://jakarta.apache.org/getinvolved/mail.html

On Wed, 25 Oct 2000, David Knaack wrote:

 From: "Paul Russell" [EMAIL PROTECTED]
  On Wed, Oct 25, 2000 at 03:15:51PM -0500, David Knaack wrote:
   From: "David Knaack" [EMAIL PROTECTED]
I'm running Tomcat 3.1 with several virtual hosts, and
with Sun's JDK1.2.2 I had no problems.  
   Oops, I should mention that I'm running on RedHat 6.2.
  
  Heh. In which case, don't panic. Linux reports each thread
  as a separate process, when in fact threads in linux are
  incredibly light. Memory also seems to be massivly misreported,
 
 Kind of looks like the threads are reported as using the
 same resources as the parent, so each set of 11 related
 java threads all report ~12Mb used, (summing to over
 130Mb), when the correct figure is actually closer to 12Mb
 total?
 
 Interesting, someone ought to fix that.
 
  Look at the amount of ram *free* on
  the server, if that is low, it might be worth upgrading it...
 
 Well, 'free' reports the following:
 
 5 tomcats up for ~20 hours, light load
  total   used   free 
 Mem:127908 120840   7068 
 Swap:   232900   8360 224540
 ./tomcat all stop
 Mem:127908  73488  54420   
 Swap:   232900   7776 225124
 ./tomcat all start
 Mem:127908 104380  23528
 Swap:   232900   7776 225124
 hit each site once
 Mem:127908 111984  15924   
 Swap:   232900   7752 225148
 
 So it looks like under normal circumstances I'm running
 pretty light on real memory, but next to nothing has
 been swapped out.  I guess thats good?
 
 Thanks for the assistance!
 DK