Re: servlet benchmarking vs cgi

2002-11-09 Thread Remy Maucherat
Aryeh Katz wrote:


Did you try getting the max throughtput using another servlet ? If
there's a performance problem with your servlet, you could use
something like OptimizeIt to figure it improve it.

I downloaded OptimizeIt, ran it on my servlet and ran ab.
As expected most of the CPU time was in the AJP stuff, and most of the
AJP stuff was in my servlet.
However, the majority of the processing being done was PrintWriter.flush.
Contrary to some of the other posts here, I didn't see anything in
StringBuffer.replace.
I'm basing this on the CPU profiler. If there is something else I 
should look at,
please let me know


I can't see why PrintWriter.flush() (probably called in 
CoyoteWriter.flush()) takes so much CPU time. If it is confirmed to be a 
problem, then we can reimplement the functions instead of relying on the 
superclass.

What you may want to experiment with:
- use JDK 1.4.1 (faster)
- try Tomcat standalone (JK has more overhead than standalone Tomcat)

Otherwise, can you send more details of the profile ? I didn't see a 
spike in that function while profiling JSPs or the HelloWorld servlet, 
which both use the CoyoteWriter.

Thanks,
Rémy


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: Rare request delay of 100 seconds

2002-11-09 Thread Sexton, George
What kernel version are you running?

-Original Message-
From: Randy Watler [mailto:rwatler;finali.com]
Sent: 08 November, 2002 5:08 PM
To: Tomcat Users List
Subject: Re: Rare request delay of 100 seconds


George,

This is a non-SSL secure connector that is fronted by an SSL hardware. This
means
that Tomcat is seeing the traffic as plain HTTP. The packet data we traced
was to
the Tomcat server itself, so the SSL hardware seems to have been eliminated
from
the equation. The connector is set to https and secure so that Tomcat
servlets know they are served in a secure context.

Randy Watler
Finali Corporation

Sexton, George wrote:

 If you don't use SSL do you have the same problem?

 -Original Message-
 From: Randy Watler [mailto:rwatler;finali.com]
 Sent: 08 November, 2002 4:41 PM
 To: Tomcat Users List
 Subject: Re: Rare request delay of 100 seconds

 George,

 Thanks for the query. Here is the connector configuration:

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8543 minProcessors=8 maxProcessors=128
enableLookups=false
acceptCount=64 debug=0 connectionTimeout=30
scheme=https secure=true
useURIValidationHack=false/

 So, I think we have it setup right, no?

 Randy Watler
 Finali Corporation

 Sexton, George wrote:

  Do you have the connector doing reverse DNS resolution of hosts?
 
  -Original Message-
  From: Randy Watler [mailto:rwatler;finali.com]
  Sent: 08 November, 2002 4:22 PM
  To: [EMAIL PROTECTED]
  Subject: Rare request delay of 100 seconds
 
  We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having
  rare HTTP requests delayed on their way into the Coyote HTTP/1.1
  connectors. We have packet traces that indicate the request is delayed
  by exactly 100 seconds, but otherwise is received and responded to as
  one would expect. Other requests immediately before and after the
  problematic ones are handled without any significant delay. We are
  wondering if others have noticed this problem or similar ones that sound
  like it?
 
  In the coyote connector code, it appears that the request sockets are
  set by default to have 100 second SO_LINGER timeouts for socket close()
  calls. Of course, this looks suspicious given our problem, but we have
  not been able to identify any way the blocked close() operation could
  affect incoming accept() requests. It is clear that running out of
  processor threads in the thread pool could cause such a delay, but we
  are not running under loads where this would happen, especially for 100
  seconds.
 
  Any ideas out there?
 
  Randy Watler
  Finali Corporation
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Creating a new web app under webapps folder

2002-11-09 Thread Ashfaque Nalim
Hi,
I downloaded Tomcat 4.1.12 recently. I wanted to create a folder called 
mpapp under webapps folder.

Like in Tomcat 3, I created a folder, then stoped and started tomcat. But, 
this did not work, I get the following error.

HTTP Status 404 - /myapp



type Status report

message /myapp

description The requested resource (/myapp) is not available.


How can I resolve this? Can you give an example on how to create a app using 
the manager.

thanks you,
Ashfaque Nalim.



_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



How do I use the admin webapp in 4.1.12 ?

2002-11-09 Thread Sriram N
Hello,

I downloaded 4.1.12 today and decided to explore it.

How do I use the admin webapp ? I was able to use the manager app after
creating a user in tomcat-users.xml.

Thanks,

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: how to STOP TOMCAT LOGGING

2002-11-09 Thread yves lambert
randie ursal wrote:


hi list,

  how can i disable logging on TOMCAT?

  i have a tomcat on a Solaris 8.0 machine, and when i look at the
  logs folder the log files from previous months was not erased. so,
  if this is going on for so long there's a tendency that my disk
  space will be full.

  BTW, im using jakarta-tomcat-4.0.

thanks.



--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



i suggest you the followings:
- buy a 80 GB hard disk
- delete files each time you backup your HD
- Unsubscribe to all EZLN or else your disk will be filled faster

--
\/

/\




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




how to STOP TOMCAT LOGGING

2002-11-09 Thread randie ursal
hi list,

  how can i disable logging on TOMCAT?

  i have a tomcat on a Solaris 8.0 machine, and when i look at the
  logs folder the log files from previous months was not erased. so,
  if this is going on for so long there's a tendency that my disk
  space will be full.

  BTW, im using jakarta-tomcat-4.0.

thanks.



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Got admin working.. (Re: How do I use the admin webapp in 4.1.12 ?)

2002-11-09 Thread Sriram N
Since I was able to add myself as manager using tomcat-users, I added admin
priveleges the same way.

Here's the line in my tomcat-users.xml file:
  user username=sriram password=foo roles=manager,admin/

However, this is not documented anywhere in the tomcat docs.

--Sriram

--- Sriram N [EMAIL PROTECTED] wrote:
 Hello,
 
 I downloaded 4.1.12 today and decided to explore it.
 
 How do I use the admin webapp ? I was able to use the manager app after
 creating a user in tomcat-users.xml.
 
 Thanks,
 
 Sriram
 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: how to STOP TOMCAT LOGGING

2002-11-09 Thread jmong
You can try disabling debugging in your server.xml

for example:
Server port=8005 shutdown=SHUTDOWN debug=1
to
Server port=8005 shutdown=SHUTDOWN debug=0

there are several others. The other thing to check is to check the log
level for the log. You'll have to check the tomcat manual for that... it
escapes me at the moment. But for example you can change the log level
for mod_jk if you're using it

in apache:
JkLogLevel debug to

JkLogLevel emerg

The best thing though is to rotate the logs, assuming you have a tomcat
startup/shutdown script. This is from memory so it might not be
syntactically correct but you get the idea

#!/bin/sh

# tomcat startup/shutdown script
# jm-tomcat.sh
TOMCAT_HOME=/usr/local/tomcat
JAVA_HOME=/usr/java
CATALINA_HOME=${TOMCAT_HOME}
SCRIPT_NAME=`basename $0`

Usage()
{
  echo ${SCRIPT_NAME} start|stop|restart
  exit 1
}

if [ $# != 1 ];
then
  Usage
fi

case $1 in
  start)
 if [ -f ${CATALINA_HOME}/bin/startup.sh ];
 then
${CATALINA_HOME}/bin/startup.sh
if [ $? != 0 ];
then
  echo Tomcat failed to start!
  exit 1
else
  echo Tomcat started successfully!
  exit 0
fi

echo $$  /tmp/tomcat.pid # this may or may not work
 fi
 ;;
  stop)
 if [ -f ${CATALINA_HOME}/bin/shutdown.sh ];
 then
${CATALINA_HOME}/bin/shutdown.sh
if [ $? != 0 ];
then
  echo Tomcat failed to stop! Is Tomcat running? /bin/ps -ef |
grep java
  exit 1
else
  echo Tomcat terminated successfully!
  exit 0
fi
;;
  restart)
echo Restarting tomcat
$0 stop
sleep 5
$0 start
;;
esac

#!/bin/sh
# rotate logs
# jm-rotate.sh
SRCPATH=/usr/local/tomcat/logs
DSTPATH=/archive # place to store them
SCRIPT_NAME=`basename $0`
LOG_TO_ROTATE=mod_jk.log # name of log to rotate

make_backup()
{
  # Save the number of days here
  # I'm pretty proud of myself for figuring out this one ^_^
  # this part of the code should work since I'm using this somewhere
  # else

  FILE=$1
  # save 5 days with 4 being the oldest and 0 the newest
  for i in 4 3 2 1 0
  do
# uncomment this for debugging
#echo ${FILE}.${i}
if [ -r ${FILE}.${i} ];
then
  k=`expr $i + 1`
  echo /bin/mv -f ${FILE}.${i} to ${FILE}.${k}
  /bin/mv -f ${FILE}.${i} ${FILE}.${k}
fi
  done

  return
}

# Stop tomcat
/tmp/jm-tomcat.sh stop
if [ $? = 0 ];
then
  # rotate logs in archive directory
  make_backup ${DSTDIR}/${LOG_TO_ROTATE}

  # get the most current one for today
  if [ -r ${SRCDIR}/${LOG_TO_ROTATE} ];
  then
/bin/mv ${SRCDIR}/${LOG_TO_ROTATE} ${DSTDIR}/${LOG_TO_ROTATE}.0
  fi

  echo Backup is complete! Thanks for using JM Script. Have a nice  day!
  # backup is done--restart tomcat
  /tmp/jm-tomcat.sh start
fi

Hope that helps..

Jan-Michael Ong

- Original Message -
From: yves lambert [EMAIL PROTECTED]
Date: Saturday, November 9, 2002 7:38 am
Subject: Re: how to STOP TOMCAT LOGGING

 randie ursal wrote:
 
  hi list,
 
how can i disable logging on TOMCAT?
 
i have a tomcat on a Solaris 8.0 machine, and when i look at the
logs folder the log files from previous months was not erased. so,
if this is going on for so long there's a tendency that my disk
space will be full.
 
BTW, im using jakarta-tomcat-4.0.
 
  thanks.
 
 
 
  -- 
  To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 i suggest you the followings:
 - buy a 80 GB hard disk
 - delete files each time you backup your HD
 - Unsubscribe to all EZLN or else your disk will be filled faster
 
 -- 
 \/
 
 /\
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Contribution to the running.txt file for thje admin and manager web apps.

2002-11-09 Thread Sriram N
Hello,

Since the running.txt does not contain any kickstart information for the
manager and admin web applications, here's something that we could use as a
placeholder until something better is developed.

I was thinking of placing this paragraph before the (5) Troubleshooting section
in the file running.txt

*
The Manager and the Admin web applications.
---
These web applications can be used to maintain the Tomcat. They are priveleged
web applications.
If you are using the Memory Realm (which is the default), then the access can
be configured from the
$CATALINA_HOME$/conf/tomcat-users.xml.

This file contains a few predefined roles and users for such roles.
To access the manager application with the username mgr and the password
pwd , add the following line to tomcat-users.xml
  user username=mgr password=pwd roles=manager/
 The manager web application is documented in the Manger-Howto, a part of the
Tomcat documentation.

To access the admin application with the username adm and the password pwd,
add the following line to tomcat-users.xml
  user username=adm password=pwd roles=admin/   
The admin web application does not have a dedicated documentation page.
Contributions are welcome.
*

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Contribution to the running.txt file for thje admin and manager web apps.

2002-11-09 Thread Sriram N
Hello,

Since the running.txt does not contain any kickstart information for the
manager and admin web applications, here's something that we could use as a
placeholder until something better is developed.

I was thinking of placing this paragraph before the (5) Troubleshooting section
in the file running.txt

*
The Manager and the Admin web applications.
---
These web applications can be used to maintain the Tomcat. They are priveleged
web applications.
If you are using the Memory Realm (which is the default), then the access can
be configured from the
$CATALINA_HOME$/conf/tomcat-users.xml.

This file contains a few predefined roles and users for such roles.
To access the manager application with the username mgr and the password
pwd , add the following line to tomcat-users.xml
  user username=mgr password=pwd roles=manager/
 The manager web application is documented in the Manger-Howto, a part of the
Tomcat documentation.

To access the admin application with the username adm and the password pwd,
add the following line to tomcat-users.xml
  user username=adm password=pwd roles=admin/   
The admin web application does not have a dedicated documentation page.
Contributions are welcome.
*

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Got admin working.. (Re: How do I use the admin webapp in 4.1.12?)

2002-11-09 Thread Remy Maucherat
Sriram N wrote:


Since I was able to add myself as manager using tomcat-users, I added 
admin
priveleges the same way.

Here's the line in my tomcat-users.xml file:


However, this is not documented anywhere in the tomcat docs.


This is written in the default home page (you need admin role for the 
admin webapp).

Rémy


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: Got admin working.. (Re: How do I use the admin webapp in 4.1.12 ?)

2002-11-09 Thread Sriram N

--- Remy Maucherat [EMAIL PROTECTED] wrote:
 Sriram N wrote:
 
  Since I was able to add myself as manager using tomcat-users, I added 
  admin
  priveleges the same way.
 
  Here's the line in my tomcat-users.xml file:
 
 
  However, this is not documented anywhere in the tomcat docs.
 
 
 This is written in the default home page (you need admin role for the 
 admin webapp).
 
 Rémy
 
Ack Remy, so it is. 

Perhaps we should change the sample role names and the user name to something
more self-explanatory ? For a person who's just installed Tomcat for the first
time in his life, we should perhaps have more descriptive role names. Currently
role1 and tomcat do not reveal much to a person who doesn't even know what
roles are all about.

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: sending SMS messages

2002-11-09 Thread moonie
Which class was that?

Do you have an URL?

Best regards,

Lars Nielsen Lind



-- Original Message --
Reply-To: Tomcat Users List [EMAIL PROTECTED]
From: neal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: sending SMS messages
Date: Fri, 8 Nov 2002 00:03:23 -0800


Does anyone know how to send an SMS message from a java website?  I want
my
site to send a txt msg to my cell phone whenever a major error occurs.
 The
only cods I've found thus far discuss sending an SMS using a class in the
J2ME.  Is there a class in std JDK or J2EE that can do this?  Or, is it
possible to install J2ME on a webserver, as a compliment to JDK?

Thanks.
Neal


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Rare request delay of 100 seconds

2002-11-09 Thread Randy Watler
George,

Oops! I was off by one on the RedHat version. Here is the whole story:

RedHat 7.2
Linux version: 2.4.9-31smp
gcc version: 2.96

Sorry I forgot to include this information up front!

Randy Watler
Finali Corporation

Sexton, George wrote:

What kernel version are you running?




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Does Tomcat provide a API for user login?

2002-11-09 Thread Johann Uhrmann
Hi,

is it possible to call a method within a JSP or servlet and pass
a user name and password in order to validate those credentials
and log in the user?

It would be great if I there were an API supporting that as I have
a login scenario that does not seem to be supported by Tomcat
(login form without prior access to a restricted resource).

Thanks for any hints,

Hans


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




retrieving remote web content

2002-11-09 Thread Jason Novotny

   Hi,

   I'm trying to develop a servlet that can act as a proxy for another 
web site-- lets' say I'm trying to provide the content of 
www.google.com. It seems I can retrieve and cache the HTML using a 
URLConnection, but what about the resources used by the HTML like gif's 
and jpg's. Somehow I need to parse the HTML and get those separately? Is 
there a library out there for doing what I describe? Maybe I'm missing 
something relaly simple...


   Thanks, Jason


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: retrieving remote web content

2002-11-09 Thread Reynir Hübner
Hi, 

I haven't made a servlet to do this, but I made a jsp-tag that can do this. 

If you don't want to move the images from one server to another (from google to yours) 
as a proxy would do it, then you must parse the HTML, and change all the urls for css, 
img, hrefs, javascripts and a lot more so that they are fully qualified urls such as 
http://google.com/images/logo.gif but not only /images/logo.gif or such. 

This is usually not very complicated, but it can be a little tricky, especially with 
javascripts and such. 
I used regular expression to do this, more specifically the jakarta-oro package.. I 
still recommend some serverside cacheing of parsed pages, as this can be quite process 
demanding procedure. 

If you find some library to do this, please tell us about it.

There are some libraries that might help doing the http-requests, so check that one 
out, its HTTPClient:
http://www.innovation.ch/java/HTTPClient/

Hope it helps, 
-reynir

 -Original Message-
 From: Jason Novotny [mailto:jdnovotny;lbl.gov] 
 Sent: 9. nóvember 2002 22:44
 To: Tomcat Users List; Jetspeed Developers List
 Subject: retrieving remote web content
 
 
 
 Hi,
 
 I'm trying to develop a servlet that can act as a proxy 
 for another 
 web site-- lets' say I'm trying to provide the content of 
 www.google.com. It seems I can retrieve and cache the HTML using a 
 URLConnection, but what about the resources used by the HTML 
 like gif's 
 and jpg's. Somehow I need to parse the HTML and get those 
 separately? Is 
 there a library out there for doing what I describe? Maybe 
 I'm missing 
 something relaly simple...
 
 
 Thanks, Jason
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mod_jk Problem

2002-11-09 Thread Rudolph Araujo
 Hi, I am trying to configure Apache and Tomcat to work together using  connectors so that anytime a .JSP page is requested from Apache (sitting on  port 80) it will automatically connect to Tomcat (port 8080). This is  possible using a connector. In my case I am using mod_jk. I have Apache set  up correctly and so too Tomcat i.e. I can access both the web sites at 80  and 8080 respectively. I haven't been able to link the two through the  mod_jk connector. I did everything I was supposed to but no luck. I have  attached the configuration files. I am using Apache 1.3 and Tomcat 4.1.12. mod_jk is mod_jk-1.3-eapi.so.  Thanks,  Rudolph AraujoGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


conf.zip
Description: Zip compressed data
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Problem with REALM JNDI JDBC AUTHENTICATION

2002-11-09 Thread Massimiliano Fabi
I thank you for your support in advice;
I have a very big problem in my project:
My application on W2K , TOMCAT 4.1 ALPHA , JBUILDER 4 AND JNDI EXTENSION doesn't run 
when acces to resource JDBC to connect db to check authentication via REALM(i use 
j_security_check action form and i access to mysql db for authentication)
error is CANNOT CREATE RESOURCE

I THINK IT'S A CONFIGURATION PROBLEM 
CAN YOU HELP ME PLEASE.


thank you
i can give you other details if it's necessary. thanks again.



Re: RE: enable ssl on tomca

2002-11-09 Thread TEST ICIN
I already uncomment lines. When I run tomcat
it begin to listen on 8443 port. but not in secure mode. When I browse address
https://server:8443 it returns the not found message
But if I write adsress as 
http://server:8443 
it works fine.

I tghougt it cant read the certificate from keystore. So I tried to import certificate 
by using keytool utility. But it gives the following error.

Enter keystore password :  Keytool error:java.io..IOException:Wrong kind of
object



-Original Message-
From: CHAO,KENT (HP-Boise,ex1) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Date: Fri, 8 Nov 2002 07:53:39 -0800 
Subject: RE: enable ssl on tomca

This is not directly answer to your question.  Just point out one other
steps you didn't mention:

You need to uncomment one section of code in ~\tomcat\conf\server.xml.  In
that section, you turn on port 8443, and specify where the keystore is.

The comments above tell you what steps to turn on SSL.

I did this a while ago with Tomcat 3.x on w2k.  I hope it still applies.

Kent

-Original Message-
From: Taylan KIRAN [mailto:test1;ku.edu.tr]
Sent: Friday, November 08, 2002 7:03 AM
To: Tomcat Users List
Subject: Re: enable ssl on tomca


Additional note:I am trying to enable ssl on tomcat installed on netware 6.0
sp1.
- Original Message -
From: Taylan KIRAN [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 2:02 PM
Subject: enable ssl on tomca


I followed tomcat-ssl-howto document. I found jsse jars. they are included
in CLASSPATH. After I execute the command
keytool -genkey -alias tomcat -keyalg RSA it gives the following error in
log console
Enter keystore password :  Keytool error:java.io..IOException:Wrong kind of
object

What should I do?

Thanks




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk Problem

2002-11-09 Thread .: B i g D o g :.
Rudolph,

check the arhives...this was just discussed yesterday...

John Turner created some great howtos for it

http://www.johnturner.com/howto


On Sat, 2002-11-09 at 23:10, Rudolph Araujo wrote:
 Hi,
 I am trying to configure Apache and Tomcat to work together using  
 connectors so that anytime a .JSP page is requested from Apache (sitting on  
 port 80) it will automatically connect to Tomcat (port 8080). This is  
 possible using a connector. In my case I am using mod_jk. I have Apache set  
 up correctly and so too Tomcat i.e. I can access both the web sites at 80  
 and 8080 respectively. I haven't been able to link the two through the  
 mod_jk connector. I did everything I was supposed to but no luck. I have  
 attached the configuration files.
 I am using Apache 1.3 and Tomcat 4.1.12. mod_jk is mod_jk-1.3-eapi.so.
 
 Thanks,
 
 Rudolph AraujoGet more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com
 
 

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
-- 
.: B i g D o g :.



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




recommended reading

2002-11-09 Thread andreas palsson
Hi.

I am very new to the world of Tomcat and servlets/jsp.
An interesting world.

I would like to know if there is some recommended reading.
Not about the actual configuration, that is not a problem (yet), but I am looking for 
something the explains the concept and philosophy behind Tomcat.

Anyone have a good pointer?
-- 
  andreas


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Servlet returns blank html page

2002-11-09 Thread Peter Lee

I have this web page on which I clicked the  web link:
   http://localhost:8080/example/servlet/MyServlet

I have MyServlet.java compiled and MyServlet.class is in the 
WEB-INF\classes folder.

I am expecting a html page generate by the servlet,
but all I got was a blank page. Whats is incorrect?

Here is the servlet:


import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class MyServlet extends HttpServlet {


  public void doGet(HttpServletRequest req, HttpServletResponse 
resp) 
  throws IOException, ServletException
  {

resp.setContentType(text/html);
PrintWriter out = resp.getWriter();

out.println(HTMLHEADTITLEMy Page/TITLE/HEAD);
out.println(BODY);
out.println(P);

out.println(test);

out.println(/P);
out.println(/BODY/HTML);
out.flush();


  }

  public void doPost(HttpServletRequest req, HttpServletResponse 
resp) throws ServletException, java.io.IOException
  {
doGet(req,resp);
  }


}





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: recommended reading

2002-11-09 Thread Brian Topping
Andreas,

Tomcat is the Sun reference implementation of a J2EE servlet container.
This means that any book on Java Servlets should do justice to Tomcat
architecture and operating principles.  Many books also go into the
configuration of Tomcat as an example of configuring a servlet container,
simply because it is free and readers can easily get their hands on a copy to
try out what they are reading, very convenient for those that want to learn
Tomcat specifically :)

I personally quite like the Wrox Press books, they have a book called
Professional Java Servlets (http://makeashorterlink.com/?U2E525662).  It
will explain the intricacies of Servlets, but with little regard for how it
fits into the bigger picture.  

If you are just getting started with servlets and JSP though, you might be
better served to focus on JSP, and learn specifics about Tomcat and Servlets
as you need to.  A component of Tomcat called Jasper basically turns JSPs
into servlets by converting the JSP source into source code for a class that
extends the Servlet base class, which in turn is compiled with the Java
compiler and automatically made available in the Tomcat servlet container.  

JSP is the simple introduction to servlets, since you don't have to worry
about intricacies such as deployment descriptors, web application archives
and Java coding right off the bat.  As well, most experienced programmers use
JSP in their projects as well, so you aren't wasting your time to become a
master of JSP early on.  

If that sounds like something that you are interested in, another Wrox book I
like is Professional JSP, Second Edition
(http://makeashorterlink.com/?D5D523662).  It's actually sitting on my desk,
right next to my EJB book, and the servlets book is on the shelf, (an
indication that the servlets stuff both isn't as important on a daily basis
as well...).  The first couple of chapters describe the basics of servlets
and how they fit into the J2EE model (kind of what you are looking for now),
then start getting into how a JSP is just a servlet, with the rest of the
book devoted to techniques for getting the most out of JSP.  It's over 1,100
pages, and definitely one of those books I wish that I had purchased much
sooner than I actually did.

Good luck, feel free to drop a line off-list...

-b

 -Original Message-
 From: andreas palsson [mailto:andreas;muha.net]
 Sent: Saturday, November 09, 2002 7:24 PM
 To: [EMAIL PROTECTED]
 Subject: recommended reading
 
 
 Hi.
 
 I am very new to the world of Tomcat and servlets/jsp.
 An interesting world.
 
 I would like to know if there is some recommended reading.
 Not about the actual configuration, that is not a problem 
 (yet), but I am looking for something the explains the 
 concept and philosophy behind Tomcat.
 
 Anyone have a good pointer?
 -- 
   andreas
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: recommended reading

2002-11-09 Thread Hamraoui
Dans un e-mail daté du 10/11/2002 01:24:30 Paris, Madrid, [EMAIL PROTECTED] a 
écrit :

http://www.moreservlets.com

Mohammed
 Hi.
 
 I am very new to the world of Tomcat and servlets/jsp.
 An interesting world.
 
 I would like to know if there is some recommended reading.
 Not about the actual configuration, that is not a problem (yet), but I am 
 looking for something the explains the concept and philosophy behind 
 Tomcat.
 
 Anyone have a good pointer?
 




Re: recommended reading

2002-11-09 Thread Steven J. Owens
andreas palsson [mailto:andreas;muha.net] wrote:
  I am very new to the world of Tomcat and servlets/jsp.
  An interesting world.
  I would like to know if there is some recommended reading.
  Not about the actual configuration, that is not a problem 
  (yet), but I am looking for something the explains the 
  concept and philosophy behind Tomcat.
  Anyone have a good pointer?

On Sat, Nov 09, 2002 at 08:36:50PM -0500, Brian Topping wrote:
 [...some cogent recommendations for tomcat-related reading...]

 I saw a book on JBOSS the other day, though I didn't have time to
read it.  JBOSS is an open-source J2EE web application server that
uses Tomcat for the JSP/servlets piece, so it might have some sections
dealing specifically with Tomcat.  I'll likely pick up a copy of the
book sometime soon, just on general principles.

 My recommendations for books on the more general topics of
servlets, J2EE stuff, etc, as well as a cursory overview of J2EE, can
be found at:

 http://darksleep.com/puff/writings/j2eeoverview.html

Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - Me at http://darksleep.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org