Mod_jk.so

2001-02-02 Thread Federico Delpino

Hi people,
 i'm looking for the Mod_jk.so for Compaq
TRU64 4.0.f. Can anyone tell me where  find it?
If that module is not available anywhere, I'm looking for a
suitable makefile.
Any help welcome.
Thanks in advance
federico



--
Federico Delpino   Tel. 39-51-20-95722
Osservatorio Astronomico di BolognaFax. 39-51-20-95700
via Ranzani,1 - 40126 Bologna, Italy
mailto:[EMAIL PROTECTED]


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




RE: Tomcat 3.2 admin app

2001-02-02 Thread McCarthy, Richard

hi,
I tried typing in the port number and it works!!..
thanks a million for your reply,something I probably should have been
doing ,but am extremely new to the whole web server setup..
Once again,thanks for the help,
Richard...

 -Original Message-
 From: Stefan Langer [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 6:36 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Tomcat 3.2 admin app
 
 What is your enviroment??? 
 
 Try going to port 8080 where Tomcat is actually listening.. 
 something like this
 
 http://localhost:8080/admin
 
 The admin index page should come up!!
 
 Stefan
 


This message is sent in confidence for the addressee
only.  The contents are not allowed to be disclosed to
anyone other than the addressee.  Unauthorised 
recipients must preserve this confidentiality and should 
please advise the sender immediately of any error in
transmission.

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




Re: quick Tomcat question

2001-02-02 Thread hische



I just migrated to tomcat4. It features an access log. From the tomcat 4
documentation (filters.html):

- - - - - - - - - - - - - - - -
3.3.1 Access Log Creation
When running Tomcat behind a web server, the web server is responsible for
creating the "access log" file that is typically used by hit count analysis
programs.
However, when you are running Tomcat stand-alone, it would be nice if Tomcat
could optionally include functionality to perform this task for us.
(Such a Valve already exists in Catalina).

To implement this functionality as a RequestInterceptor, we might create
something like this:

public final class AccessLogInterceptor extends BaseInterceptor {

public int postService(Request request, Response response) {
 ... log the interesting details ...
 }

}

A corresponding Valve implementation would look like this:

public final class AccessLogValve extends ValveBase {

public void invoke(Request request, Response response)
   throws IOException, ServletException {
 getNext().invoke(request, response);
 ... log the interesting details ...
 }

}

As you can see, both approaches can easily implement the required functionality.
The only important difference is that the Valve must specifically decide to call
the next valve in the pipeline (as described under "Valve Basics" above), while
filter management in the RequestInterceptor environment is the responsibility of
the container itself. What is not visible here, however, is the fact that the
container is also calling the other nine entry points of AccessLogInterceptor,
even though they do nothing at all useful.

- - - - - - - - - - - - - - -

Hope this helps,

Wilko






"Billford" [EMAIL PROTECTED] on 02-02-2001 00:35:55

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  quick Tomcat question



I have a site in Tomcat,  I have no need for Apache as ALL of the pages are
dynamic via JSP, servlets, whatever.  At any rate,  I need to have an access_log
type file to log access to the site. I'd like to be able to do this without
installing Apache and the connectors.  Does anyone know how to do this?  I can't
seem to find any info on it.   Thanks in advance.

Bill




I have a site in Tomcat, I have no need for 
Apache as ALL of the pages are dynamic via JSP, servlets, whatever. At any 
rate, I need to have an access_log type file to log access to the site. 
I'd like to be able to do this without installing Apache and the 
connectors. Does anyone know how to do this? I can't seem to find 
any info on it. Thanks in advance. 

Bill

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


System.err going to screen

2001-02-02 Thread Nik Makepeace

I have set up Tomcat 3.2.1 with Apache and am serving servlets fine 
from it, but there is one problem:  

I can't get the servlet output to System.err to go to a log file.  
Instead of going to the file specified in server.xml thus:  

Logger name="servlet_log" 
   path="/var/log/tomcat/servlet.log"
  verbosityLevel="DEBUG" /

FWIW, the directory exists, is writable by root, and servlet.log has 
entries relating to which servlets were initialised.  What happens 
though, is all System.err gets written to the screen.  

Can anyone help?

Nik



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




Handler Thread Problem

2001-02-02 Thread Nael Mohammad

Hey thanks, that fixed most of my problems. 

Thanks.

Nael :)
 Now I have this thread problem: I suspect I have to limit the number of
threads running  Any ideas, here is the error:




nix  2  [ ] DGRAM620270
-More--2001-02-02 12:36:09 - Ajp12Interceptor: HANDLER THREAD PROBLEM -
java.io
IOException: Stream broken
   at
org.apache.tomcat.modules.server.Ajp12.readNextRequest(Ajp12.java:287

   at
org.apache.tomcat.modules.server.AJP12Request.readNextRequest(Ajp12In
erceptor.java:223)
   at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(A
p12Interceptor.java:186)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
426)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ol.java:497)
   at java.lang.Thread.run(Thread.java:484)


-Original Message-
From: Geoff Lane [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 9:43 PM
To: [EMAIL PROTECTED]
Subject: Re: starting Tomcat at boot time on Linux


Here's one I wrote - works on Solaris and Linux . . .

Nael Mohammad wrote:
 
 Do you want to contribute your script to the community? I for one would
like
 to see it as a learning tool that I can use.
 
 Thanks,
 Nael
 
 Nael Mohammad
 Customer Support Analyst
 Neomar, Inc.
 180 Montgomery Street
 Suite 2000
 San Francisco, CA 94104
 Tel: 415-403-7300 ext. 274  Fax: 415-403-7373
 " Wireless Means Business"
 --
 Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
---
Geoff Lane  [EMAIL PROTECTED]

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




PROBLEM TOMCAT(stdalone)STARTUP\WIN 98

2001-02-02 Thread R N Mukherjee


SUB:PROBLEM TOMCAT-STANDALONE MODE STARTUP (WIN 98)
(How to setup the environment variable)


1. TOMCAT(STDALONE\WIN98) NOT STARTING after setting the env variable.
A. BEFORE SETTING the environment variable,when I run run bin.stratup.bat,
it says point JAVA_HOME to your Java Development Kit.

B. AFTER setting env variables, the commands bin/startup and bin/shutdown
not functioning("says file not found).

C. How to know TOMCAT is RUNNING or NOT.?


I have setup the environment variables as follows

I have created a separate batch file(tomenv.bat) that contains the following:
 F:\
 cd\temp\jakarta-tomcat-3.2.1
 SET TOMCAT_HOME= f:\cd\temp\jakarta-tomcat-3.2.1
 SET JAVA_HOME=C:\jdk1.2.1
 SET CLASSPATH:=f:\cd\temp\jakarta-tomcat-3.2.1\bin\startup.bat;

PLEASE HELP(Three days have passed with this problem)


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




Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Juan Julian Merelo Guervos

Hi,
I haven't been able to install mod_jk.so with Apache 1.3.17. I have
downloaded the mod_jk.so binary from the jakarta site, and I get this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and compiled
it. Guess what I got?

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What's the problem here? Any help?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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




RE: Bean problem...

2001-02-02 Thread Vikramjit Singh

no this is not a jsp specification
but to access the bean from either a jsp or servlet u need to store the bean
in a package.
u can say that it is a bean specification.
vikram

 -Original Message-
 From: Tony Keith [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 9:53 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Bean problem...
 
 Is this a specification of JSP?
 
 
 Vikramjit Singh wrote:
 
  there is a need for a package to make a bean. the bean has always to be
  written in  a package.
  otherwise the JSP cannot acces the bean
  bye
 
   -Original Message-
   From: Tony Keith [SMTP:[EMAIL PROTECTED]]
   Sent: Thursday, February 01, 2001 5:48 PM
   To:   tomcat-user
   Subject:  Bean problem...
  
   Hello,
  
   I have a strange problem with beans.
   I can run my bean just fine if it is in a package.
   For example:
  
   package foo;
   public class testBean {
   ...
   }
   and it is located in a foo directory under classes directory:
  
   /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes/foo
  
   but if I remove the package from the class
  
   public class testBean {
   ...
   }
  
   and move the class to the classes directory:
  
   /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes
  
   The bean gets produces the following errors:
  
   org.apache.jasper.JasperException: Unable to compile class for
  
 JSP/usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps/_0002fjsp_00
   02fforms_0002fsignup_0002ejspsignup_jsp_9.java:63:
   Class jsp.f_00025rms.testBean not found.
  testBean initHandler = null;
  ^
  
 //usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps//_0002fjsp_000
   2fforms_0002fsignup_0002ejspsignup_jsp_9.java:66:
   Class jsp.f_00025rms.testBean not found.
  initHandler= (testBean)
^
  
 //usr/local/src/jakarta-tomcat/work/localhost_8080%2Fmyapps//_0002fjsp_000
   2fforms_0002fsignup_0002ejspsignup_jsp_9.java:71:
   Class jsp.f_00025rms.testBean not found.
  initHandler = (testBean)
   Beans.instantiate(this.getClass().getClassLoader(), "testBean");
   This is on
   RH7.0
   apache
   tomcat 3.2.1
   mod_jk
  
   Any ideas why the bean has to be in a package to work?
   The /usr/local/src/jakarta-tomcat/webapps/myapps/WEB-INF/classes is in
   the $CLASSPATH...
  
   TIA
  
   --
   Tony
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 TIA
 Tony
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Run Tomcat as a Standalone

2001-02-02 Thread Sachin S. Khanna



Hello,
 I have downloaded the 
jakarta-tomcat-4.0-m5.zip file and extracted it in the c:\tomcat 
folder.
I have also added the following lines in my 
autoexec.bat
set JAVA_HOME=c:\jdk1.2
set 
TOMCAT_HOME=c:\tomcat\jakarta-tomcat-4.0-m5
now when i run thestartup command from the 
c:\tomcat\jakarta-tomcat-4.0-m5\bin folder, tomcat starts and shuts down after 
flashing some errors.
I'd appreciate if you guys can help me with this 
problem. Do i have to do any other steps to run tomcat as a standalone 
server.
I'm doing the above on a machine running Windows 
98.
Looking forward to hearing from you.
Have a nice day.With regards,Sachin S. 
Khanna.www.emailanorder.com


ENVIRONMENT SETTING TOMCAT(stdalone)\WIN 98

2001-02-02 Thread R N Mukherjee


SUB:ENVIRONMENT SETTING TOMCAT(stdalone)\WIN 98(How to setup the
environment variable)


Dear aLL,
I am having problem in setting the ENVIRONMENT variable(win 98) .


1. TOMCAT(STDALONE\WIN98) NOT STARTING .

 AFTER setting env variables, Ms-dos says "OUT OF ENVIRONMENT SPACE".

2. How to know TOMCAT is RUNNING or NOT.?


I have setup the environment variables as follows

I have created a separate batch file(tomenv.bat) that contains the following:
 F:\
 cd\temp\jakarta-tomcat-3.2.1
 SET TOMCAT_HOME= f:\cd\temp\jakarta-tomcat-3.2.1
 SET JAVA_HOME=C:\jdk1.2.1
 SET CLASSPATH:=f:\cd\temp\jakarta-tomcat-3.2.1\bin\startup.bat;

PLEASE HELP(Three days have passed with this problem)


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




RE: Tomcat/firewall/oracle timeout problem

2001-02-02 Thread Kevin Sangeelee

You could execute some simple SQL and catch any exceptions to test the
connection and re-establish it if necessary. There's also an isClosed()
method of Connection which the docs say will test to see if a connection
is closed.

Theres some stuff in javax.sql (jdbc extensions) that provide
ConnectionEventListener to notify you of connection object changes. I
don't know anything more about this, but it might be useful.

On Thu, 1 Feb 2001, Yin Tse wrote:

 Hi all,
 I'm having a problem with a jdbc connection object between tomcat and an
 oracle server. The 2 machines are separated by a firewall which was
 configured to allow access to the oracle server from the tomcat server only.
 The problem starts when the timeout period(which can be set to an arbitray
 time period) of idle time runs out. It sends a timeout signal and that
 breaks the jdbc connection. The application then freezes any attempts to log
 in/manage your account or do activities which need database connection. But
 tomcat still works fine, any servlets which do not need database connection
 works fine. 
 I added some code to check if my connection object is null and to create a
 new one if it is so. That didn't solve the problem which means that the
 connection object is not killed, but its content (like db driver, conn url ,
 login  password etc..)is somehow scrambled. My question is how can I manage
 those jdbc connection objects and how to figure out when something went
 wrong with the connection object ? Thanks all.


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




AW: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Andreas . cloess



Hi,
   I haven't been able to install mod_jk.so with Apache 1.3.17.
I have
downloaded the mod_jk.so binary from the jakarta site, and I get
this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is
not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and
compiled
it. Guess what I got?

On Redhat the apache config-files are stored at /etc/httpd/conf.
The Modules are at /usr/lib/ In /etc/httpd exists a symbolic
link to the modules.
The linkname is "modules". The entry in a mod_jk.conf-auto means
that this directory has the name "libexec".

The easiest way is: make a second link to the modules with the name
"libexec" in /etc/httpd

A.C.


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




.jar files and servlets

2001-02-02 Thread Garzón Maldonado, Jesús



Hello,

 
I'm running Tomcat 3.2.1 with Apache 1.3.12 (mod_jk) under Windows NT 4.0. The 
servlets I built can't find jar files. I tried to put them in the WEB-INF/lib 
directory, (inside the context where the servlets runs), and in the 
WEB-INF/classes directory, but with no success. It only works if I put them in 
theTomcat's classpath, but I've read that there can be problems with this 
solution and autoreloading servlets, (this is a development environment). 

When I 
useJSPs, it founds the jar files inside the WEB-INF/lib directory, (l've 
seen this in the jasper.log file), why!!!???!!

Thanks.


  
  

Jesús JavierGarzón Maldonado 
  

Mando y Control 
  
 
  


  Carretera Loeches, Nº 9
  28850 -Torrejón deArdoz (ESPAÑA)Tel: 
  +34-91-396.82.68[EMAIL PROTECTED]www.indra.es


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


Need Tomcat freeware(for trial)

2001-02-02 Thread V.T.R.Ravi Kumar

Hi ,

I have been trying out servlets using jws2.0,  Came to know about tomcat
and apache server combination through servlet-interest list. Have already
got apache server wud like to have a trial version of tomcat.  If possible
please do mail as attachment to this id



thankin u in advance


V.T.R. RAVI KUMAR., ET,

ITX,HEEP,Bharat Heavy Electricals Limited (BHEL),
Hardwar, Uttraanchal (UA),INDIA . PIN CODE - 249 403.

Those who stand for nothing ...  Will fall for anything !!!

http://hwr08/web/VTR



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




Re: Tomcat + Apache under Mandrake

2001-02-02 Thread Jorge García

Hi Tong

I'm using the rpm's from the Jakarta project, 
tomcat-3.2.1-1.noarch.rpm
tomcat-mod-3.2.1-1.rpm

I've apache, apache-devel, open-ssl, mod-ssl, auth-ldap and open-ldap  
also. All this stuff works fine as is, except our friend the mod_jk.so
connector, and compiling it from sources did the job

Tong Sun escribi:
 
 Thanks, Jorge
 
 I did compile it myself. Here is the result.
 
 $ file mod_jk.so
 mod_jk.so: ELF 32-bit LSB shared object, Intel 80386, version 1,
 stripped
 
 $ size mod_jk.so
text   data bss dec hex filename
   762391460  28   77727   12f9f mod_jk.so
 
 I only build the mod_jk.so, though. I use the apache Mandrake devel
 edition to build it. Did you also build the apache yourself?
 
 and BTW, I'm using Mandrake 7.2.
 
  Date: Thu, 01 Feb 2001 11:08:16 +0100
  To: [EMAIL PROTECTED], [EMAIL PROTECTED]
  From: Jorge =?iso-8859-1?Q?Garc=EDa?= [EMAIL PROTECTED]
  Subject: Re: Tomcat + Apache under Mandrake
  Message-ID: [EMAIL PROTECTED]
  You must compile mod_jk.so yourself. It is easy, see the docs.
 
  I had the same problem and it works fine now after compiling from
  sources.
 
  Tong Sun escribi:
  
   Hi,
  
   I managed to get Tomcat + Apache working under RH6.2 using mod_jk, which
   means that all static pages are served by Apache (port 80), yet all
   servlets and JSPs are forward to Tomcat by Apache to port 8080.
  
   Then I tried the same steps under Mandrake. Everything works find execpt
   that Apache still insists serving the servlets and JSPs itself, without
   forwarding them to Tomcat (port 8080). The result is that jsp are
   display as plain text and servlets are not found.
  
   I asked the (only) friend who know the Tomcat, servlets and JSPs, and he
   is having the same problem as mine.
  
   Has any of you met with the same problem? If not, please tell me what
   kind of tools and steps should I take to nail down what is wrong? (I
   tried to see if the communication between Tomcat and Apache using
   netstate, but it seems to me now that it is not the right tool).
  
   Thanks a lot for your help.
  
   and please CC me a copy whenever you reply, 'cause I'm subscribing in
   digest mode. Thanks
 
 --
 SUN, Tong
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

begin:vcard 
n:García;Jorge
tel;fax:34 91 562 68 13
tel;work:34 91 411 86 94
x-mozilla-html:TRUE
url:www.inner.es
org:INNER Research;Sistemas de Información
adr:;;cl Velázquez 109;Madrid;;28006;SPAIN
version:2.1
email;internet:[EMAIL PROTECTED]
title:Director del Sistema de Información
x-mozilla-cpt:;0
fn:Jorge García
end:vcard



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


SV: Need Tomcat freeware(for trial)

2001-02-02 Thread Jørgen Ramskov

Sorry, you can't get at trial version of Tomcat.

What you can get is a version licensed under the same license as Apache,
which is an Open Source license. Therefore you can download binaries (and
source) for free here:

http://jakarta.apache.org/site/binindex.html

There is only that one version of Tomcat - there isn't any "enterprise
version" or something like that. Read the license to learn what you are
allowed to do with it (nearly everything).

/Joergen


 -Oprindelig meddelelse-
 Fra: V.T.R.Ravi Kumar [mailto:[EMAIL PROTECTED]]
 Sendt: 2. februar 2001 10:43
 Til: [EMAIL PROTECTED]
 Emne: Need Tomcat freeware(for trial)
 
 
 Hi ,
 
 I have been trying out servlets using jws2.0,  Came to know 
 about tomcat
 and apache server combination through servlet-interest list. 
 Have already
 got apache server wud like to have a trial version of tomcat. 
  If possible
 please do mail as attachment to this id

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




Problem with tags that set scripting variables

2001-02-02 Thread Collins, Jim

Hi,

I have writen a very simple tag and jsp, what I want to do is set a
scripting variable in the tag. Below is the jsp, taglib, and tag handler.
When I try and run the jsp it throws a JasperException saying that test is
an undefined variable. I have looked at the generated code and I can see
that the variable is out of scope when I use it in the script but I don't
know how to give it scope throughout the page. Any help with this would be
greatly appreciated as I am pulling my hair out trying to figure out how to
get it to work.

Thanks.

Jim.

//the jsp file
%@ page language="java" import="java.util.Date" %
html
head
titleTest/title
/head
body
%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="mars"
%
mars:id cp_name="test"/
%= test %
/body
/html


//the taglib
?xml version="1.0" encoding="ISO-8859-1" ?
!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"

!-- a tag library descriptor --

taglib
  !-- after this the default space is
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
   --
  tlibversion1.0/tlibversion
  jspversion1.1/jspversion
  shortname/shortname

  !-- mars dets --
  tag
nameid/name
tagclassUK.co.nomura.mars.utils.MarsDets/tagclass
teiclassUK.co.nomura.mars.utils.MarsDetsExtraInfo/teiclass
bodycontentempty/bodycontent
info
/info
attribute
  namecp_name/name
  requiredtrue/required
  rtexprvaluetrue/rtexprvalue
/attribute
  /tag
/taglib


//the tag handler
public class MarsDets extends TagSupport{

  public void setCp_name(String name){
this.cp_name = name;
  }

  public String getCp_name(){
return cp_name;
  }

  public int doStartTag() throws JspTagException {
  pageContext.setAttribute(cp_name, "test");
  return SKIP_BODY;
  }
 public int doEndTag() throws JspTagException{
return EVAL_PAGE;
  }
 private String cp_name;
}


PLEASE READ: The information contained in this e-mail is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s).  Please check this
e-mail for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Securities and Futures Authority Limited and is a
member of the London Stock Exchange.


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




RE: Tomcat + Apache under Mandrake

2001-02-02 Thread GOMEZ Henri

I'm using the rpm's from the Jakarta project, 
   tomcat-3.2.1-1.noarch.rpm
   tomcat-mod-3.2.1-1.rpm

Thanks to java, no arch dependance.

I've apache, apache-devel, open-ssl, mod-ssl, auth-ldap and open-ldap  
also. All this stuff works fine as is, except our friend the mod_jk.so
connector, and compiling it from sources did the job

mod_jk.so is a i386 executable :

- Mandrake and Redhat are not really compatible in binary.
- the mod_jk.so present on the site in compiled WITH -DEAPI
  ie mod_ssl or Apache Redhat 6.2/7.0 RPM.

Tong Sun escribi:
 
 Thanks, Jorge
 
 I did compile it myself. Here is the result.
 
 $ file mod_jk.so
 mod_jk.so: ELF 32-bit LSB shared object, Intel 80386, version 1,
 stripped
 
 $ size mod_jk.so
text   data bss dec hex filename
   762391460  28   77727   12f9f mod_jk.so
 
 I only build the mod_jk.so, though. I use the apache Mandrake devel
 edition to build it. Did you also build the apache yourself?
 
 and BTW, I'm using Mandrake 7.2.
 
  Date: Thu, 01 Feb 2001 11:08:16 +0100
  To: [EMAIL PROTECTED], [EMAIL PROTECTED]
  From: Jorge =?iso-8859-1?Q?Garc=EDa?= [EMAIL PROTECTED]
  Subject: Re: Tomcat + Apache under Mandrake
  Message-ID: [EMAIL PROTECTED]
  You must compile mod_jk.so yourself. It is easy, see the docs.
 
  I had the same problem and it works fine now after compiling from
  sources.
 
  Tong Sun escribi:
  
   Hi,
  
   I managed to get Tomcat + Apache working under RH6.2 
using mod_jk, which
   means that all static pages are served by Apache (port 
80), yet all
   servlets and JSPs are forward to Tomcat by Apache to port 8080.
  
   Then I tried the same steps under Mandrake. Everything 
works find execpt
   that Apache still insists serving the servlets and JSPs 
itself, without
   forwarding them to Tomcat (port 8080). The result is that jsp are
   display as plain text and servlets are not found.
  
   I asked the (only) friend who know the Tomcat, servlets 
and JSPs, and he
   is having the same problem as mine.
  
   Has any of you met with the same problem? If not, please 
tell me what
   kind of tools and steps should I take to nail down what 
is wrong? (I
   tried to see if the communication between Tomcat and Apache using
   netstate, but it seems to me now that it is not the right tool).
  
   Thanks a lot for your help.
  
   and please CC me a copy whenever you reply, 'cause I'm 
subscribing in
   digest mode. Thanks
 
 --
 SUN, Tong
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




Problem with extra path info not redirected to servlet

2001-02-02 Thread Peter Thorsager



Hi, I've looked through the archieves for info on 
this problem, but the only one that came close had a solution that does not work 
for me, let me explain:

I use Tomcat 3.2 to run a servlet located at "http://localhost/servlet", the servlet name 
is nexus.It is currently setup with an entry in server.xml:

Context 
path="/servlet"docBase="e:/src/java/speedo" debug="1" 
crossContext="true" reloadable="true"/Context

and a web.xml file in 
"e:/src/java/speedo/WEB-INF":

web-app 
servlet 
servlet-namenexus/servlet-name 
servlet-classcom.netobjects.nebula.connectionmanager.ConnectionServlet/servlet-class 
init-param 
param-namenasPropertiesPath/param-name 
param-valuee:\src\java\speedo\WEB-INF/param-value 
/init-param

 
load-on-startup/load-on-startup 
/servlet

 
servlet-mapping 
servlet-namenexus/servlet-name 
url-pattern/nexus/url-pattern 
/servlet-mapping

/web-app
The servlet works fine when I post requests like: 
http://localhost/servlet/nexus?cmd=blabla 
, but when I do a http://localhost/servlet/nexus/file 
, Tomcat goes into the e:/src/java/speedo/nexus/ directory and looks for a file 
named "file", INSTEAD of passing the extra path info to the servlet so that I 
can get a hold of it with HttpServletRequest.getPathInfo() as I would expect it 
to do.

Can anyone explain to me why Tomcat does this and 
how I can fix?

Greetings
Peter Thorsager

PS: I can get the examples in Tomcat to work 
correct, like the RequestInfoExample.


Re: Problem with extra path info not redirected to servlet

2001-02-02 Thread Holger Hartwig

Peter,
change 
servlet-mapping
servlet-namenexus/servlet-name
url-pattern/nexus/url-pattern
/servlet-mapping
to
servlet-mapping
servlet-namenexus/servlet-name
url-pattern/nexus/*/url-pattern
/servlet-mapping  ^
|
then it should work
Holger
   

Peter Thorsager wrote:
 
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
Hi, I've looked through the archieves for info on this problem, but the only one that 
came close had a solution that does not work for me, let me explain:

I use Tomcat 3.2 to run a servlet located at "http://localhost/servlet", the servlet 
name is nexus. It is currently setup with an entry in server.xml:

Context path="/servlet" docBase="e:/src/java/speedo" debug="1" 
crossContext="true" reloadable="true"/Context

and a web.xml file in "e:/src/java/speedo/WEB-INF":

web-app
servlet
servlet-namenexus/servlet-name
   
servlet-classcom.netobjects.nebula.connectionmanager.ConnectionServlet/servlet-class
init-param
param-namenasPropertiesPath/param-name
param-valuee:\src\java\speedo\WEB-INF/param-value
/init-param

load-on-startup/load-on-startup
/servlet

servlet-mapping
servlet-namenexus/servlet-name
url-pattern/nexus/url-pattern
/servlet-mapping

/web-app

The servlet works fine when I post requests like: 
http://localhost/servlet/nexus?cmd=blabla , but when I do a 
http://localhost/servlet/nexus/file , Tomcat goes into the e:/src/java/speedo/nexus/ 
directory and looks for a file named "file", INSTEAD of passing the extra path info 
to the servlet so that I can get a hold of it with HttpServletRequest.getPathInfo() 
as I would expect it to do.

Can anyone explain to me why Tomcat does this and how I can fix?

Greetings
Peter Thorsager

PS: I can get the examples in Tomcat to work correct, like the RequestInfoExample.


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




ClassPath question?

2001-02-02 Thread Jian Zhang
Hello;

Can anyone help with this compile error msg:

javac HelloWorld.java

HelloWorld.java:1: Package javax.servlet not found in import.
import javax.servlet.*;
   ^
I have included the servlet.jar in my classpath:

printenv CLASSPATH
/usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib

and servlet.jar is in the folder /usr/local/tomcat/lib

what have I missed?

Thanks in advance

jian

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


Re: ClassPath question?

2001-02-02 Thread André Alves

In the CLASSPATH is necessary put the name of the archive, as follow:
/usr/local/tomcat/lib/servlet.jar

--- Jian Zhang [EMAIL PROTECTED] escreveu:  Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 

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


__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
As far as classpaths are concerned, you can think of a jar file as a
directory (not a file). That is, unlike files (.class files especially) you
must explicitly specify the jar file on the class path.

That is, to pick up the servlet jar file, specify the following path. You
will have to do a similar thing for each of the other jar files too.

/usr/local/tomcat/lib/servlet.jar


- Ck

Brainbench MVP Java2.


 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:23
 To: '[EMAIL PROTECTED]'
 Subject: ClassPath question?
 
 
 Hello;
 
 Can anyone help with this compile error msg:
 
 javac HelloWorld.java
 
 HelloWorld.java:1: Package javax.servlet not found in import.
 import javax.servlet.*;
^
 I have included the servlet.jar in my classpath:
 
 printenv CLASSPATH
 /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
 
 and servlet.jar is in the folder /usr/local/tomcat/lib
 
 what have I missed?
 
 Thanks in advance
 
 jian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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


Re: Need Tomcat freeware(for trial)

2001-02-02 Thread R N Mukherjee


DOWLLOAD A 3.O MB ZIP FILE FROM
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin

R.K.JHA,SAIL

At 15:13 02/02/01 +0530, you wrote:
Hi ,

I have been trying out servlets using jws2.0,  Came to know about tomcat
and apache server combination through servlet-interest list. Have already
got apache server wud like to have a trial version of tomcat.  If possible
please do mail as attachment to this id



thankin u in advance


V.T.R. RAVI KUMAR., ET,

ITX,HEEP,Bharat Heavy Electricals Limited (BHEL),
Hardwar, Uttraanchal (UA),INDIA . PIN CODE - 249 403.

Those who stand for nothing ...  Will fall for anything !!!

   http://hwr08/web/VTR



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




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




Re: Problem with extra path info not redirected to servlet

2001-02-02 Thread Peter Thorsager

Thanks, that did it. Boy have I spent a lot of time trying to figure that
out :O

Peter Thorsager


- Original Message -
From: "Holger Hartwig" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 12:09
Subject: Re: Problem with extra path info not redirected to servlet


 Peter,
 change
 servlet-mapping
 servlet-namenexus/servlet-name
 url-pattern/nexus/url-pattern
 /servlet-mapping
 to
 servlet-mapping
 servlet-namenexus/servlet-name
 url-pattern/nexus/*/url-pattern
 /servlet-mapping  ^
 |
 then it should work
 Holger


 Peter Thorsager wrote:
 
 Part 1.1Type: Plain Text (text/plain)
 Encoding: quoted-printable
 Hi, I've looked through the archieves for info on this problem, but the
only one that came close had a solution that does not work for me, let me
explain:
 
 I use Tomcat 3.2 to run a servlet located at "http://localhost/servlet",
the servlet name is nexus. It is currently setup with an entry in
server.xml:
 
 Context path="/servlet" docBase="e:/src/java/speedo" debug="1"
crossContext="true" reloadable="true"/Context
 
 and a web.xml file in "e:/src/java/speedo/WEB-INF":
 
 web-app
 servlet
 servlet-namenexus/servlet-name


servlet-classcom.netobjects.nebula.connectionmanager.ConnectionServlet/se
rvlet-class
 init-param
 param-namenasPropertiesPath/param-name
 param-valuee:\src\java\speedo\WEB-INF/param-value
 /init-param

 load-on-startup/load-on-startup
 /servlet

 servlet-mapping
 servlet-namenexus/servlet-name
 url-pattern/nexus/url-pattern
 /servlet-mapping

 /web-app
 
 The servlet works fine when I post requests like:
http://localhost/servlet/nexus?cmd=blabla , but when I do a
http://localhost/servlet/nexus/file , Tomcat goes into the
e:/src/java/speedo/nexus/ directory and looks for a file named "file",
INSTEAD of passing the extra path info to the servlet so that I can get a
hold of it with HttpServletRequest.getPathInfo() as I would expect it to
do.
 
 Can anyone explain to me why Tomcat does this and how I can fix?
 
 Greetings
 Peter Thorsager
 
 PS: I can get the examples in Tomcat to work correct, like the
RequestInfoExample.


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


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




RE: ClassPath question?

2001-02-02 Thread Jian Zhang
Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and it worked.

I noticed that the first line HelloWorld.java file is 
"import java.io.*"
But it did not create any problem on compiling given previous classpath.

Does it mean java libs have some difference from each other?


jian


 As far as classpaths are concerned, you can think of a jar file as a
 directory (not a file). That is, unlike files (.class files 
 especially) you
 must explicitly specify the jar file on the class path.
 
 That is, to pick up the servlet jar file, specify the 
 following path. You
 will have to do a similar thing for each of the other jar files too.
 
 /usr/local/tomcat/lib/servlet.jar
 
 
 - Ck
 
 Brainbench MVP Java2.
 
 
  -Original Message-
  From: Jian Zhang [mailto:[EMAIL PROTECTED]]
  Sent: 02 February 2001 11:23
  To: '[EMAIL PROTECTED]'
  Subject: ClassPath question?
  
  
  Hello;
  
  Can anyone help with this compile error msg:
  
  javac HelloWorld.java
  
  HelloWorld.java:1: Package javax.servlet not found in import.
  import javax.servlet.*;
 ^
  I have included the servlet.jar in my classpath:
  
  printenv CLASSPATH
  /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
  
  and servlet.jar is in the folder /usr/local/tomcat/lib
  
  what have I missed?
  
  Thanks in advance
  
  jian
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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


I need help!!!

2001-02-02 Thread Rajashanin




Hi 
This is Rajashanin from India, I installed 
Apache and Tomcat in my machine to run JSP based project, I have tried a lot but 
I am unable to run my project, can you please tell me, where to put the JSP 
files, templates and the Java files?, does the Java files need to be compiled 
before placingthem in the concerned folders, please do lemme 
know.

Thankyou
Regards
Rajashanin


Re: I need help!!!

2001-02-02 Thread Narayanan



HI 

 Where u have placed 
the application 
 If u have not 
created any application just place the JSP under root 
and all the java files under web-inf . 


 Narayanan
 s.w Engineer 
 Enhancement Technologies
 Chennai-17 
 [EMAIL PROTECTED]

  - Original Message - 
  From: 
  Rajashanin 
  To: [EMAIL PROTECTED] 
  Sent: Friday, February 02, 2001 5:35 
  PM
  Subject: I need help!!!
  
  
  Hi 
  This is Rajashanin from India, I installed 
  Apache and Tomcat in my machine to run JSP based project, I have tried a lot 
  but I am unable to run my project, can you please tell me, where to put the 
  JSP files, templates and the Java files?, does the Java files need to be 
  compiled before placingthem in the concerned folders, please do lemme 
  know.
  
  Thankyou
  Regards
  Rajashanin


RE: ClassPath question?

2001-02-02 Thread Christopher Kirk
_Normally_ the core java libraries are inserted onto the classpath for you,
hence
you may not always have to setup a classpath.

javax.* is not part of the core libraries, its name actually stands for 
'java extensions'. Over time some of these extensions, such as swing (javax.
swing)  
have made it into the normal distribution but others such as servlets have
not.

If you want to see what is or is not in the core distribution, go into the
libs
directory of the JVM installation of the JRE and open up rt.jar.. in there
you 
will find java.io, java.util etc etc.

- CK

Brainbench MVP Java2.

 -Original Message-
 From: Jian Zhang [mailto:[EMAIL PROTECTED]]
 Sent: 02 February 2001 11:51
 To: '[EMAIL PROTECTED]'
 Subject: RE: ClassPath question?
 
 
 Thanks. I just tried "/usr/local/tomcat/lib/servlet.jar" and 
 it worked.
 
 I noticed that the first line HelloWorld.java file is 
 "import java.io.*"
 But it did not create any problem on compiling given previous 
 classpath.
 
 Does it mean java libs have some difference from each other?
 
 
 jian
 
 
  As far as classpaths are concerned, you can think of a jar file as a
  directory (not a file). That is, unlike files (.class files 
  especially) you
  must explicitly specify the jar file on the class path.
  
  That is, to pick up the servlet jar file, specify the 
  following path. You
  will have to do a similar thing for each of the other jar files too.
  
  /usr/local/tomcat/lib/servlet.jar
  
  
  - Ck
  
  Brainbench MVP Java2.
  
  
   -Original Message-
   From: Jian Zhang [mailto:[EMAIL PROTECTED]]
   Sent: 02 February 2001 11:23
   To: '[EMAIL PROTECTED]'
   Subject: ClassPath question?
   
   
   Hello;
   
   Can anyone help with this compile error msg:
   
   javac HelloWorld.java
   
   HelloWorld.java:1: Package javax.servlet not found in import.
   import javax.servlet.*;
  ^
   I have included the servlet.jar in my classpath:
   
   printenv CLASSPATH
   /usr/local/jdk1.2.2/lib:/usr/local/tomcat/lib:/usr/local/ant/lib
   
   and servlet.jar is in the folder /usr/local/tomcat/lib
   
   what have I missed?
   
   Thanks in advance
   
   jian
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: 
 [EMAIL PROTECTED]
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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


Re: I need help!!!

2001-02-02 Thread Rajashanin



Dear Narayanan
I have placed the JSP files and HTML files in 
the Web-apps folder and theand .class files in the Web-inf - classes 
folder, and now it's working fine, Thankx for ur reply and timely help 
Mr.Narayanan

Cheers
Rajashanin

  - Original Message - 
  From: 
  Narayanan 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, February 02, 2001 5:40 
  PM
  Subject: Re: I need help!!!
  
  HI 
  
   Where u have 
  placed the application 
   If u have 
  not created any application just place the JSP under root 
  and all the java files under web-inf . 
  
  
   Narayanan
   s.w Engineer 
   Enhancement Technologies
   Chennai-17 
   [EMAIL PROTECTED]
  
- Original Message - 
From: 
Rajashanin 
To: [EMAIL PROTECTED] 

Sent: Friday, February 02, 2001 5:35 
PM
Subject: I need help!!!


Hi 
This is Rajashanin from India, I installed 
Apache and Tomcat in my machine to run JSP based project, I have tried a lot 
but I am unable to run my project, can you please tell me, where to put the 
JSP files, templates and the Java files?, does the Java files need to be 
compiled before placingthem in the concerned folders, please do lemme 
know.

Thankyou
Regards
Rajashanin


RE: Running web apps from a custom directory (W2K,IIS5,Tomcat 3.2 .1)

2001-02-02 Thread Vegard Skjefstad

aahhh.. that was better. Thanks a lot, Randy.

At 15:08 01.02.2001 -0500, you wrote:

 Don't create virtual directories, edit the uriworkermap.properties
file.

 Randy


-Original Message-
From: Vegard Skjefstad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 3:31 PM
To: [EMAIL PROTECTED]
Subject: Running web apps from a custom directory (W2K,IIS5,Tomcat
3.2.1)


Hi,

Platform info:
Windows 2000 with SP1
IIS 5.0
Tomcat 3.2.1

I'm trying to get Tomcat 3.2.1 to run a web application from
c:/inetpub/projectmagoria.
I have added a new context entry in the server.xml file

  Context path="/projectmagoria"
   docBase="c:/inetpub/projectmagoria"
   crossContext="false"
   debug="0"
   reloadable="true" 
  /Context

fixed the policy in the tomcat.policy file

grant codeBase "file:c:/inetpub/projectmagoria" {
permission java.net.SocketPermission "localhost:1024-", "listen";
permission java.util.PropertyPermission "*", "read";
};

and made a virtual directory in IIS named "projectmagoria".
The I copied the contents of the $TOMCAT_HOME/webapps/examples directory
(all sub-dirs and files) to the c:/intepub/projectmagoria directory.

But nothing is working. Requesting one of the *.jsp files, e.g.
http://localhost/projectmagoria/jsp/num/numguess.jsp results in an "The
specified module could not be found." error in Opera 5.0.2, while
requesting http://localhost/examples/jsp/num/numguess.jsp works just fine.

The isapi.log reports no errors, jasper.log has no entries for the request
to the numguess.jsp file in projectmagoria, but one for the examples
request (no errors), but the servlet.log has one entry,
2001-02-01 09:19:13 - path="/projectmagoria" :jsp: init

I would be very greatful if someone could help me out, I've been trying to
get it to work 15 times now, and I still don't have a clue.
Thanks a lot in advance!

vegard



[EMAIL PROTECTED]
http://snuffcity.com
ICQ UIN 11872166


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

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


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




Re: AW: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Juan Julian Merelo Guervos

[EMAIL PROTECTED] wrote:
 
 Hi,
I haven't been able to install mod_jk.so with Apache 1.3.17.
 I have
 downloaded the mod_jk.so binary from the jakarta site, and I get
 this
 error:
 Syntax error on line 8 of
 /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
 API module structure `jk_module' in file
 /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is
 not an
 Apache module DSO?
 
 OK, good, I thought, that must be the weird RH7.0 file format or
 whatever. Let's compile it natively. I downloaded source, and
 compiled
 it. Guess what I got?
 
 On Redhat the apache config-files are stored at /etc/httpd/conf.
 The Modules are at /usr/lib/ In /etc/httpd exists a symbolic
 link to the modules.
 The linkname is "modules". The entry in a mod_jk.conf-auto means
 that this directory has the name "libexec".
 
 The easiest way is: make a second link to the modules with the name
 "libexec" in /etc/httpd

I am not using the default RedHat installation, but a "local" one; and I
am loading the conf file "by hand"; besides, the
/usr/local/apache/libexec/mod_jk.so does exist. Do you mean that it's
trying to load it from some other place?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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




problem with init-param

2001-02-02 Thread Martin Schmidt

Hi,

my init-params were set if i enable load-on-startup
(got some System.outs in the init()).

But if i invoke a request, first the init is called
again (hm?) and second the init-params are null!!!

Here's my web.xml (taken from WEB-INF):

?xml version="1.0" encoding="ISO-8859-1"?
 
!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
 
web-app
  servlet
servlet-name Init-Test /servlet-name
servlet-classtest  /servlet-class
load-on-startup  10/load-on-startup
init-param
  param-name configFile /param-name
  param-value /usr/local/myapps/test/test.conf /param-value
/init-param
  /servlet
  session-config
 session-timeout 30 /session-timeout
  /session-config
/web-app 

My system consists of 2 linux-pcs (suse 7.0)
one with apache and mod_jk, the other without
apache but with tomcat. This shouldn't matter
(a direct request to tomcat, 
like http://tcworker:8080/mytest/servlet/test,
doesn't get the init-params too) 
but who knows

Any suggestions, hints or other helpful statements?

Thanks in advance.

  Martin

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




AW: AW: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Andreas . cloess


I am not using the default RedHat installation, but a "local" one;
and I
am loading the conf file "by hand"; besides, the
/usr/local/apache/libexec/mod_jk.so does exist. Do you mean that
it's
trying to load it from some other place?

Yes, that's what I mean.
In your httpd.conf is a line where you specify the ServerRoot.
In the org. RH httpd.conf it looks like this:
ServerRoot /etc/httpd

Apache searchs for the modules in a directory called "modules" (or
libexec) as a subdirectory of ServerRoot.
If your ServerRoot is /usr/local/apache then it's OK, but in that
case: You have a problem. 

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




Unable to run tomcat 4.0 on win 98

2001-02-02 Thread Sachin S. Khanna



Hello,
 I'm trying to run tomcat on my 
mchine which has a jdk1.2 installed. But the statup.bat file throws this error 
:
Relocation Error : Null relocation target has 
occured in org/apache/crimson...
Please let me know why is this happening and how do 
i get rid of this fatal error.
Have a nice day.With regards,Sachin S. 
Khanna.www.emailanorder.com


RE: simple jsp forwarding

2001-02-02 Thread Debra Locke

We typically use a jsp template which dynamically creates all display pages
using several jsp pages. However we do not use links to accomplish this.
Instead we have a class file that defines "defaults" for request attributes
(i.e. public static final String ATTR_CONTENT_JSP = "DisplayContent";) that
we have created. Then within the java code for processing a request, we set
the attribute to the appropriate jsp page for the task at hand (i.e.
request.setAttribute(ATTR_CONTENT_JSP,"/example/jsp/login.jsp");). Then
within the template jsp page, we simply retrieve the current value of the
attribute.

This allows us to use the following in our template jsp page:


   %
  pageContext.getOut().flush();
  String y = (String)request.getAttribute("ATTR_CONTENT_JSP");
  if ((y== null) || (y.length() == 0)) {
  %
  Error: JSP page not specified for template
  %
  }
  else {
  pageContext.include(y);
  }
   %


Hope this helps.

Regards,
Debbie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Novotny
Sent: Thursday, February 01, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: simple jsp forwarding



My idea is to create a generic template jsp file that can include other jsps
depending on a request parameter.

So I have  a link like the following:

a
href="/example/jsp/template.jsp?mainpage=/example/jsp/login.jsp"Login/ab
r

And then my template jsp has the following:

...
% String mainpage = request.getParameter("mainpage");  %
jsp:include page="%= mainpage %" flush="true" /
...

However in practice, it seems to display login.jsp in another browser
window
and not even invoke template.jsp from the link.

If there's a JSP guru out there, I really appreciate the wisdom :-)

Jason


--
Jason Novotny   [EMAIL PROTECTED]
Home: (510) 704-9917Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov




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


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




RE: problem with init-param

2001-02-02 Thread Kevin Jones

You have two instances of the servlet executing. One with the name
(/servlet/Init-Test) and one without (/servlet/Test)(this is expected).

The firstone gets initialised and the init-params get set. The container
hjas no info. about the second, apart from the fact that you are calling it
through /servlet.

Try browsing to http://localhost:8080/mytest/servlet/Init-Test, you should
get the first instance, init-params and all

Kevin Jones
DevelopMentor
www.develop.com

 -Original Message-
 From: ms [mailto:ms]On Behalf Of Martin Schmidt
 Sent: 02 February 2001 13:31
 To: [EMAIL PROTECTED]
 Subject: problem with init-param


 Hi,

 my init-params were set if i enable load-on-startup
 (got some System.outs in the init()).

 But if i invoke a request, first the init is called
 again (hm?) and second the init-params are null!!!

 Here's my web.xml (taken from WEB-INF):

 ?xml version="1.0" encoding="ISO-8859-1"?

 !DOCTYPE web-app
 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
 "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

 web-app
   servlet
 servlet-name Init-Test /servlet-name
 servlet-classtest  /servlet-class
 load-on-startup  10/load-on-startup
 init-param
   param-name configFile /param-name
   param-value /usr/local/myapps/test/test.conf /param-value
 /init-param
   /servlet
   session-config
  session-timeout 30 /session-timeout
   /session-config
 /web-app

 My system consists of 2 linux-pcs (suse 7.0)
 one with apache and mod_jk, the other without
 apache but with tomcat. This shouldn't matter
 (a direct request to tomcat,
 like http://tcworker:8080/mytest/servlet/test,
 doesn't get the init-params too)
 but who knows

 Any suggestions, hints or other helpful statements?

 Thanks in advance.

   Martin

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


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




date

2001-02-02 Thread Carlos

in jsp how i get the date for print in web in the format XX-XX-XX?


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




Re: date

2001-02-02 Thread Peter Thorsager

Use the MessageFormat object in java.text.MessageFormat included in the JDK.

Peter Thorsager


- Original Message - 
From: "Carlos" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 15:23
Subject: date


 in jsp how i get the date for print in web in the format XX-XX-XX?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




RE: date

2001-02-02 Thread Michael Wentzel

 in jsp how i get the date for print in web in the format XX-XX-XX?

Works just like any other java class:

java.util.GregorianCalendar cal= new GregorianCalendar();
java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());

---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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




AW: date

2001-02-02 Thread Kurt, Oliver

or use 

java.util.DateFormat

-Ursprngliche Nachricht-
Von: Peter Thorsager [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 2. Februar 2001 15:25
An: [EMAIL PROTECTED]
Betreff: Re: date


Use the MessageFormat object in java.text.MessageFormat included in the JDK.

Peter Thorsager


- Original Message - 
From: "Carlos" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 15:23
Subject: date


 in jsp how i get the date for print in web in the format XX-XX-XX?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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

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




Re: date

2001-02-02 Thread Kevin Sangeelee

On Fri, 2 Feb 2001, Carlos wrote:

 in jsp how i get the date for print in web in the format XX-XX-XX?

java.util.Calendar  - but *please* - this is not a Tomcat or even JSP
issue.


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




Re: can4t build mod_jk under AIX :-(((

2001-02-02 Thread Denis Benoit



Hi,
rainer Wrote:

 i work on AIX 4.3.3 and with apache 1.13.14 and need zu build a mod_jk
 but it doesn4t work. i am using java 1.3.0.
 when i execute the apxs-tool described in the mod_jk-howto the linker
 reports an error and stops.
 /usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/java130/include -c
 *.c ../jk/*.c
 
 it seems the gcc works fine, but then it happens:
 
 ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/usr/local/apache/libexec/http
 d.exp -lc -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o
 jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
 jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o
 mod_jk.o
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 apxs:Break: Command failed with rc=8

I successfully built mod_jk.so on AIX using the following command:

ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry \
   -bI:/usr/local/apache/libexec/httpd.exp \
   -bE:mod_jserv.exp -lc -o mod_jserv.so \
   autochange.o jserv_ajpv11.o serv_ajpv12.o \
   jserv_balance.o jserv_image.o \
   jserv_mmap.o jserv_protocols.o \
   jserv_status.o jserv_utils.o \jserv_watchdog.o jserv_wrapper.o \
   jserv_wrapper_unix.o jserv_wrapper_win.o \
   mod_jserv.o

I used the file mod_jserv.exp must contain the following text:
jserv_module

Denis


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




Re: starting Tomcat at boot time on Linux

2001-02-02 Thread Jan Labanowski

If you want to start Apache+Tomcat at boot time, you may want to look
at some of my scripts:

http://www.ccl.net/cca/software/UNIX/apache/


Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Re: problem with init-param

2001-02-02 Thread Martin Schmidt

Thanks Kevin,

shame on me. I guess this is my biggest mistake in the last 2 month.
Maybe i should find a rich woman and stop working/programming ;)

Thanks again.

  Martin


Kevin Jones wrote:
 
 You have two instances of the servlet executing. One with the name
 (/servlet/Init-Test) and one without (/servlet/Test)(this is expected).
 
 The firstone gets initialised and the init-params get set. The container
 hjas no info. about the second, apart from the fact that you are calling it
 through /servlet.
 
 Try browsing to http://localhost:8080/mytest/servlet/Init-Test, you should
 get the first instance, init-params and all

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




Reserved parameter names?

2001-02-02 Thread Chris Janicki

I've discovered (after some frustration) than certain variable names used 
in an HTML form won't be passed to my bean via the "jsp:setProperty" tag. 
 For example, using "page" as a name doesn't work.  I *can* explicitly 
set it via:

myBean.setPage(request.getProperty("page"));

But this name won't get set automatically, while other names do, all in 
the same form.

Are there "reserved" names that I need to avoid when making forms to be 
handled by Tomcat?  Is there a list of them?

Thanks,
Chris

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




Re: Reserved parameter names?

2001-02-02 Thread William Brogden



Chris Janicki wrote:
 
 I've discovered (after some frustration) than certain variable names used
 in an HTML form won't be passed to my bean via the "jsp:setProperty" tag.
  For example, using "page" as a name doesn't work.  I *can* explicitly
 set it via:
 
 myBean.setPage(request.getProperty("page"));
 
 But this name won't get set automatically, while other names do, all in
 the same form.
 
 Are there "reserved" names that I need to avoid when making forms to be
 handled by Tomcat?  Is there a list of them?
 
 Thanks,
 Chris
 

That is because of the "Implicit Objects" in the JSP standard:
request, response, pageContext,session, application, out, config, page
and exception

There is a really useful 2 page summary you can download from
java.sun.com
named something like "Javaserver Pages Technology Syntax" that includes
this list.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




Logging problems

2001-02-02 Thread Nik Makepeace

Does anyone know how to stop tomcat sending all the servlet error 
output to the screen?  The Loggers adequatelt trap and write all the 
tomcat output, but System.err always seems to go to screen.
Any suggestions?

Nik

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




RE: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Wise, Bowden (CRD)

Hey J

I am stuck where you are.  I was trying to use the mod_jserv_tomcat.so that you can 
download.  My
configuration
is RedHat 6.2 on a Dell PC.  And I get that same
/usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an 
Apache module DSO?

So are those binaries for RedHat 7?  I also tried compiling
but apxs gives me fits:
apxs:Error: @sbindir@/httpd not found or not executable


Any ideas?
Thanks
Bowden




-Original Message-
From: Juan Julian Merelo Guervos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk.so, RH7.0, binary/compiled


Hi,
I haven't been able to install mod_jk.so with Apache 1.3.17. I have
downloaded the mod_jk.so binary from the jakarta site, and I get this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and compiled
it. Guess what I got?

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What's the problem here? Any help?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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

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




Re: Logging problems

2001-02-02 Thread Peter Thorsager

Redirect both the System.out and the System.err to the same outputstream
(which is your FileOutputStream), then you'll avoid the error messages in
the window.

Peter Thorsager


- Original Message -
From: "Nik Makepeace" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 16:00
Subject: Logging problems


 Does anyone know how to stop tomcat sending all the servlet error
 output to the screen?  The Loggers adequatelt trap and write all the
 tomcat output, but System.err always seems to go to screen.
 Any suggestions?

 Nik

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


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




Logout

2001-02-02 Thread Marino Vittorio

Hi folks. I'd like to logout from a jsp app, I am using Tomcat JDBC Realm to
log in the system. Any idea?
Thanks, Vittorio


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




Re: date

2001-02-02 Thread Carlos

in a jsp page i have put the next but doesn't run: Why?
%
java.util.GregorianCalendar cal= new GregorianCalendar();
java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
%
htmlbody

%
out.println(s);

%
/body/html


thanks
Carlos

- Original Message - 
From: "Michael Wentzel" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 2:54 PM
Subject: RE: date


  in jsp how i get the date for print in web in the format XX-XX-XX?
 
 Works just like any other java class:
 
 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 
 ---
 Michael Wentzel
 Software Developer
 A HREF="http://www.aswethink.com"Software As We Think/A
 A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


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




several tomcat questions

2001-02-02 Thread Nick Polyak



Hi,I am new 
to tomcat, so, please forgive the naiveté of my questions.I am using Tomcat 
3.2.1. Is it possible to create a db connection pool inside Tomcat? If yes, 
thenhow.2. How can I create a servlet pool, with the specified number of 
servletsinitialized at the start up time and the possibility to grow in case 
moreservlets are required to handle the load.3. How to I switch between 
single and multi-threaded servlet models usingthe Tomcat configuration 
parameters?Thank youNick


RE: date

2001-02-02 Thread Michael Wentzel

 in a jsp page i have put the next but doesn't run: Why?
 %
 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody
 
 %
 out.println(s);
 
 %
 /body/html

Give a little more info... Show the stack trace from the
tomcat log.  Is it a compile error, runtime error,?

BTW, instead of:

% out.println(s) % 

try using:

%=format(cal.getTime())%

won't get rid of your error but it's cleaner.




---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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




RE: date

2001-02-02 Thread CPC Livelink Admin


What is the error message? It could be that if you did not import
java.util.* and java.text.*, then it can't find the classes listed after the
'new'.  Try it like this :
%
java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
java.text.SimpleDateFormat  format = java.text.new
SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
%
htmlbody

%
out.println(s);

%
/body/html
-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:11 AM
To: [EMAIL PROTECTED]
Subject: Re: date


in a jsp page i have put the next but doesn't run: Why?
%
java.util.GregorianCalendar cal= new GregorianCalendar();
java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
%
htmlbody

%
out.println(s);

%
/body/html


thanks
Carlos

- Original Message -
From: "Michael Wentzel" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 2:54 PM
Subject: RE: date


  in jsp how i get the date for print in web in the format XX-XX-XX?

 Works just like any other java class:

 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());

 ---
 Michael Wentzel
 Software Developer
 A HREF="http://www.aswethink.com"Software As We Think/A
 A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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




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



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




RE: date

2001-02-02 Thread Michael Wentzel

Replying to my own post...;P

I was just talking to Randy(Layman) about this and we
figured that more than likely your problem is the mask value
that I gave you in the code snippet is incorrect.  In your
API docs check out java.text.SimpleDateFormat for the correct
masks(javadocs can be your best friend...).


---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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




RE: several tomcat questions

2001-02-02 Thread Randy Layman


-Original Message-
From: Nick Polyak [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: several tomcat questions


Hi,
I am new to tomcat, so, please forgive the naivet of my questions.
I am using Tomcat 3.2.
1. Is it possible to create a db connection pool inside Tomcat? If yes, then
how. 

Yes.  Create a class that holds on to db connections and allocates them out.
There are several implementations out there of this type of thing.  One
fairly popular one it PoolMan avalable at
http://poolman.sourceforge.net/PoolMan/index.html. 

 
2. How can I create a servlet pool, with the specified number of servlets
initialized at the start up time and the possibility to grow in case more
servlets are required to handle the load. 

My first question is why?  Tomcat creates one instance of a servlet for all
requests (assuming SingleThreadModel).  This means that you shouldn't be
creating pools of servlets.  I don't know what Tomcat does for
multi-threaded servlets, but you could look at the source code.

 
3. How to I switch between single and multi-threaded servlet models using
the Tomcat configuration parameters?


According to the servlet spec, your servlet needs to implement the
SingleThreadModel to guarentee that only request at a time accesses your
servlet.  MultiThreaded is the implied default when SingleThreadModel is not
implemented.  (Spec is available from the JavaSoft website.)


Randy

Thank you
Nick

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




Re: Logout

2001-02-02 Thread Matt Goss

Marino,
invalidate the session
codeses.invalidate();/code
Matt

Marino Vittorio wrote:
 
 Hi folks. I'd like to logout from a jsp app, I am using Tomcat JDBC Realm to
 log in the system. Any idea?
 Thanks, Vittorio
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Matt
end:vcard



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


RE: Logging problems

2001-02-02 Thread Nik Makepeace

On 2 Feb 2001, at 16:09, Adrian Papari wrote:

 how do you handle the exceptions? if you, for instance, redirect the
 user to an error page when an error occurs, you (or, erm, the user )
 shouldn't see the internal error messages.

They aren't 500 errors, but rather conscious decisions to write to 
System.err in the source for the servlets.  Basically, we are using 
System.err to write debug for our servlets.

Jserv used to pick up System.err and send it to its error log, but it 
seems like Tomcat doesn't behave this way.  Any clues?  We are really 
stumped.

Nik

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




RE: performance

2001-02-02 Thread RBinion

Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
application through a browser is much more responsive, but still a little
slower than I would hope. The same test with resin does not show any
noticeable degradation in performance. In fact I upped the ante with resin.
I started 2 more jmeter clients (configured the same), and still noticed no
significant drop in performance when accessing the site through a browser. A
few connections were refused, but that is to be expected, with the current
configuration. 

You may ask, why not just use resin and stop whining :) ... in short while
resin does perform it has some problems in how it implements the servlet
spec that make me leery of deploying a production app on it. 

Once again, any insight would be appreciated.

p.s. Randy,

Thanks for the info, I will check into the things that you mentioned. With
regards to the fingers, they are hard to come by, but I heard amazon.com is
opening a new branch and offering extremely discounted server fingers .. you
may want to check there :)

Thanks, 
Bob

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: RE: performance



I thought about what the delay probably meant after I sent the
message, but the message was already sent by then.

Back to the orginal problem or the performance  Other people
have reported similar problems under "high" load.  No one have ever really
given a definition of what high is since it depends upon your application,
however I would think that 20 concurent users should be completely supported
by Tomcat (our application does it).

Two things to note:
1.  People who have reported these issuses usually say that if the
requests stop, Tomcat will eventually catch up
2.  You might want to check whether or not its your application.
Try the same test, but request a small static file.  This will show you what
the best performance you could hope to get.  There were a few messages about
a week or two ago about tuning Tomcat, you might want to look at that,
although there wasn't much there.  Another thing is you might look throught
the source and see where they initalize the thread pool (probably in
PoolTcpConnectors).  Uping this size should give you more concurrent users,
however it will add more overhead when the server is idle.  While you're
running your test, keep an eye on your network bandwidth usage and cpu
utilization.  Its possible that you might be saturating the network (are the
responses very large?) or that you are only using one of your 4 processors
(I have no idea how to fix this).

Randy

PS Bob - where can I get some more fingers for my system?  It needs to count
to 2.


-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: performance



That math didn't really work with JMeter anyway... even if you did
have 20 threads with 1ms delay, you don't get 20,000 request/sec. Jmeter
starts up 20 threads which each make a GET request to the server
but each thread only makes another request after it receives an answer
then it waits 1ms or 100ms whatever you have it sent to... So if none
of the threads get an ansewr then you have 0 requests/sec after they
are all tied up.

[EMAIL PROTECTED] wrote:
 
 Sorry, that was a typo. Jmeter is configured with a 100 ms delay, 20
threads
 :) , although the story is pretty much the same even with a 1000 ms delay.
 
 ( p.s. I also added an extra couple of fingers to the server so it could
 count higher ;) )
 
 Bob
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 3:50 PM
 To: [EMAIL PROTECTED]
 Subject: RE: performance
 
 Light load?  It looks to me that you are sending
 1ms * 1000 ms/s * 20 threads = 20,000 requests per second to the
 server.  This would translate to 20K request/second * 60 seconds/min * 60
 minutes/hour = 72,000,000 request per hour.  Maybe I'm not understanding
the
 numbers you quote (I'm not familary with JMeter), but I would be suprised
if
 any non-clustered web server running on Intel hardware could handle 72
 million hits per hour.
 
 (Although I would also be suprised if a Microsoft operating system
 could count to 72 million ;) )
 
 Randy
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 4:12 PM
 To: [EMAIL PROTECTED]
 Subject: performance
 
 Hi,
 
 I know that Tomcat does not claim to strive for the performance
 characteristics of other servlet containers, such as resin. However, I am
 wondering just how bad the performance is. I have run some tests, and I
have
 been a bit surprised.
 
 Test environment is a 4 proc NT server with 1 gig of memory. I am using
 tomcat 3.2.1 running standalone, and have set the max heap size 

RE: Logging problems

2001-02-02 Thread Randy Layman


Create a special servlet that, in its init method, it sets
System.err to a FileOutputStream.  Then add this servlet to the web.xml file
with a load-on-startup.  I would suggest a low number
(Integer.MIN_VALUE+1) so that it starts before any of your other servlets.

Randy

Answering questions is so much easier than doing my own work.

-Original Message-
From: Nik Makepeace [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Logging problems


On 2 Feb 2001, at 16:09, Adrian Papari wrote:

 how do you handle the exceptions? if you, for instance, redirect the
 user to an error page when an error occurs, you (or, erm, the user )
 shouldn't see the internal error messages.

They aren't 500 errors, but rather conscious decisions to write to 
System.err in the source for the servlets.  Basically, we are using 
System.err to write debug for our servlets.

Jserv used to pick up System.err and send it to its error log, but it 
seems like Tomcat doesn't behave this way.  Any clues?  We are really 
stumped.

Nik

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

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




RE: Logging problems

2001-02-02 Thread Adrian Papari

well; you could always write your own logging-routine/class... and then in
your code handle exceptions similar to the example-"code" below:

try
{
/* lot of important code */
}
catch ( ExceptionYouWantToCatch excp )
{
new LogFile( excp.getMessage(), logFilePath );
}

there's also been a lot of talk on how to do the logging in tomcat... as far
as i know, no one has successfully logged everything they intended to log
(by configuring the supposed files) or perhaps it's just me ;)

Best Regards  Good Luck,
//Adrian Papari.

-Original Message-
From: Nik Makepeace [mailto:[EMAIL PROTECTED]]
Sent: 02 February 2001 16:56
To: [EMAIL PROTECTED]
Subject: RE: Logging problems


On 2 Feb 2001, at 16:09, Adrian Papari wrote:

 how do you handle the exceptions? if you, for instance, redirect the
 user to an error page when an error occurs, you (or, erm, the user )
 shouldn't see the internal error messages.

They aren't 500 errors, but rather conscious decisions to write to
System.err in the source for the servlets.  Basically, we are using
System.err to write debug for our servlets.

Jserv used to pick up System.err and send it to its error log, but it
seems like Tomcat doesn't behave this way.  Any clues?  We are really
stumped.

Nik

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


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




RE: date

2001-02-02 Thread Clayton Peirens

INSTEAD OF: java.text.SimpleDateFormat format = java.text.new
SimpleDateFormat("mm-dd-yy");
USE: java.text.SimpleDateFormat format = java.text.new
SimpleDateFormat("MM-dd-yy");

"mm" is for minutes, not month

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 8:04 AM
To: '[EMAIL PROTECTED]'
Subject: RE: date


Replying to my own post...;P

I was just talking to Randy(Layman) about this and we
figured that more than likely your problem is the mask value
that I gave you in the code snippet is incorrect.  In your
API docs check out java.text.SimpleDateFormat for the correct
masks(javadocs can be your best friend...).


---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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


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




Web Application -- Netscape speed problem

2001-02-02 Thread venkatesan

Hi All,
I have done codig for dynamically generated html pages using
servlets-tomacat-Rmi through Apach web server.. I am getting data for  html
pages from Sql-server which is in windows machine... And my servlets-tomcat
is in Linux machine which is running through Apache web server..
  The problem is while i am invoking html pages through IE it is too
past, the data comes as if it from local machine..But if i do the same
thing through Netscape Communicator(v4.7) browser, it takes lots of time to
load another  html page and speed is very very slow Can any one tell
that how can i get the html pages as fast as IE... and what is the exact
problem

   Thanx in advance.


Cheers
Venkatesh...










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




How to catch handle HTTP errors (esp. 404) ?

2001-02-02 Thread Jean-Franois Calzaroni

I'd like to know if Tomcat (standalone mode) enables transfer errors (especially 404 
persona non grata !) and how to configure this.

Thank you  ~

JF


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




RE: performance

2001-02-02 Thread Todd Carmichael

My tests, using Microsofts Web Application Stress (WAS) Tool, had the
following results for a simple servlet that all it did was display a single
html table:

Weblogic: 490 requests/sec
Tomcat: 540 requests/sec
Resin: 850 requests/sec  - produced numerous socket errors (Connection reset
by peer).  The other servlet engines did not do this.

This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS (HTTP)
clients engaged in the tests. Each client had 50 threads hitting the Web
server

The real question being asked is Tomcat suitable for production
environments.  This is something I really would like to get a feel for from
other developers experiences.  I am very interested in using Tomcat for
production and the performance seems reasonable enough for me.  I am curious
about monitoring tools and security issues with open source; that is what
our IT department will hammer us on.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 7:56 AM
To: [EMAIL PROTECTED]
Subject: RE: performance


Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
application through a browser is much more responsive, but still a little
slower than I would hope. The same test with resin does not show any
noticeable degradation in performance. In fact I upped the ante with resin.
I started 2 more jmeter clients (configured the same), and still noticed no
significant drop in performance when accessing the site through a browser. A
few connections were refused, but that is to be expected, with the current
configuration. 

You may ask, why not just use resin and stop whining :) ... in short while
resin does perform it has some problems in how it implements the servlet
spec that make me leery of deploying a production app on it. 

Once again, any insight would be appreciated.

p.s. Randy,

Thanks for the info, I will check into the things that you mentioned. With
regards to the fingers, they are hard to come by, but I heard amazon.com is
opening a new branch and offering extremely discounted server fingers .. you
may want to check there :)

Thanks, 
Bob

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: RE: performance



I thought about what the delay probably meant after I sent the
message, but the message was already sent by then.

Back to the orginal problem or the performance  Other people
have reported similar problems under "high" load.  No one have ever really
given a definition of what high is since it depends upon your application,
however I would think that 20 concurent users should be completely supported
by Tomcat (our application does it).

Two things to note:
1.  People who have reported these issuses usually say that if the
requests stop, Tomcat will eventually catch up
2.  You might want to check whether or not its your application.
Try the same test, but request a small static file.  This will show you what
the best performance you could hope to get.  There were a few messages about
a week or two ago about tuning Tomcat, you might want to look at that,
although there wasn't much there.  Another thing is you might look throught
the source and see where they initalize the thread pool (probably in
PoolTcpConnectors).  Uping this size should give you more concurrent users,
however it will add more overhead when the server is idle.  While you're
running your test, keep an eye on your network bandwidth usage and cpu
utilization.  Its possible that you might be saturating the network (are the
responses very large?) or that you are only using one of your 4 processors
(I have no idea how to fix this).

Randy

PS Bob - where can I get some more fingers for my system?  It needs to count
to 2.


-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: performance



That math didn't really work with JMeter anyway... even if you did
have 20 threads with 1ms delay, you don't get 20,000 request/sec. Jmeter
starts up 20 threads which each make a GET request to the server
but each thread only makes another request after it receives an answer
then it waits 1ms or 100ms whatever you have it sent to... So if none
of the threads get an ansewr then you have 0 requests/sec after they
are all tied up.

[EMAIL PROTECTED] wrote:
 
 Sorry, that was a typo. Jmeter is configured with a 100 ms delay, 20
threads
 :) , although the story is pretty much the same even with a 1000 ms delay.
 
 ( p.s. I also added an extra couple of fingers to the server so it could
 count higher ;) )
 
 Bob
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 3:50 PM
 To: [EMAIL PROTECTED]
 Subject: RE: performance
 
 Light load?  It looks to me that you are sending
 1ms * 

Whitespace

2001-02-02 Thread Cato Førrisdahl

Hi,
I have some jsp-pages which, when run, generates a lot of
whitespace in the resulting page. It typically looks something like:
---Start---









  ?xml version="1.0"?
...
--Stop--
Is there a way to prevent tomcat from making all this whitespace and make
output like:
--Start--
  ?xml version="1.0"?
--Stop--

?


Cato Frrisdahl



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




RE: performance

2001-02-02 Thread Michael Wentzel

 The real question being asked is Tomcat suitable for production
 environments.  This is something I really would like to get a 
 feel for from
 other developers experiences.  I am very interested in using 
 Tomcat for
 production and the performance seems reasonable enough for 
 me.  I am curious
 about monitoring tools and security issues with open source; 
 that is what
 our IT department will hammer us on.  

I really think this has to be done on a case by case evaluation.
I believe that in general Tomcat IS production ready but there can 
always be cases developed that Tomcat(and servlets/jsps in general) 
doesn't fit into well.


---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A

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




Re: date

2001-02-02 Thread Carlos

if i put that in a jsp page appears the next error: how can i get the date?
thanks
Error: 500
Localizacion: /fecha.jsp
Error interno del servlet:

org.apache.jasper.JasperException: No se puede compilar la clase para
JSP/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_j
sp_0.java:58: Undefined variable or class name: java
java.text.SimpleDateFormat  format = java.text.new
 ^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:59: Class SimpleDateFormat not found.
SimpleDateFormat("mm-dd-yy");
^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:60: Reference to variable format in class
_0002ffecha_0002ejspfecha_jsp_0 as if it were a method.
String s = format(cal.getTime());
 ^
3 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



- Original Message -
From: "CPC Livelink Admin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 4:36 PM
Subject: RE: date



 What is the error message? It could be that if you did not import
 java.util.* and java.text.*, then it can't find the classes listed after
the
 'new'.  Try it like this :
 %
 java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
 java.text.SimpleDateFormat  format = java.text.new
 SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html
 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 02, 2001 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: date


 in a jsp page i have put the next but doesn't run: Why?
 %
 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html


 thanks
 Carlos

 - Original Message -
 From: "Michael Wentzel" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 02, 2001 2:54 PM
 Subject: RE: date


   in jsp how i get the date for print in web in the format XX-XX-XX?
 
  Works just like any other java class:
 
  java.util.GregorianCalendar cal= new GregorianCalendar();
  java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
  String s = format(cal.getTime());
 
  ---
  Michael Wentzel
  Software Developer
  A HREF="http://www.aswethink.com"Software As We Think/A
  A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 


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



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




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




RE: performance

2001-02-02 Thread Alistair Hopkins

Slightly off topic, but I have been testing various components, among them
XSL processors.

I found that the ASF processor (Xalan) was not the fastest, Saxon being
about 30% faster, but it was the most robust: ie, it continued to result in
no error at any load, whereas Saxon frequently caused errors when stressed.

I have run Tomcat with 20 concurrent users calling very db-intensive pages
(built via xsl, which is not currently particularly efficient, I think) for
24 hours without error or memory leak.

My feeling is that 3.2.1 is robust, but not the fastest.  Which is probably
better than the other way round :-).

Alistair

-Original Message-
From: Todd Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 4:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: performance


My tests, using Microsofts Web Application Stress (WAS) Tool, had the
following results for a simple servlet that all it did was display a single
html table:

Weblogic: 490 requests/sec
Tomcat: 540 requests/sec
Resin: 850 requests/sec  - produced numerous socket errors (Connection reset
by peer).  The other servlet engines did not do this.

This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS (HTTP)
clients engaged in the tests. Each client had 50 threads hitting the Web
server

The real question being asked is Tomcat suitable for production
environments.  This is something I really would like to get a feel for from
other developers experiences.  I am very interested in using Tomcat for
production and the performance seems reasonable enough for me.  I am curious
about monitoring tools and security issues with open source; that is what
our IT department will hammer us on.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 7:56 AM
To: [EMAIL PROTECTED]
Subject: RE: performance


Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
application through a browser is much more responsive, but still a little
slower than I would hope. The same test with resin does not show any
noticeable degradation in performance. In fact I upped the ante with resin.
I started 2 more jmeter clients (configured the same), and still noticed no
significant drop in performance when accessing the site through a browser. A
few connections were refused, but that is to be expected, with the current
configuration.

You may ask, why not just use resin and stop whining :) ... in short while
resin does perform it has some problems in how it implements the servlet
spec that make me leery of deploying a production app on it.

Once again, any insight would be appreciated.

p.s. Randy,

Thanks for the info, I will check into the things that you mentioned. With
regards to the fingers, they are hard to come by, but I heard amazon.com is
opening a new branch and offering extremely discounted server fingers .. you
may want to check there :)

Thanks,
Bob

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: RE: performance



I thought about what the delay probably meant after I sent the
message, but the message was already sent by then.

Back to the orginal problem or the performance  Other people
have reported similar problems under "high" load.  No one have ever really
given a definition of what high is since it depends upon your application,
however I would think that 20 concurent users should be completely supported
by Tomcat (our application does it).

Two things to note:
1.  People who have reported these issuses usually say that if the
requests stop, Tomcat will eventually catch up
2.  You might want to check whether or not its your application.
Try the same test, but request a small static file.  This will show you what
the best performance you could hope to get.  There were a few messages about
a week or two ago about tuning Tomcat, you might want to look at that,
although there wasn't much there.  Another thing is you might look throught
the source and see where they initalize the thread pool (probably in
PoolTcpConnectors).  Uping this size should give you more concurrent users,
however it will add more overhead when the server is idle.  While you're
running your test, keep an eye on your network bandwidth usage and cpu
utilization.  Its possible that you might be saturating the network (are the
responses very large?) or that you are only using one of your 4 processors
(I have no idea how to fix this).

Randy

PS Bob - where can I get some more fingers for my system?  It needs to count
to 2.


-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: performance



That math didn't really work with JMeter anyway... even if you did
have 20 threads with 1ms delay, you don't get 20,000 request/sec. Jmeter
starts up 20 threads which 

RE: performance

2001-02-02 Thread Randy Layman


We are about to install an application for a very security concisous
client.  They weren't worried about monitoring the application (they just
want to check the machine is running and has CPU cycles to spare).

On security, however, they took a different approach than what I
expected.  They have no problems with Open Source because it allows them the
ability to search to exploits just as easily as hackers, and they feel they
can fix problems much quicker than if they reported a security problem, had
to wait for it to be diagnosed and tested, then delivered and installed.
Additionally the security of Java coupled with a good overall security
plan/implementation limits the vulnerabilty of key resources outside of the
scope of our application.

Randy

-Original Message-
From: Todd Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: performance


My tests, using Microsofts Web Application Stress (WAS) Tool, had the
following results for a simple servlet that all it did was display a single
html table:

Weblogic: 490 requests/sec
Tomcat: 540 requests/sec
Resin: 850 requests/sec  - produced numerous socket errors (Connection reset
by peer).  The other servlet engines did not do this.

This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS (HTTP)
clients engaged in the tests. Each client had 50 threads hitting the Web
server

The real question being asked is Tomcat suitable for production
environments.  This is something I really would like to get a feel for from
other developers experiences.  I am very interested in using Tomcat for
production and the performance seems reasonable enough for me.  I am curious
about monitoring tools and security issues with open source; that is what
our IT department will hammer us on.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 7:56 AM
To: [EMAIL PROTECTED]
Subject: RE: performance


Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
application through a browser is much more responsive, but still a little
slower than I would hope. The same test with resin does not show any
noticeable degradation in performance. In fact I upped the ante with resin.
I started 2 more jmeter clients (configured the same), and still noticed no
significant drop in performance when accessing the site through a browser. A
few connections were refused, but that is to be expected, with the current
configuration. 

You may ask, why not just use resin and stop whining :) ... in short while
resin does perform it has some problems in how it implements the servlet
spec that make me leery of deploying a production app on it. 

Once again, any insight would be appreciated.

p.s. Randy,

Thanks for the info, I will check into the things that you mentioned. With
regards to the fingers, they are hard to come by, but I heard amazon.com is
opening a new branch and offering extremely discounted server fingers .. you
may want to check there :)

Thanks, 
Bob

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: RE: performance



I thought about what the delay probably meant after I sent the
message, but the message was already sent by then.

Back to the orginal problem or the performance  Other people
have reported similar problems under "high" load.  No one have ever really
given a definition of what high is since it depends upon your application,
however I would think that 20 concurent users should be completely supported
by Tomcat (our application does it).

Two things to note:
1.  People who have reported these issuses usually say that if the
requests stop, Tomcat will eventually catch up
2.  You might want to check whether or not its your application.
Try the same test, but request a small static file.  This will show you what
the best performance you could hope to get.  There were a few messages about
a week or two ago about tuning Tomcat, you might want to look at that,
although there wasn't much there.  Another thing is you might look throught
the source and see where they initalize the thread pool (probably in
PoolTcpConnectors).  Uping this size should give you more concurrent users,
however it will add more overhead when the server is idle.  While you're
running your test, keep an eye on your network bandwidth usage and cpu
utilization.  Its possible that you might be saturating the network (are the
responses very large?) or that you are only using one of your 4 processors
(I have no idea how to fix this).

Randy

PS Bob - where can I get some more fingers for my system?  It needs to count
to 2.


-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: performance



That math 

RE: date

2001-02-02 Thread Byung Jin Chun

Carlos,


   java.text.SimpleDateFormat myDateFormatter = new
java.text.SimpleDateFormat("MM-dd-yy");
   String date = myDateFormatter.format( new java.util.Date() );


Cheers,
Jin
-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: date


if i put that in a jsp page appears the next error: how can i get the date?
thanks
Error: 500
Localizacion: /fecha.jsp
Error interno del servlet:

org.apache.jasper.JasperException: No se puede compilar la clase para
JSP/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_j
sp_0.java:58: Undefined variable or class name: java
java.text.SimpleDateFormat  format = java.text.new
 ^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:59: Class SimpleDateFormat not found.
SimpleDateFormat("mm-dd-yy");
^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:60: Reference to variable format in class
_0002ffecha_0002ejspfecha_jsp_0 as if it were a method.
String s = format(cal.getTime());
 ^
3 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



- Original Message -
From: "CPC Livelink Admin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 4:36 PM
Subject: RE: date



 What is the error message? It could be that if you did not import
 java.util.* and java.text.*, then it can't find the classes listed after
the
 'new'.  Try it like this :
 %
 java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
 java.text.SimpleDateFormat  format = java.text.new
 SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html
 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 02, 2001 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: date


 in a jsp page i have put the next but doesn't run: Why?
 %
 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html


 thanks
 Carlos

 - Original Message -
 From: "Michael Wentzel" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 02, 2001 2:54 PM
 Subject: RE: date


   in jsp how i get the date for print in web in the format XX-XX-XX?
 
  Works just like any other java class:
 
  java.util.GregorianCalendar cal= new GregorianCalendar();
  java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
  String s = format(cal.getTime());
 
  ---
  Michael Wentzel
  Software Developer
  A HREF="http://www.aswethink.com"Software As We Think/A
  A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 


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



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




-
To unsubscribe, e-mail: 

RE: date

2001-02-02 Thread Randy Layman


Corrected code:

java.util.Calendar cal= new java.util.GregorianCalendar();
java.text.SimpleDateFormat  format = new
java.text.SimpleDateFormat("MM-dd-yy");
String s = format.format(cal.getTime());

Double check the mask is really what you want.


-Original Message-
From: Carlos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: date


if i put that in a jsp page appears the next error: how can i get the date?
thanks
Error: 500
Localizacion: /fecha.jsp
Error interno del servlet:

org.apache.jasper.JasperException: No se puede compilar la clase para
JSP/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_j
sp_0.java:58: Undefined variable or class name: java
java.text.SimpleDateFormat  format = java.text.new
 ^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:59: Class SimpleDateFormat not found.
SimpleDateFormat("mm-dd-yy");
^
/opt/jakarta/work/www.opticagaldakao.com_8080/_0002ffecha_0002ejspfecha_jsp_
0.java:60: Reference to variable format in class
_0002ffecha_0002ejspfecha_jsp_0 as if it were a method.
String s = format(cal.getTime());
 ^
3 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



- Original Message -
From: "CPC Livelink Admin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 02, 2001 4:36 PM
Subject: RE: date



 What is the error message? It could be that if you did not import
 java.util.* and java.text.*, then it can't find the classes listed after
the
 'new'.  Try it like this :
 %
 java.util.GregorianCalendar cal= new java.util.GregorianCalendar();
 java.text.SimpleDateFormat  format = java.text.new
 SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html
 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 02, 2001 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: Re: date


 in a jsp page i have put the next but doesn't run: Why?
 %
 java.util.GregorianCalendar cal= new GregorianCalendar();
 java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
 String s = format(cal.getTime());
 %
 htmlbody

 %
 out.println(s);

 %
 /body/html


 thanks
 Carlos

 - Original Message -
 From: "Michael Wentzel" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 02, 2001 2:54 PM
 Subject: RE: date


   in jsp how i get the date for print in web in the format XX-XX-XX?
 
  Works just like any other java class:
 
  java.util.GregorianCalendar cal= new GregorianCalendar();
  java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
  String s = format(cal.getTime());
 
  ---
  Michael Wentzel
  Software Developer
  A HREF="http://www.aswethink.com"Software As We Think/A
  A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 


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



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





How to catch and handle 404 error ?

2001-02-02 Thread Jean-Franois Calzaroni

Hi ~

I'd like to know if Tomcat (standalone installation) is able to catch HTTP errors 
(especially 404), and how to configure this.

Thanks ~

JF


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




Tomcat + JNI problem

2001-02-02 Thread Manoj Thakur

Hello Amandeep,

Hope you can help me. I am running Tomcat version 3.1 on HPUX 11.0 with
Apache.

What I am trying to do is invoke a C function (using JNI) from a
servlet. The C function is compiled into a shared library.

Now, if I write a simple JAVA application, use JNI and execute the C
function, everything works file. But, then if I change it from being an
application to a servlet, then it fails. Also, the reason is not that it
is not able to find and load the library (as if I remove the library or
rename it, it gives an error indicating it was unable to load the
library). But, the error indicates it was unable to locate the method
that I am trying to invoke. In fact, going through the getMethods
function, I listed all the methods loaded and available for the class,
and the native C function is also listed as one of the functions that
can be called. But, that may just be because the native C function is
listed in the class definition as per JNI requirements.

Your email is the first one where I know that somebody has successfully
implemented JNI in a servlet. Could you share if you had any problems in
your effort. Also, if you could take a few minutes, I could email you my
test example (a very simple login example) to take a look if I am
missing something obvious.

Regards and Thanks in advance
-- Manoj Thakur

 
 To: [EMAIL PROTECTED] 
 Subject: Can I set LD_LIBRARY_PATH for each virtual host 
 From: "Amandeep Jawa" [EMAIL PROTECTED] 
 Date: Tue, 17 Oct 2000 17:33:24 -0700 
 Delivered-To: mailing list [EMAIL PROTECTED] 
 list-help: mailto:[EMAIL PROTECTED] 
 list-post: mailto:[EMAIL PROTECTED] 
 list-unsubscribe: mailto:[EMAIL PROTECTED] 
 Mailing-List: contact [EMAIL PROTECTED]; run by
ezmlm 
 Organization: Imagelock, Inc. 
 Reply-To: [EMAIL PROTECTED] 
 Reply-To: "Amandeep Jawa" [EMAIL PROTECTED] 
 
 
 
 Hi folks -
 
 For JNI purposes I have to have LD_LIBRARY_PATH set for my servlets.
My
 servlets seem to be able to make simple C calls so everything is Ok so
far.
 The problem is that I am setting the library path for the entire
tomcat
 installation when I'd really like to set it per virtual host or per
servlet
 context in server.xml.
 
 Does anyone know how to do this?
 
 Sorry if this is a well known solution but the FAQ is down which seems
to be
 pretty common!
 
 'deep
 
 
 --
 Amandeep Jawa
 Imagelock, Inc.
 --
 [EMAIL PROTECTED]
 1725 Montgomery St
 San Francisco CA 94111
 
 Work: 415 616 7262 (616 SAMBA)
 Fax: 415 392 5382
 
 http://www.imagelock.com

Manoj Thakur
Email: [EMAIL PROTECTED]
Work: +1 856 866 1000 x4166
Fax:   +1 856 866 0185

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




RE: Integrating Tomcat and Apache

2001-02-02 Thread Jeff Davies

Thanks for the tip. I D/L'd GNU Make and the original problem has been
resolved (i.e. it gets further in the compilation effort when I run "make"
in the src/connectors directory).

However, I now get an "error 1" from make, caused by some problem in the
apxs module. Does anyone know whjy this might happen? How can I find the
error codes for apxs? Thanks in advance!

- Jeff Davies

-

root connectors: make
make[1]: Entering directory
`/export/home/jdavies/jakarta-tomcat-4.0-b1/src/connectors/webapplib'
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa.c -o wa.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_callback.c -o
wa_callback.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_connection.c -o
wa_connection.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_host.c -o wa_host.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_request.c -o
wa_request.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_provider.c -o
wa_provider.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_provider_info.c -o
wa_provider_info.o
gcc -O6 -Wall -Wstrict-prototypes  -I../webapplib -c wa_provider_warp.c -o
wa_provider_warp.o
ar -cr libwebapp.a wa.o wa_callback.o wa_connection.o wa_host.o wa_request.o
wa_provider.o wa_provider_info.o wa_provider_warp.o
make[1]: Leaving directory
`/export/home/jdavies/jakarta-tomcat-4.0-b1/src/connectors/webapplib'
make[1]: Entering directory
`/export/home/jdavies/jakarta-tomcat-4.0-b1/src/connectors/apache-1.3'
apxs -c -I../webapplib -L../webapplib -lwebapp mod_webapp.c
gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/opt/mediaforge/include -I../webapplib  -c mod_webapp.c
  -o mod_webapp.so mod_webapp.o -L../webapplib -lwebapp
apxs:Break: Command failed with rc=16777215
make[1]: *** [mod_webapp.so] Error 1
make[1]: Leaving directory
`/export/home/jdavies/jakarta-tomcat-4.0-b1/src/connectors/apache-1.3'
make: *** [apache-1.3/mod_webapp.so] Error 2


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




how to disable the tomcat webserver?

2001-02-02 Thread Marc Leblanc




  
  
  Hi everyone ,
  
  we devellope with tomcat/cocoon but recently ive 
  noticed that everyone on the net can see our code beacause tomcat allow people 
  to browse the directory where our code his.
  
  anyone know how to shutdown the tomcat webserver 
  or simply configure it , that hewill not let everyone browse the 
  directory.
  
  i try with httpd.conf of apache with 
  Directory and Location but was unable to prevent 
  this.
  
  Thank you
  Marc Leblanc
  Nomad Logic
  [EMAIL PROTECTED]


How to disable tomcat webserver ?

2001-02-02 Thread Marc Leblanc





Hi everyone ,

we devellope with tomcat/cocoon but recently ive 
noticed that everyone on the net can see our code beacause tomcat allow people 
to browse the directory where our code his.

anyone know how to shutdown the tomcat webserver or 
simply configure it , that hewill not let everyone browse the 
directory.

i try with httpd.conf of apache with 
Directory and Location but was unable to prevent 
this.

Thank you
Marc Leblanc
Nomad Logic
[EMAIL PROTECTED]


RE: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread GOMEZ Henri

It seems that Jyve didn't update the Q/A allready.
You could see here the text:

What's are the message about EAPI or garbled modules ?

The message 'mod_jk.so (or mod_jserv.so) is garbled - perhaps this is not an
Apache module DSO ?' 
arrive when you're trying to install a mod_jk.so DSO module that was
compiled on an Apache using EAPI, 
like apache-mod_ssl or apache from Redhat distro 6.2/7.0 and your system use
the standard apache API. 
EAPI are extensions to standard Apache API (and used at least by mod_ssl). 

On the contrary, if you received the message '[warn] Loaded DSO
/usr/lib/apache/mod_jk.so uses 
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)', 
you're just in the reverse situation. The mod_jk.so (or mod_jserv.so) was
compiled under 
normal Apache with standard API and you try to install the module on an
Apache using EAPI. 

It's wise to avoid using EAPI modules on STD API Apache or to use standard
API modules 
on EAPI Apache. Allways be sure to have the mod_jk.so / mod_jserv.so for
your version of Apache  


On ne peut rsoudre les problmes les plus graves avec le mme esprit qui
les a cres.
-- Albert Einstein 

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 4:30 PM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]
Subject: RE: Problems with mod_jk.so, RH7.0, binary/compiled


Added to FAQOMATIC, finalement :-)

http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuesti
onAnswer/acti
on/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/762

All the RPMs present on jakarta.apache.org are compiled under 
Linux Redhat
6.2 and the
Apache is so a apache with EAPI (since using mod_ssl).

I'll try to release the next days, mod_jk.so and mod_jserv.so 
for use on
standard Apache
under Linux i386.

The naming will be :

mod_jk.so.eapi
mod_jserv_tomcat.so.eapi

mod_jk.so.stdapi
mod_jserv_tomcat.so.stdapi

Ok ?

On ne peut rsoudre les problmes les plus graves avec le mme 
esprit qui
les a cres.
-- Albert Einstein 

-Original Message-
From: Wise, Bowden (CRD) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 3:58 PM
To: '[EMAIL PROTECTED]'
Cc: 'tomcat-user'
Subject: RE: Problems with mod_jk.so, RH7.0, binary/compiled


Hey J

I am stuck where you are.  I was trying to use the 
mod_jserv_tomcat.so that you can download.  My
configuration
is RedHat 6.2 on a Dell PC.  And I get that same
/usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - 
perhaps this is not an Apache module DSO?

So are those binaries for RedHat 7?  I also tried compiling
but apxs gives me fits:
apxs:Error: @sbindir@/httpd not found or not executable


Any ideas?
Thanks
Bowden




-Original Message-
From: Juan Julian Merelo Guervos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk.so, RH7.0, binary/compiled


Hi,
  I haven't been able to install mod_jk.so with Apache 
1.3.17. I have
downloaded the mod_jk.so binary from the jakarta site, and I get this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this 
is not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and compiled
it. Guess what I got?

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this 
is not an
Apache module DSO?

What's the problem here? Any help?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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

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


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


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




RE: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread GOMEZ Henri

Added to FAQOMATIC, finalement :-)

http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti
on/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/762

All the RPMs present on jakarta.apache.org are compiled under Linux Redhat
6.2 and the
Apache is so a apache with EAPI (since using mod_ssl).

I'll try to release the next days, mod_jk.so and mod_jserv.so for use on
standard Apache
under Linux i386.

The naming will be :

mod_jk.so.eapi
mod_jserv_tomcat.so.eapi

mod_jk.so.stdapi
mod_jserv_tomcat.so.stdapi

Ok ?

On ne peut rsoudre les problmes les plus graves avec le mme esprit qui
les a cres.
-- Albert Einstein 

-Original Message-
From: Wise, Bowden (CRD) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 3:58 PM
To: '[EMAIL PROTECTED]'
Cc: 'tomcat-user'
Subject: RE: Problems with mod_jk.so, RH7.0, binary/compiled


Hey J

I am stuck where you are.  I was trying to use the 
mod_jserv_tomcat.so that you can download.  My
configuration
is RedHat 6.2 on a Dell PC.  And I get that same
/usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - 
perhaps this is not an Apache module DSO?

So are those binaries for RedHat 7?  I also tried compiling
but apxs gives me fits:
apxs:Error: @sbindir@/httpd not found or not executable


Any ideas?
Thanks
Bowden




-Original Message-
From: Juan Julian Merelo Guervos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk.so, RH7.0, binary/compiled


Hi,
   I haven't been able to install mod_jk.so with Apache 
1.3.17. I have
downloaded the mod_jk.so binary from the jakarta site, and I get this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and compiled
it. Guess what I got?

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What's the problem here? Any help?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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

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


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




RE: Problems with mod_jk.so, RH7.0, binary/compiled

2001-02-02 Thread Wise, Bowden (CRD)

Well, I didnt even recompile apache, I just took the binaries.
It seems that if binaries are provided at www.apache.org they
should all work together.  

Does this mean the binary distribution of apache is standard
and not EAPI but the binaries for mod_jk and mod_jserv are
EAPI?


-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:30 AM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]
Subject: RE: Problems with mod_jk.so, RH7.0, binary/compiled


Added to FAQOMATIC, finalement :-)

http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/acti
on/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/762

All the RPMs present on jakarta.apache.org are compiled under Linux Redhat
6.2 and the
Apache is so a apache with EAPI (since using mod_ssl).

I'll try to release the next days, mod_jk.so and mod_jserv.so for use on
standard Apache
under Linux i386.

The naming will be :

mod_jk.so.eapi
mod_jserv_tomcat.so.eapi

mod_jk.so.stdapi
mod_jserv_tomcat.so.stdapi

Ok ?

On ne peut resoudre les problemes les plus graves avec le meme esprit qui
les a crees.
-- Albert Einstein 

-Original Message-
From: Wise, Bowden (CRD) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 3:58 PM
To: '[EMAIL PROTECTED]'
Cc: 'tomcat-user'
Subject: RE: Problems with mod_jk.so, RH7.0, binary/compiled


Hey J

I am stuck where you are.  I was trying to use the 
mod_jserv_tomcat.so that you can download.  My
configuration
is RedHat 6.2 on a Dell PC.  And I get that same
/usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - 
perhaps this is not an Apache module DSO?

So are those binaries for RedHat 7?  I also tried compiling
but apxs gives me fits:
apxs:Error: @sbindir@/httpd not found or not executable


Any ideas?
Thanks
Bowden




-Original Message-
From: Juan Julian Merelo Guervos [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with mod_jk.so, RH7.0, binary/compiled


Hi,
   I haven't been able to install mod_jk.so with Apache 
1.3.17. I have
downloaded the mod_jk.so binary from the jakarta site, and I get this
error:
Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

OK, good, I thought, that must be the weird RH7.0 file format or
whatever. Let's compile it natively. I downloaded source, and compiled
it. Guess what I got?

Syntax error on line 8 of
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto:
API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?

What's the problem here? Any help?

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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

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


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

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




RE: How to disable tomcat webserver ?

2001-02-02 Thread Furmaniak Christophe

check this http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml
http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml 
 
cF
 

-Message d'origine-
De: Marc Leblanc [mailto:[EMAIL PROTECTED]]
Date: vendredi 2 fvrier 2001 17:45
: [EMAIL PROTECTED]
Objet: How to disable tomcat webserver ?




Hi everyone ,
 
we devellope with tomcat/cocoon but recently ive noticed that everyone on
the net can see our code beacause tomcat allow people to browse the
directory where our code his.
 
anyone know how to shutdown the tomcat webserver or simply configure it ,
that he will not let everyone browse the directory.
 
i try with httpd.conf of apache with Directory and Location but was
unable to prevent this.
 
Thank you
Marc Leblanc
Nomad Logic
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


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




Re: performance

2001-02-02 Thread William Brogden

 There are a lot of design decisions with Java that have a great
effect on throughput. I found the following book very enlightening:

 Java Performance and Scalability vol 1. by Dov Bulka
pub by Addison Wesley  ISBN 0 201 70429 3

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




security - what do when a login fails?

2001-02-02 Thread Vijay Prabhakar
Title: security - what do when a login fails?






I was looking at the JDBCRealm class provided with Tomcat 3.2.1. I noticed that it has a boolean authenticate() method that returns true when a username and password pair are valid. But when that method returns false, the int authenticate() method returns skips setting the remote user but still returns 0. How do you redirect someone to a login page using this method? What happens here - does tomcat just check to see if the remote user has been set and if not, it assumes that the login failed?




-Vijay





Re: Basic Auth JDBC Realm

2001-02-02 Thread Craig R. McClanahan

Marino Vittorio wrote:

 I want to build an authentication mechanism via JDBC realm and basic
 authentication that lets me request for user role in each jsp page of my
 application. In other words I want a jsp page to be accessed from more than
 1 role, and put if statements to show links depending on user role.

 if role.equals("manager")
 href...
 else
 href...

 Can someone help me? Thanks, Vittorio


Can't you do this with scriptlets?

% if (request.isUserInRole("manager") || request.isUserInRole("admin"))
{ %
... HTML for a manager or admin ...
% } else { %
 HTML for a non-manager and non-admin ...
% } %

Craig McClanahan

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




RE: Tomcat and OpenSSL/Keytool

2001-02-02 Thread Coetmeur, Alain

whare security provider are you using...

I've installed JSSE from SUN and
this works...

I've just been unable to load
a private key from openSSL to the JKS keystore...
however the certificates can be imported easily


 -Message d'origine-
 De: Steve Smale [mailto:[EMAIL PROTECTED]]
 Date: mercredi 31 janvier 2001 13:27
 : [EMAIL PROTECTED]
 Objet: Tomcat and OpenSSL/Keytool
 
 
 
 Hi all,
 
 I'm a bit confused here with tomcat and SSL.
 
 I've generated a key using keytool -genkey -alias tomcat 
 -keyalg RSA as
 described in the tomcat faq. This works fine, although the certificate
 appears as "signed by an unknown source", and we really need 
 it to just
 plop straight into https without any warnings appearing on the users
 screens...
 
 So I've looked at OpenSSL, and generated a key and 
 signing-request, and
 got a certificate via verisign, using openssl req -new -out REQ.csr
 -keyout KEY.key, again, as in the tomcat faqs.
 
 Whether i put this resulting key through verisign's "free 
 trial" signing
 process, or self-sign it with openssl req -x509 -in REQ.csr 
 -key KEY.key
 -out CERT.pem, i then install it into the keytool using 
 keytool -import -v
 trustcacerts -alias tomcat -file CERT.pem.
 
 If I then visit the site with netscape, I get the error: 
 Netscape and this
 server cannot communicate securely because they have no 
 common encryptino
 algorithm(s). While internet explorer comes up with no 
 sensible error, but
 doesnt work with https.
 
 Does anyone have any ideas what I am doing wrong with this method - it
 seems somehow the key generated with openssl is not of the 
 right format
 for netscape/ie to understand, yet the one made with keytool 
 -genkey works
 fine; - but both are exactly to the letter from the tomcat faq's...
 
 If I cannot get openssl to operate with it correctly, is 
 there a way to
 export the key from keytool? - i've only really found it possible to
 export the certificate, but not the private key, if it is 
 generated that
 way...
 
 Before I go completely insane, has anyone else had any 
 experience of these
 problems?
 
 Thanks!!!
 
 -- 
 
 Regards
 
 Steve Smale
 Java Developer
 Hugh Symons Information Management
 Telephone: 0870 849 0220
 Facsimile: 0870 849 0221
 
 www.hughsymons.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

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




Re: Cancing of pages

2001-02-02 Thread Craig R. McClanahan

Tarun Gupta wrote:

 Hi guys,

 Does tomcat caches the content displayed on the site or provision is to be
 made for cahcing to happen.


Basically, Tomcat 3.x doesn't cache anything ... however, if you are
using
Tomcat to serve static content (like plain HTML files), it does check
the last
modified date of the file and sends appropriate "not modified" responses
if
the browser indicates that it has a file with a certain timestamp, and
the
file hasn't been modified since then.

Under no circumstances are the contents of a dynamic resource (i.e. a
servlet
or a JSP page) cached by Tomcat, althought they might be cached by your
browser.


 Tarun

Craig McClanahan

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




Re: Difficulties getting JDBCRealm to work with MySQL driver

2001-02-02 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

 Thanks Ignacio!

 The realm specification in server.xml now reads:

 Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
  driverName="org.gjt.mm.mysql.Driver"
   connectionURL="jdbc:mysql://localhost/authority?user=rootamp;
 password=apassword"
   userTable="User" userNameCol="uname" userCredCol="password"
   userRoleTable="UserRoles" roleNameCol="rname" /

 and it works.

 However the main reason for me to migrate to tomcat4 at this moment is the
 ability to specify a JDBC realm per webapp.
 I tried to move the Realm tag above to a web.xml file but got the following
 error:

 org.xml.sax.SAXParseException: Element "web-app" does not allow "Realm" here.


The Realm element goes in server.xml, not in web.xml.  You need to
nest it inside
a Context element for your webapp:

Context path="/myapp" docBase="..." ...
Realm .../
/Context


 I checked $TOMCAT/conf/web_23.dtd and there is no mention of a realm tag indeed.

 Do you have a suggestion on how to proceed?

 Thanks,

 Wilko


Craig McClanahan

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




Re: Server Side Includes(SSI) and Tomcat vs JSP Include Directive

2001-02-02 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

 Does Tomcat have the ability to parse a common SSI like the following on an
 '.shtm' page.

 !-- BEGIN HEADER TABLE--
 !--#include virtual="/includes/header.htm"--
 !-- END HEADER TABLE--

 My setup is Tomcat 3.2.1 and IIS 4.0. I have '.shtm' files in a Tomcat
 url-protected directory. I want Tomcat to be able to serve up the '.shtm'
 correctly, which requires it to parse through the '.shtm' files and
 acknowledge the SSI include syntax. I don't want to convert all the '.shtm'
 pages into '.jsp' files just to use the JSP include directive.


Tomcat does not currently support server side includes.


 Any Ideas?

 Thanks in advance,

 Bob


Craig McClanahan

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




Re: Whitespace

2001-02-02 Thread Luc Vanlerberghe

The whitespace is not generated by tomcat, but is present in your
source-jsp page between the jsp tags.
If you have a page that starts like:
%@ page contentType="text/html"%
%@ page session="true"%
%@ page import="java.util.*,org.vanlerberghe.luc.spaans.*"%
jsp:useBean id="topicHome" type="TopicHome" scope="application"/
html

then it may not be obvious, but there are 4 (four!) linefeeds between
the jsp tags and your first html tag.  The way I solve this, without
giving up the readability of my page too much is by putting the closing
bracket on the start of the next line like so:
%@ page contentType="text/html"
%%@ page session="true"
%%@ page import="java.util.*,org.vanlerberghe.luc.spaans.*"
%jsp:useBean id="topicHome" type="TopicHome" scope="application"
/html

This way "html" will be the very first characters written to output.

I do similar things with % ... % too, like:

%
for (int i=0;inTopic;i++) {
Topic topic=topicHome.getTopic(i);

String selected=(topic.selected) ? " selected" : "";
%option value="%=topic.id%"%=selected%%=topic.description%
%
}
%

(Note the single linefeed at the end of the line starting with
"%option")

This will generate a nice looking list in the html source like:
option value="id0"description0
option value="id1" selecteddescription1
option value="id2"description2


I believe this trick is especially inportant to get the '?xml
version="1.0"?' at the start of the output, because XML requires it to
be at offset 0 (I think).

Luc Vanlerberghe

P.s.: By the way: there is no way to let tomcat do this automatically. 
It is impossible for it to know which whitespace is needed and which
not.  In html, whitespace sometimes *does* make a difference (e.g. in a
pre block)

Cato Frrisdahl wrote:
 
 Hi,
 I have some jsp-pages which, when run, generates a lot of
 whitespace in the resulting page. It typically looks something like:
 ---Start---
 
   ?xml version="1.0"?
 ...
 --Stop--
 Is there a way to prevent tomcat from making all this whitespace and make
 output like:
 --Start--
   ?xml version="1.0"?
 --Stop--
 
 ?
 
 Cato Frrisdahl
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




JSP pages in webapps/ROOT will not 'recompile'

2001-02-02 Thread Chris Ward

I am trying to run an application in ROOT, and have changed several JSP
pages to look at a different images directory, but none of them have
actually changed.

I noticed that there is no context for ROOT in server.xml, which is where I
thought that maybe the reloadable=false was set.

Any ideas?

Chris


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




installation help

2001-02-02 Thread affan



Apologise for question.
We are ISP we need some help to installation of 
tomcat. 
as well as in configuration of tomcat.
we don't need to run any port like 8080 or 8000 we 
need just user type the url and all jsp and servlet run in his 
directory.
Please any body help us.

We are in UK. 

Freezone Internet Ltd.


Reloadable not working

2001-02-02 Thread AC

Hi,
just a simple question.. I spend some times trying to disable the 
reloadable flax in my context. The server.xml configuration is:
(I'm using virtual hosting)

Host name="testA.mydomain..net" 
 Context path="/tf"
 docBase="webapps/tf"
 debug="0"
 crossContext="true"
 trusted="false"
 reloadable="false" 
 /Context
  /Host

In this manner nothing happens. If you read the remarks on server.xml you 
notice that if you deploy your  application under  TOMCAT_HOME/webapps, the 
engine will use some default such as reloadable=true. So I move my 
application outside TOMCAT_HOME/webapps. After that the previous Jkmount 
rules didn't work at all and, while i can call directly a jsp, once I call 
a servlet, tomcat didn't respond and get 99.9% cpu time (I'm under FreeBsd 
4.2).
Killing, trying and starting some times, I get  my application  working 
outside TOMCAT_HOME/webapps (even if I had to use the ApJServMount instead 
of jkmount ) but, again, the reloadable flag didn't work.
Any hints???
By the way, I did the same test on a win2000, without apache on port 8080, 
but the reloadable flag didn't work again.
Where am I wrong?
thank you
andrea





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




IP hostname questions

2001-02-02 Thread Bill_Fellows/MO/americancentury



Hello,
I was wondering, how _does_ Tomcat figure out what my IP address is?  What if I
have two network cards and two IP address?  Does Tomcat take both?  I've been
looking through the source (3.2.1) and I've found some places where I think it
could be acquiring it, but I'm not quite sure what the call chain is.
In HttpRequestAdapter, I see
public String getRemoteAddr() {
 return socket.getInetAddress().getHostAddress();
}

I can find other classes with calls to get/setHost, get/setInetAddress
get/setRemoteAddr  Anyone out there want to give me some suggestions on either
the overall architecture or what classes I should be looking at to find my
answers?

Thank a lot,
/bill



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




RE: installation help

2001-02-02 Thread Michael Wentzel



What are your 
configurations(standalone, with Apache, etc...)?

If you're running 
standalone just change the http port in conf/server.xml
to 80 instead of 
8080.

If you're running 
Apache you don't need to change the ports of Tomcat
you only need to 
configure Apache and apj.
---Michael WentzelSoftware DeveloperA HREF="http://www.aswethink.com"Software As We 
Think/AA HREF="mailto:[EMAIL PROTECTED]"Michael 
Wentzel/A


What kind of container isn't an engine

2001-02-02 Thread Thom Park

Hello,

I'm intrigued by a comment in the tomcat 4 server.xml file:

"Normally, that Container is an "Engine", but this is not required."

What does this mean then? Is it possible to construct a container that
isn't called a container, if so how and what
would this really mean?

What is meant by a container hierarchy?
How is this implemented in tomcat i.e. can you define an Engine X and
then nest another level of engines under X ?
After all, that's what a hierarchy means to me.

I know I'm getting confused by the big jump from the 'shape' of the
server.xml file in 3.2 compared to that supplied in 4.0.

As I'm trying to write something to manage the configuration of tomcat
4, I need to know more about the 'shape' of the beast.

 Any help/explanation/pointers would be a great!

thanks,

-Thom


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




.class files outside of /webapps/root subdirectory?

2001-02-02 Thread Martin Goebel

Hello,

I'm using Tomcat 3.2 on Windows NT.
From another machine, I start an applet (which, among others,
 invokes a servlet) being in the directory 
/webapps/root/myAppletDirectory.
Do my other classes used by the applet necessarily have to be in a
subdirectory of /webapps/root,
or is it possible to have them in another directory (which, of
course, has to be in the CLASSPATH used by Tomcat)?
At the moment, although the class can be found in the CLASSPATH,
Tomcat tells me 
- Ctx( ): 404: R(  + /myAppletDirectory/UsedClass.class +null)
null,
while the applet tells me
java.lang.ClassNotFoundException:UsedClass

Is there a necessary configuration of Tomcat missing?


Thanks, Martin

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




Re: Need help

2001-02-02 Thread Avery Buffington


Simplest solution (if you can admin the firewall) would be to put ssh on
the tomcat box and allow the firewall to pass the ssh traffic.  Sooner
or later you are going to need to access the box for maintennence or
upgrading and this would allow you access it in a secure manner (and not
have to drive to wherever the box is physically located).

-Avery

"Salvady, Gopal" wrote:
 
 Friends,
 
 Your help on this woule be highly appreciated. We have put an application
 outside the firewall and we don't have access to the machine other than
 ftping our application. How do we start/stop tomcat webserver remotely if it
 crashes. Any body with any experience or would like give tips please help.
 
 This is an immediate problem I am facing. I think I had sent an email in
 this regard sometime back. Bot sure whether anyone got back on this.
 
 Appreciate any help.
 
 Thanks
 
 Gopal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 S/MIME Cryptographic Signature


SV: Whitespace

2001-02-02 Thread Cato Førrisdahl

Cato Frrisdahl wrote:

 Hi,
 I have some jsp-pages which, when run, generates a lot of
 whitespace in the resulting page. It typically looks something like:
 ---Start---

   ?xml version="1.0"?
 ...
[snip]

Luc Vanlerberghe wrote:

The whitespace is not generated by tomcat, but is present in your
source-jsp page between the jsp tags.

[snip]

The way I solve this, without
giving up the readability of my page too much is by putting the closing
bracket on the start of the next line like so:
%@ page contentType="text/html"
%%@ page session="true"
%%@ page import="java.util.*,org.vanlerberghe.luc.spaans.*"
%jsp:useBean id="topicHome" type="TopicHome" scope="application"
/html

This way "html" will be the very first characters written to output.


[snip]

P.s.: By the way: there is no way to let tomcat do this automatically.
It is impossible for it to know which whitespace is needed and which
not.  In html, whitespace sometimes *does* make a difference (e.g. in a
pre block)
Sure, this makes sense. A little guidance, and I got it. :-)

Thank you very much for you answer, it was very helpful.

Cato Frrisdahl


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




Re: installation help

2001-02-02 Thread affan



I need in on NT help
affan

  - Original Message - 
  From: 
  Michael Wentzel 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, February 02, 2001 5:44 
  PM
  Subject: RE: installation help
  
  What are your 
  configurations(standalone, with Apache, etc...)?
  
  If you're 
  running standalone just change the http port in 
  conf/server.xml
  to 80 instead 
  of 8080.
  
  If you're 
  running Apache you don't need to change the ports of 
Tomcat
  you only need 
  to configure Apache and apj.
  ---Michael WentzelSoftware DeveloperA HREF="http://www.aswethink.com"Software As We 
  Think/AA HREF="mailto:[EMAIL PROTECTED]"Michael 
  Wentzel/A


  1   2   >