RE: how to suppor 30000 concurrent users

2003-08-06 Thread pete . storey
Oh OK cool so it is how I thought - presumably you dont use the session 
very much (in terms of sending stuff to it) or else there would be one 
serious amount of db work!
Pete

RE: Off topic : any tools for testing mod_ssl/OpenSSL ???

2003-08-06 Thread Ralph Einfeldt
One way to verify this, is to use a packet sniffer
and watch the pakets that are exchanged bewenn server 
and browser.

Under linux you can use tcpdump.
  http://www.tcpdump.org/
  

tcpdump has also a windows brother (or sister):
  http://windump.polito.it/

Under linux and windows you can use ethereal:
  http://www.ethereal.com/

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: Off topic : any tools for testing mod_ssl/OpenSSL ???
 
 
 Hi All.
 I have got my Apache mod_ssl/OpenSSL talking with Tomcat nicely using
 MSIE5, Netscape 6.2 and Mozilla.
 On Netscape 7.1, it says I am transmiting in clear text for all to see
 AFTER logging in and accepting the certificate !?! SOmehow I 
 doubt that,
 I think it is telling me fips.
 Are there any tools to tes whether the transmission is in clear text ?
 TIA :-)
 
 -
 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: Preventing access to a directory

2003-08-06 Thread Tim Davidson
Thanks.
I googled for examples using secrity-constraint but with not much luck (just many 
people asking how to do it), and I've tried a few things but I'm not having much luck. 
something like:

security-constraint
web-resource-collection  
web-resource-namefoo/web-resource-name
descriptionprevent access to jsp's under bar directory in foo 
webapp/description   
url-pattern/foo/bar/*.jsp/url-pattern  
  /web-resource-collection
/security-constraint

can you help?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 1:35 PM
To: Tomcat Users List
Subject: Re: Preventing access to a directory


To prevent directlory listings:
http://jakarta.apache.org/tomcat/faq/misc.html#listing

To prevent individual access to jsps, use web.xml and a security constraint.

-Tim

Tim Davidson wrote:
 Hi,
   how can we prevent access to a set of JSP's inside a specific directory?
   aparrently there is a directory tag for server.xml?
 thanks in advance.
  


-
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: Java and tomcat issues

2003-08-06 Thread bbonkosk
'which' on checks the PATH variable,
type: echo $JAVA_HOME
and you will be able to verify you set that.
I think then you have to add that to your path
PATH = $PATH:${JAVA_HOME}/bin or something like that.


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 1:54 pm
Subject: Java and tomcat issues

 Greetings,
 I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I 
 keep getting
 this message after I set the JAVA_HOME path
 
 -bash-2.05b# which java
 /usr/bin/which: no java in
 (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
 )
 -bash-2.05b#
 
 Any suggestions?
 
 Bobbie Atristain
 Internet Systems Administrator
 Media General, INC.
 804.649.6156
 
 ---
 --
 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: Front Controller Servlet

2003-08-06 Thread Mike Curwen
That's because you're trying to implement as front controller
**servlet** as a JSP ?
 
Map your controller servlet to /foo (or anything *other* than *.jsp)
then requests could all go to the controller servlet, and your servlet
could send it off to any *.jsp page without invoking itself infinitely.

 -Original Message-
 From: Sharon Cohen [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 05, 2003 7:43 AM
 To: [EMAIL PROTECTED]
 Subject: Front Controller Servlet
 
 
 I am trying to build FrontController servlet for a web site 
 on Tomcat 4 , after long time of changes on the web.xml file 
 , I wasn't able to achieve this pattern, the web.xml portion is :
 
 servlet-mapping
   servlet-nameFCservlet/servlet-name
   url-pattern*.jsp/url-pattern
 /servlet-mapping
 
 my problem start when the FrontController servlet needs to 
 forward the request to other jsp pages and when he uses the 
 Forward method , the tomcat activate my FrontController again 
 , and after a  while  I get : StackOverflowError .
 
 Thanks for any help
 Sharon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: tomcat 4.1.27 log4j problem

2003-08-06 Thread Nathan Coast
if you use log4j on a tomcat-wide basis (ie 1 configuration for the 
tomcat runtime and all your webapps), place your log4j.xml in 
[tomcat-home]/shared/classes/

if you use log4j on a per-webapp basis, make sure the log4j classes 
aren't on the tomcat classpath and configure commons-logging to use jdk 
logging (assuming you are using jdk 1.4).

Zsolt Koppany wrote:

Hi,

my application uses log4j and with tomcat 4.1.27 (but not with 4.1.24) I
get the following error message:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
How can I fix this problem?

Zsolt



-
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: Java and tomcat issues

2003-08-06 Thread batristain
Okay this happens

bash-2.05b# export $PATH=$JAVA_HOME/bin
-bash: export:
`/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
=/usr/java/j2sdk1.4.1_04//bin': not a valid identifier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:18 PM
To: Tomcat Users List
Subject: Re: RE: Java and tomcat issues


Sure, APPEND the PATH variable with JAVA_HOME,
don't overwrite it!
Path=$PATH;JAVA_HOME/bin


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 2:07 pm
Subject: RE: Java and tomcat issues

 Okay everytime I do it my commands don't work on the box like ls,
 cd, ll - the
 only command that works is the exit command
 
 Any ideas?
 
 -Original Message-
 From: Shapira, Yoav [EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 2:06 PM
 To: Tomcat Users List
 Subject: RE: Java and tomcat issues
 
 
 
 Howdy,
 
 I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep
 getting
 this message after I set the JAVA_HOME path
 
 -bash-2.05b# which java
 /usr/bin/which: no java in
 (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R
 6/bi
 n
 )
 -bash-2.05b#
 
 That's pretty clear, isn't it? ;)  Add $JAVA_HOME/bin to your $PATH.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietaryand/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 
 immediatelydelete this e-mail from your computer system and notify 
 the sender.  Thank you.
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
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: How can you give someone a role?

2003-08-06 Thread Tim Funk
The roles are defined according to the wbe.xml dtd. The roles are mapped 
based on the Realm of your choosing which is a container dependent thing.

For more info,  chapter 24 should start you in the right direction for more 
googling ...
http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html

-Tim

Tim Davidson wrote:
Hi,

How can you give someone a security-role?

when someone accesses a certain jsp, I want to give them a role (no authentication)
how is this possible? All of the examples I've seen require some sort of login.
eg. something like:
 user.setRole(manager);
where I have defined manager:
  security-role
   
  descriptionA manager/description
  
  role-namemanager/role-name
  
  /security-role
  
  login-config
  
  auth-methodFORM/auth-method
  
  realm-namemanager/realm-name
  
  form-login-config
  
 form-login-page/login.jsp/form-login-page
 
 form-error-page/loginError.jsp/form-error-page
 
  /form-login-config
  
  /login-config

many thanks in advance.



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


RE: how to suppor 30000 concurrent users

2003-08-06 Thread Angus Mezick
With that many users you are going to HAVE to cluster if for no other
reason than to provide backup for system maintanence.  As to how many,
the answer is it depends on the hardware you are going to use and the
types of load your webapp puts on the system.  When you say 30k
concurrent users do you mean 30k people clicking a link at the same time
or 30k active sessions at a time?  If you are going to have this many
people clicking on the same time you should have the cash to do proper
load testing to see how many people one of your servers can take, divide
30k by that number for the number of servers you have, multiply by 1.1
AT LEAST and round up to get 110% capacity so you should be able to swap
out one server.  This is BARE minimum.  Don't forget about the wonderful
world of DB backends and routers and all the fun stuff :)
--Angus

 -Original Message-
 From: Heart Prince [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 05, 2003 8:57 AM
 To: [EMAIL PROTECTED]
 Subject: how to suppor 3 concurrent users 
 
 
 howmany concurrent users does tomcat support? if i want to 
 design a web 
 application for 30,000 concurrent users, what is the step?  
 clustering is 
 related to this? how many servers i need if i am clustering
 
 _
 Latest movie trailers. On your mobile. 
 http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
 
 
 -
 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]



Servlet BufferedOutputStream Question?

2003-08-06 Thread Dylan Swales
Someone PLEASE Help!

I have been having hassles when using a BufferedOutputStream to send multiple images 
from an Oracle database to the client.  The error that I am getting is in the While 
loop that sends the image as a byte[] to the client. java.net.SocketException: 
Connection reset by peer: socket write error.  What I think is happening is that the 
first image is been sent to the browser and thereafter the connection is closed!  Is 
there a way to send multiple images out to the client in a single Servlet (Possibly 
using a buffer).  P.S  The reason why I am not using IMG tags and sepecifying the 
source to point to another JSP or Servlet is because I am doing some timing methods in 
a single Servlet that writes out to a file.

Thanks for your help.
Dylan


I have included the code below:

import java.util.Stack;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.ServletConfig;
import javax.servlet.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import oracle.jdbc.driver.OraclePreparedStatement;
import oracle.jdbc.driver.OracleResultSet;
import oracle.ord.im.OrdImage;
import oracle.ord.im.OrdHttpUploadFile;
import oracle.ord.im.OrdHttpUploadFormData;
import oracle.ord.im.OrdHttpResponseHandler;
import java.util.*;
import java.io.*;
import java.sql.*;
import oracle.jdbc.driver.OracleResultSet;
import oracle.sql.*;
import oracle.ord.im.*;
import java.util.Stack;

public class ImageServlet extends HttpServlet
{
private final static String JDBC_CONNECT_STRING 
=jdbc:oracle:thin:@athena:1521:media; 
private final static String JDBC_USER_NAME = mmedia;
private final static String JDBC_PASSWORD  = mmedia;

private static Stack connStack = new Stack();

private static boolean driverLoaded = false;

  public void init( ServletConfig config ) throws ServletException
{
super.init(config);
}

   public void doGet( HttpServletRequest request,
   HttpServletResponse response )
throws ServletException, IOException
{
   response.setContentType(image/jpeg);
   response.setBufferSize(1024 * 1000);
Connection conn = null;

  long startTime = System.currentTimeMillis();
  long endTime;
try
{
   conn = getConnection();
   
  PreparedStatement stmt =
conn.prepareStatement( select IMAGE from smallphotos where id between 0 
and 501 );
//stmt.setString( 1, request.getParameter( id ) );
OracleResultSet rset = (OracleResultSet)stmt.executeQuery();

  OrdImage img;
  ServletOutputStream o = response.getOutputStream();
  BufferedOutputStream out = new BufferedOutputStream(o);
  Blob temp;
  byte[] buf = new byte[1024];
   
while ( rset.next() )
{
   img = (OrdImage)rset.getCustomDatum(1, OrdImage.getFactory());
   temp = img.getContent();
   buf = temp.getBytes(1,(int)temp.length()+1);
   out.write(buf);

}
  response.flushBuffer();
  out.close();
  
  
  rset.close();
  stmt.close();
  
}
catch ( SQLException e )
{
//
// Log what went wrong.
//
e.printStackTrace( System.out );

//
// Turn SQL exceptions into ServletExceptions.
//
throw new ServletException( e.toString() );
}
finally
{
//
// If we have a JDBC connection, then return it to the pool.
//
freeConnection( conn );
}
  
  endTime = System.currentTimeMillis();
 long finalTime = endTime - startTime;
  
  try
  {
 FileWriter fw = new FileWriter (.txt);
 BufferedWriter br = new BufferedWriter (fw);
  PrintWriter pw = new PrintWriter (br);

  pw.println (finalTime);
   
  pw.flush();
  pw.close();
  br.close();
  fw.close();
  }

  catch (IOException io)
  {
  System.out.println ( FILEWRITER EXCEPTION  +io.getMessage() );
  }

  catch (Exception e)
  {
  System.out.println ( FILEWRITER GENERIC EXCEPTION  +e.getMessage());
  }
}

/*
 * Process an HTTP Post request used to upload a new photo into the album.
 */
public void doPost( HttpServletRequest request,
HttpServletResponse response )
throws ServletException, IOException
{
Connection conn = null;

//
// Use a try-block to ensure that JDBC connections are always returned
// to the pool.
//
try
{
//
// Get a JDBC connection from the 

RE: Tomcat 4.1.24 behind a proxy

2003-08-06 Thread Sylvain.Thevoz
Hello Tim,

That doesn't help me.
I'm looking how to configure my Tomcat server (which is behind the proxy server of my 
company) to allow web applications to be able to access to external locations (URL).
Now my web applications can access only to internal locations.

Thanks
Sylvain

-Message d'origine-
De: Tim Funk [mailto:[EMAIL PROTECTED]
Date: mercredi, 6. août 2003 13:17
À: Tomcat Users List
Objet: Re: Tomcat 4.1.24 behind a proxy


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html ?

-Tim

[EMAIL PROTECTED] wrote:
 Hello,
 
 My Tomcat server runs behind a proxy.
 I set on my Windows 2000 server this environment variable to be able to access to 
 external locations:
 CATALINA_OPTS = -DproxySet=true -DproxyHost=myproxy.blabla.com -DproxyPort=8080
 
 It worked very well since I updated Tomcat to 4.1.24.
 Now it doesn't work anymore.
 
 Is there something wrong with my configuration?
 
 Thanks
 Sylvain
  
 


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



Off topic : frightening test for mod_ssl/OpenSSL ???

2003-08-06 Thread achana
I forgot to add the frightening result of following test (like doctor
telling you that you've leukemia) :
[ssl]# openssl s_client -connect localhost:443 -state -debug
CONNECTED(0003)
SSL_connect:before/connect initialization
write to 0809D018 [0809D060] (124 bytes = 124 (0x7C))
 - 80 7a 01 03 01 00 51 00-00 00 20 00 00 16 00 00   .zQ...
.
0010 - 13 00 00 0a 07 00 c0 00-00 66 00 00 05 00 00 04  
.f..
0020 - 03 00 80 01 00 80 08 00-80 00 00 65 00 00 64 00  
...e..d.
0030 - 00 63 00 00 62 00 00 61-00 00 60 00 00 15 00 00  
.c..b..a..`.
0040 - 12 00 00 09 06 00 40 00-00 14 00 00 11 00 00 08  
[EMAIL PROTECTED]
0050 - 00 00 06 00 00 03 04 00-80 02 00 80 c9 59 35 e7  
.Y5.
0060 - c1 f3 05 15 5b ba 68 1d-76 e1 b5 a0 bf 82 f8 36  
[.h.v..6
0070 - d9 3c 79 71 a6 5f e1 11-b6 32 ea c8   .yq._...2..
SSL_connect:SSLv2/v3 write client hello A
read from 0809D018 [080A25C0] (7 bytes = 7 (0x7))
 - 3c 21 44 4f 43 54 59  !DOCTY
SSL_connect:error in SSLv2/v3 read server hello A
3751:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:460:
[ssl]#
Guess it is off topic now...

[EMAIL PROTECTED] wrote:
 
 Hi All.
 TCPDUMP-ing the login for NYTimes.com as a control group I can certainly
 see USERID and PASSWORD (and other things) eg.
 ...
 Referer: http://www.nytimes.com/auth/login
 Accept-Language: en-us
 Content-Type: application/x-www-form-urlencoded
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
 Host: www.nytimes.com
 Content-Length: 84
 Connection: Keep-Alive
 Cache-Control: no-cache
 Cookie: RMID; tpopunder_orbitz23a-nyt4; NYT-S; nyt-d;
 tpopunder_orbitz23-nyt4; spopunder;
 NYT_GR=3f3069f9-eD5iDGvcR1EwqdL/n8+qGA
 is_continue=trueURI=OQ=USERID=niemandPASSWORD=geheimnislog=Log+InSAVEOPTION=YES÷
 1?(r)
 ...
 After enabling httpd with mod_ssl, the TCPDUMP from the following client
 browsers are mostly NOT human-readable :
 * Mozilla
 * MSIE5
 * Nescape 6.2
 * Netspcae 7.1 (which is the bee in the bonnet)
 They all present the login dialogue box and the untrusted self-signed
 certificate screen.
 Therefore it might be a bug with 7.1, which seemingly does not report an
 embedded secure link from an unsecured page as such eg. from
 http:/my.first.do which as a link to https://my.secure.dom
 However,in 7.1, if I key in the URL https://my.secure.dom (ie without
 going through http://my.first.dom), the lock closes and one can view the
 certificate info by clicking on it.
 
 I assume this is how it works :
 Step 1: certificate presented, accepts and ecrypt input from client
 browser
 Step 2: transmit to mod_ssl enabled Apache2 server
 Step 3: Off to Tomcat courtesy of following bits of code :
 ...
 VirtualHost 192.168.1.3:443
 ServerName my.dom.com
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/king/public_html
 ErrorLog /usr/local/apache2/logs/king_error.log
 CustomLog /usr/local/apache2/logs/king_access.log common
 IfModule mod_ssl.c
SSLEngine on
SSLCipherSuite
 ALL:!ADH:!EPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /path/to/ssl/server.crt
SSLCertificateKeyFile /path/to/server.key
 /IfModule
 JkExtractSSL on
 JkHTTPSIndicator HTTPS
 JkSESSIONIndicator SSL_SESSION_ID
 JkCIPHERIndicator SSL_CIPHER
 JkCERTSIndicator SSL_CLIENT_CERT
 JkMount /dom ajp13
 JkMount /dom/* ajp13
 /VirtualHost
 ...
 Step 4 : FIX ME - does Apache2 unecrypt content before passing on to
 Tomcat ???
 Step 5 : FIX ME - does Tomcat pass db data back to Apache2 and the data
 get encrypted there ???
 
 If anyone out there has similar or diff experience, please share it.
 
 Ralph Einfeldt wrote:
 
  One way to verify this, is to use a packet sniffer
  and watch the pakets that are exchanged bewenn server
  and browser.
 
  Under linux you can use tcpdump.
http://www.tcpdump.org/
 
 
  tcpdump has also a windows brother (or sister):
http://windump.polito.it/
 
  Under linux and windows you can use ethereal:
http://www.ethereal.com/
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, August 05, 2003 9:17 AM
   To: [EMAIL PROTECTED]
   Subject: Off topic : any tools for testing mod_ssl/OpenSSL ???
  
  
   Hi All.
   I have got my Apache mod_ssl/OpenSSL talking with Tomcat nicely using
   MSIE5, Netscape 6.2 and Mozilla.
   On Netscape 7.1, it says I am transmiting in clear text for all to see
   AFTER logging in and accepting the certificate !?! SOmehow I
   doubt that,
   I think it is telling me fips.
   Are there any tools to tes whether the transmission is in clear text ?
   TIA :-)
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  

RE: XP random tomcat crashes

2003-08-06 Thread Morgan Pyne
Hi David,

The following might be of use to you:

We recently had a struts-based application that crashed seemingly randomly, and after 
a lot of work and debugging we tracked it down to a bug in the JVM (we were using 
Sun's 1.4.1 JDK ). It was reproduceable on several platforms (HP-UX, Linux, win2k).
We were not getting any dumps either on some of the platforms, the process seemed to 
just hang.

Note: testing showed IBM's JDK didn't exhibit this behaviour, but Blackdown did.

A workaround for us was to add the following parameters to Sun's 1.4.1 JVM:

-Xint   Operates in interpreted-only mode. 
 
-XrsReduce usage of operating-system signals by Java
virtual machine (JVM).


A fix for us was to upgrade to JDK 1.4.2

For more info, try posting the VM messages you are receving here. They may not be very 
helpful to you (or me:-) but perhaps somebody knowledgeable on the list might be able 
to make sense of them.


Regards,
Morgan



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 05, 2003 22:41
 To: [EMAIL PROTECTED]
 Subject: XP random tomcat crashes
 
 
 Hi,
 
 We're using tomcat 4.1.12 with Java 1.4.1.02, and are 
 encountering strange crashes on XP especially.
 
 The crashes happen in apparently random places in our app, 
 and cause the VM to crash with various messages, none of 
 which are very helpful!
 
 I noticed that Cameron Hart had a similar problem
 (http://www.mail-archive.com/[EMAIL PROTECTED]/msg88603.html
g88603.html)
- please could anyone point me in the right direction to try and get to the bottom of 
this.  Is it easy to run tomcat in a debugger so we can catch what happens?

Many thanks,

David






-
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: System properties

2003-08-06 Thread Christian Hauser
Tim Funk wrote:

http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim
Thank you Tim for pointing me to the right place.

But what do I have to do if I would like to set more than one system 
property?

export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2'  ???

Regards,
  Christian


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


RE: Stable tomcat + apache + mod_j2 + ssl

2003-08-06 Thread Ramanan Ramadoss
We have our webserver and app server on two separate physical machines but
on the same LAN sub-net. But the information has to be in encrypted form so
that the information is not in a readable form even to the system/network
administrators who are maintaining the machines.

 

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:45 AM
To: Tomcat Users List
Subject: Re: Stable tomcat + apache + mod_j2 + ssl


Are you sure that you need to encrypt traffic between Apache and Tomcat?

That is an unusual requirement, because usually both tomcat and Apache are 
running on the same computer or at least running in the same LAN sub-net.

Ramanan Ramadoss wrote:
 Thanks for your reply. 
 
 We need to implement end to end encryption. I do not have an option with
 respect to the OS. I have Windows 2000 as our OS for both the webserver
and
 app server. Due to end to end encryption, we have to secure the
 communication between the webserver and app server. 
 
 I have heard about mod_ssl but have not used it. Would that be an option
to
 secure the communication between apache and tomcat. Your opinion is highly
 appreciated.
 
 --Ramanan
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 11:17 AM
 To: Tomcat Users List
 Subject: Re: Stable tomcat + apache + mod_j2 + ssl
 
 
 
 Apache 2.0.47
 Tomcat 4.1.24
 
 There isn't an SSL version of either the mod_jk or jk2 connector.  Since 
 JK and JK2 don't ever communicate with a client, there's really no need. 
You might be able to setup a tunnel using stunnel or similar, but on 
 Windows that will be problematic.
 
 Apache binary: http://httpd.apache.org/download.cgi
 
 Tomcat binary: http://jakarta.apache.org/site/binindex.cgi
 
 Connectors: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
 
 Connector FAQ: http://jakarta.apache.org/tomcat/faq/connectors.html
 
 John
 
 Ramanan Ramadoss wrote:
 
 
Dear friends,
 I am a newbie and have to set up a secure enviroment between tomcat
 
 and
 
apache. 

 Can someone tell me which is the stable production ssl version of
tomcat and apache? Is there a ssl version of mod_jk or mod_j2 connector?
 
 If
 
no which connector should we use? Where can I get a built version of the
webserver, app server and the connectors that work with each other for a
windows 2000 environment.
Thanks
Ramanan


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

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

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


-
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: Java and tomcat issues

2003-08-06 Thread Bradberry, Rick
Try

export PATH=$PATH:$JAVA_HOME/bin

make sure you don't have spaces around the =

Rick


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:33 PM
To: [EMAIL PROTECTED]
Subject: RE: RE: Java and tomcat issues


Okay this happens

bash-2.05b# export $PATH=$JAVA_HOME/bin
-bash: export:
`/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
=/usr/java/j2sdk1.4.1_04//bin': not a valid identifier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:18 PM
To: Tomcat Users List
Subject: Re: RE: Java and tomcat issues


Sure, APPEND the PATH variable with JAVA_HOME,
don't overwrite it!
Path=$PATH;JAVA_HOME/bin


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 2:07 pm
Subject: RE: Java and tomcat issues

 Okay everytime I do it my commands don't work on the box like ls,
 cd, ll - the
 only command that works is the exit command
 
 Any ideas?
 
 -Original Message-
 From: Shapira, Yoav [EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 2:06 PM
 To: Tomcat Users List
 Subject: RE: Java and tomcat issues
 
 
 
 Howdy,
 
 I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep
 getting
 this message after I set the JAVA_HOME path
 
 -bash-2.05b# which java
 /usr/bin/which: no java in
 (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R
 6/bi
 n
 )
 -bash-2.05b#
 
 That's pretty clear, isn't it? ;)  Add $JAVA_HOME/bin to your $PATH.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietaryand/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 
 immediatelydelete this e-mail from your computer system and notify 
 the sender.  Thank you.
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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

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



Re: System properties

2003-08-06 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim

Christian Hauser wrote:
Hello

I'd like to know how I can set system properties when starting Tomcat 4.1.

I mean those properties that I can get from within a JSP file as:
System.getProperty(CONFIG_HOME)
Thank you in advance for any hint.

Christian

 


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


RE: how to suppor 30000 concurrent users

2003-08-06 Thread Eric J. Pinnell
I would also do a serious reality check on the 30,000 concurrent users
number.  After going through something like the drill below you will find
that you have architected yourself one big system.  The sticker shock
alone might be enough for people to go back and seriously reconsider their
numbers.  Marketing people are sometimes on crack.

Bigger sites (like eBay) work on seperating their services.  So their
frontpage is static and gets updated every so often.  The second you
search you are thrown to another server that just does searches.  When you
want to buy/bid you move to another server that just does that.

-e

On Tue, 5 Aug 2003, Ralph Einfeldt wrote:

 build a model like

 - each user is on the site for n Minutes
 - each user makes n requests
 - the mean time between to page requests is n seconds
 - each page request creates n http requests
 - specify the average size for an http request
 - specify the average ratio of request/db access

 .

 With that you can compute memory usage, requests/per second,
 concurrent databae connection etc.

 With these number you have to test your application (not tomcat)
 and see what your application can handle. There is no rule of
 thumb. (It can't be, it's like predicting the time to ride by
 horse fom New York to Frisko, whithout knowing the rider,
 the baggage and without having a map)

 Depending on the structure of the site and the effort you want
 to invest you can improve the result by building groups of users,
 pages, requests and estimate these.

  -Original Message-
  From: Heart Prince [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 05, 2003 2:57 PM
  To: [EMAIL PROTECTED]
  Subject: how to suppor 3 concurrent users
 
 
  howmany concurrent users does tomcat support? if i want to
  design a web
  application for 30,000 concurrent users, what is the step?
  clustering is
  related to this? how many servers i need if i am clustering
 
  _
  Latest movie trailers. On your mobile.
  http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




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



RE: large objects in sessions

2003-08-06 Thread Mike Curwen
And how does this approach save memory? You've simply replaced a session
object with a HashMap. Or am I missing something?

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 06, 2003 8:21 AM
 To: Tomcat Users List
 Subject: RE: large objects in sessions
 
 
 
 Howdy,
 
 And the hash in which you look up the object with the 
 retrieved id can
 be
 just something like a static hashtable in some class ?
 
 Yup.  It's usually that simple.
 
 Yoav Shapira
 
 


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



Java and tomcat issues

2003-08-06 Thread batristain
Greetings,
I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep getting
this message after I set the JAVA_HOME path

-bash-2.05b# which java
/usr/bin/which: no java in
(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
)
-bash-2.05b#

Any suggestions?

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



large objects in sessions

2003-08-06 Thread Hans Wichman
Hi,
i've read in a number of locations that you shouldn't put large objects in 
session, because of the overhead incurred.
Is this also true for non-serializable objects? Aren't they simply kept in 
memory?

In addition does anybody know how I can accurately estimate the memory 
footprint such an object has?

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


RE: large objects in sessions

2003-08-06 Thread Hans Wichman
Hi,
ok thanks, I will look into it!
greetz
Hans
At 11:08 AM 8/6/2003 -0400, you wrote:

Howdy,
This is a separate issue, how to measure an object (or object graph more
precisely) memory usage.  I gave a snippet on purpose as an accurate
measurement is not trivial.  There have been discussions on the list, as
well as some good articles (I recall one on JavaWorld about 2 years ago)
on how to do this.
You should do this with a fixed heap size, i.e. -Xmx=-Xmx, and a fixed
young generation size (I forget the JVM parameter name).  You should
call System.gc() before and after the test, but that's just a suggestion
to the JVM and doesn't really matter: this is why N should be high, to
offset the gc effect.  And you will end up with an average that's an
estimate.  The test keeps MyObjects allocated and does not release them
(until it's done) on purpose.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 11:02 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: large objects in sessions

Hi,
it appears freeMemory is highly not to be trusted ;-):
Here is the free memory after each 1000 objects created:
#:717000
#:320080
#:1152992
#:512992
#:266208
#:1784800
#:1144800
#:504800
#:389088
#:3894240

The more objects I create the more memory I get ;-). In addition, how
can
the garbage collecter still collect any of these objects, if I have
stored
them in an array or is it collecting other objects (??)?

[ testing testing ]
ok after some more tests, it appears freeMemory keeps on returning
different results because it allocates more and more memory as more is
consumed. I ran the taskmanager and looked at the footprint, here is
what
it gave me:
no objects - 6 MB
5000 objects- 9MB (3MB for 5000 objects)
1 objects - 12MB (6MB for 1 objects)
2 objects - 18MB (12MB for 2 objects)

This seems to be pretty accurate, about 629 bytes per object (still
seems
low for what I am creating ;-)).

I rewrote the testing procedure to see if I could come up with the
same,
here it is:

   System.gc();
   int N =1;
   int  valid = 0;//count object creations that did not cause
additional memory to be allocated by the VM
   long last = -1;   //free memory during last run
   long current = 0; //free memory during current run
   long usedup = 0;   //total memory used up by all 'valid'
allocations
   Object workers[] = new Object[N];
   for(int i = 0; i  N; i++) {
 workers[i] = new MyObject ();
 current = Runtime.getRuntime().freeMemory();
 if (current  last) {   //if allocation is deemed valid update
administration
   valid++;
   usedup += last-current;
 }
 last = current;
   }
   System.out.println (Footprint in bytes:+usedup/valid);

Result 640 bytes. I hope it is not a coincidence ;-)

greetz
Hans

ps here is some more info as well:
http://java.sun.com/docs/books/performance/1st_edition/html/JPRAMFootpr
int.
fm.html

At 09:03 AM 8/6/2003 -0400, Shapira, Yoav wrote:

Howdy,

 i've read in a number of locations that you shouldn't put large
objects
in
 session, because of the overhead incurred.
 Is this also true for non-serializable objects? Aren't they simply
kept
in
 memory?

Not exactly: I wouldn't put non-serializable objects in the session at
all, regardless of their size.  You will get errors.  Instead, put the
ID (or some other key allowing you to retrieve the object) in the
session.

 In addition does anybody know how I can accurately estimate the
memory
 footprint such an object has?

The same way you estimate the memory footprint of any other object.

For example, from a simple command-line program that does nothing
else:

int N = 1;
long freeBefore = Runtime.getRuntime().freeMemory();

MyObject[] myArray = new MyObject[N];
for(int i = 0; i  N; i++) {
   myArray[i] = new MyObject();
}

long freeAfter = Runtime.getRuntime().freeMemory();
long delta = freeAfter - freeBefore;
long memPerObject = delta / N;

(Use a large N to reduce impact of overhead, allocation, etc.)

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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


This e-mail, including any attachments, is a confidential 

How Does GlobalNamingResources Work?

2003-08-06 Thread Carl Walker
Hi,

I have an object and a javax.naming.spi.Naming factory that I want to
access as resources in server.xml.  I'm able to use Resource and
ResourceParams in the Context.  However, when I try to move either
one of these to GlobalNamingResources, Tomcat returns a 500 error
saying Cannot create resource instance.

I think the factory code is correct since I can access the JNDI resource
in a JSP when I put the resource definition in Context.

Any help is appreciated,
Carl


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



RE: XP random tomcat crashes

2003-08-06 Thread Shapira, Yoav

Howdy,
I would only offer the usual advice:
- Get the latest stable JDK (1.4.2)
- Get all the patches for your OS
- Get the latest stable tomcat (4.1.27)
- Start the VM with no switches and observe behavior, i.e. stick to
default client mode

Personally, I had problems with 1.4.1 in server mode on solaris that all
went away (without significant performance degradation) when I stopped
using the -server switch.  YMMV.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 11:05 AM
To: Tomcat Users List
Subject: RE: XP random tomcat crashes


We normally use the server jvm, but have also seen the crashes with the
client.

Any ideas?

Cheers,

David





Lenny Karpel [EMAIL PROTECTED] on 05/08/2003 06:42:45 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:
Subject:RE: XP random tomcat crashes


Are you using the client or server jvm ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:41 PM
To: [EMAIL PROTECTED]
Subject: XP random tomcat crashes

Hi,

We're using tomcat 4.1.12 with Java 1.4.1.02, and are encountering
strange
crashes on XP especially.

The crashes happen in apparently random places in our app, and cause
the VM
to crash with various messages, none of which are very helpful!

I noticed that Cameron Hart had a similar problem
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg88603.ht
ml)
- please could anyone point me in the right direction to try and get to
the
bottom of this.  Is it easy to run tomcat in a debugger so we can catch
what happens?

Many thanks,

David






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




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: Tomcat 4.1.24 behind a proxy

2003-08-06 Thread Tim Funk
Unless I am missing something, tomcat by default does not have the ability to 
make outbound HTTP requests.

Unless someone else interjects in the converation - you'll need to look at 
how your webapp makes external HTTP connections.

System properties may also be set via the JAVA_OPTS environment variable.

-Tim

[EMAIL PROTECTED] wrote:
In that case, it sounds like an application error.


I don't think so because the problem appears since I updated Tomcat to 4.1.24. It worked well before.

Sylvain

-Message d'origine-
De: Tim Funk [mailto:[EMAIL PROTECTED]
Date: mercredi, 6. août 2003 13:59
À: Tomcat Users List
Objet: Re: Tomcat 4.1.24 behind a proxy
So the webserver is making HTTP Requests (as well as receiving them)?

In that case, it sounds like an application error. How is your webapp making 
HTTP requests? (Venturing into off-topic mode)

-Tim

[EMAIL PROTECTED] wrote:

Hello Tim,

That doesn't help me.
I'm looking how to configure my Tomcat server (which is behind the proxy server of my 
company) to allow web applications to be able to access to external locations (URL).
Now my web applications can access only to internal locations.
Thanks
Sylvain
-Message d'origine-
De: Tim Funk [mailto:[EMAIL PROTECTED]
Date: mercredi, 6. août 2003 13:17
À: Tomcat Users List
Objet: Re: Tomcat 4.1.24 behind a proxy
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/proxy-howto.html ?

-Tim

[EMAIL PROTECTED] wrote:


Hello,

My Tomcat server runs behind a proxy.
I set on my Windows 2000 server this environment variable to be able to access to 
external locations:
CATALINA_OPTS = -DproxySet=true -DproxyHost=myproxy.blabla.com -DproxyPort=8080
It worked very well since I updated Tomcat to 4.1.24.
Now it doesn't work anymore.
Is there something wrong with my configuration?

Thanks
Sylvain



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


RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-06 Thread Steph Richardson
Mark,

The jspc task that I used from the standard Optional Tasks that come with ant, does 
support a webapp parameter, and this works
fine to compile the whole webapp without any regexp voodoo ( I didn't use it because 
it won't allow you to exclude any files ).

I did see once a conversation on the ant-dev list that complained about how brittle 
the jspc task has been to maintain.

So jasper ( with 4.1.28 ) comes with it's own built in task to completely compile a 
webapp. As described here :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Application%20Compilation

If you ignore the part about the web.xml fragment, and make sure your output dir is 
the same as your Tomcat workdir, then this works
too ( I think - I did so many experiments my mind is now cloudy ).

Steph



 -Original Message-
 From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 04, 2003 5:05 PM
 To: Tomcat Users List
 Subject: Re: Jasper, JSPC, Ant and Precompiling JSP's


 Bingo! Thats pretty tight. I hadn't thought of using regexp, but I'll
 give this a try, it seems pretty logical. I didn't realize someone had
 contributed a forEach task.

 I'd still like to hear about if theres any work ongoing in relation to
 JspC and precompilation of entire webapplications in Tomcat?

 thanks again,
 Mark


 Steph Richardson wrote:

  Mark,
 
  I have a working solution for pre-compiling jsp, that I am using successfully with 
  all our tomcat installations. The
 target looks
  like :
 
  target name=jspc_preparse description=Use Jasper2 to parse jsp into java
  mkdir dir=${webapp.workdir}/
 
  jspc
  srcdir=${webapp.rootdir}
  destdir=${webapp.workdir}
  failonerror=false
  classpathref=jspc_parse.classpath
  package=org.apache.jsp
  compiler=jasper41
 
  exclude name=**/WEB-INF/**/
  exclude name=include/**/
  /jspc
 
  !-- Fix all the package names --
  replaceregexp
  match=^package org.apache.jsp.*;
  replace=package org.apache.jsp; 
  fileset dir=${webapp.workdir} 
  include name=**/*.java /
  /fileset
  /replaceregexp
 
  /target
 
 
 
  I then use foreach from antcontrib to iterate over the directories and compile 
  them individually.
  Tomcat seems to accept all the resulting class files at runtime with no problems.
 
  Regards,
 
  Steph
 
 
 
 -Original Message-
 From: Steph Richardson [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 01, 2003 7:06 PM
 To: Tomcat Users List
 Subject: RE: Jasper, JSPC, Ant and Precompiling JSP's
 
 
 
 That is EXACTLY what I am trying to do today. I've tooled around in the ant code, 
 and it seems this is more of a jasper
 issue than
 an ant one, because ant passes a long list of files to jasper, with the unwanted 
 pathnames that end up as part of your
 package name.
 
 I'm pretty sure if you used something like foreach to iterate through the same 
 fileset that is being created in the
 jspc task, and
 called jspc for each directory individually, and used the package=org.apache.jsp 
 attribute, then this would work -
 because then
 jasper wouldn't know about you're own subdirectory. But this seems ugly so I 
 haven't actually done it yet.
 
 You can use the webapp element inside jspc, but then jasper doesn't know about 
 your exclude and so tries to compile some
 fragment.jsp type include files, that are not really full jsp files, and so it 
 crashes on those ( this is my current
 problem ). But
 if all your included files are called .inc rather than .jsp then this may work.
 jspc
destdir=${webapp.workdir}
failonerror=false
classpathref=jspPreCompile.classpath
package=org.apache.jsp
compiler=jasper41
  webapp basedir=${webapp.path}/
  exclude name=**/WEB-INF/**/
  exclude name=include/**/
 /jspc
 
 
 So now I'm trying to make an ant step or task to replace the first line of every 
 generated _jsp.java file with the
 correct package
 name, between generating them and compiling them.
 Plz met me know if you have something better.
 
 
 Regards,
 
 Steph
 
 
 PS - if you're from the same HMDC i know, I suspect the site you are trying to 
 pre-compile, is one I wrote last summer.
 
 
 
 
 -Original Message-
 From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 01, 2003 5:19 PM
 To: Tomcat Users List
 Subject: Jasper, JSPC, Ant and Precompiling JSP's
 
 
 Hello,
 
 I've done my best to review the archives to resolve my problem, but I've
 not found a solution there so I'm posting it.
 
 I'm stuck back on Tomcat 4.1.24 (LE) and I'm encountering some issues
 with JSP Precompilation using Ant and JSPC. First let me outline my problem.
 
 Most messages I've read 

RE: Turning off session persistence

2003-08-06 Thread Shapira, Yoav

Howdy,

If no Manager is defined, then the default used by Tomcat is the one
that persists!  Is there a way to change the default that tomcat uses?

Yes.  RTFM.

Yoav Shapira



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: XP random tomcat crashes

2003-08-06 Thread srevilak
 From: dhay () lexmark ! com

 We're using tomcat 4.1.12 with Java 1.4.1.02, and are encountering
 strange crashes on XP especially.

 The crashes happen in apparently random places in our app, and cause
 the VM to crash with various messages, none of which are very
 helpful!

 I noticed that Cameron Hart had a similar problem
 (http://www.mail-archive.com/[EMAIL PROTECTED]/msg88603.html)

Just to be clear, this is a crash in the jvm itself (native code), as
opposed to say an unhandled Throwable (in java code)?

Historically, the jvm would usually generate a file whose name began
with hs_err_pid.  You might look for one of them (try the vm's current
working directory, or java.io.tmpdir).

On that level, your first bet might be to start looking for similar
problems in Sun's bug database.

  http://developer.java.sun.com/developer/bugParade/index.jshtml

-- 
Steve

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



RE: XP random tomcat crashes

2003-08-06 Thread monror
How do you get taken off of this mailing list?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 11:34 AM
To: Tomcat Users List
Subject: RE: XP random tomcat crashes



Howdy,
I would only offer the usual advice:
- Get the latest stable JDK (1.4.2)
- Get all the patches for your OS
- Get the latest stable tomcat (4.1.27)
- Start the VM with no switches and observe behavior, i.e. stick to default
client mode

Personally, I had problems with 1.4.1 in server mode on solaris that all went
away (without significant performance degradation) when I stopped using the
-server switch.  YMMV.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 11:05 AM
To: Tomcat Users List
Subject: RE: XP random tomcat crashes


We normally use the server jvm, but have also seen the crashes with the 
client.

Any ideas?

Cheers,

David





Lenny Karpel [EMAIL PROTECTED] on 05/08/2003 06:42:45 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:
Subject:RE: XP random tomcat crashes


Are you using the client or server jvm ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:41 PM
To: [EMAIL PROTECTED]
Subject: XP random tomcat crashes

Hi,

We're using tomcat 4.1.12 with Java 1.4.1.02, and are encountering
strange
crashes on XP especially.

The crashes happen in apparently random places in our app, and cause
the VM
to crash with various messages, none of which are very helpful!

I noticed that Cameron Hart had a similar problem 
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg88603.ht
ml)
- please could anyone point me in the right direction to try and get to
the
bottom of this.  Is it easy to run tomcat in a debugger so we can catch 
what happens?

Many thanks,

David






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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to whom
it is addressed, and may not be saved, copied, printed, disclosed or used by
anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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

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



Re: tomcat 4.1.27 log4j problem

2003-08-06 Thread Zsolt Koppany
Thank you Nathan.

Zsolt


On Wed, 2003-08-06 at 12:15, Nathan Coast wrote:
 if you use log4j on a tomcat-wide basis (ie 1 configuration for the 
 tomcat runtime and all your webapps), place your log4j.xml in 
 [tomcat-home]/shared/classes/
 
 if you use log4j on a per-webapp basis, make sure the log4j classes 
 aren't on the tomcat classpath and configure commons-logging to use jdk 
 logging (assuming you are using jdk 1.4).
 
 Zsolt Koppany wrote:
 
  Hi,
  
  my application uses log4j and with tomcat 4.1.27 (but not with 4.1.24) I
  get the following error message:
  
  
  log4j:WARN No appenders could be found for logger
  (org.apache.commons.digester.Digester).
  log4j:WARN Please initialize the log4j system properly.
  
  How can I fix this problem?
  
  
  Zsolt
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



Debugging applications running in NT Service.

2003-08-06 Thread Gregor Heinrich
Hi there,

I have a webapp that runs fine in Tomcat 4.1.18 standalone or Eclipse-based
(Sysdeo plugin).

If I start the same code in the service, I am getting application-specific
errors that point into the direction a different configuration is used.

In order to resolve these problems, is there a simple way to:

 - step-debug a web-application running in Tomcat in NT service mode.

 - identify which jars have been loaded by Tomcat.

Thanks and greets,

Gregor



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



connectionTimeout

2003-08-06 Thread Geralyn M Hollerman
I am still looking for information about the connectionTimeout
attribute of aConnector element in server.xml, past what's in Tomcat's
Server Configuration Reference; from what I've read, the default value
is 6 (milliseconds), but the server.xml that came with the 4.1.24
that I downloaded is set to 0. Is there a reason for this? Does 0 do
anything special? According to the sample server.xml, -1 disables
connection timeouts - under what situations would I want to do that? 

Thanks!
-- 
Lynn Hollerman.

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



RE: Tomcat v4.0 Admin Utility Crashing again

2003-08-06 Thread Thomas, Kevin
Thanks for the reply. I will go look at the patches for 1.3.1_08 initially
(as it took me forever to get our guys to install it!) before looking at
1.4.2.

Cheers,
Kev.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 14:31
To: Tomcat Users List
Subject: RE: Tomcat v4.0 Admin Utility Crashing again



Howdy,
Update to the latest version of the java and install its required
Solaris patches.  (Find them in the Solaris OS patches sections of this
page:
http://java.sun.com/j2se/1.4.2/download.html)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Thomas, Kevin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:27 AM
To: 'Tomcat Users List'
Subject: Tomcat v4.0 Admin Utility Crashing again

Hi again,

Sorry to be a pain. But we are continuing to have Tomcat crash on us
whenever we try to access Jsp pages. It would appear that there is a
problem
with the HotSpot JVMcan anyone help or possibly point me in the
right
direction. I've searched the Sun Java site and essentially they have a
bug
report for this but it's been closed off as un-reproductable, which
is
carp, because I can repeat the problem time and time again.

Any help would be much appreciated.
Cheers,
Kev.

-Original Message-
From: Thomas, Kevin [mailto:[EMAIL PROTECTED]
Sent: 05 August 2003 10:20
To: 'Tomcat Users List'
Subject: Tomcat v4.0 Admin Utility Crashing


Hi,

I'm currently running Java version 1.3.1_08 with Tomcat v4 on a Solaris
box
(SunOS 5.6). I've been trying to run the ADMIN utility and until now
wasn't
even able to get the JSP pages to compile. I had this newer version of
Java
installed and I can now get the Login page displaying. However, after
logging in, the index.jsp page is not always loading consistently and
will
sometimes crash Tomcat. The latest error was recorded as:


An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : 11 occurred at PC=0x91874
Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.



Current Java thread:

Dynamic libraries:
0x1 /usr/local/j2se/bin/../bin/sparc/native_threads/java
0xef77  /usr/lib/libthread.so.1
0xef7b  /usr/lib/libdl.so.1
0xef68  /usr/lib/libc.so.1
0xef75  /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
0xee80  /usr/local/j2se/jre/lib/sparc/client/libjvm.so
0xef64  /usr/lib/libCrun.so.1
0xef62  /usr/lib/libsocket.so.1
0xef58  /usr/lib/libnsl.so.1
0xef54  /usr/lib/libm.so.1
0xef67  /usr/lib/libw.so.1
0xef51  /usr/lib/libmp.so.2
0xef4e  /usr/local/j2se/jre/lib/sparc/native_threads/libhpi.so
0xef4b  /usr/local/j2se/jre/lib/sparc/libverify.so
0xef46  /usr/local/j2se/jre/lib/sparc/libjava.so
0xef43  /usr/local/j2se/jre/lib/sparc/libzip.so
0xeb0a  /usr/local/j2se/jre/lib/sparc/libnet.so
0xeb08  /usr/lib/nss_files.so.1

Local Time = Tue Aug  5 10:25:56 2003
Elapsed Time = 64520
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_08-b03 mixed mode)
#

Can anyone shed some light on this at all.

This error also appeared in the catalina.out log file during one
attempt to
run.

[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on
port
8080
javax.servlet.UnavailableException: MBeanServer is not available
at
org.apache.webapp.admin.ApplicationServlet.initServer(Unknown
Source)
at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown
Source)
at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown
Source)
at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown
Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServl
et.j
a
va:1788)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow
n
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
k
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
k

Re: Where can I find mod_jk-2.0.47.so?

2003-08-06 Thread Rick Roberts
Your going to need to build it.
Get it from here:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.ait-web.com  *
***
Raible, Matt wrote:
Anyone know where I can download mod_jk-2.0.47.so for Apache 2.0.47 on RH 9?
The closest I could find was 2.0.46 for RH 7.2 at: http://tinyurl.com/j6hf
Thanks,

Matt


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


Re: Behaviour of JSP with tomcat 4.1.24

2003-08-06 Thread John Turner
AFAIK, Tomcat saves sessions across restarts.  One of the gurus may have 
the specific answer as to how you can disable this, I believe it has 
something to do with whether your session attributes are serializable or 
not.

You can just clear out the work directory between restarts.  My shutdown 
scripts have a rm -rf $CATALINA_HOME/work/* in them so that it is done 
automatically.  This can cause a slow startup, since Tomcat has to 
recompile JSP again when they are accessed, but I restart Tomcat so 
rarely (maybe 2-3 times a year) that it really doesn't affect my 
instances all that much.

John

Sarika Inamdar wrote:

Hi All,

When we start tomcat and connect to the server, the index.jsp page is
displayed . When I key in a password, it validates the password and goes
to the next jsp page(login.jsp)
I stop tomcat and restart it again. Now when I connect to the server,
the index.jsp directly takes me to the login.jsp page without asking for
password. This should not happen. Everytime the tomcat is stopped 'n
started we should get the password validation.
But when I stop tomcat and clear the contents of
$CATALINA_HOME/work/StandAlone/,
When tomcat is started, it displays the index.jsp which asks for
password validation.
This behaviour was not seen in tomcat 3.2.3.

Please let me know if am missing something.  Am attaching the code
snippet of index.jsp and validateLogin.jsp which is called from
index.jsp
Thanks in Advance for the help,
Sarika
Here is code snippet of index.jsp :

%@ include file=header.jsp %
%@ include file=validateLogin.jsp %
%@ page import=com.cisco.das.core.* %

bHome/b
brHost: %= InetAddress.getLocalHost() %
brCurrent time: %= new Date() %
%
try {
  String s = DAS.status();
  ByteArrayInputStream bs = new
ByteArrayInputStream(s.getBytes());
  Properties prop = new Properties();
  prop.load(bs);
  out.println(brStatus: Running);

  out.println(brCNS name:  + prop.getProperty(name));
  out.println(brCNS group:  + prop.getProperty(group,
));
  out.println(brStart time:  +
  new
Date(Long.parseLong(prop.getProperty(startTime))
));
  out.println(brVersion:  +
prop.getProperty(package.version));
  out.println(brBuild date:  +
prop.getProperty(package.date));
  %
  br
  br
  form method=post action=stop.jsp
input type=submit value=Stop process
  /form
  %
} catch (Exception e) {
 out.println(input type=\hidden\ name=\debug\ value=\ +
e.toStr
ing() + \);
  String configdir = System.getProperty(user.dir) + /config;
  File pidFile = new File(configdir, pid);
  if (pidFile.exists()) {
out.println(brStatus: Initializing...);
%
br
form method=post action=stop.jsp
  input type=submit value=Stop Process
/form
%
  }
  else {
out.println(brStatus: Stopped);
%
br
form method=post action=start.jsp
  input type=submit value=Start process
/form
%
  }
}
%
%@ include file=footer.jsp %

Snippet of  validateLogin.jsp :

%
String value = (String)session.getValue(das.login);
if (value == null) {
%
Login password:
form method=post action=login.jsp?url=%= request.getServletPath()
% name=
login
input type=password size=20 name=password
input type=submit value=submit
/form
%
return;
}
%
-
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: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2

2003-08-06 Thread John Turner
It can't find libjvm.so.  Do you have that installed?

Alternatively, does it work without JNI?

John

Pat Pomatto wrote:

Hi,

 

Im running on Linux Apache 2.0.47, Tomcat 5.0.5 and trying to use JK2 
connector 2.0.2 which I built successfully. I configured the connector 
with jni.  I cannot seem to get the connector to work. In my 
apache/logs/error_log the error generated is:

 

[Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path, will use 
LD_LIBRARY_PATH libjvm.so

[Tue Aug 05 10:31:53 2003] [error] Can't load native library libjvm.so : 
libjvm.so: cannot open shared object file:

 No such file or directory

[Tue Aug 05 10:31:53 2003] [error] jni.loadJvm() Error - can't load jvm dll

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel() init failed 
for channel.jni:jni

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup

[Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown

[Tue Aug 05 10:31:53 2003] [error] shm.init(): No file

[Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map to invalid worker 
/jsp-examples/* ajp13:localhost:8009

[Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No worker for 
/jsp-examples/index.html

 

 

Any ideas? Has anyone successfully gotten jk2 connector 2.0.2 working 
with Tomcat 5?

 

Thanks in Advance,

Pat



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


Tomcat v4.0 Admin Utility Crashing

2003-08-06 Thread Thomas, Kevin
Hi,

I'm currently running Java version 1.3.1_08 with Tomcat v4 on a Solaris box
(SunOS 5.6). I've been trying to run the ADMIN utility and until now wasn't
even able to get the JSP pages to compile. I had this newer version of Java
installed and I can now get the Login page displaying. However, after
logging in, the index.jsp page is not always loading consistently and will
sometimes crash Tomcat. The latest error was recorded as:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x91874
Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.



Current Java thread:

Dynamic libraries:
0x1 /usr/local/j2se/bin/../bin/sparc/native_threads/java
0xef77  /usr/lib/libthread.so.1
0xef7b  /usr/lib/libdl.so.1
0xef68  /usr/lib/libc.so.1
0xef75  /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
0xee80  /usr/local/j2se/jre/lib/sparc/client/libjvm.so
0xef64  /usr/lib/libCrun.so.1
0xef62  /usr/lib/libsocket.so.1
0xef58  /usr/lib/libnsl.so.1
0xef54  /usr/lib/libm.so.1
0xef67  /usr/lib/libw.so.1
0xef51  /usr/lib/libmp.so.2
0xef4e  /usr/local/j2se/jre/lib/sparc/native_threads/libhpi.so
0xef4b  /usr/local/j2se/jre/lib/sparc/libverify.so
0xef46  /usr/local/j2se/jre/lib/sparc/libjava.so
0xef43  /usr/local/j2se/jre/lib/sparc/libzip.so
0xeb0a  /usr/local/j2se/jre/lib/sparc/libnet.so
0xeb08  /usr/lib/nss_files.so.1

Local Time = Tue Aug  5 10:25:56 2003
Elapsed Time = 64520
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_08-b03 mixed mode)
#

Can anyone shed some light on this at all.

This error also appeared in the catalina.out log file during one attempt to
run.

[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on port
8080
javax.servlet.UnavailableException: MBeanServer is not available
at org.apache.webapp.admin.ApplicationServlet.initServer(Unknown
Source)
at org.apache.webapp.admin.ApplicationServlet.getServer(Unknown
Source)
at org.apache.webapp.admin.TomcatTreeBuilder.buildTree(Unknown
Source)
at org.apache.webapp.admin.SetUpTreeAction.perform(Unknown Source)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1788)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1584)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at 

RE: Bare Minimum server.xml

2003-08-06 Thread Shapira, Yoav

Howdy,
You need a server, service, engine, host, connector.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Satish Talim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:58 PM
To: Tomcat Users List
Subject: Bare Minimum server.xml

Hello,
 
A newbie question -
 
I use Tomcat Version 4.0.1 and Java 2 SDK Standard Edition Version 1.4.0 on Windows 
2000 server.
 
I have been going thro' Oreilly's book 'Tomcat - The Definitive Guide' (still not been 
able to get my hands on 'The Apache Tomcat Bible' from Wiley) and wanted to know what 
is the bare minimum contents of server.xml file. Which elements and their 
corresponding attributes are a must-must. An example server.xml file would help and 
which is optimised too.
 
I am sure the experts here can help.
 
Thanks.
 
Satish
 

 



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: Tomcat Conn Pooling in 4.0.4 - Very Slow?

2003-08-06 Thread Shapira, Yoav

Howdy,
doh Sorry about that, I was assuming tomcat 4.1.

Maybe you can use DBCP with 4.0.x.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 1:51 PM
To: Tomcat Users List
Subject: Re: Tomcat Conn Pooling in 4.0.4 - Very Slow?

I am afraid Tomcat 4.0.4 does not have DBCP.

It uses Tyrex instead.
I have found from:  http://tyrex.sourceforge.com/tomcat.html that I
should
be using:
tyrex.resource.jdbc.xa.EnabledDataSource

But my .jar file for Tyrex only seems to have:
tyrex.jdbc.xa.EnabledDataSource
so I am using this instead.

I also have a class in my oracle driver's .jar archive called:
oracle/jdbc/pool/OracleDataSource.class
and another called:
oracle/jdbc/pool/OracleConnectionPoolDataSource.class

So I might try these also.

I think I have a pdf manual for that Oracle JDBC driver somewhere I'll
look
that up.

Have you any thoughts?  Should I install commons DBCP?

Andoni.


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 6:27 PM
Subject: RE: Tomcat Conn Pooling in 4.0.4 - Very Slow?



Howdy,

Factory?  What is a factory?  What does it look like?

It's a class implementing the GoF Factory pattern.

I thought what I had below WAS a factory?  is having DataSource there
not
good enough?

No.

What's below is exactly what my Tomcat book has!!

Your book could be out of date or incorrect.

Can you please help?

Add this parameter to your server.xml:

parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

And read the JNDI DataSource HOW-TO in the tomcat docs.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary
and/or privileged.  This e-mail is intended only for the individual(s)
to
whom it is addressed, and may not be saved, copied, printed, disclosed
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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




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]



Where can I find mod_jk-2.0.47.so?

2003-08-06 Thread Raible, Matt
Anyone know where I can download mod_jk-2.0.47.so for Apache 2.0.47 on RH 9?
The closest I could find was 2.0.46 for RH 7.2 at: http://tinyurl.com/j6hf

Thanks,

Matt

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



RES: Where can i set Groups and user roles?

2003-08-06 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Ok, thanks! At this moment, I will try to use MemoryRealm. My last doubt is:
does my application know the user role automatically whenever the login
process have finished (role comes together)? Or not, my app should ask for
authorization later... So ( automatically option ), the app could choose
what view the user will deal with.  
Thanks Murray.

-Mensagem original-
De: Murray [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 4 de agosto de 2003 22:26
Para: Tomcat Users List
Assunto: RE: Where can i set Groups and user roles?


Euclides,

Try starting tomcat then look at the examples at
http://localhost:8080/tomcat-docs/realm-howto.html.  You can assign roles to
users based on any of the three realm types but the mechanism is different
in each case.  I have implemented the JDBC based realm model and have a
table in my database which has two columns: user and role.  A user may have
more than one role in my implementation and I have used the request taglib
to ask
req:isUserInRole role=leader
to determine whether or not to display particular parts of a page.  If the
user has a row in the table with role set to leader access is allowed.
Note that I discovered it is essential that all protected pages need to
belong to some generic role first before you can gain access to the page to
make the test above.  Thus, if a user is to pass the above test, he must
have at least two entries in the role table: one with member and one with
leader.  The member role permits access to the secure part of the
website (as defined in the web.xml snippet below) and the leader role
provides additional access controls.

 security-constraint
  web-resource-collection
   web-resource-nameScoutGroup-Secure/web-resource-name
   url-pattern/members/*/url-pattern
  /web-resource-collection
  auth-constraint
role-namemember/role-name
  /auth-constraint
  user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

Murray

-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 August 2003 06:01
To: '[EMAIL PROTECTED]'
Subject: Where can i set Groups and user roles?


Hi guys,
my application should ask for user's authentication and then, associate him
to some skills. My question is easy: what is the easiest way to make it
possible on TomCat's environment?  Is there any xml tag?
Thanks in advance, Euclides.

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




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

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



performance question

2003-08-06 Thread Mark F
Tomcat 4.0.6
Solaris 8
Java SDK 1.4.2

We have a web app that is slightly slow.  This is a problem because it is just a bit 
slower than the app it is supposed to replace.  This has the customer upset, partially 
because we all hate change, but also understandably, the customer wants it faster.  We 
had a third party build the application but we will maintain it.  For whatever reason 
the company that built it will not be providing any more support as to how we can make 
it go faster.  

We have looked at the box, and it does not seem to be taxed.  We have tried setting 
CATALINA_OPTS to maximize performance but tomcat does not seem to be using the 
additional memory and the system's load average remains low.

Is there any way we can have tomcat use more resources, as much as necessary to run 
the application faster?

On a side note I can find no documentation that explains the difference between 
JAVA_OPTS and CATALINA_OPTS?

Also, we tried upgrading to 4.1.24 yesterday on another test server.  The application 
will not run correctly on the newer version of tomcat, any ideas why?  The results of 
the queries are not correct and the data is not returned correctly.  Is there any 
major change in tomcat 4.1.24 from 4.0.6 that would cause such a disparity.  


Thanks,
-Mark


RE: sendRedirect() doesnt work in https (posted again)

2003-08-06 Thread Vijay Kandy
FYI in case anyone else have this issue,

I got this fixed with the help of this article:
http://www.jguru.com/faq/view.jsp?EID=445939

Apparently, sendRedirect()s were going to localhost, so I changed
webapp.conf so that WebAppConnection maps to proper domain name:port
(instead of localhost) like so:
WebAppConnection warpConn warp domainName:9003

--Vijay

 -Original Message-
From:   Vijay Kandy  
Sent:   Monday, August 04, 2003 4:40 PM
To: 'Tomcat Users List'
Subject:sendRedirect() doesnt work in https (posted again)

Help anyone?

Hello Everyone,

I recently installed mod_ssl on an Apache 2.0.44/Tomcat 4.0.3/Debian 2.4.18
machine. I used openssl to create certificate and key and most of the web
application works fine. The only part that seems broken is when
sendRedirect() is used. I used something along the lines of:
res.sendRedirect(req.getContextPath() + / + ServletName); Is this not
legal? Could someone let me know why it does not work.

Sincerely,
Vijay

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

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

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



RE: Turning off session persistence

2003-08-06 Thread Shapira, Yoav

Howdy,

thanks, I did already!  But I don't think you understand my question!

I think I did ;)

I know you can reset the defaut, but that's only on a per context
basis.  I want to reset the default for all contexts, ie if a new
context is deployed and not Manager defined, then the default should
not persist!  The manual doesn't wether or not this can be achieved.

When I said RTFM, I really meant it.  You can define a Manager for a
DefaultContext.

RTFQ

I'll keep that in mind.

Yoav Shapira



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: Tomcat 5.0.2 and IIS

2003-08-06 Thread Eric J. Pinnell
The IIS connector is ajp13.  The coyote connector is ajp13 compliant so I
think an experiment would be in order.  I would guess it would work.

-e

On Tue, 5 Aug 2003, vikas jain wrote:

 If someone knows tomcat 5.0.2 works with IIS??? I tried to search for it, I
 got to know tomcat 3.3 works withIIS but there are no docs for tomcat 5.0
 verison. If someone knows about this, please help me out.

 Thanks,
 Vikas

 _
 Going on a holiday? Want to study abroad?
 http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt
 Need a personal loan?


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



WG: InvocationTargetException calling EJB

2003-08-06 Thread Juraj . Lenharcik

 I have tried this in Resin and it is working. It seems to be a configuration-problem 
 with tomcat. Has anyone an idea?
 
 Juraj
 
  -Ursprüngliche Nachricht-
 Von:  Lenharcik, Juraj  
 Gesendet: Mittwoch, 6. August 2003 14:55
 An:   '[EMAIL PROTECTED]'
 Betreff:  InvocationTargetException calling EJB
 
 
 Hi,
 
 I use a AXIS-webservice (deployed on TC outside Jboss) to call an EJB (Jboss). I get 
 on this line an InvocationTargetException :
 
 connProps.put(InitialContext.INITIAL_CONTEXT_FACTORY,factory);
 connProps.put(InitialContext.PROVIDER_URL, location);
 connProps.put(InitialContext.URL_PKG_PREFIXES, pkgs);
 ==  InitialContext initialContext = new InitialContext(connProps);
 
 junit.framework.AssertionFailedError: java.lang.reflect.InvocationTargetException
 When I call it without the Properties, everything runs. Also when I run it from a 
 standalone client it works. Only from the Webapplication it doesn`t run.
 
 DEBUG [Thread-4] (EJBBackend.java:38) - starting banfbackend
 DEBUG [Thread-4] (EJBBackend.java:43) - properties: {java.naming.provider.url=jn
 p://localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContext
 Factory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
 DEBUG [Thread-4] (EJBBackend.java:49) - org.jnp.interfaces.NamingContextFactory
 DEBUG [Thread-4] (EJBBackend.java:50) - jnp://localhost:1099
 DEBUG [Thread-4] (EJBBackend.java:51) - org.jboss.naming:org.jnp.interfaces
 
 The jars jbossall-client, jboss-client, jnp-client are in WEB-INF/lib.
 
 Have I missed something?
 
 Juraj
 
 

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



Re: Tomcat 5.0.2 and IIS

2003-08-06 Thread John Turner
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

John

vikas jain wrote:

Thanks Derek.
One more question. Where am I supposed to download dll file from?


From: Derek Mahar [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Eric J. Pinnell [EMAIL PROTECTED],Tomcat Users List 
[EMAIL PROTECTED]
Subject: RE: Tomcat 5.0.2 and IIS
Date: Tue, 5 Aug 2003 15:47:54 -0400

After much blood, sweat, and tears, I successfully got Tomcat 5.0.5,
Microsoft IIS, and the JK2 Connector (isapi_redirector2.dll) to work
together.  Refer to the following documents:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/installhowto.htm
l
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html
http://www.oreillynet.com/pub/a/onjava/2002/12/18/tomcat.html
http://www.geocities.com/gzhangx/websrv/ajp/ajp.html
Derek



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


window close session invalidate

2003-08-06 Thread Paul Wallace
Hi,
This problem bought to the user list after it became evident it was a 
configuration issue and not a development one. 
Can anyone tell me why my session cookie is being invalidated when I close a 
popup window (the original remains open), either by window.close(); (Javascript) or 
the Windows close Ap. icon on the top right corner? Note: running the app. (and 
closing the popup) from the same instance of Tomcat, but from a different terminal 
does NOT do this! This would imply it is an IE config issue? Does anyone have any 
experience of this please?

Thanks

Paul.

where my session was being invalidated
OK, Thanks for that. 
An interesting note however..after some testing, the session is not killed 
when run from another terminal i.e running the same instance of TC (same server) but 
from different terminals. That would suggest it is an IE configuration issue (at much 
annoyance to certain developers). I will at this stage bring this up on the user list!

Thanks

Paul.

i had the same problem with internet explorer. mozilla seems to work
properly.
i tracked the problem down and found out that internet explorer looses
the session cookie when closing the popup browser window.

then i added
 DefaultContext cookies=false /
to my virtualhost definition in server.xml to disable the session-cookie
mechanism.
after that everything worked fine for me.
remember to encode all urls with response.encodeURL().

jochen schwörer


Wednesday, August 6, 2003, 6:00:57 AM, you wrote:

PW Dear all,
PW May someone enlighten me on why my session is being invalidated
PW when I close a browser window? I am doing this in one of two ways - the
PW application close icon on the top right of the window, or a simple:

PW a href=javascript:window.close();CLOSE/a

PW Does anyone have any experience of this? The session is being killed and
PW thus so is my app. I will submit this query to the user list, but
PW thought it appropriate for this list as I am getting the same result
PW from multiple instances of TC on different servers, implying it is not a
PW configuration issue as first suspected. 

PW Thanks

PW Paul.

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


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


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


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