RE: apache & tomcat as services under Linux

2001-06-25 Thread GOMEZ Henri

>The scripts should be named "apache" ant "tomcat" and should be
>in  /etc/rc.d/init.d/

or named httpd and tomcat.

if you're a Linux user and could use RPM, there is pre-packaged
RPM for you which take care of that :)

>then you should make a symbolic link to them in /etc/rc.d/rc3.d/
>in the case that you start your box in the runlevel 3 (note 
>that if when you
>start your box it runs the X windows you are in run level 5, 
>and you should
>change rc3.d/ for rc5.d/. The links should be called S96tomcat and
>S97apache (I was wrong in my first post, yes tomcat should be 
>run first).
>
>Saludos,
>-- Antoni Reus
>
>- Original Message -
>From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, June 22, 2001 5:29 PM
>Subject: Re: apache & tomcat as services under Linux
>
>
>> OK,
>> I have created 2 different scripts, one for apache and one 
>for tomcat.
>These
>> scripts works fine if I call them manualli: ./S97apache start or
>./S96tomcat
>> start or ./K15
>> But if I restart Linux, when it is up both the tomcat and 
>apache processes
>> are not up.
>> I have tried to examine the /var/log/boot.log but I don't 
>found nothing
>> about.
>>
>> Why??
>> :-(((
>> Pier Paolo.
>> - Original Message -
>> From: "Antoni Reus" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, June 20, 2001 4:47 PM
>> Subject: Re: apache & tomcat as services under Linux
>>
>>
>> > Hi,
>> >
>> > You should create a script with something like
>> > and put it on  /etc/rc.d/init.d/
>> >
>> >  cut here---
>> > #!/bin/sh
>> >
>> > # Set this as you have it in your sistem
>> > APACHE_HOME=/usr/local/apache
>> > TOMCAT_HOME=/usr/local/jakarta/tomcat
>> >
>> > # Test apachectl
>> > if [ ! -x $APACHE_HOME/bin/apachectl ]
>> > then
>> > echo apachectl not found
>> > exit
>> > fi
>> >
>> > # Test tomcat.sh
>> > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
>> > then
>> >echo tomcat not found
>> >exit
>> > fi
>> >
>> > case $1 in
>> > start)
>> > ## Start services
>> > $APACHE_HOME/bin/apachectl start
>> > $TOMCAT_HOME/bin/startup.sh
>> > ;;
>> > stop)
>> > $TOMCAT_HOME/bin/shutdown.sh
>> > $APACHE_HOME/bin/apachectl stop
>> > ;;
>> > esac
>> > -cut here --
>> >
>> > name it "apache-tomcat" and give it execution permissions
>> > with
>> > chmod u+x  apache-tomcat
>> >
>> > Then with control-panel you can link it to the run-level 3
>> > or you can make it directly with
>> >
>> > # Start in run level 3
>> > cd /etc/rc.d/rc3.d
>> > ln -s ../init.d/apache-tomcat S99apache-tomcat
>> >
>> > # Stop
>> > cd ../rc0.d
>> > ln -s ../init.d/apache-tomcat K11apache-tomcat
>> >
>> >
>> > Saludos,
>> >
>> > -- Antoni Reus
>> >
>> > - Original Message -
>> > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Wednesday, June 20, 2001 2:15 PM
>> > Subject: apache & tomcat as services under Linux
>> >
>> >
>> > Hi,
>> > I need to start to use apache &  tomcat in a production 
>environment,
>thus
>> I
>> > need to start them as services.
>> >
>> > I'm using RedHat 7.1, someone knows which scripts I have to put in
>rc3.d.
>> >
>> > Thanks for your time.
>> >
>> > Pier Paolo.
>> >
>>
>



Re: Servlet configuration

2001-06-25 Thread Dmitri Colebatch

Celson,

3 things:

1. inside the webapps/cpl directory create another called WEB-INF 
(case-sensitive) and inside that put the web.xml.  
2. also in the WEB-INF directory create a classes directory and put your 
servlet in there.  
3. in the web.xml you will need a servlet definition if you want to map it by 
name, eg:

  cpl
  yourpackage.yourservlet


hope this helps.

cheers
dim

On Mon, 25 Jun 2001 18:56, you wrote:
> Hi there,
> I'm beginner with TOMCAT, which means maybe my question is too simple for
> you, but it is really "advanced" to me. I would like get help with the
> following: I have Cocoon installed together with TOMCAT and it is working
> perfectly. I would like to use cocoon to handle the presentation issues of
> my site. However, I would like to have my own "servlet",which means, I
> would like to use my own directory (let's say, /webapps/cpl ) instead of
> having my things inside the Cocoon's directory (/webapps/cocoon). My
> problem starts when I try do display a xml page (lets say
> /cpl/prms/getparms.xml) that is placed within my directory.
> I configured my "/cpl/web.xml" as shown below and I think because of that
> the invocation of "/cpl/prms/getparms.xml" is not sent to Cocoon rather to
> my servlet "/cpl". Is this correct and if it is, is there anything I can do
> in order to send that call directly to Cocoon?
> 
> cpl
> /cpl
> 
> Thank you in advance for your kind attention,
> Celson



Re: apache & tomcat as services under Linux

2001-06-25 Thread Antoni Reus

Hi,

The scripts should be named "apache" ant "tomcat" and should be
in  /etc/rc.d/init.d/

then you should make a symbolic link to them in /etc/rc.d/rc3.d/
in the case that you start your box in the runlevel 3 (note that if when you
start your box it runs the X windows you are in run level 5, and you should
change rc3.d/ for rc5.d/. The links should be called S96tomcat and
S97apache (I was wrong in my first post, yes tomcat should be run first).

Saludos,
-- Antoni Reus

- Original Message -
From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 5:29 PM
Subject: Re: apache & tomcat as services under Linux


> OK,
> I have created 2 different scripts, one for apache and one for tomcat.
These
> scripts works fine if I call them manualli: ./S97apache start or
./S96tomcat
> start or ./K15
> But if I restart Linux, when it is up both the tomcat and apache processes
> are not up.
> I have tried to examine the /var/log/boot.log but I don't found nothing
> about.
>
> Why??
> :-(((
> Pier Paolo.
> - Original Message -
> From: "Antoni Reus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 20, 2001 4:47 PM
> Subject: Re: apache & tomcat as services under Linux
>
>
> > Hi,
> >
> > You should create a script with something like
> > and put it on  /etc/rc.d/init.d/
> >
> >  cut here---
> > #!/bin/sh
> >
> > # Set this as you have it in your sistem
> > APACHE_HOME=/usr/local/apache
> > TOMCAT_HOME=/usr/local/jakarta/tomcat
> >
> > # Test apachectl
> > if [ ! -x $APACHE_HOME/bin/apachectl ]
> > then
> > echo apachectl not found
> > exit
> > fi
> >
> > # Test tomcat.sh
> > if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
> > then
> >echo tomcat not found
> >exit
> > fi
> >
> > case $1 in
> > start)
> > ## Start services
> > $APACHE_HOME/bin/apachectl start
> > $TOMCAT_HOME/bin/startup.sh
> > ;;
> > stop)
> > $TOMCAT_HOME/bin/shutdown.sh
> > $APACHE_HOME/bin/apachectl stop
> > ;;
> > esac
> > -cut here --
> >
> > name it "apache-tomcat" and give it execution permissions
> > with
> > chmod u+x  apache-tomcat
> >
> > Then with control-panel you can link it to the run-level 3
> > or you can make it directly with
> >
> > # Start in run level 3
> > cd /etc/rc.d/rc3.d
> > ln -s ../init.d/apache-tomcat S99apache-tomcat
> >
> > # Stop
> > cd ../rc0.d
> > ln -s ../init.d/apache-tomcat K11apache-tomcat
> >
> >
> > Saludos,
> >
> > -- Antoni Reus
> >
> > - Original Message -
> > From: "Pier Paolo Bortone" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 20, 2001 2:15 PM
> > Subject: apache & tomcat as services under Linux
> >
> >
> > Hi,
> > I need to start to use apache &  tomcat in a production environment,
thus
> I
> > need to start them as services.
> >
> > I'm using RedHat 7.1, someone knows which scripts I have to put in
rc3.d.
> >
> > Thanks for your time.
> >
> > Pier Paolo.
> >
>




RE: Odd Tomcat 3.3m3 Problem

2001-06-25 Thread GOMEZ Henri

>I have one site running three contexts with Apache 1.3.19 on FreeBSD 
>running against Tomcat 3.3m3 on a Solaris machine.  Right now, I'm 
>using ajp13.  
>
>Everything seems to be going fine except every once in a while, almost 
>randomly, I get back a directory listing of the first context 
>instead of the data 
>requested.  All I have to do is hit reload on the page, and 
>the correct data 
>comes up.
>
>In my mod_jk.log file, I'm getting a lot of different error 
>messages that must 
>be getting handled properly as this isn't happening as often 
>as there are 
>messages in the log. The one that looks to be of the frequency of this 
>problem follows:
>
>[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error 
>sending request try
> another pooled connection
>[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error 
>sending request try another pooled connection

You seems to be out of thread process on the java side.
Try to increase the number of Ajp13 threads (in server.xml but I didn't
remember how :) 



RE: huge problem with mod_jk and Apache

2001-06-25 Thread GOMEZ Henri

Take a look at your mod_jk.conf.
For example check the JkMount command and LogLevel

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 26, 2001 6:22 AM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: huge problem with mod_jk and Apache
>
>
>the problem is not only with the servlets - even HTML pages get loaded
>really slow
>
>- Original Message -
>From: "anil" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, June 25, 2001 8:16 PM
>Subject: Re: huge problem with mod_jk and Apache
>
>
>> Hmm. That is strange. I run Tomcat 3.2.2 with
>> JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
>> can't complain on Dell 800MHz server with 128MB of RAM with 
>RedHat 6.2.
>> The JDK is Sun JDK 1.3.1.
>> Apache connector is Mod_jk12.
>> Email me the the servlet and I will try to run on my server.
>>
>> anil
>>
>> Nick Stoianov wrote:
>>
>> > Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
>> > mod_jk). I noticed that when I run Apache with mod_jk - 
>Apache serves
>> > the html pages extremely slow (20 seconds for a simple page). If I
>> > disable mod_jk - it's  fast again. I will really appreciate if
>> > somebody helps me with this problem. ThanksNick
>



Re: web pages in tomcat context not showing gif images through apache

2001-06-25 Thread Dmitri Colebatch

Where are your images located?  sounds to me like they exist in 
$TOMCAT_HOME/webapps/admin/images or something.  They should be in 
$HTDOCS/images (for apache).  If you want it to work (with images) for both 
apache and tomcat, put the images under apache (as you should) and have 
tomcat mount a root context with a path of $HTDOCS 

hope this helps

cheesr
dim

On Mon, 25 Jun 2001 19:12, you wrote:
> Greetings,
>
> I put apache working with tomcat [mod_jk] and even in the default web pages
> that come in tomcat where exists gif images, through apache the images
> don't appear in web pages...
>
> For example,
>
> http://localhost:8080/admin -> acess directly to tomcat, the images come ok
>
> http://localhost/admin -> the web site appears ok, but images are
> missing...
>
> Well, the more strange is that in my old linux redhat 6.2 with apache
> 1.3.14 it works fine.
> In my new release, with redhat 7.0 or 7.1 [with kernel 2.4.x] I have this
> problem with the same configuration...
>
> --
> 



ajp13-redirect

2001-06-25 Thread Shai Deljo

Hi,

I have several Tomcats running under one apache
.
How can i redirect a request from one apache to another one without going
all the way back to the client (using the apache / ajp13) ?

Thanks,

Shai Deljo



Re: JkMount in httpd.conf

2001-06-25 Thread Dmitri Colebatch

Not sure if anyone responded to this - our mailserver's been down (or more 
accurately our ISP) for the last couple of days...

On Mon, 25 Jun 2001 19:28, Richard Richter wrote:
> virtual host and your question is about server.xml (I have no experience
> with that kind of virtual host).
Tomcat also supports virtual hosts - although as I said, I haven't been able 
to get it to work on a port-based virtual.

> Strange for me is that one JkMount works and another doesn't. I read
> "Working with mod_jk" papers, but there are more examples than formal
> definitions. So I can ask:
>
> Is this path "/intranet/WEB-INF/classes/Hello" covered with these JkMounts?
>   1.  JkMount /intranet/* worker
>   2.  JkMount /*classes/* worker
>   3.  JkMount /classes/* worker
> Is second parameter used as a needed substring or what?
What happens in your tomcat logs when the request comes in?  My guess is that 
apache gets the request for /intranet/servletname and correctly forwards it 
to tomcat, which then looks for a file called intranet/servletname 'cause 
(I'm guessing) its not matching the servlet.

What servletmapping are you using?

hope this helps
cheers
dim

>
> And when talking about redirection from Apache to Tomcat... One another
> question:
>
> I have a picture x.jpg in Tomcat project and so it is deployed as
> webapps/payportal/x.jpg among another jsps. Now when browser loads this jsp
> (in fact on client side it is only html) it finds out that there is an
> image and sends a reqest for it, doesn't it?
> Now - how can Apache know, that this image is not in my
> web-data/payportal/x.jpg (which doesn't exist in fact) and that this
> request has to be redirected to Tomcat. JPG is not JSP! I have no JkMount
> for this case?
> Is there any implicit redirection?
>
> These mechanisms are not transparent for me (or "I don't understend them").
> ;-)
>
> Richard "Virgo" Richter
>
> > On Fri, 22 Jun 2001 23:22, Richard Richter wrote:
> > > Hello...
> > >
> > > I'm using Apache with mod_jk and Tomcat for jsps and servlets. JSP is
> > > without problem, but servlet don't want to run. Because informations
> > > about absolute path of requested document is written to terminal, where
> > > Tomcat was started, I found out that servlet (URI:
> > > http://poseidon.bgs.sk:/intranet/WEB-INF/classes/Hello) is not
> > > translated from relative to absolute path - nothing apears on terminal.
> > >
> > > I think, that Apache don't redirect this request to Tomcat (or
> > > appropriate worker)... my httpd.conf has this section:
> > >
> > > 
> > > ServerAdmin [EMAIL PROTECTED]
> > > DocumentRoot /export/home/virgo/web-data
> > > 
> > > Options Indexes FollowSymLinks
> > > AllowOverride None
> > > SetHandler default-handler
> > > Order allow,deny
> > > Allow from all
> > > 
> > > ServerName poseidon.bgs.sk
> > > JkMount /*.jsp virgo
> > > JkMount /intranet/* virgo
> > > ErrorLog
> > > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/error_log
> > > TransferLog
> > > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/access_ log
> > > 
> > >
> > > *.jsp works good, but second JkMount not... I tried many versions of
> > > second field of that line - but nothing. Always 404 Forbidden (Apache
> > > signed on the bottom of page ;-))... How I have to force Apache to
> > > redirect requests for servlets (eg. for URI specified upper) to Tomcat
> > > (or worker called virgo in my case)???
> > >
> > > Thanks for any suggestion
> > >
> > > Richard Richter ([EMAIL PROTECTED])
> > > Application Programmer, Business Global Systems a. s.
>
> Richard Richter ([EMAIL PROTECTED])
> Application Programmer, Business Global Systems a. s.



Problem in IIS 5.0 and Tomcat 3.2,1 installation

2001-06-25 Thread INGRP Avi Inbar 5292

Hi,

 I would appreciate help on a win 2000 IIS 5.0 and Tomcat 3.2,1.

 Working by the instructions as per 'Tomcat IIS HowTo.htm'.

 The filter isapi_redirect.dll fails to become green and
   stays red and face down.


 I checked in accordance with the trouble shooting procedure in the 
  'Tomcat IIS HowTo.htm'. The IIS log file looks is as follows:

 2001-06-25 06:47:29 127.0.0.1 - 127.0.0.1 80 GET /examples/jsp/index.html
 - 404 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)

 The filter was not operated.

  

Thank You
 Avi Inbar

 Telrad Networks
 Phone. 972-8-9134303





Re: ssl on tomcat?

2001-06-25 Thread Dmitri Colebatch

see the web site:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html

dim.


On Mon, 25 Jun 2001 20:25, Lukas Sägesser wrote:
> can anybody tell me if tomcat (standalone) supports SSL ?
>
> tnx!!
> l.sägesser



altering include files

2001-06-25 Thread teh j

Hi there

I am currently using Tomcat v3.2.1 and am using
include files in my .jsp files a fair bit

Im finding though that if I make a change to my
include file, it does not appear in the JSP that is
using the include file UNLESS I delete the include
file, reload the hosting JSP, put back the include
file and then reload the page again!

Is there a way around this? It is very frustrating and
takes away quite a bit of the idea of the include
file!

thanks
Jason

_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



add me to the tomcat mailing list

2001-06-25 Thread raghu



 


Re: huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov

the problem is not only with the servlets - even HTML pages get loaded
really slow

- Original Message -
From: "anil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:16 PM
Subject: Re: huge problem with mod_jk and Apache


> Hmm. That is strange. I run Tomcat 3.2.2 with
> JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
> can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
> The JDK is Sun JDK 1.3.1.
> Apache connector is Mod_jk12.
> Email me the the servlet and I will try to run on my server.
>
> anil
>
> Nick Stoianov wrote:
>
> > Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
> > mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
> > the html pages extremely slow (20 seconds for a simple page). If I
> > disable mod_jk - it's  fast again. I will really appreciate if
> > somebody helps me with this problem. ThanksNick




Re: where I have to put name_servlet.class ?

2001-06-25 Thread Moin Anjum H.

if the .class file does not have any package then you can have in the
Directory ./webapps/examples/WEB-INF/classes

then try to check with this URL

http://localhost:8080/examples/servlet/x

HTH

Best Regards
Moin.

[EMAIL PROTECTED] wrote:

> I have two files of a servlet: x.class and x.java
> where I have to put theese files?
> in which directory of theese:
>
> /conf:
> ./lib:
> ./lib/test:
> ./lib/test/Golden:
> ./logs:
> ./webapps:
> ./webapps/admin:
> ./webapps/admin/contextAdmin:
> ./webapps/admin/META-INF:
> ./webapps/admin/WEB-INF:
> ./webapps/admin/WEB-INF/classes:
> ./webapps/examples:
> ./webapps/examples/images:
> ./webapps/examples/jsp:
> ./webapps/examples/jsp/cal:
> ./webapps/examples/jsp/checkbox:
> ./webapps/examples/jsp/colors:
> ./webapps/examples/jsp/dates:
> ./webapps/examples/jsp/error:
> ./webapps/examples/jsp/forward:
> ./webapps/examples/jsp/include:
> ./webapps/examples/jsp/jsptoserv:
> ./webapps/examples/jsp/num:
> ./webapps/examples/jsp/plugin:
> ./webapps/examples/jsp/plugin/applet:
> ./webapps/examples/jsp/security:
> ./webapps/examples/jsp/security/login:
> ./webapps/examples/jsp/security/protected:
> ./webapps/examples/jsp/sessions:
> ./webapps/examples/jsp/simpletag:
> ./webapps/examples/jsp/snp:
> ./webapps/examples/META-INF:
> ./webapps/examples/servlets:
> ./webapps/examples/WEB-INF:
> ./webapps/examples/WEB-INF/classes:
> ./webapps/examples/WEB-INF/classes/cal:
> ./webapps/examples/WEB-INF/classes/checkbox:
> ./webapps/examples/WEB-INF/classes/colors:
> ./webapps/examples/WEB-INF/classes/dates:
> ./webapps/examples/WEB-INF/classes/error:
> ./webapps/examples/WEB-INF/classes/examples:
> ./webapps/examples/WEB-INF/classes/num:
> ./webapps/examples/WEB-INF/classes/sessions:
> ./webapps/examples/WEB-INF/jsp:
> ./webapps/examples/WEB-INF/jsp/applet:
> ./webapps/ROOT:
> ./webapps/ROOT/docs:
> ./webapps/ROOT/docs/api:
> ./webapps/ROOT/docs/api/javax:
> ./webapps/ROOT/docs/api/javax/servlet:
> ./webapps/ROOT/docs/api/javax/servlet/class-use:
> ./webapps/ROOT/docs/api/javax/servlet/http:
> ./webapps/ROOT/docs/api/javax/servlet/http/class-use:
> ./webapps/ROOT/docs/api/javax/servlet/jsp:
> ./webapps/ROOT/docs/api/javax/servlet/jsp/class-use:
> ./webapps/ROOT/docs/api/javax/servlet/jsp/tagext:
> ./webapps/ROOT/docs/api/javax/servlet/jsp/tagext/class-use:
> ./webapps/ROOT/javadoc:
> ./webapps/ROOT/javadoc/org:
> ./webapps/ROOT/javadoc/org/apache:
> ./webapps/ROOT/javadoc/org/apache/tomcat:
> ./webapps/ROOT/javadoc/org/apache/tomcat/adapter:
> ./webapps/ROOT/javadoc/org/apache/tomcat/adapter/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/context:
> ./webapps/ROOT/javadoc/org/apache/tomcat/context/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/core:
> ./webapps/ROOT/javadoc/org/apache/tomcat/core/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/facade:
> ./webapps/ROOT/javadoc/org/apache/tomcat/facade/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/loader:
> ./webapps/ROOT/javadoc/org/apache/tomcat/loader/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/logging:
> ./webapps/ROOT/javadoc/org/apache/tomcat/logging/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/net:
> ./webapps/ROOT/javadoc/org/apache/tomcat/net/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol/jar:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol/jar/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol/war:
> ./webapps/ROOT/javadoc/org/apache/tomcat/protocol/war/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/request:
> ./webapps/ROOT/javadoc/org/apache/tomcat/request/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service/connector:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service/connector/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service/http:
> ./webapps/ROOT/javadoc/org/apache/tomcat/service/http/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/session:
> ./webapps/ROOT/javadoc/org/apache/tomcat/session/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/startup:
> ./webapps/ROOT/javadoc/org/apache/tomcat/startup/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/task:
> ./webapps/ROOT/javadoc/org/apache/tomcat/task/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/compat:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/compat/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/pattern:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/pattern/class-use:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/xml:
> ./webapps/ROOT/javadoc/org/apache/tomcat/util/xml/class-use:
> ./webapps/ROOT/META-INF:
> ./webapps/ROOT/WEB-INF:
> ./webapps/ROOT/WEB-INF/classes:
> ./webapps/test:

Re: huge problem with mod_jk and Apache

2001-06-25 Thread anil

Hmm. That is strange. I run Tomcat 3.2.2 with
JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
The JDK is Sun JDK 1.3.1.
Apache connector is Mod_jk12.
Email me the the servlet and I will try to run on my server.

anil

Nick Stoianov wrote:

> Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
> mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
> the html pages extremely slow (20 seconds for a simple page). If I
> disable mod_jk - it's  fast again. I will really appreciate if
> somebody helps me with this problem. ThanksNick




Re: Running Tomcat under Win 2K - help!

2001-06-25 Thread Frans Thamura

I install my tomcat 322 with cocoon 1.82 and with Jetspeed 1.3a2, it work.

just modify your tomcat.bat, add the xerces.jar, xalan.jar, and cocoon.jar
in the beginning of your CP

Frans

- Original Message -
From: "Randy Layman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 12:41 AM
Subject: RE: Running Tomcat under Win 2K - help!


>
> First, in your own best interest, don't post with HTML/RTF email
> messages, it limits the number of people who can read your message, which
> you don't want.
>
> Second, I think a more telling problem is that you are getting
> NoClassDef for the java executable.  Its like the script is trying to
> execute Java and pass the path to Java as the class name (which would
> explain the conversion of the . to a \).  I would suggest that you
carefully
> look over your environment variables.  I imagine that you will find that
you
> have somehow set CLASSPATH to be "%CLASSPATH% %JAVA_HOME%", which would
> cause your problem.
>
> Randy
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: Running Tomcat under Win 2K - help!
>
>
> Hey all. I searched the archives and wasn't able to find any real good
info
> on running Tomcat under Win 2K. I understand that it should be run in
> conjunction with Apache, but I can't even get it to run on it's own. I did
> have it running when my box was running Win 98, but Win 2K seems to be a
> little cranky/pickier about things.
>
> Here's my setup:
> Tomcat 3.2.2
> Win 2K (service pack 1 and all updates)
> JBuilder 4 Enterprise
> JDK 1.3 (using the JDK that came with JBuilder for now)
> Java add-ons: Neon Systems JDBC drivers
>
> Environment variables:
> ***
> SET PATH=".";C:\APPS\MISC\ULTRAE~1;C:\JBUILDER4\JDK1.3\bin
>
> rem - Set Classpath
> SET CLASSPATH="."
> SET CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3"
> SET CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3\bin"
> SET CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\classes"
> SET CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\lib"
> SET CLASSPATH=%CLASSPATH%;"C:\Java\Neon\JDBC\scjd12.jar"
>
> rem - Tomcat Java server information
> SET TOMCAT_HOME="C:\Java\Tomcat"
> SET JAVA_HOME="C:\Java\JBuilder4\jdk1.3"
> ***
>
> Now when I open up a command prompt and start "c:\Java\Tomcat\bin\tomcat
> run" I'll get an exception:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> C:\Java\JBuilder4\jdk1/3\bin\java
>
> If you look at the path, somehow the period in the jdk1.3 part of the path
> is getting set to a backslash. This is the only obvious problem that I can
> find. Has anybody got a work around for this on how to get Tomcat to run?
>
> thanks for the help!


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Encoding Setting for PrintWriter

2001-06-25 Thread LUN

Hi all,
I want to ask is ther any method to set the encoding for the
tomcat, I got the PrintWriter by PrintWriter out = response.getWriter(),
but I cannot print the String by correct encoding. 
I only can do this by getOutputStream instead of getWriter() and 
write bytes instead of out.print(). 
Any method to solve this ???
Thanks !





huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov



Hi,
 
I have a Linux server running Apache and Tomcat 
3.2.2 (using mod_jk). I noticed that when I run Apache with mod_jk - Apache 
serves the html pages extremely slow (20 seconds for a simple page). If I 
disable mod_jk - it's  fast again.
 
I will really appreciate if somebody helps me with 
this problem.
 
Thanks
Nick


RE: Transcription/Translation Services*****

2001-06-25 Thread Bryan Porter

REMOVE

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 24, 2001 9:49 PM
Subject: Transcription/Translation Services*

Attention:  Church Groups/Religious Groups

Attention:  Presidents, Vice-President Managers and Assistants 

Attention:  Marketing Companies, and Online Businesses:

Transcription and Translation Services AVAILABLE WORLDWIDE! 

CALL now for a quote:  (412) 521-9922
24 Hours a day, including Sundays and Holidays.

(PLEASE DO NOT REPLY TO E-MAIL)



***  T R A N S L A T I O N  ***

We provide translation to and from ANY language.  (We specialize in web
site translations!)  (We make this process EASY for you!)

Making your web site multi-lingual will make a HUGE HUGE difference in
your business! (Millions of people live in the US but prefer to speak,
read and write in their own language!)  

All indo-European Languages including German, French, Spanish,
Portuguese, Russian, Dutch and all others.

ALL indo-Asian languages including Japanese, Chinese, Korean,
Vietnamese, and all others.

We use only professional, educated and experienced translators!

Translation services also available for:

*Documents, legal and professional
*E-Mail correspondence
*Technical Documents
*Personal Letters

We use only professional and experienced translators

Web Masters!  We make YOU look good.  Offer our services to your clients
now!!

CALL now for a quote:  (412) 521-9922
24 Hours a day, including Sundays and Holidays

(PLEASE DO NOT REPLY TO E-MAIL)



   *** T R A N S C R I P I O N ***

Attention Office Managers, Professors, Teachers, and other Professional
Assistants and Pastors

* Let us take your source material (audio, video) and transcribe it into
CLEAN, ACCURATE, and PROFESSIONAL text format. 

Transcription services available for: 

*Educational Tool Development
*Legal Documentation
*Government 
*Personal Memo
*Research
*Television
*General Entertainment
*Churches and Religious Groups
*General business
*All transcribers are professional and experienced!

FAST TURN AROUND AND OVERNIGHT BY REQUEST
* Let us take your source material (audio, video) and transcribe it into
CLEAN, ACCURATE, and PROFESSIONAL text format. 

(Editing and proofing services available)

CALL now for a quote:  (412) 521-9922
24 Hours a day, including Sundays and Holidays

(PLEASE DO NOT REPLY TO E-MAIL)

To be removed:

Send message with your e-mail address in the subject line to:

[EMAIL PROTECTED]







jspC and taglib problem

2001-06-25 Thread Sibon Barman

[Sorry to crosspost against Struts --- I think the problem could be fixed by
either Struts or Tomcat audience]

I am using Tomcat 3.2.2 and Struts 1.0 for translating the jsp pages.

When I compile a jsp pages containing reference to struts cutom tag library,
I get the following error message:

2001-06-25 04:35:08 - Package name is: jsp
2001-06-25 04:35:08 - Class file name is:
D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\_0002fjsp_0002findex_
0002ejspindex.class
2001-06-25 04:35:08 - Java file name is:
D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\index.java
2001-06-25 04:35:08 - Class name is: index
2001-06-25 04:35:08 - 
Handling Directive: page{language=java}
2001-06-25 04:35:08 - Accepted org.apache.jasper.compiler.Parser$Directive
at D:\web-test\Ems2.0\win\jsp\index.jsp(0,0)
2001-06-25 04:35:08 - 
Handling Directive: taglib  {uri=/WEB-INF/struts-bean.tld, prefix=bean}

BUILD FAILED

D:\web-test\dev.xml:1141: java.lang.LinkageError: loader constraints
violated when linking org/xml/sax/EntityResolver class
--- Nested Exception ---
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/EntityResolver class
at
org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:161)
at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:138)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java
:170)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:706)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.jasper.JspC.parseFile(JspC.java:376)
at org.apache.jasper.JspC.parseFiles(JspC.java:641)
at org.apache.jasper.JspC.main(JspC.java:689)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:127)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

I made sure I have the tld files in the WEB-INF dir. Here is the snippet of
jsp that is producing the error:
index.jsp:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>













  

  


  

  

  

  


  

  

  

  


  

  







Those jsps without struts custom tag library reference gets precompiled
properly. I have the jasper.jar, struts.jar, jaxp.jar, parser.jar and
webserver.jar from Tomcat 3.2.2 and Struts 1.0 in the class path of
org.apache.jasper.JspC.

Any suggestion to fix the problem of pre-compilation would be appreciated.



Sibon Barman
SS8 Networks, Inc.
Suite 500
495 March Road, Kanata, 
Ontario K2K 3G1

*: (613)592-2100 ext:3281
*: [EMAIL PROTECTED]



 winmail.dat


Re: Servlet configuration

2001-06-25 Thread Francis Callo


--- Celson Lima <[EMAIL PROTECTED]> wrote:
> Hi there,
> I'm beginner with TOMCAT, which means maybe my
> question is too simple for
> you, but it is really "advanced" to me. I would like
> get help with the
> following: I have Cocoon installed together with
> TOMCAT and it is working
> perfectly. I would like to use cocoon to handle the
> presentation issues of
> my site. However, I would like to have my own
> "servlet",which means, I
> would like to use my own directory (let's say,
> /webapps/cpl ) instead of
> having my things inside the Cocoon's directory
> (/webapps/cocoon). My
> problem starts when I try do display a xml page
> (lets say
> /cpl/prms/getparms.xml) that is placed within my
> directory.
> I configured my "/cpl/web.xml" as shown below and I
> think because of that
> the invocation of "/cpl/prms/getparms.xml" is not
> sent to Cocoon rather to
> my servlet "/cpl". Is this correct and if it is, is
> there anything I can do
> in order to send that call directly to Cocoon?
> 
> cpl
> /cpl
> 

it should be "/cpl/*" all
request would be passed to cpl when you say
http://somedomain.com/cpl/cpl/prms/getparms.xml

the "/prms/getparms.xml" will be passed to sevlet cpl
i havent tried this for a long time just give it a
try.

> Thank you in advance for your kind attention,
> Celson
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Odd Tomcat 3.3m3 Problem

2001-06-25 Thread Jason Koeninger

I have one site running three contexts with Apache 1.3.19 on FreeBSD 
running against Tomcat 3.3m3 on a Solaris machine.  Right now, I'm 
using ajp13.  

Everything seems to be going fine except every once in a while, almost 
randomly, I get back a directory listing of the first context instead of the data 
requested.  All I have to do is hit reload on the page, and the correct data 
comes up.

In my mod_jk.log file, I'm getting a lot of different error messages that must 
be getting handled properly as this isn't happening as often as there are 
messages in the log. The one that looks to be of the frequency of this 
problem follows:

[Mon Jun 25 12:01:05 2001]  [jk_ajp13_worker.c (579)]: Error sending request try
 another pooled connection
[Mon Jun 25 12:01:08 2001]  [jk_ajp13_worker.c (579)]: Error sending request try
 another pooled connection

Any ideas?  Switch back to ajp12?  Downgrade to Tomcat 3.2.2?

Thanks,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com







Tomcat running but problem with IIS

2001-06-25 Thread matt mills

hi all,
i'm running Win2K & using IIS (i can't use apache).  tomcat is setup
correctly.  i can use tomcat's server to go to a jsp page, but if i go
through IIS i get a 404.

for example,  i can go to localhost:8080/examples/myexample.jsp but i CAN'T 
go to localhost/examples/myexample.jsp

does anyone have any ideas why i can't go through IIS?  my green arrow is 
'up', my logs are running, i have a jakarta virtual directory (with execute 
access), my registry appears ok, my tomcat_home & java_home env vars are ok.

any hints?  ideas?


thanks
m
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




server load and sessions

2001-06-25 Thread Ben Carterette

I had posted a message a while back about session information getting
lost, i.e. after logging in on one JSP and going to another page, a new
session was being created.  I restarted the web server and the problem
went away, but it came back again today:  I am explicitly setting the
session timeout to an hour, but sessions were timing out between pages
after a few minutes.  I restarted Tomcat and the problem went away.  Why
is it doing this?  I thought it might have to do with the load on the
server (hence the subject) but really I have no idea.

Thanks,
Ben




Re: tomcat tutorial

2001-06-25 Thread Bo Xu

alex chang wrote:

> anyone know of any good tomcat tutorials?
> to be honest the user guide doesn't really
> help.
> [...]

Hi :-)  please see the following WEB sites:

-  http://www.filip.net/tomcatbook/
-  http://tomcat.mslinn.com/

Bo
June 25, 2001






Re: how to determine if tomcat is running

2001-06-25 Thread Parag Thakur


hello,

why not write a small servlet that returns some value. then, in the
script, just try to fetch the URL corresponding to that servlet. if u
come back with a value, it means that tomcat is running, else not.

hope that helps
parag.

On Sun, 24 Jun 2001, [EMAIL PROTECTED] wrote:

Date: Sun, 24 Jun 2001 14:10:30 +0200
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Thomas Fischer <[EMAIL PROTECTED]>
Subject: Re: how to determine if tomcat is running

thanks for your response, but this method is not working on all unix 
systems because some of them only show .../java as result of the ps 
command (even with the options you mentioned).

does anybody know anything else how i can be sure if tomcat is running 
or not???

thanks,

thomas.

Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:

> You should have a java process running 
> 'org.apache.tomcat.startup.Tomcat'
> when Tomcat is running. For example, when I run the 'ps' command I see 
> the
> following:
>
> /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
>-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
>-Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
>org.apache.tomcat.startup.Tomcat
>
> This is all on one line, of course, and I have to use 'ps awx 
> --cols=250'
> (Linux) in order to see the entire command line.
>
> Hope this helps.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Thomas Fischer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 23, 2001 10:34 AM
> Subject: how to determine if tomcat is running
>
>
>> i'm writing a script (on a unix-system) which should do different tasks
>> wether tomcat is running or not. to do so the script has to figure out
>> the status of tomcat. most daemons use .pid-files or anything similar.
>> but i found nothing for tomcat.
>>
>> i've looked all through the documentation but found nothing about the
>> runtime status of tomcat. how can i find out if tomcat is already
>> running?
>>
>> thanks for any responses,
>>
>> thomas.
>>
>




tomcat tutorial

2001-06-25 Thread alex chang

anyone know of any good tomcat tutorials?
to be honest the user guide doesn't really
help.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: limiting instances of java

2001-06-25 Thread Jeff Kilbride

max_threads
max_spare_threads
min_spare_threads

They're all parameters of the PoolTCPConnector class. If you're trying to
configure the number of threads Tomcat is using, you should probably read
about all three of them. They're all listed in the same section of the
User's Guide.

If you only configure max_spare_threads, you're not doing anything to limit
the total number of threads Tomcat can spawn. You're just adjusting the
number of idle threads it keeps in it's pool waiting for requests.

--jeff

- Original Message -
From: "Charles Williams (CEO)"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 11:05 PM
Subject: Re: limiting instances of java


> Actually, I believe that it's max_spare_threads.
>
> chuck
>
> - Original Message -
> From: "Jeff Kilbride" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 24, 2001 8:53 PM
> Subject: Re: limiting instances of java
>
>
> > Try the manual. (do a find on "max_threads")
> >
> > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
> >
> > --jeff
> >
> > - Original Message -
> > From: "Dino Ming" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 24, 2001 8:53 AM
> > Subject: Re: limiting instances of java
> >
> >
> > > I have over 35+ instances...too..
> > > Yes, how can we reduce the number of java instances ?
> > >
> > > - Original Message -
> > > From: "Charles Williams (CEO)"
> > <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, June 24, 2001 11:29 PM
> > > Subject: limiting instances of java
> > >
> > >
> > > > hey,
> > > >
> > > > I just noticed that there are over 20 instances of java running when
i
> > do a
> > > > ps call.  How can I cut that down?
> > > >
> > > > chuck
> > > >
> > > >
> > > >
> > > >
> > >
> >
>




Why are my HTTP resources treated differently than my HTTPS ones?

2001-06-25 Thread Mike Spreitzer

I have Tomcat 3.2.2 in standalone mode serving both HTTP and HTTPS.  I 
have GIFs that appear on both the HTTP and the HTTPS pages.  I am viewing 
my site with both Netscape 4.75 and IE 5.0 on Win 2K.  Where the GIFs 
appear on HTTP pages, their create date, modification date, and file size 
are recorded in the browser's cache.  Where the same GIFs appear on HTTPS 
pages (the GIFs themselves are, in this case, fetched from HTTPS URLs), 
none of those things is recorded in the browser's cache.  Netscape's cache 
setting is "Document in cache is compared to document on network: Every 
time", and IE's cache setting is "Check for newer versions of stored 
pages: Automatically".  Changing IE's cache setting to "Every time you 
start Internet Explorer" and flushing its cache makes no difference.  When 
I change IE's cache setting to "Every visit to the page", and flush its 
cache, then IE starts remembering the HTTPS GIFs' create date, 
modification date, and file size.  For Netscape, changing the cache 
setting to "Document in cache is compared to document on network: Once per 
session" (and flushing the cache) causes the browser's cache to start 
remembering the create date, modification date, and file size (among other 
things) for the GIFs at HTTPS URLs.

What causes this differential treatment of HTTP vs. HTTPS resources for 
some browser settings?  Are there Tomcat configuration options that affect 
this?

Thanks,
Mike



weird log entry in mod_jk.log & other problems

2001-06-25 Thread Nico Wieland

hi list

i have some strange entries in my mod_jk.log, generated almost every minute:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters

in addition, tomcat occasionally dies with a 

# An unexpected exception has been detected in native code outside the VM.
# Program counter=0xblahblah (don't have the exact code anymore)
#
# Problematic Thread: prio=1 tid=0xblaah nid=0xblah runnable (don't have the exact 
codes anymore)
#
Abort

i don't know if the two issues are related. i had the 'unexpected exception' because 
of a bug in oro, but we have a working workaround for that. problem still appears from 
time to time though, but at another place.


questions: what do the first errors (in mod_jk.log) mean? couldn't find any hint on 
the web.
what does the second error mean exactly?
any ideas for a fix, or how to track down the problem(s)?
any ideas where to setup logging so that this 'unexpected exception' can be tracked 
down?

i'm running a 2.2.16 linux kernel, 4-cpu box, tomcat 3.2.2, apache 1.3.19, mysql Ver 
11.15 Distrib 3.23.38, oro-2.0.2, jdk1.3.0_02,

many thanks

Nico Wieland




Does Tomcat 3.2.2 respect the "If-Modified-Since" HTTP header?

2001-06-25 Thread Mike Spreitzer

I'm using Tomcat 3.2.2 on vanilla AIX 4.3.3 and IBM's "jdk" 1.3.  I 
suspect the "If-Modified-Since" qualifier on HTTP GET operations is being 
ignored.  Could this be true, and if so, can I make Tomcat pay attention 
to it?  I could not find this issue addressed in the User's Guide nor the 
FAQ, nor fully well in the archive at mail-archive.com.

Using the TcpTunnelGui included with SOAP, I captured the following 
exchange.  Here is the GET request:

GET /stylesheet/style.css HTTP/1.0
If-Modified-Since: Fri, 22 Jun 2001 19:18:56 GMT; length=2916
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (Windows NT 5.0; U)
Host: alphaspreit:9000
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, 
*/*
Accept-Encoding: gzip
Accept-Language: en,pdf
Accept-Charset: iso-8859-1,*,utf-8
Cookie: JSESSIONID=0bzu6rxaj1


and here are the headers from a GET response (I strongly suspect, but am 
not 100% certain, it is the response to the GET above --- I've been having 
some trouble with the TcpTunneGui):

HTTP/1.0 200 OK
Content-Type: text/plain
Content-Length: 2916
Last-Modified: Fri, 22 Jun 2001 19:18:56 GMT
Servlet-Engine: Tomcat Web Server/3.2.2 (JSP 1.1; Servlet 2.2; Java 1.3.0; 
AIX 4.3 ppc; java.vendor=IBM Corporation)





How to Unsubscribe (was RE: Unsubscribe does not work)

2001-06-25 Thread Jann VanOver

This was originally posted by Thomas Vollmer -- thank you Thomas
-
it is a little tricky to unsubscribe from tomcat-user
when you have changed your e-mail address and need to
use this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients like MS-Outlook have
trouble with the equal-sign "=" in the recipients address.
Here's the e-mail header you sent. If you look closely at
the "To:" line, you will see what has happened:

> To: 'tomcat-user-unsubscribe-lmayer=' <[EMAIL PROTECTED]>

Your e-mail client has split the recipients address at the "="
into the display name ("tomcat-user-unsubscribe-lmayer=") and
the e-mail address ("[EMAIL PROTECTED]").

Somehow you need to make sure that your e-mail client
really sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has worked for me:
1. type the correct unsubscribe address into the "To:" field.
2. click outside of the "To:" field and watch Outlook "convert"
the address you typed into display name and e-mail address.
3. double click on the display name in the "To:" field, note
the wrong e-mail address in there and adjust the e-mail address
to the correct one.
4. done.

Thomas
-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 8:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Unsubscribe does not work



Could someone please lket me know how can 
I unsubscribe from list [EMAIL PROTECTED]?  

The unsubscribe function as posted in the website 
does not work.



From: Vollmer, Thomas - CannonSA [[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *


Laurence and others,

it is a little tricky to unsubscribe from tomcat-user
when you have changed your e-mail address and need to
use this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients like MS-Outlook have
trouble with the equal-sign "=" in the recipients address.
Here's the e-mail header you sent. If you look closely at
the "To:" line, you will see what has happened:

> To: 'tomcat-user-unsubscribe-lmayer=' <[EMAIL PROTECTED]>

Your e-mail client has split the recipients address at the "="
into the display name ("tomcat-user-unsubscribe-lmayer=") and
the e-mail address ("[EMAIL PROTECTED]").

Somehow you need to make sure that your e-mail client
really sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has worked for me:
1. type the correct unsubscribe address into the "To:" field.
2. click outside of the "To:" field and watch Outlook "convert"
the address you typed into display name and e-mail address.
3. double click on the display name in the "To:" field, note
the wrong e-mail address in there and adjust the e-mail address
to the correct one.
4. done.

Hope that helps.

Thomas






> -Original Message-
> From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 21, 2001 9:24 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
> LIST *
> 
> 
> 
> I have tried what you suggested, here is the error :
> 
> Hi. This is the qmail-send program at apache.org.
> I'm afraid I wasn't able to deliver your message to the 
> following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <[EMAIL PROTECTED]>:
> Sorry, no mailbox here by that name. (#5.1.1)
> 
> --- Below this line is a copy of the message.
> 
> Return-Path: <[EMAIL PROTECTED]>
> Received: (qmail 93559 invoked from network); 21 May 2001 
> 14:43:22 -
> Received: from unknown (HELO jlm-exchange.yazam.com) (212.25.111.209)
>   by h31.sny.collab.net with SMTP; 21 May 2001 14:43:22 -
> Received: by JLM-EXCHANGE with Internet Mail Service (5.5.2650.21)
>   id ; Mon, 21 May 2001 17:41:25 +0200
> Message-ID: 
> From: Laurence Mayer <[EMAIL PROTECTED]>
> To: 'tomcat-user-unsubscribe-lmayer=' <[EMAIL PROTECTED]>
> Subject: 
> Date: Mon, 21 May 2001 17:41:21 +0200
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2650.21)
> Content-Type: text/plain;
>   charset="iso-8859-1"
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 



Unsubscribe does not work

2001-06-25 Thread lists


Could someone please lket me know how can 
I unsubscribe from list [EMAIL PROTECTED]?  

The unsubscribe function as posted in the website 
does not work.




Re[2]: ssl on tomcat?

2001-06-25 Thread Andrew Zhdanov

Hello Andrey,

Monday, June 25, 2001, 1:41:30 PM, you wrote:

AK> Hi

>> can anybody tell me if tomcat (standalone) supports SSL ?
AK> Yes. This is from server.xml:

AK> 

but i can see in readme for tomcat3.2
readme line 141> - DIGEST authentication and HTTPS client
readme line 141> authentication (i.e. SSL) are not supported in this
readme line 141> release.

and tomcat4.0 b4 tries to say smth about ssl-redirect (line 84) meaning that SSL
works, but i can not get them, is it so indeed?

-- 
Best regards,
 Andrew





RE: how to change root value

2001-06-25 Thread James Radvan

do this with a virtualhost entry, eg:


  


I think :)

-Original Message-
From: Venkatesh T [mailto:[EMAIL PROTECTED]]
Sent: 25 June 2001 16:18
To: tomcat
Subject: how to change root value






Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be privileged 
and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of the 
originator.  
If you are not the addressee, any disclosure, reproduction, distribution, 
dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by using the 
reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high risk file 
extensions, and inappropriate content.  As a result users should be aware that mail 
may be accessed.





Re: class reload

2001-06-25 Thread JeremyRayYoo

Where do I find this topic  JDK CLASSPATH vs TOMCAT CLASSPATH ??



Re: Servlet HTTP path

2001-06-25 Thread Andrew Zhdanov

Hello SHeyns,

You shuld write lihe this:
 .
 
  ServletName
  MyServlet
 
 .
 
  ServletName
  AnotherServletName
 
 


 hope that is clear enouph without description
 then you type http://localhost/myapp/AnotherServletName
 and it works!
 but care about tomcat logs - there must be usefull info if smth goes
 wrong.
-- 
Best regards,
 Andrew





Re: jsp includes wont show on solaris

2001-06-25 Thread mwhitman

ps when i view source on the page returned the include is there uninterpreted.
"<%@ include file="wrappers/head_l1.html" %>"


At 11:08 AM 6/25/2001 -0400, you wrote:
>The basic .jsp include is not working on a tomcat-apache-solaris platform.
>It does work on tomcat-NT-IIS platform and on tomcat-linux-apache.
>
>No errors returned via http.  The errors just don't show up.
>
>Any ideas why? or how to troubleshoot?
>
><%@ include file="headlines/feature_item.html" %>




Re: Tomcat as a Service in Win 2k

2001-06-25 Thread Tomeu Bennàssar

Thanks Randy, you were right.
My problem was that the name of the directory where I installed Tomcat had
spaces in its name.

Tomeu Bennàssar

Randy Layman wrote:

> Generally this is due to some form of Path error causing the service
> not to be able to start.  There are three things to check:
> 1.  The path to wrapper.properties is correct (its in the registry
> under HKEY_LOCAL_MACHINE\Services\CurrentControlSet\.
> 2.  The values of TOMCAT_HOME or JAVA_HOME are incorrect
> 3.  You have installed Tomcat or Java into a directory that has a
> space in its name.
>
> Randy
>
> > -Original Message-
> > From: Tomeu Bennàssar [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 25, 2001 6:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat as a Service in Win 2k
> >
> >
> > Hi:
> >
> > I have installed Tomcat 3.2.2 on a Win 2k server and I have tried to
> > configure it as a service but an error comes out when I start the
> > service. The error is:
> >
> > The Jakarta service is starting.
> > The Jakarta service could not be started.
> > The service did not report an error.
> > More help is available by typing NET HELPMSG 3534.
> >
> > But when I execute NET HELPMSG 3534 no information is given about the
> > error.
> >
> > Has anyone resolved this error? If you have, please tell me
> > how did you
> > do it?
> >
> > Best regards
> > Tomeu Bennàssar
> >




how to change root value

2001-06-25 Thread Venkatesh T

Hi
  How can i change the root directory value which is
"jakarta-tomcat/webapps/root"  by default.

When i am accessing the homepage of the site, it is displaying the full
path in the browser.  How can i change this. I don't want to display the
homepage filepath.


Thanks and Rgds
venkatesh



The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail & notify us immediately at [EMAIL PROTECTED] 




Re: Servlet HTTP path

2001-06-25 Thread Fernando_Salazar


You need to setup a  entry to map the servlet to a
specific URL path.

- Fernando



Hi


Id like to specify a specific sub folder path for a servlet however I am
not having any luck doing so. I have defined the servlet in the web.xml
file as



accountingxmlServlet

Used for exchanging data between the web page and
the servlet


com.lfi.accounting.servlet.xmlServlet


and access this as http:\\foo:8080\bar\servlet\accountingxmlservlet. This
works but what I would like to do is to define the servlet as



accounting/xmlServlet

Used for exchanging data between the web page and
the servlet


com.lfi.accounting.servlet.xmlServlet


and access it as http:\\foo:8080\bar\servlet\accounting\xmlservlet but this
doesnt work. Is there something Im missing or is this not possible ? any
suggestion or help would be appreciated...


My setup is Tomcat 3.2 , WinNT SP6 IIS 5


Thanks










Re: httpsession and graceful shutdown in tomcat

2001-06-25 Thread Andrew Zhdanov

Hello Shai,

Monday, June 25, 2001, 5:29:41 PM, you wrote:

SD> Hi,

SD> Does a graceful shutdown in a tomcat waits for all live httpsession to die
SD> or just for all connections to close (response to all current requests) ?

SD> 10x

SD> Shai

I think it would be interesting for you to look at Servlet2.3
specification and Tomcat4.0 (beta unfortunetly) for that. There you
could see is sessionCreated and sessionDestroyed events in
HttpSessionListener interface. And yet, there if you session
attributes implements HttpSessionBindingListener (for session
attributes binding) then, your class for session attributes are
notified and waited for clean shut down before tomcat shuting down and
it may be later activated again when tomcat starts another day.
But i can say exaxtly about situation in current release (3.2)
Hope that helps a little.

-- 
Best regards,
 Andrew





Re: class reload

2001-06-25 Thread Dennis Murphy

Please see my topic entilted: JDK CLASSPATH vs TOMCAT CLASSPATH

[EMAIL PROTECTED] wrote:

> Hi, everytime I edit a JavaBean and recompile it, I have to always shutdown
> tomcat and restart it again. This seems very tedious. Can anyone help me or
> am I missing something that I should know about tomcat. Thanx




jsp includes wont show on solaris

2001-06-25 Thread mwhitman

The basic .jsp include is not working on a tomcat-apache-solaris platform.
It does work on tomcat-NT-IIS platform and on tomcat-linux-apache.

No errors returned via http.  The errors just don't show up.

Any ideas why? or how to troubleshoot?

<%@ include file="headlines/feature_item.html" %>




Please explain this Context

2001-06-25 Thread Frank Lawlor

I have a login.jsp in my application in the path security/login/login.jsp
and certain URLs are protected with a security constraint.  However,
I expect users to go to a certain URL in order to log in.  If they don't,
I need to have them first fill in a form.  So, in login.jsp I have a tag
that
does the check and if they need to fill in the form I redirect to the form:

  rd = sc.getRequestDispatcher("/MyForm.jsp");
  rd.forward(request, response);

Once they fill in the form and submit the processing servlet forwards the
request to the proper target URL:

  rd = sc.getRequestDispatcher("/" + project);
  rd.forward(request, response);

The Question:

The first part of this works just fine.  It gets to MyForm.jsp and does
its thing, but when I forward to /project it fails.  The dispatcher trace
shows that it is trying to find /security/login/project rather
than /project.

After passing thru a couple of servlets, why is now insisting on adding
security/login to the path?

I have worked around the problem by just doing a sendRedirect, but
the above behavior confuses me and seems to contradict the spec.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






Re: bizarre page flushing situation

2001-06-25 Thread Richard Sand

A simple distillation of my previous e-mail is:

Why won't tomcat let me do a "flush" inside a custom tag (other app servers
haven't complained).  I.e. I want to do a jsp:include inside a custom tag.


   


Any help greatly appreciated.

-Richard


- Original Message -
From: "Richard Sand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 3:33 PM
Subject: bizarre page flushing situation


> Hi all- I've got the following somewhat whacky setup which Tomcat refuses
to
> handle.  It involves custom tags and included JSP pages.  My tomcat is
3.2.2
> on W2K running native (i.e. no external web server).
>
> At the bottom of all of my JSP pages I include a JSP footer as follows:
>
> <%@ include file="/footer.jsp" %>
>
> Inside footer.jsp, I display a footer that is customized to whether the
user
> is logged in, which is determined by custom tags.  Footer.jsp looks as
> follows:
>
> 
>
> 
>
> 
>
> 
>
> So here's the problem: I get the exception:
>
>  java.io.IOException: Illegal to flush within a custom tag
>
> but ONLY when I use those particular custom tags inside the footer.  If I
> use them in the main jsp pages they work fine.
>
> I also tried removing the flush=true, but tomcat replies:
>
> org.apache.jasper.compiler.CompileException: ... jsp:include needs to have
> "flush=true"
>
> On other application servers, I didn't have the flush=true and they worked
> fine.
>
> Lastly, the doAfterBody of the tags is very basic:
>
>  try {
>   // write the body and return SKIP_BODY
>   bodyContent.writeOut(bodyContent.getEnclosingWriter());
>   return SKIP_BODY;
>  } catch (Exception e) {
>   throw new JspException(e.toString());
>  }
>
>
> Can anyone explain this behavior???
>
> Thanks for your help!
>
> Best regards,
>
> Richard
>
>




httpsession and graceful shutdown in tomcat

2001-06-25 Thread Shai Deljo

Hi,

Does a graceful shutdown in a tomcat waits for all live httpsession to die
or just for all connections to close (response to all current requests) ?

10x

Shai



Servlet HTTP path

2001-06-25 Thread SHeyns
Title: Servlet HTTP path





Hi


Id like to specify a specific sub folder path for a servlet however I am not having any luck doing so. I have defined the servlet in the web.xml file as

    
        accountingxmlServlet
        
            Used for exchanging data between the web page and the servlet
        
        
            com.lfi.accounting.servlet.xmlServlet
        
    
and access this as http:\\foo:8080\bar\servlet\accountingxmlservlet. This works but what I would like to do is to define the servlet as

    
        accounting/xmlServlet
        
            Used for exchanging data between the web page and the servlet
        
        
            com.lfi.accounting.servlet.xmlServlet
        
    
and access it as http:\\foo:8080\bar\servlet\accounting\xmlservlet but this doesnt work. Is there something Im missing or is this not possible ? any suggestion or help would be appreciated...

My setup is Tomcat 3.2 , WinNT SP6 IIS 5


Thanks





Getting target URL in login JSP

2001-06-25 Thread Lawlor, Frank

In my login.jsp I need to know what URL the person used 
to cause the login.  The only thing I've found is that 
the attribute tomcat.auth.originalLocation has this.
This appears very specific to Tomcat.  Is there any more
general way to determine this information?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





RE: LDAP realms.

2001-06-25 Thread Roytman, Alex

Steve,

Type of realm should not make any difference for your web.xml Your
web.xml setup will be the same with JDBCRealm, or SimpleRealm or
JndiRealm. You can use either form based auth (like in your example) or
basic auth with JndiRealm. All JndiRealm config is done in tomcat's
server.xml file

This fragment is from  role-map.xml I presume?


user


Right now the only wildcard supported is "*" but it is easy to add
support for regular expressions. Actually you can plug-in your own
RoleMapper. I provided SimpleRoleMapper as an example and default. You
can use your own (just have your com.acme.tomcat.MyRoleMapper implement
RoleMapper interface and in your server.xml specify roleMapperClass =
com.acme.tomcat.MyRoleMapper")  

Alex



Hey Alex,

Your JndiRealm looks very interesting.  I'm currently installing it for
testing.  I have two questions about setup.  


1.  Can I use your realms in my web.xml as follows?


FORM
UmsRealm
login.html
error.html




2.  Can I map names to roles, using wildcards as follows?


user


-- Steve
Steve Cannon [EMAIL PROTECTED] 
Chief Technology Officer -- OVEN
www.oven.com 646 613 2852



RE: cannot load mod_jk

2001-06-25 Thread Bari, Naeem


When you build mod_jk using apxs, put -lposix4 right before the -c option,
as stated in the documentation for building mod_jk.

HTH,
naeem

> -Original Message-
> From: Shtykh Roman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 2:28 AM
> To: [EMAIL PROTECTED]
> Subject: cannot load mod_jk
> 
> 
> I have a problem with mod_jk. When I do apachectl
> configtest I get an error:
> 
> Syntax error on line 8 of
> /home/grd/m5051236/tomcat/conf/mod_jk.conf-auto:
> Cannot load
> /home/grd/m5051236/apache/libexec/mod_jk.so into
> server: ld.so.1: /home/grd/m5051236/apache/bin/httpd:
> fatal: relocation error: file
> /home/grd/m5051236/apache/libexec/mod_jk.so: symbol
> fdatasync: referenced symbol not found
> 
> I would be very grateful if someone can help me to
> solve this problem.
> 
> Roman.
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 



Re: calling other servlets inside a servlet...

2001-06-25 Thread Andrey Kompaneev

Hi

> how can I call another servlet inside a servlet? And I would like to 
> have two options: one is that the servlet called is the final servlet, 
> and the other option is calling a servlet just to get a result 
> (outputstream) o the main servlet and continue processing the main servlet.
> This is just a servlet question specification or it depends if I'm 
> working on tomcat or other product?
You'll be able to do it with dispathrequestor or HttpConnection method. See 
servlet-specifications Chapter #8.

Best regards,
Andrew Kompaneev, Expert.
AlconsSoft InformSystems Ltd.,
http://www.alconssoft.ru/eng







Antwort: calling other servlets inside a servlet...

2001-06-25 Thread Christian . Schildt


Hi,

Try the following

  try
  {
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher
( TargetServletPath );
dispatcher.forward( request, response );
  }
  catch( IOException e )
  {
System.out.println( e );
  }
  catch( ServletException e )
  {
System.out.println( e );
  }


Mit freundlichen Grüßen

Christian Schildt
Diplom-Betriebswirt (FH)

Softwaredeveloper

Phone: 089/89013023
Mailto:  [EMAIL PROTECTED]

ELAXY AG
Gutenbergstr. 5
D-82178 Puchheim bei München
Phone: +089/8901300
Fax:   +089/89013089
www.elaxy.com




   

Pedro Salazar  

   Kopie:

 Thema:  calling other servlets inside 
a servlet...
25.06.2001 14:27   

Bitte antworten an 

tomcat-user

   

   



Greetings,

how can I call another servlet inside a servlet? And I would like to
have two options: one is that the servlet called is the final servlet,
and the other option is calling a servlet just to get a result
(outputstream) o the main servlet and continue processing the main servlet.
This is just a servlet question specification or it depends if I'm
working on tomcat or other product?

thanks,
Pedro Salazar.







bizarre page flushing situation

2001-06-25 Thread Richard Sand

Hi all- I've got the following somewhat whacky setup which Tomcat refuses to
handle.  It involves custom tags and included JSP pages.  My tomcat is 3.2.2
on W2K running native (i.e. no external web server).

At the bottom of all of my JSP pages I include a JSP footer as follows:

<%@ include file="/footer.jsp" %>

Inside footer.jsp, I display a footer that is customized to whether the user
is logged in, which is determined by custom tags.  Footer.jsp looks as
follows:


   



   


So here's the problem: I get the exception:

 java.io.IOException: Illegal to flush within a custom tag

but ONLY when I use those particular custom tags inside the footer.  If I
use them in the main jsp pages they work fine.

I also tried removing the flush=true, but tomcat replies:

org.apache.jasper.compiler.CompileException: ... jsp:include needs to have
"flush=true"

On other application servers, I didn't have the flush=true and they worked
fine.

Lastly, the doAfterBody of the tags is very basic:

 try {
  // write the body and return SKIP_BODY
  bodyContent.writeOut(bodyContent.getEnclosingWriter());
  return SKIP_BODY;
 } catch (Exception e) {
  throw new JspException(e.toString());
 }


Can anyone explain this behavior???

Thanks for your help!

Best regards,

Richard




Logging bits and pieces

2001-06-25 Thread Mark Muffett



I'm gradually getting my logging application to 
work - I can get referer, host etc from request, without any 
problems.
 
I'd like to log screen resolution, colour depth, 
etc as well, but I can't see any way of getting these except from client side 
javascript - and I can't think how to sensibly integrate this with 
JSP.
 
Any ideas???
 
Many thanks
 
Mark Muffett


calling other servlets inside a servlet...

2001-06-25 Thread Pedro Salazar

Greetings,

how can I call another servlet inside a servlet? And I would like to 
have two options: one is that the servlet called is the final servlet, 
and the other option is calling a servlet just to get a result 
(outputstream) o the main servlet and continue processing the main servlet.
This is just a servlet question specification or it depends if I'm 
working on tomcat or other product?

thanks,
Pedro Salazar.




RE: TOMCAT3.2.1 + apache + jetspeed 1.3 on NT

2001-06-25 Thread Michael Wentzel

> if anyone has used the above configuration , kindly help with the
following
> as soon as i get the default jetspeed login page and try to create new
user  , i am > taken to the next screen allright but the intended mail
containing the secret key 
> never reaches me.the tomcat console shhows the error as...
>  - ctx (  / jetspeed + /css/default.css + null)  connection aborted by
peer : 
> socket write arror

I don't know about using jetspeed(haven't worked with it) but your socket
write error is due to the client(webbrowser) closing the connection for the
default.css file because it realized it already has it in local cache.

FYI - Please refrain from sending HTML messages to the list.  Some people
are unable to read these message and you will get responses to questions
much more quickly if everyone can read your message.  Plus the fact that
this is a usage guideline that is stated in the webpage before you subscribe
to the list.  Please, no cutesie backgrounds here!  Save the fluff for the
M$ lists;)


--- 
Michael Wentzel 
Software Developer 
Software As We Think - http://www.aswethink.com 



redirecting - ajp13

2001-06-25 Thread Shai Deljo

Hi,

Does anyone know how to redirect to a tomcat using the ajp13 protocol &
without going all the way back to the client ?
10x
Shai



Re: cannot load mod_jk

2001-06-25 Thread Shtykh Roman

My Apache is compiled with --enable-module=so

--- Pier Paolo Bortone
<[EMAIL PROTECTED]> wrote:
> Shtykh,
> 
> I have solved this problem recompiling Apache 1.3.20
> with
> option --enable-module=so
> 
> $ ./configure --prefix=PREFIX --enable-module=so
> .
> 
> For default this feature is disabled. I think that
> you should read the
> INSTALL file of apache package before compiling with
> feature above.
> 
> Hope of help.
> 
> Pier Paolo.
> - Original Message -
> From: "Shtykh Roman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 9:27 AM
> Subject: cannot load mod_jk
> 
> 
> > I have a problem with mod_jk. When I do apachectl
> > configtest I get an error:
> >
> > Syntax error on line 8 of
> > /home/grd/m5051236/tomcat/conf/mod_jk.conf-auto:
> > Cannot load
> > /home/grd/m5051236/apache/libexec/mod_jk.so into
> > server: ld.so.1:
> /home/grd/m5051236/apache/bin/httpd:
> > fatal: relocation error: file
> > /home/grd/m5051236/apache/libexec/mod_jk.so:
> symbol
> > fdatasync: referenced symbol not found
> >
> > I would be very grateful if someone can help me to
> > solve this problem.
> >
> > Roman.
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



httpsession cookie

2001-06-25 Thread Shai Deljo

Hi,
Does anyone know how to make the httpsession cookie persistent ?

10x
Shai



TOMCAT3.2.1 + apache + jetspeed 1.3 on NT

2001-06-25 Thread Sumit Ranjan
Title: Clear Day



hi all!
   if anyone has used the above configuration , kindly help with 
the following
  as soon as i get the default jetspeed login page and try to create 
new user  , i am taken to the next screen allright but the intended mail 
containing the secret key never reaches me.the tomcat console shhows the 
error as...
  - ctx (  / jetspeed + /css/default.css 
+ null)  connection aborted by peer : socket write arror
 
.thanking in anticipation.
 
 
Sumit Ranjan


Re: getResourceAsStream doesn't find files in WEB-INF/classes

2001-06-25 Thread Andrey Kompaneev

Hi

I usually put my app.properties into WEB-INF directory and use:
.getResourceAsStream("WEB-INF/app.properties");

and it works fine.

Best regards,
Andrew Kompaneev, Expert.
AlconsSoft InformSystems Ltd.,
http://www.alconssoft.ru/eng



Latin2 code page

2001-06-25 Thread Rousseau, Jimmy



Hi,
 
I am using Czech 
characters (charset=windows-1250 ; that is Latin2 code page) in my .jsp pages, 
and the accented characters get transformed into question marks. How can I solve 
this?
 
Cheers,
Jimmy.
 


Q for tomcat startup

2001-06-25 Thread ywpark

Hi !

I am a new comer for jsp programming and have found some error while I
was
bringing up tomcat 3.2 on solaris 2.7. As a matter of fact, I've I
successfully
run tomcat several times but failed this time not knowing the reason.
Instead, I only found the following message

Using classpath:
/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/jaxp.jar:/usr/local/jakarta-tomcat/lib/parser.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/j2se/lib/tools.jar:.:/home1/oracle8i/app/oracle/product/8.1.5/jlib:/home1/oracle8i/app/oracle/product/8.1.5/jdbc/lib/classes111.zip:/home1/oracle8i/app/oracle/product/8.1.5/jdbc/lib/nls_charset11.zip

2001-06-25 08:51:04 - ContextManager: Adding context Ctx( /examples )
Starting tomcat. Check logs/tomcat.log for error messages
2001-06-25 08:51:04 - ContextManager: Adding context Ctx( /admin )
2001-06-25 08:51:04 - ContextManager: Adding context Ctx( /ywpark )
2001-06-25 08:51:04 - ContextManager: Adding context Ctx(  )
2001-06-25 08:51:04 - ContextManager: Adding context Ctx( /test )
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
javax.servlet.http.LocalStrings, locale ko
 at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)

 at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
 at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
 at javax.servlet.http.HttpServlet.(HttpServlet.java:144)
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)

 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)

 at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)

 at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)




I believe that somebody have experienced this before.






Re: Tomcat not putting session objects into JSP page context? (repost...)

2001-06-25 Thread Richard Sand

I maybe had gotten sloppy with my coding- I thought that a call to
pageContext without specifying the scope would search all contexts.  Yes,
other app servers are more forgiving, and perhaps not strictly compliant.

Thanks for your help!

Best regards,

Richard
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 2:03 PM
Subject: Re: Tomcat not putting session objects into JSP page context?
(repost...)


>
> I think the problem is, you're using:
>
>  Object obj = pageContext.getAttribute("loginBean");
>
> The JSP spec defines this as returning an object that occurs at *page*
> scope.  Try instead:
>
>  Object obj = pageContext.getAttribute("loginBean",
>  pageContext.SESSION_SCOPE );
>
> This should work.  As to why the current stuff gives you the result you
> want in JRun or iPlanet, can't say --
> I have heard that JRun is more "forgiving" -- ie, provides extra
behaviours
> beyond the spec -- and
> maybe this is a case of that.
>
> - Fernando
>
>
>
>
>
>
> Hi all- I'm sorry for the repost but this is still stumping me.  I'm using
> Tomcat 3.2.2 natively (over port 8080).
>  - Original Message -
>  From: Richard Sand
>  To: [EMAIL PROTECTED]
>  Sent: Friday, June 22, 2001 3:19 PM
>  Subject: Tomcat not putting session objects into JSP page context?
>
>  Hi all- I've got a JSP/Javabean application that works fine under JRun
and
>  iPlanet Web Server.  However, when I use Tomcat, it does not seem to be
>  instantiating new session variables if they don't already exist.  In the
>  top of my JSP page, I have:
>
>  
>
>  And further down in the page I do (actually inside a TagLib, but I tried
>  it in the page as well as a test):
>
>Object obj = pageContext.getAttribute("loginBean");
>
>  But obj comes back as null.  If I try:
>
>   LoginBean tlb = (LoginBean) session.getAttribute("loginBean");
>
>  then I get the bean!  Why is my call to pageContext failing to get
>  loginBean, especially considering that this works on other Java
>  application servers?
>
>  Thanks for any help!
>
>  Best regards,
>
>  Richard
>
>
>
>
>




Re: getResourceAsStream doesn't find files in WEB-INF/classes

2001-06-25 Thread Richard Sand

What is interesting is that if I move the properties files out of the
/WEB-INF/classes directory and into another separate directory that is
explicitly set in my classpath, then it works.  But I know that the /WEB-INF
directory is working (i.e. it is a context for "/") because my web.xml
settings are working fine.

Best regards,

Richard

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 3:22 PM
Subject: Re: getResourceAsStream doesn't find files in WEB-INF/classes


>
> Try removing the beginning "/". ie
getClass().getResourceAsStream("app.properties");
>
> Christopher Lambrou,
> CGL Computer Services, Inc.
> Empire State Building,
> PMB 16J Suite 3304
> New York, NY 10118
> Tel: (212) 971-9723
> Fax: (212) 564-1135
> URL: http://www.cglcomputer.com
> Email: [EMAIL PROTECTED]
>
> On 6/22/2001 14:37:38, you said:
> >Hi- I've deployed an application with Tomcat at the root (i.e. "/").  At
one
> >point I load a resource file with the command:
> >
> >InputStream is = getClass().getResourceAsStream("/app.properties");
> >
> >But Tomcat throws an exception here if the file app.properties is in the
> >/WEB-INF/classes directory.  If I copy it into a directory that is in the
> >default CLASSPATH, then it works fine.  Isn't the WEB-INF/classes
directory
> >for each deployed application automatically added to the Tomcat
classpath?
> >Is the behavior I'm seeing the expected behavior?
> >
> >I hope I'm just doing something thick... otherwise, its more problematic
to
> >be able to bundle up an application, because the resource files would
need
> >to be copied somewhere else.  Any advice?
> >
> >BTW Tomcat 3.2.2 on Win2k, no web server (i.e. Tomcat default, port
8080).
> >
> >Thanks!
> >
> >-Richard
> >
> >
>
>




AW: IIS - Tomcat Configuration

2001-06-25 Thread Hessing Ingo

 
Hi!
 
You can find the mounting in the file uriworkermap.properties. Here you
can mount a context to the standard jni worker named "inprocess". Here
is an example that mounts both the "servlet" and the "examples" context
to the jni worker named inprocess:
/servlet/*=inprocess
/examples/*=inprocess

Best wishes

Ingo Hessing

 

-Ursprüngliche Nachricht-
Von: mac [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 25. Juni 2001 12:25
An: [EMAIL PROTECTED]
Betreff: IIS - Tomcat Configuration


Hi,

I have follow the instruction in the HowTo to setup the
tomcat on IIS.
But I don't understand the last part of the setup. How am I
setting up the
"Redirect contexts to the JNI workers". What is the mean by
modify the mount
file to mount contexts to the JNI worker.

Hope to get your reply soon. Thanks in advance.

Regards,
Kim Hong






using Tomcat's Jsp-Engine from other web-server (Jigsaw)

2001-06-25 Thread Christian . Schildt

Hi,

I am trying to use the Tomcat's Jsp-engine from other web server Jigsaw. In
the manual of the Jigsaw is said that I have to redirect *.jsp requests to
the according servlet. I redirect to JspServlet.class. The redirection
functions but the servlet does not work (jsp is not compiled and not
executed).

My questions:
1) Have I taken a wrong servlet.
2) Is it possible to run the jsp-servlet directly without running Tomcat.
3) Wchich parameters are required.

Mit freundlichen Grüßen

Christian Schildt
Diplom-Betriebswirt (FH)

Softwaredeveloper

Phone: 089/89013023
Mailto:  [EMAIL PROTECTED]

ELAXY AG
Gutenbergstr. 5
D-82178 Puchheim bei München
Phone: +089/8901300
Fax:   +089/89013089
www.elaxy.com






Re: Tomcat not putting session objects into JSP page context? (repost...)

2001-06-25 Thread Fernando_Salazar


I think the problem is, you're using:

 Object obj = pageContext.getAttribute("loginBean");

The JSP spec defines this as returning an object that occurs at *page*
scope.  Try instead:

 Object obj = pageContext.getAttribute("loginBean",
 pageContext.SESSION_SCOPE );

This should work.  As to why the current stuff gives you the result you
want in JRun or iPlanet, can't say --
I have heard that JRun is more "forgiving" -- ie, provides extra behaviours
beyond the spec -- and
maybe this is a case of that.

- Fernando






Hi all- I'm sorry for the repost but this is still stumping me.  I'm using
Tomcat 3.2.2 natively (over port 8080).
 - Original Message -
 From: Richard Sand
 To: [EMAIL PROTECTED]
 Sent: Friday, June 22, 2001 3:19 PM
 Subject: Tomcat not putting session objects into JSP page context?

 Hi all- I've got a JSP/Javabean application that works fine under JRun and
 iPlanet Web Server.  However, when I use Tomcat, it does not seem to be
 instantiating new session variables if they don't already exist.  In the
 top of my JSP page, I have:

 

 And further down in the page I do (actually inside a TagLib, but I tried
 it in the page as well as a test):

   Object obj = pageContext.getAttribute("loginBean");

 But obj comes back as null.  If I try:

  LoginBean tlb = (LoginBean) session.getAttribute("loginBean");

 then I get the bean!  Why is my call to pageContext failing to get
 loginBean, especially considering that this works on other Java
 application servers?

 Thanks for any help!

 Best regards,

 Richard







nt service problem

2001-06-25 Thread Marcin Gryszkalis

hello
I have:
Tomcat 3.2.2
jdk 1.3.1
Win2000sp2
Apache 1.3.20

I installed it and Tomcat runs well standalone
 - serves pages on port 8080
 - runs jsp-s requested from apache

After trying tu run it as a service after few problems
(paths with spaces, fixed) I installed it and started as service.
And here is the problem - it doesn't reply. 

It's like that: after starting it serves static pages (8080)
but after trying .jsp / servlet it becomes deaf to any requests.
(even static pages are not served), It also takes much more time to stop
the service (I guess it's just killed)

What I know:
 - logs are standard (mod_jk.log is empty)
 - ports 8080, 8007, 8009 are open (checked with nmap)
   but cannot get any data from that

so, everything is like in standalone mode, except it doesn't
reply.

Wrapper.conf is ok, I set:
wrapper.tomcat_home=c:\ApacheGroup\Tomcat
wrapper.java_home=c:\jdk

greetings
Marcin

-- 
  .db,  $db. .db, Marcin Gryszkalis <[EMAIL PROTECTED]>
  $$'  `""  $$'  `"' $$'  `$$ 
  $$.  .ss  $$   $$$$ (...) QED.  (QED translates from the Latin
  `"8$$8"'  88   8888 as "So what?")





RE: Tomcat not putting session objects into JSP page context? (repost...)

2001-06-25 Thread Randy Layman


First, if you want people on the list to respond, you should post in
plain text (a significant number use text-only email readers, which makes
the message you sent very hard to read).

Second, if you want you object to be found from the PageContext
object, then you need to put it there by using a scope="page".  If other
application servers do this, then they are wrong - this behavior is
specified very clearly in the spec.

Randy

-Original Message-
From: Richard Sand [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 6:33 AM
To: [EMAIL PROTECTED]
Subject: Tomcat not putting session objects into JSP page context?
(repost...)


Hi all- I'm sorry for the repost but this is still stumping me.  I'm using
Tomcat 3.2.2 natively (over port 8080).  
- Original Message - 
From: Richard Sand 
To: [EMAIL PROTECTED] 
Sent: Friday, June 22, 2001 3:19 PM
Subject: Tomcat not putting session objects into JSP page context?


Hi all- I've got a JSP/Javabean application that works fine under JRun and
iPlanet Web Server.  However, when I use Tomcat, it does not seem to be
instantiating new session variables if they don't already exist.  In the top
of my JSP page, I have:



And further down in the page I do (actually inside a TagLib, but I tried it
in the page as well as a test):

  Object obj = pageContext.getAttribute("loginBean");

But obj comes back as null.  If I try:
 
 LoginBean tlb = (LoginBean) session.getAttribute("loginBean");

then I get the bean!  Why is my call to pageContext failing to get
loginBean, especially considering that this works on other Java application
servers?

Thanks for any help!

Best regards,

Richard



RE: Tomcat as a Service in Win 2k

2001-06-25 Thread Randy Layman


Generally this is due to some form of Path error causing the service
not to be able to start.  There are three things to check:
1.  The path to wrapper.properties is correct (its in the registry
under HKEY_LOCAL_MACHINE\Services\CurrentControlSet\.
2.  The values of TOMCAT_HOME or JAVA_HOME are incorrect
3.  You have installed Tomcat or Java into a directory that has a
space in its name.

Randy

> -Original Message-
> From: Tomeu Bennàssar [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 6:37 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat as a Service in Win 2k
> 
> 
> Hi:
> 
> I have installed Tomcat 3.2.2 on a Win 2k server and I have tried to
> configure it as a service but an error comes out when I start the
> service. The error is:
> 
> The Jakarta service is starting.
> The Jakarta service could not be started.
> The service did not report an error.
> More help is available by typing NET HELPMSG 3534.
> 
> But when I execute NET HELPMSG 3534 no information is given about the
> error.
> 
> Has anyone resolved this error? If you have, please tell me 
> how did you
> do it?
> 
> Best regards
> Tomeu Bennàssar
> 



RE: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-25 Thread Randy Layman


No, that's how things are supposed to work - contexts are
independent of each other.

Randy


> -Original Message-
> From: niv the tool [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 24, 2001 11:42 AM
> To: [EMAIL PROTECTED]; 'Carl Rosenberger'
> Subject: RE: ***ANOTHER TOMCAT CLASSPATH BUG***
> 
> 
> Let me rephrase 
> 
> I have 2 contexts in tomcat 
> 1. my-web-app context
> 2. soap_2_2 context
> 
> In order for context2 to see my context 1 classes I must add
> /my-web-app-dir/web-inf/classes
> To the CLASSPATH
> 
> Adding this makes context 1 not to see the jars in
> /my-web-app-dir/web-inf/lib
> 
> 
> Weird isn't it
> 



RE: Info Required : Very urgent please !

2001-06-25 Thread Michael Wentzel

> We have just finished the development of a business critical 
> application to
> run on JSP/tomcat and SuSe Linux and are implementing it. 

??? You finished development but NOW your implementing it???
Sounds confusing to me.  Do you mean your deploying it?

> We need confirmation whether we can release a commercial application 
> on 'tomcat' and if we need any support, does any company offer 
> support at cost.

As far as whether you can release a commercial app with tomcat.
Take a look at the license.  Hint: It's the standard Apache license
if that gives you any ideas.

For support, I believe that this user group, along with several sites
around the web( do a google search ) for tomcat provide enough support
for just about any possible problem out there.  Take a look at the
list archive.  Pretty much every question that could be asked has
been asked; 99.9...% of which have been answered promptly by
other users.  Free support, who can beat that!


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Info Required : Very urgent please !

2001-06-25 Thread Randy Layman


There is no cost for distributing Tomcat (although you need to be
careful about distributing a JDK from Sun).

As far as I know, there are no companies that are selling support
for Tomcat, although I think a few individuals on the tomcat-user list are
providing contract support for other companies.

Randy

> -Original Message-
> From: manju [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 23, 2001 11:43 AM
> To: Larry Isaacs
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Info Required : Very urgent please !
> 
> 
> Larry,
> 
> We have just finished the development of a business critical 
> application to
> run on JSP/tomcat and SuSe Linux and are implementing it. We need
> confirmation whether we can release a commercial application 
> on 'tomcat' and
> if we need any support, does any company offer support at cost.
> 
> Please reply ASAP as we need to take the decision soon.
> 
> Thanks,
> 
> Manju
> 
> 



RE: how to change list subscription options

2001-06-25 Thread Randy Layman


You need to unsubscribe from the digest and subscribe to the regular
list.

To unsubscribe from the digest send mail to
[EMAIL PROTECTED]
(assuming that is the account you are subscribed as).  Remember to return
the confirmation email.

And to subscribe, send email to [EMAIL PROTECTED]

Randy


> -Original Message-
> From: wasims@comsats [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 23, 2001 2:18 AM
> To: [EMAIL PROTECTED]
> Subject: how to change list subscription options
> 
> 
> Is there no way I can change my subscription options to 
> receive individual
> messages rather than a digest?
> 
> Anwar
> 
> 



Re: ssl on tomcat?

2001-06-25 Thread Andrey Kompaneev

Hi

> can anybody tell me if tomcat (standalone) supports SSL ?
Yes. This is from server.xml:



Best regards,
Andrew Kompaneev, Expert.
AlconsSoft InformSystems Ltd.,
http://www.alconssoft.ru/eng



Tomcat not putting session objects into JSP page context? (repost...)

2001-06-25 Thread Richard Sand



Hi all- I'm sorry for the repost but this is still 
stumping me.  I'm using Tomcat 3.2.2 natively (over port 8080).  


  - Original Message - 
  From: 
  Richard 
  Sand 
  To: [EMAIL PROTECTED] 
  Sent: Friday, June 22, 2001 3:19 PM
  Subject: Tomcat not putting session 
  objects into JSP page context?
  
  Hi all- I've got a JSP/Javabean application that 
  works fine under JRun and iPlanet Web Server.  However, when I use 
  Tomcat, it does not seem to be instantiating new session variables if they 
  don't already exist.  In the top of my JSP page, I have:
   
  
   
  And further down in the page I do (actually 
  inside a TagLib, but I tried it in the page as well as a test):
   
    Object obj = 
  pageContext.getAttribute("loginBean");
   
  But obj comes back as null.  If 
  I try:
   
   LoginBean tlb = (LoginBean) 
  session.getAttribute("loginBean");
   
  then I get the bean!  Why is my call to 
  pageContext failing to get loginBean, especially considering that this works 
  on other Java application servers?
   
  Thanks for any help!
   
  Best regards,
   
  Richard
   


Tomcat as a Service in Win 2k

2001-06-25 Thread Tomeu Bennàssar

Hi:

I have installed Tomcat 3.2.2 on a Win 2k server and I have tried to
configure it as a service but an error comes out when I start the
service. The error is:

The Jakarta service is starting.
The Jakarta service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.

But when I execute NET HELPMSG 3534 no information is given about the
error.

Has anyone resolved this error? If you have, please tell me how did you
do it?

Best regards
Tomeu Bennàssar




ssl on tomcat?

2001-06-25 Thread Lukas Sägesser

can anybody tell me if tomcat (standalone) supports SSL ?

tnx!!
l.sägesser




IIS - Tomcat Configuration

2001-06-25 Thread mac



Hi,    I have follow the 
instruction in the HowTo to setup thetomcat on IIS.But I don't 
understand the last part of the setup. How am Isetting up the"Redirect 
contexts to the JNI workers". What is the mean bymodify the mountfile to 
mount contexts to the JNI worker.    Hope to get your 
reply soon. Thanks in advance.Regards,Kim 
Hong


web pages in tomcat context not showing gif images through apache

2001-06-25 Thread pedro salazar

Greetings,

I put apache working with tomcat [mod_jk] and even in the default web pages
that come in tomcat where exists gif images, through apache the images don't
appear in web pages...

For example,

http://localhost:8080/admin -> acess directly to tomcat, the images come ok

http://localhost/admin -> the web site appears ok, but images are missing...

Well, the more strange is that in my old linux redhat 6.2 with apache 1.3.14
it works fine.
In my new release, with redhat 7.0 or 7.1 [with kernel 2.4.x] I have this
problem with the same configuration...

--





Re: JkMount in httpd.conf

2001-06-25 Thread Richard Richter

> From: Dmitri Colebatch <[EMAIL PROTECTED]>
> Subject: Re: JkMount in httpd.conf
> Date: Mon, 25 Jun 2001 09:27:05 +1000
>
> I'm not sure if this has been solved or not, but I had problems getting the 
> virtual hosts to work in server.xml when the virtual host was based on port 
> and not name.  Is this is what you're trying to do?
> dim

Hi Dim (and all at all)...

My virtual host is running well. Port or name - it doesn't matter - and there is 
a difference between your case and my one - I'm using apache for virtual host 
and your question is about server.xml (I have no experience with that kind of 
virtual host).

Strange for me is that one JkMount works and another doesn't. I read "Working 
with mod_jk" papers, but there are more examples than formal definitions. So I 
can ask:

Is this path "/intranet/WEB-INF/classes/Hello" covered with these JkMounts?
1.  JkMount /intranet/* worker
2.  JkMount /*classes/* worker
3.  JkMount /classes/* worker
Is second parameter used as a needed substring or what?

And when talking about redirection from Apache to Tomcat... One another 
question:

I have a picture x.jpg in Tomcat project and so it is deployed as 
webapps/payportal/x.jpg among another jsps. Now when browser loads this jsp (in 
fact on client side it is only html) it finds out that there is an image and 
sends a reqest for it, doesn't it?
Now - how can Apache know, that this image is not in my web-data/payportal/x.jpg 
(which doesn't exist in fact) and that this request has to be redirected to 
Tomcat. JPG is not JSP! I have no JkMount for this case?
Is there any implicit redirection?

These mechanisms are not transparent for me (or "I don't understend them"). ;-)

Richard "Virgo" Richter

> On Fri, 22 Jun 2001 23:22, Richard Richter wrote:
> > Hello...
> >
> > I'm using Apache with mod_jk and Tomcat for jsps and servlets. JSP is
> > without problem, but servlet don't want to run. Because informations about
> > absolute path of requested document is written to terminal, where Tomcat
> > was started, I found out that servlet (URI:
> > http://poseidon.bgs.sk:/intranet/WEB-INF/classes/Hello) is not
> > translated from relative to absolute path - nothing apears on terminal.
> >
> > I think, that Apache don't redirect this request to Tomcat (or appropriate
> > worker)... my httpd.conf has this section:
> >
> > 
> > ServerAdmin [EMAIL PROTECTED]
> > DocumentRoot /export/home/virgo/web-data
> > 
> > Options Indexes FollowSymLinks
> > AllowOverride None
> > SetHandler default-handler
> > Order allow,deny
> > Allow from all
> > 
> > ServerName poseidon.bgs.sk
> > JkMount /*.jsp virgo
> > JkMount /intranet/* virgo
> > ErrorLog
> > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/error_log TransferLog
> > /opt/oracle/ias/product/8.1.7/Apache/Apache/logs/access_ log
> > 
> >
> > *.jsp works good, but second JkMount not... I tried many versions of second
> > field of that line - but nothing. Always 404 Forbidden (Apache signed on
> > the bottom of page ;-))... How I have to force Apache to redirect requests
> > for servlets (eg. for URI specified upper) to Tomcat (or worker called
> > virgo in my case)???
> >
> > Thanks for any suggestion
> >
> > Richard Richter ([EMAIL PROTECTED])
> > Application Programmer, Business Global Systems a. s.

Richard Richter ([EMAIL PROTECTED])
Application Programmer, Business Global Systems a. s.




Grant SocketPermission

2001-06-25 Thread Andrey Kompaneev

Hi

I have read help and FAQ but I don't understand - how can I grant SocketPermission to 
my application (servlets) under Tomcat 3.2.2?

I uncomment out the entry in server.xml for the ContextInterceptor which defines the 
class named PolicyInterceptor in the server.xml
Put permission into tomcat.plicy:

grant codeBase "file:${tomcat.home}/webapps/myapps" {
permission java.security.AllPermission;
permission java.net.SocketPermission "hostname:9000-", 
"listen,connect,accept,resolve";
};

And start tomcat: "startup -security" but my application (servlets) doesn't start and 
work.

Environment: W2K, Tomcat 3.2.2, SUN JDK 1.3.

Best regards,
Andrew Kompaneev, Expert.
AlconsSoft InformSystems Ltd.,
http://www.alconssoft.ru/eng




Servlet configuration

2001-06-25 Thread Celson Lima

Hi there,
I'm beginner with TOMCAT, which means maybe my question is too simple for
you, but it is really "advanced" to me. I would like get help with the
following: I have Cocoon installed together with TOMCAT and it is working
perfectly. I would like to use cocoon to handle the presentation issues of
my site. However, I would like to have my own "servlet",which means, I
would like to use my own directory (let's say, /webapps/cpl ) instead of
having my things inside the Cocoon's directory (/webapps/cocoon). My
problem starts when I try do display a xml page (lets say
/cpl/prms/getparms.xml) that is placed within my directory.
I configured my "/cpl/web.xml" as shown below and I think because of that
the invocation of "/cpl/prms/getparms.xml" is not sent to Cocoon rather to
my servlet "/cpl". Is this correct and if it is, is there anything I can do
in order to send that call directly to Cocoon?

cpl
/cpl

Thank you in advance for your kind attention,
Celson




Re: cannot load mod_jk

2001-06-25 Thread Pier Paolo Bortone

Shtykh,

I have solved this problem recompiling Apache 1.3.20 with
option --enable-module=so

$ ./configure --prefix=PREFIX --enable-module=so
.

For default this feature is disabled. I think that you should read the
INSTALL file of apache package before compiling with feature above.

Hope of help.

Pier Paolo.
- Original Message -
From: "Shtykh Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 9:27 AM
Subject: cannot load mod_jk


> I have a problem with mod_jk. When I do apachectl
> configtest I get an error:
>
> Syntax error on line 8 of
> /home/grd/m5051236/tomcat/conf/mod_jk.conf-auto:
> Cannot load
> /home/grd/m5051236/apache/libexec/mod_jk.so into
> server: ld.so.1: /home/grd/m5051236/apache/bin/httpd:
> fatal: relocation error: file
> /home/grd/m5051236/apache/libexec/mod_jk.so: symbol
> fdatasync: referenced symbol not found
>
> I would be very grateful if someone can help me to
> solve this problem.
>
> Roman.
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/




client certificates

2001-06-25 Thread T.Stefaniak




I have problem with reading client certificate 
in servlet.
I use Tomcat 3.2.2 and Apache ( client cert is 
in *.p12 file ).
Give me some example code with reading 

certificate in servlet, please. I try to use 
some examples
but doesn't work. I think that configuration 
of Apache and Tomcat
is OK. 
Thanks,
Tomek


ODP: Transcription/Translation Services*****

2001-06-25 Thread Jankowski, Dariusz

A to przetłumaczysz?

> -Oryginalna wiadomość-
> Od: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Wysłano: 25 czerwca 2001 04:49
> Temat: Transcription/Translation Services*
> 
> 
> Attention:  Church Groups/Religious Groups
> 
> Attention:  Presidents, Vice-President Managers and Assistants 
> 
> Attention:  Marketing Companies, and Online Businesses:
> 
> Transcription and Translation Services AVAILABLE WORLDWIDE! 
> 
> CALL now for a quote:  (412) 521-9922
> 24 Hours a day, including Sundays and Holidays.
> 
> (PLEASE DO NOT REPLY TO E-MAIL)
> 
> 
> 
> ***  T R A N S L A T I O N  ***
> 
> We provide translation to and from ANY language.  (We 
> specialize in web site translations!)  (We make this process 
> EASY for you!)
> 
> Making your web site multi-lingual will make a HUGE HUGE 
> difference in your business! (Millions of people live in the 
> US but prefer to speak, read and write in their own language!)  
> 
> All indo-European Languages including German, French, 
> Spanish, Portuguese, Russian, Dutch and all others.
> 
> ALL indo-Asian languages including Japanese, Chinese, Korean, 
> Vietnamese, and all others.
> 
> We use only professional, educated and experienced translators!
> 
> Translation services also available for:
> 
> *Documents, legal and professional
> *E-Mail correspondence
> *Technical Documents
> *Personal Letters
> 
> We use only professional and experienced translators
> 
> Web Masters!  We make YOU look good.  Offer our services to 
> your clients now!!
> 
> CALL now for a quote:  (412) 521-9922
> 24 Hours a day, including Sundays and Holidays
> 
> (PLEASE DO NOT REPLY TO E-MAIL)
> 
> 
> 
>*** T R A N S C R I P I O N ***
> 
> Attention Office Managers, Professors, Teachers, and other 
> Professional Assistants and Pastors
> 
> * Let us take your source material (audio, video) and 
> transcribe it into CLEAN, ACCURATE, and PROFESSIONAL text format. 
> 
> Transcription services available for: 
> 
> *Educational Tool Development
> *Legal Documentation
> *Government 
> *Personal Memo
> *Research
> *Television
> *General Entertainment
> *Churches and Religious Groups
> *General business
> *All transcribers are professional and experienced!
> 
> FAST TURN AROUND AND OVERNIGHT BY REQUEST
> * Let us take your source material (audio, video) and 
> transcribe it into CLEAN, ACCURATE, and PROFESSIONAL text format. 
> 
> (Editing and proofing services available)
> 
> CALL now for a quote:  (412) 521-9922
> 24 Hours a day, including Sundays and Holidays
> 
> (PLEASE DO NOT REPLY TO E-MAIL)
> 
> To be removed:
> 
> Send message with your e-mail address in the subject line to:
> 
> [EMAIL PROTECTED]
> 
> 
> 



AW: error 500: servlet run but JSP not: why?

2001-06-25 Thread Christian Amann

Hi,

you have to place tools.jar from jdk into tomcat-lib.

Christian :)



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 25. Juni 2001 09:03
An: [EMAIL PROTECTED]
Betreff: Re: error 500: servlet run but JSP not: why?


Thankyou for answering me.
I use tomcat rpm istallation... however JAVA_HOME is set:

[root@localhost rino]# echo $JAVA_HOME
/usr/java/jdk1.3.0_02


On Sunday 24 June 2001 07:11, you wrote:
> set your java home path in the startup.bat

> > I try to use example:
> > the servlet's example run correctly but the jsp's
> > exaples not!
> > the browser give me the error: "error 500"
> > What can I do?
> >
> > Thankyou in advance, Rino.
> >
> >
> >
> >
> > Error: 500
> >
> > Location: /examples/jsp/num/numguess.jsp
> >
> > Internal Servlet Error:
> >
> > javax.servlet.ServletException: sun/tools/javac/Main
> > at
[...]




Re: Logging System.out/err in Tomcat

2001-06-25 Thread Brian Oliver

Have you tried using Log4J?

Yep... Log4J is what you need.

http://jakarta.apache.org/log4j/docs/index.html

-- Brian

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Logging System.out/err in Tomcat
>Date: Mon, 25 Jun 2001 08:15:05 +0200
>
>Hi out there!
>
>I've got a serious problem of logging in Tomcat 3.2.1.
>When using the build-in Webserver for testing, the outputs to 
>System.out/err
>are only logged to the screen.
>
>Is there any way to log this output to a file without some hacks like
>writing a special servlet that resets the System.out/err to some own 
>stream?
>
>
>By the way: Is there anywhere a full description of the server.xml file. 
>The
>only i found is the 'Tomcat's Configuration Files' in the 'Tomcat - A
>Minimalistic User's Guide' page developed with the tomcat documentation. 
>But
>neither this page or the descriptions in the file itself are really
>complete.
>
>
>
>Thanks
>
>Thorsten
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




cannot load mod_jk

2001-06-25 Thread Shtykh Roman

I have a problem with mod_jk. When I do apachectl
configtest I get an error:

Syntax error on line 8 of
/home/grd/m5051236/tomcat/conf/mod_jk.conf-auto:
Cannot load
/home/grd/m5051236/apache/libexec/mod_jk.so into
server: ld.so.1: /home/grd/m5051236/apache/bin/httpd:
fatal: relocation error: file
/home/grd/m5051236/apache/libexec/mod_jk.so: symbol
fdatasync: referenced symbol not found

I would be very grateful if someone can help me to
solve this problem.

Roman.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/