Ajp13 config + dll for IIS

2001-11-14 Thread Abbrederis Thomas tab09

Hello to all!

I'm searching for tomcat 4.0.1 the ajp1.3 redirect dll for IIS 4.

Did anybody have information about that?!?
Where I can find it and how does it work?!?

Thanks for reply!

Best regards

inet-logistics GmbH
Thomas Abbrederis
(software engineering)
Holzriedstrasse 29
A-6961 Wolfurt
mailto:[EMAIL PROTECTED]
http://www.inet-logistics.com


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




AW: Ajp13 config + dll for IIS

2001-11-14 Thread Hessing Ingo


Hi!

I've heard that the ISAPI_REDIRECT.DLL for Tomcat 3.3 might work with
Tomcat 4.0.1, too.

Can anybody verify this or does anybody know when a special version for
Tomcat 4.0.1 will be released?

bestWISHES

Ingo

 -Ursprüngliche Nachricht-
 Von: Abbrederis Thomas tab09 [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. November 2001 09:04
 An: 'Tomcat Users List'
 Betreff: Ajp13 config + dll for IIS
 
 
 Hello to all!
 
 I'm searching for tomcat 4.0.1 the ajp1.3 redirect dll for IIS 4.
 
 Did anybody have information about that?!?
 Where I can find it and how does it work?!?
 
 Thanks for reply!
 
 Best regards
 
 inet-logistics GmbH
 Thomas Abbrederis
 (software engineering)
 Holzriedstrasse 29
 A-6961 Wolfurt
 mailto:[EMAIL PROTECTED]
 http://www.inet-logistics.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




Re: Got him...

2001-11-14 Thread Endre Stølsvik

On Wed, 14 Nov 2001, Pier Fumagalli wrote:

| On 14/11/2001 01:01 am, Pier Fumagalli [EMAIL PROTECTED] wrote:
|
|  On 14/11/2001 12:42 am, Martin van den Bemt [EMAIL PROTECTED] wrote:
| 
|  nice job ;))
|  Why don't you put the subcriber email address in by default (in the text
|  footer of the mail or something).. Saves you working late ;))
| 
|  I don't think it's possible with EZMLM to modify the content per each
|  subscriber... I'll see, though!
|
| Oh... One more thing... That's kinda impossible also because messages are
| prepared once and then sent to the email delivery service with one message
| copy and a list of addresses... Changing this behavior would mean greatly
| increasing the size of the queue, adding a bunch of overhead (since for
| every subscriber, the message needs to be parsed and prepared individually),
| and so on... Not a good idea...

Patch that sending part of the program to just include the address at the
bottom? Or as a extra header? Just chuck it in there, kind of.. It already
have to handle the address anyways, since it talks to the MTA.


-- 
Mvh,
Endre


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




Tomcat 4.0.1 taglib problem

2001-11-14 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi,

i changed from Apache 1.3.19/Tomcat 3.2.3 to Apache 1.3.19/Tomcat
4.0.1 on SUSE Linux 7.3. Now I'am encountering a taglib problem. My
dynamic bodycontents are not processed in the proper way anymore. I
put an url rewriting example example in this mail.

I hope somebody can help.

Thomas



### example.jsp ###

A href=myLib:url%= myBean.getURL() %/myLib:urltext/A


### output Tomcat 3.2.3 (right) ###

A href=http://localhost/target.jsp;text/A


### output Tomcat 4.0.1 (wrong) ###

A href=%= myBean.getURL() %text/A


### example.tld ###

tag
  nameurl/name
  tagclassde.iop.webrun.shared.taglib.UrlTag/tagclass
  bodycontenttagdependent/bodycontent
  inforewrite url/info
/tag


### UrlTag-Code ###

import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.IOException;

public class UrlTag extends BodyTagSupport
{
  public int doAfterBody() throws JspException
  {
BodyContent bodyContent = getBodyContent();
String baseURL  = bodyContent.getString();
bodyContent.clearBody();
try
{
  HttpServletResponse response = (HttpServletResponse)
pageContext.getResponse();
  String encodedURL = response.encodeURL(baseURL);
  this.getPreviousOut().print(encodedURL);
}
catch(IOException e)
{
  throw new JspTagException(I/O exception  + e.getMessage());
}
return SKIP_BODY;
  }
}



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




AW: mod_jk / Ajp13 config fix on heavily loaded system

2001-11-14 Thread Schulz, Sebastian, fiscus GmbH, Bonn

what's about loadbalancing?

say, we have defined local loadbalancing using
5 ajp13-worker at workers.properties, and we
have at server.xml:
Ajp13Connector port=8009 
   maxThreads=100
   maxSpareThreads=50
   minSpareThreads=10 /

Does this mean, we can support through the
loadbalancer 100 threads or 500 threads
(100 * number of workers(5) = 500)?

b.t.w, another question:
when using local loadbalancing, does every
worker has its own VM or are they sharing
all the same VM?

thank you,
sebastian

-Ursprüngliche Nachricht-
Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. November 2001 23:45
An: Tomcat Developers List
Cc: [EMAIL PROTECTED]
Betreff: mod_jk / Ajp13 config fix on heavily loaded system


Hi to all,

Some of you may have experienced problems on heavily 
loaded system with mod_jk and Tomcat 3.2/3.3 when using
ajp13.

As you may know, the Ajp13 connection is permanent
and is created each time a WebServer task, for
example an Apache child, have to forward a request
to Tomcat. 

And in Apache server case, the child will stay alive,
until the client requests load decrease, or when 
a child have passed 1000 requests (MaxRequestsPerChild 1000).
And till the child close the connection, the Tomcat thread
stay alive.

By default Apache server support up to 150 childs :
(MaxClients 150 in httpd.conf)

But by default, the Ajp13 Interceptor won't use more
than 100 threads, so you're stuck when the 101th Apache
child want to forward a request and see the following
infamous trace in mod_jk.log :

[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (712)]: Error reading
reply
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[wed oct 31 11:03:21 2001]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
 
In some case, Apache could be able to connect, since Tomcat listening
thread will accept incoming connection, but will drop it later if it
fail to give the socket to a new thread. In that case you'll see 
only in log :

[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (712)]: Error reading
reply

Fortunatly, the fix is easy, just configure Ajp13Connector in
server.xml to support up to 150 threads (or whatever you define
as MaxClients in Apache, didn't know how on IIS/iPlanet).

Ajp13Connector port=8009 
   maxThreads=150
   maxSpareThreads=50
   minSpareThreads=10 /

Also you should take care of the number of descriptors
opened in your webapplication, which is :

  Tomcat used descriptors (sockets, files) 
+ YouWebApp descriptors (files, sockets, jdbc...)

The JVM, like any others process have a limit on the number
of descriptors it could open (and of course on number of threads).

So take care of closing no more used socket, files and so on.


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

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

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




webapp module for combining Apache and Tomcat

2001-11-14 Thread Thomas Spiessens

Hi,
the Tomcat website states that the binary and source distributions of the
mod_webapp connector would have been added on September 19. I can't find
them on the site. Can anybody help me out with this ?

specifications :
Apache 1.3.22
Tomcat 4.0
OS : Win 2000 (!!)

Thanks,
Thomas.


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




AW: webapp module for combining Apache and Tomcat

2001-11-14 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi Thomas,

here you can find the binary distribution of mod_webapp for windows:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/b
in/win32/

Thomas



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




Re: Got him...

2001-11-14 Thread Antony Bowesman

Endre Stølsvik wrote:
 
 On Wed, 14 Nov 2001, Pier Fumagalli wrote:
 
 | On 14/11/2001 01:01 am, Pier Fumagalli [EMAIL PROTECTED] wrote:
 |
 |  On 14/11/2001 12:42 am, Martin van den Bemt [EMAIL PROTECTED] wrote:
 | 
 |  nice job ;))
 |  Why don't you put the subcriber email address in by default (in the text
 |  footer of the mail or something).. Saves you working late ;))
 | 
 |  I don't think it's possible with EZMLM to modify the content per each
 |  subscriber... I'll see, though!
 |
 | Oh... One more thing... That's kinda impossible also because messages are
 | prepared once and then sent to the email delivery service with one message
 | copy and a list of addresses... Changing this behavior would mean greatly
 | increasing the size of the queue, adding a bunch of overhead (since for
 | every subscriber, the message needs to be parsed and prepared individually),
 | and so on... Not a good idea...
 
 Patch that sending part of the program to just include the address at the
 bottom? Or as a extra header? Just chuck it in there, kind of.. It already
 have to handle the address anyways, since it talks to the MTA.

Presumably there's only a single message when it starts to talk to the
MTA.  The message only splits further down the series of hops so it
can't be possible to add an address because it no longer is in control
of the original message.

Antony

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




question about db connection?

2001-11-14 Thread The Duke

I would like set up a connection to a database with the nesescary stuff placed in 
web.xml. How do I do this? Wich attributes do I need to use? And how do I get the 
attributes out of the web.xml??

Thanks in advance.
Dennis



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




mod_webapp compiling problems

2001-11-14 Thread Petry Roman, ITS-IT

Hello,

i have some serious problems compiling mod_webapp on my Suse 7.2 System..
I downloaded APACHE 1.3.22, Tomcat 4.0.1, PHP4 and mod_perl, compiled each
of them and they work..

Tomcat works standalone and Apache also..

Then i tried to connect Apache and Tomcat with the mod_webapp module.. I
downloaded the glib2.2 binary from the jakarta site, but the only thing it
does is a segmentation fault...

then i thought.. maybe the source is with you .. and i downloaded the
webapp-module-2002.tar.gz
but i had no luck...

-- snipp ---
nrz86:~/webapp-module-2002 # ./configure
--with-apxs=/usr/local/apache/bin/apxs

Finishing up
checking for APR compilation flags... ok
checking for Makefile targets... lib apr apache-1.3
updating cache ./config.cache
creating ./config.status
creating ./Makefile
creating ./Makedefs
creating ./lib/Makefile
creating ./java/Constants.java
creating ./apache-1.3/Makefile

All done. Now you can issue make. Good luck.

-- snipp 

then a make breaks with the following error...

--- snip ---

APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/local/apache/bin/apxs \
-S CFLAGS=${APXS_CFLAGS} \
-S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
-o mod_webapp.so \
-c mod_webapp.c \
/root/webapp-module-2002/lib/libwebapp.a \
/root/webapp-module-2002/lib/libapr.a ; \
}
apxs:Error: no config variable LDFLAGS_SHLIB
Usage: apxs -g [-S var=val] -n modname
   apxs -q [-S var=val] query ...
   apxs -c [-S var=val] [-o dsofile] [-D name[=value]]
   [-I incdir] [-L libdir] [-l libname] [-Wc,flags]
   [-Wl,flags] files ...
   apxs -i [-S var=val] [-a] [-A] [-n modname] dsofile ...
   apxs -e [-S var=val] [-a] [-A] [-n modname] dsofile ...
make[2]: *** [mod_webapp.so] Error 1
make[2]: Leaving directory `/root/webapp-module-2002/apache-1.3'
make[1]: Exiting directory apache-1.3
make[1]: *** [template] Error 2
make[1]: Leaving directory `/root/webapp-module-2002'
make: *** [apache-1.3-build] Error 2
-- snipp ---

I tried to tweak the Makefile a little bit, but i had no luck..

Could anyone help me please..A search in the Archive had no luck..

thanks in advance...



mfg
Roman Petry
Microsoft Certified Systems Engineer (MCSE) 
ITS-IT
AG der Dillinger Huettenwerke
Tel.: 0049-6831-474670
Fax.: 0049-6831-473505 


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




Wrap an HttpServletRequest

2001-11-14 Thread Diego del Río

Is there any way to wrap an HttpServletRequest in Tomcat 3.2.x and then
forward the wrapped request to anoher servlet?
We need a 'decorated request' with added functionality, more precisely, we
need to add 'extra-parameters' to that request and then forward it to
another servlet that process both the original and the added parameters.
Thanks,
diego

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




RE: Wrap an HttpServletRequest

2001-11-14 Thread Martin van den Bemt

Pas the request object to that servlet eg
BlahServlet servlet = new BlahServlet();
servlet.execute(req, resp);

Mvgr,
Martin

 -Original Message-
 From: Diego del Río [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: Wrap an HttpServletRequest


 Is there any way to wrap an HttpServletRequest in Tomcat 3.2.x and then
 forward the wrapped request to anoher servlet?
 We need a 'decorated request' with added functionality, more precisely, we
 need to add 'extra-parameters' to that request and then forward it to
 another servlet that process both the original and the added parameters.
 Thanks,
 diego

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




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




Number of processes growing.

2001-11-14 Thread Laurent Michenaud

Hi,

Our web server :
Apache 1.3.14
Tomcat 3.2.3
Oracle 8.1.6 with Jdbc Thin drivers

We've got the following problem ( appearing about 10 times per day )
- The number of request on port 80 is stable( between 15-25 )
- The number of apache threads suddenly grows ( from 30 to 100 )
- The number of request on port 8009 suddently grows too ( from 50 to
190 )
- Our pool connection suddendly grows too ( from 3-4 connections to 80
max connections )

It cannot be an extern attack because the number of requests on port 80
is stable.
It seems that there is a bug somewhere.
Connections to database are not released( Pool is filled ). 
Tomcat and Apache processes are not released too even if the client
disconnected.

We only restart Tomcat to return to a stable status.

In attachment, a jpeg picture that shows a crash ( lines represent the
number of request on
port 80, on port 8009 and the number of process httpd ).

Can u help ?
 crash.gif 

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]




crash.gif
Description: crash.gif

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


RE: Principal caching with authentication

2001-11-14 Thread Bongiorno, Christian

Thanks for the input all, what I am looking for is caching the Principals of
a user in my Realm. It doesn't seem to be caching them, as every page I
click generates numerous authenticate requests. I wish to avoid this after
the user has logged in. If there is a built in way I just need to know how
to configure it. If not, that is why I would need to get a session timeout
event IN my realm so that I can throw those credentials out when the session
expires.

Chris

-Original Message-
From: Mika Goeckel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 6:24 PM
To: Tomcat Users List
Subject: Re: Principal caching with authentication


Yep, Craig, I forgot about servlets :-)

- Original Message -
From: Mika Goeckel [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 12:23 AM
Subject: Re: Principal caching with authentication


 Chris,

 sessions are there by default, you can only avoid them by specifying in
your
 %@ page session=false directive to disable them.
 Sessions are in use once you declare a jsp:usebean id=something
 scopesession with session as scope.

 Cheers, Mika
 :wq

 - Original Message -
 From: Bongiorno, Christian [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, November 14, 2001 12:06 AM
 Subject: RE: Principal caching with authentication


  How would I know if I was or wasn't using sessions? Maybe I don't
 understand
  the use of the term correctly. What is the default? I can check the
config
 
  -Original Message-
  From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 13, 2001 5:48 PM
  To: Tomcat Users List
  Subject: Re: Principal caching with authentication
 
 
 
 
  On Tue, 13 Nov 2001, Bongiorno, Christian wrote:
 
   Date: Tue, 13 Nov 2001 17:49:40 -0500
   From: Bongiorno, Christian [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: Principal caching with authentication
  
   Here is something else I am wrestling with. When a user hits a
protected
   page and authenticates, subsequent authentication requests for every
 page
   clicked on occurs. I have been reading that there is some sort of
 caching
   going on, but I still have my authenticate() method called even-though
 the
   user has been validated as having access roles for that session. So,
 maybe
   once again I am missing it, but, I could cache the credentials on my
own
  if
   I could get a session timeout event and the Principal it was using for
  that
   session. I could just do a quick lookup on the principal to see if I
 have
  it
   already -- if so return it, else get a new one.
  
  
   Am I thinking correctly?
  
 
  In Tomcat 4, the standard Authenticators cache authenticated principals
in
  the current session, ***if*** there is one (and assuming you do not turn
  it off with configuration options).  In the absence of sessions, your
  Realm.authenticate() method will get called on every request.
 
  It is also common to see your authenticate() method called twice, even
  when using sessions, if the session hasn't been created yet when
  authentication occurs.  But beyond that, as long as you're using
sessions,
  the authenticated Principal will be cached and reused throughout the
life
  of this session.
 
   Chris
  
 
  Craig
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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



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

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




Tomcat as a service

2001-11-14 Thread Owain Lewis

I am a relativley new Tomcat user, and have been
charged with the task of setting up Tomcat 3.2 to run
as a service on a Windows2000 server.

I've read lots of the documentation relating to this
and have had some success setting it up. I have
managed to create tomcat as a service which starts
automatically.
However the system we are running requires Java1.3.1
which causes an error with the program I used to set
up the service. The result being that the service
terminates when the current user logs out of the
server.

I'm struggling to find any other way of configuring
the system to work and would appreciate any
advice/experiences others have had with this problem.

Thanks in advance.

Owain Lewis

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

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




RE: Tomcat as a service

2001-11-14 Thread Jim Urban

Check out:  http://www.alexandriasc.com/software/JavaService/index.html

-Original Message-
From: Owain Lewis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 7:28 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service


I am a relativley new Tomcat user, and have been
charged with the task of setting up Tomcat 3.2 to run
as a service on a Windows2000 server.

I've read lots of the documentation relating to this
and have had some success setting it up. I have
managed to create tomcat as a service which starts
automatically.
However the system we are running requires Java1.3.1
which causes an error with the program I used to set
up the service. The result being that the service
terminates when the current user logs out of the
server.

I'm struggling to find any other way of configuring
the system to work and would appreciate any
advice/experiences others have had with this problem.

Thanks in advance.

Owain Lewis

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and
Music Charts
http://uk.my.yahoo.com

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



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




RE: Tomcat 3.2.3 and struts 1.1

2001-11-14 Thread Larry Isaacs

I'm not sure why you are getting duplicate entries in your
CLASSPATH, but it looks like it is only using the parser.jar
from the Tomcat 3.2.3 distribution.  This parser.jar is from
JAXP 1.0.1, which doesn't have a org.xml.sax.helpers.DefaultHandler.
I would guess that your linux system has a newer one.
You can replace the jaxp.jar and parser.jar on your NT system with
a newer XML parser and Tomcat should still run without problems.

Cheers,
Larry

 -Original Message-
 From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 5:07 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.2.3 and struts 1.1
 
 
 I got tomcat 3.2.3 running with struts 1.1 on linux without problems.
 
 However, on NT, which sadly i have to use as my dev boxit doesn't 
 start and it gives me the following...
 
 Any help is greatelly appreciated!!!
 
 
 
 
 D:\jakarta-tomcat-3.2.3\bintomcat run
 Including all jars in D:\jakarta-tomcat-3.2.3\lib in your CLASSPATH.
 
 Using CLASSPATH: 
 D:\jakarta-tomcat-3.2.3\classes;D:\jakarta-tomcat-3.2.3
 \lib\ant
 .jar;D:\jakarta-tomcat-3.2.3\lib\jasper.jar;D:\jakarta-tomcat-3.2.3
 \lib\jaxp.jar
 ;D:\jakarta-tomcat-3.2.3\lib\parser.jar;D:\jakarta-tomcat-3.2.3
 \lib\servlet.jar;
 D:\jakarta-tomcat-3.2.3\lib\webserver.jar;D:\jakarta-tomcat-3.2.3
 \classes;D:\jak
 arta-tomcat-3.2.3\lib\ant.jar;D:\jakarta-tomcat-3.2.3
 \lib\jasper.jar;D:\jakarta-
 tomcat-3.2.3\lib\jaxp.jar;D:\jakarta-tomcat-3.2.3
 \lib\parser.jar;D:\jakarta-tomc
 at-3.2.3\lib\servlet.jar;D:\jakarta-tomcat-3.2.3
 \lib\webserver.jar;C:\jdk1.3.1_0
 1\lib\tools.jar;C:\jdk1.3.1_01\lib\tools.jar
 
 2001-11-13 13:59:43 - ContextManager: Adding context Ctx( /examples )
 2001-11-13 13:59:43 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx( /mysite )
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx(  )
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx( /test )
 java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at 
 org.apache.tomcat.loader.AdaptiveClassLoader12.doDefineClass
 (Adaptive
 ClassLoader12.java:93)
 at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass
 (AdaptiveClassL
 oader.java:509)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at org.apache.struts.action.ActionServlet.initDigester
 (ActionServlet.jav
 a:)
 at org.apache.struts.action.ActionServlet.initMapping
 (ActionServlet.java
 :1267)
 at org.apache.struts.action.ActionServlet.init
 (ActionServlet.java:461)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.tomcat.core.ServletWrapper.doInit
 (ServletWrapper.java:317)
 
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init
 (ServletWrapper.java:296)
 at 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
 StartupInterceptor.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)
 Exception in thread main java.lang.NoClassDefFoundError: 
 org/apache/commons/di
 gester/Digester
 at org.apache.struts.action.ActionServlet.initDigester
 (ActionServlet.jav
 a:)
 at org.apache.struts.action.ActionServlet.initMapping
 (ActionServlet.java
 :1267)
 at org.apache.struts.action.ActionServlet.init
 (ActionServlet.java:461)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.tomcat.core.ServletWrapper.doInit
 (ServletWrapper.java:317)
 
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init
 (ServletWrapper.java:296)
 at 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
 StartupInterceptor.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)
 D:\jakarta-tomcat-3.2.3\bin
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL 

RE: Tomcat as a service

2001-11-14 Thread Randy Layman


If you are using jk_nt_service to run the service, modify your
wrapper.properties file (the last line) so that the JVM receives the -Xrs
parameter - this is the parameter that Sun supplied to the JVM that makes
the bug go away.

Randy


 -Original Message-
 From: Owain Lewis [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat as a service
 
 
 I am a relativley new Tomcat user, and have been
 charged with the task of setting up Tomcat 3.2 to run
 as a service on a Windows2000 server.
 
 I've read lots of the documentation relating to this
 and have had some success setting it up. I have
 managed to create tomcat as a service which starts
 automatically.
 However the system we are running requires Java1.3.1
 which causes an error with the program I used to set
 up the service. The result being that the service
 terminates when the current user logs out of the
 server.
 
 I'm struggling to find any other way of configuring
 the system to work and would appreciate any
 advice/experiences others have had with this problem.
 
 Thanks in advance.
 
 Owain Lewis
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page from News and 
 Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Tomcat as a service

2001-11-14 Thread Bongiorno, Christian

Here is how you do it -- It is detailed in the MS help docs

goto the win2k resource disk (or an old NT disk will do)
and find the 2 files  srvany.exe and instsrv.exe

create a no command batch to start tomcat. I.E if you use TC 3.2 make
tomcat start into a batch tomcatstart
(it doesn't like arguments)
now, at the commandline type

instsrv TOMCAT path-to srvany.exe

now you have to make some registry hacks.

goto  \HKEY_LOCAL_MACHINE\system\currentControlSet\services
and find your TOMCAT key

in there add sub keys to the TOMCAT service

add 
Parameters

in there add 2 string values and set their values to

AppDirectory path to tomcat
Application  path to tomcat batch

See http://home.stny.rr.com/cbongior/pics/tomcat.jpg (qulaity may not be so
good)

Now you can run tomcat like any other service. You still need to stop it the
old fashioned way though

Chris

-Original Message-
From: Owain Lewis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 8:28 AM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service


I am a relativley new Tomcat user, and have been
charged with the task of setting up Tomcat 3.2 to run
as a service on a Windows2000 server.

I've read lots of the documentation relating to this
and have had some success setting it up. I have
managed to create tomcat as a service which starts
automatically.
However the system we are running requires Java1.3.1
which causes an error with the program I used to set
up the service. The result being that the service
terminates when the current user logs out of the
server.

I'm struggling to find any other way of configuring
the system to work and would appreciate any
advice/experiences others have had with this problem.

Thanks in advance.

Owain Lewis

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and
Music Charts
http://uk.my.yahoo.com

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

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




RE: Tomcat 3.3 Selt-test failed when protocol is HTTP 1.1

2001-11-14 Thread Larry Isaacs

The self-test isn't intended to run with HTTP 1.1 as the
Expected protocol when running against Tomcat 3.3
directly.  Thus your failures in this case are normal.
If you test through an external web server that supports
HTTP 1.1, you should specify HTTP 1.1 to avoid failures.

Since the tests passing with HTTP 1.0, it would appear
that Tomcat 3.3 is operating normally in standalone.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 9:24 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3 Selt-test failed when protocol is HTTP 1.1
 
 
 Hi,
  
 I run into a problem when I try to varifying the installation 
 of Tomcat 3.3-3 and Apache 1.3.19 on the Red Hat Linux 7.1 
 box. The installation of Apache 1.3.19 before the 
 installation  of Tomcat 3.3-3 worked. I was able to get 
 statics page from it. Next I install the Tomcat 3.3-3. Here 
 is a listing of modules I installed: 
 tomcat 3.3-3, 
 tomcat-webapps-3.3-3, 
 tomcat-mod-3.3-1. 
  
 I run the JSP test with HTTP/1.0  and HTTP:/1.1. The one with 
 HTTP/1.0 is fined, But the test with HTTP protocol set to 
 HTTP/1.1 failed all tests that required the HTTP 1.1 setting. 
 Please help me with this problem. I assume that this is 
 configuration problem. But the way the Expected protocal pull 
 down ways set to HTTP/1.0 after Submit Query buttom was 
 pressed. Hence, the following listing ways show the HTTP/1.0 
 and the text Running test-tomcat 8080 192.168.0.126 HTTP/1.1
 indicate the type of protocol was selected.
  
 ***  PASSING TESTS ***
 Tomcat Self-test
 This page will show the result of executing the sanity test suite. 
 Target:  file params dispatch get requestMap post 
 wrong_request restricted jsp unavailable headers 
 security_chk_url security_chk aaa special tomcat-standalone 
 tomcat-apache client 
 Debug: 
 Port:  
 Host:  
 Expected protocol:  HTTP/1.0 HTTP/1.1 ( use HTTP/1.1 when 
 testing with Apache or a 1.1 server connector ) 
  
 init
 
 Running test-tomcat 8080 192.168.0.126 HTTP/1.0 
 --
 --
 
 jsp
 
 --
 --
 
 Test Revision: 1.47 $
 Executed in 11099 Milliseconds.
 
 FAILED Tests
 PASSED Tests
 OK ( ) GET /test/jsp/special-name.foo.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/HelloWorld.jsp HTTP/1.0 
 OK ( ) GET /test/doesNotExist.jsp HTTP/1.0 
 OK ( Getting -- HTTP/1.0 302 Found ) GET /test/jsp HTTP/1.0 
 OK ( ) GET /test/.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/HelloWorld.jsp?? HTTP/1.0 
 OK ( ) GET /test/jsp/HelloWorld.jsp?a=bc=d HTTP/1.0 
 OK ( ) GET /test/jsp/HelloWorld.jsp? HTTP/1.0 
 OK ( ) GET /test/jsp/declaration/IntegerOverflow.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/error/err.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/forward/forward.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/jsptoserv/jsptoservlet.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/initDestroy.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/classTest.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/import.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/buffer.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/buffer1.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/buffer2.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/buffer3.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/buffer4.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/comments.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/parse.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageInfo.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageLanguage.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageIsThreadSafe.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageSession.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageAutoFlush.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageError.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageExtends.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageIsErrorPage.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageContentType.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageImport2.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageImport.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/beanTest1.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/beanTest2.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/beanScopePage.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/beanScopeSession.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitOut.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitConfig.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitException.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitPageContext.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitContext.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitRequest.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitResponse.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitSession.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/implicitPageContext.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageInvalid.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageDouble.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/pageContent3.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/bigDeclaration.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/include/include.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/chinese.jsp HTTP/1.0 
 OK ( ) GET /test/jsp/japanese.jsp HTTP/1.0 
 OK ( ) GET 

AW: Wrap an HttpServletRequest

2001-11-14 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi Diego,

do it like Martin described. Or try out the RequestDispatcher:

request.setAttribute(key1, value1);
request.setAttribute(key2, value2);
[...]
RequestDispatcher rd =
getServletContext().getRequestDispatcher(myServletUrl);
rd.forward(request, response);

Thomas



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




RE: Tomcat 3.2.3 - Image loading problem

2001-11-14 Thread Larry Isaacs

What do the Apache and Tomcat logs show is happening to the
image requests?

Cheers,
Larry

 -Original Message-
 From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 11:16 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 3.2.3 - Image loading problem
 
 
 P.S. Apache is runnins as a webserver and Tomcat as an 
 appserver and are
 connected using mod_jk
 
 
 -Original Message-
 From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 8:15 PM
 To: 'Tomcat Users List'
 Subject: Tomcat 3.2.3 - Image loading problem
 
 
 I have a problem where the first time a user visits a site 
 images do not
 show up...
 However if they were to reload the page all images com up properly.
 This is on session basis.
 If i close my browser and re-open same thing happens
 
 
 Any ideas?
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




AW: Number of processes growing.

2001-11-14 Thread Thomas Rickal, IOP Unternehmensberatung GmbH

Hi Michenaud,

maybe not all of your connections are freed so that users open new
connections although there are should be free connections in your
connection pool. Check your code.

Thomas



winmail.dat
Description: application/ms-tnef

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


RE: Number of processes growing.

2001-11-14 Thread Laurent Michenaud

Hi,

Code already checked.
Debug information in our pool.log is ok too.

Note that the server is able to run ok during 4-5 hours without any
problems.

a+


-Message d'origine-
De : Thomas Rickal, IOP Unternehmensberatung GmbH
[mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 14 novembre 2001 15:23
À : 'Tomcat Users List'
Objet : AW: Number of processes growing.


Hi Michenaud,

maybe not all of your connections are freed so that users open new
connections although there are should be free connections in your
connection pool. Check your code.

Thomas

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




Re: Wrap an HttpServletRequest

2001-11-14 Thread Diego del Río

Thank you Thomas and Martin,
our problem is that the target servlet, i.e. the servlet that would receive
the 'wrapped request' forwarded by the first servlet (in this case, the
target
servlet is a jsp page), shouldn't know that the request is wrapped.
We have already implemented a lot of jsp pages (servlets at last) that
aren't
aware about attributes in the request they process.
I know that this functionality is provided by 'filters' in the servlet 2.3
spec.; unfortunately we are using Tomcat 3.2.3, a servlet 2.2 engine.

 Hi Diego,

 do it like Martin described. Or try out the RequestDispatcher:

 request.setAttribute(key1, value1);
 request.setAttribute(key2, value2);
 [...]
 RequestDispatcher rd =
 getServletContext().getRequestDispatcher(myServletUrl);
 rd.forward(request, response);

 Thomas

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




Re: Wrap an HttpServletRequest

2001-11-14 Thread Fredrik Westermarck

Martin van den Bemt wrote:
 
 Pas the request object to that servlet eg
 BlahServlet servlet = new BlahServlet();
 servlet.execute(req, resp);

Why not get a RequestDispatcher and forward (or include) to the other
servlet?

..
  RequestDispatcher rd = request.getRequestDispatcher(pathToServlet);
  rd.forward(request, response); // or rd.include(request, response)
..

Use the setAttribute()-method in the servlet that handles the original
request to add the extra parameters. Then use getAttribute() in the
servlet that you forwarded or included to read the extra parameters.

-- 
Fredrik Westermarck

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




Major (guru mode) help required

2001-11-14 Thread raj

I finally got Apache and Catalina to speak to each other when running on 
separate machines
(I had not set ServerName in Apache initially and hence it was failing - 
earlier post: Catalina  Apache on different machines)

But now I have reached another major hurdle.

All request to non-secure servlets is being passed on by Apache to 
Catalina.

But for servlets that have FORM authentication defined, Catalina sends 
back the Login page (via Apache)
but seems to lose the original request.

In other words, when the user id and passwords are typed it always 
redirects to the Error page.

Hence The Question:

Will authentication (especially FORM) NOT work if Catalina and Apache 
were to run on two different machines.
Has anyone had any experience on this?

Any help would be much appreciated. Muchas gracias.

Cheers
-raj





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




tomcat4 naming context

2001-11-14 Thread c tang

Hi all,

I am writing an app in which a web component accesses
ejbs in an appserver (borland appserver).  The
appserver has its naming service running and all ejb
register with it.  

If the naming service in tomcat is running, lookup for
ejbs will fail.  This is not an option.

If the naming service in tomcat is disable by using
-nonaming option, the web component can lookup ejb by
using ejbs' jndi name.  However, All the env
variables, ejb-refs, and resources specified web tier
are no longer available through lookup.  Is there a
way that allows web resources register in naming
service started in appserver?  If not, how do I solve
the dilema?

Thanks!

ct

__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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




Re: mod_webapp compiling problems

2001-11-14 Thread jean-frederic clere

Petry Roman, ITS-IT wrote:
 
 Hello,
 
 i have some serious problems compiling mod_webapp on my Suse 7.2 System..
 I downloaded APACHE 1.3.22, Tomcat 4.0.1, PHP4 and mod_perl, compiled each
 of them and they work..
 
 Tomcat works standalone and Apache also..
 
 Then i tried to connect Apache and Tomcat with the mod_webapp module.. I
 downloaded the glib2.2 binary from the jakarta site, but the only thing it
 does is a segmentation fault...
 
 then i thought.. maybe the source is with you .. and i downloaded the
 webapp-module-2002.tar.gz
 but i had no luck...
 
 -- snipp ---
 nrz86:~/webapp-module-2002 # ./configure
 --with-apxs=/usr/local/apache/bin/apxs
 
 Finishing up
 checking for APR compilation flags... ok
 checking for Makefile targets... lib apr apache-1.3
 updating cache ./config.cache
 creating ./config.status
 creating ./Makefile
 creating ./Makedefs
 creating ./lib/Makefile
 creating ./java/Constants.java
 creating ./apache-1.3/Makefile
 
 All done. Now you can issue make. Good luck.
 
 -- snipp 
 
 then a make breaks with the following error...
 
 --- snip ---
 
 APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
 /usr/local/apache/bin/apxs \
 -S CFLAGS=${APXS_CFLAGS} \
 -S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
 -o mod_webapp.so \
 -c mod_webapp.c \
 /root/webapp-module-2002/lib/libwebapp.a \
 /root/webapp-module-2002/lib/libapr.a ; \
 }
 apxs:Error: no config variable LDFLAGS_SHLIB
 Usage: apxs -g [-S var=val] -n modname
apxs -q [-S var=val] query ...
apxs -c [-S var=val] [-o dsofile] [-D name[=value]]
[-I incdir] [-L libdir] [-l libname] [-Wc,flags]
[-Wl,flags] files ...
apxs -i [-S var=val] [-a] [-A] [-n modname] dsofile ...
apxs -e [-S var=val] [-a] [-A] [-n modname] dsofile ...
 make[2]: *** [mod_webapp.so] Error 1
 make[2]: Leaving directory `/root/webapp-module-2002/apache-1.3'
 make[1]: Exiting directory apache-1.3
 make[1]: *** [template] Error 2
 make[1]: Leaving directory `/root/webapp-module-2002'
 make: *** [apache-1.3-build] Error 2
 -- snipp ---
 
 I tried to tweak the Makefile a little bit, but i had no luck..
 
 Could anyone help me please..A search in the Archive had no luck..

?
It seems you have a broken apache-1.3, at least a broken apxs - reinstall apache
-

 
 thanks in advance...
 
 mfg
 Roman Petry
 Microsoft Certified Systems Engineer (MCSE)
 ITS-IT
 AG der Dillinger Huettenwerke
 Tel.: 0049-6831-474670
 Fax.: 0049-6831-473505
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




Last straw - AccessControlException problem

2001-11-14 Thread Antony Bowesman

Hi,

I'm getting an AccessControlException when trying to read the file
H:\Apache\jakarta-tomcat-4.0\bin\user.txt

Top part of stack trace is

java.security.AccessControlException: access denied
(java.io.FilePermission user.txt read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.FileInputStream.init(FileInputStream.java:61)
at java.io.FileReader.init(FileReader.java:38)
at
com.teamware.phoenix.security.auth.spi.TestLoginModule.login(Unknown
Source)
at
com.teamware.phoenix.security.auth.spi.ProxyLoginModule.login(ProxyLoginModule.java:152)

My ProxyLoginModule is in file:${catalina.home}/bin/jaasproxylogin.jar
and catalina.policy has the following grant entry

grant codeBase file:${catalina.home}/bin/jaasproxylogin.jar {
   permission java.lang.RuntimePermission getClassLoader;
   permission java.util.PropertyPermission log4j.configuration,
read;
   permission java.util.PropertyPermission log4j.configDebug,
read;
   permission java.util.PropertyPermission user.dir, read;
   permission java.util.FilePermission
H:\\Apache\\jakarta-tomcat-4.0\\bin\\user.txt, read;
   permission java.util.FilePermission user.txt, read;
};

The code does

  String fileName = user.txt; 
  File f = new File(fileName);
  System.out.println(Path= + f.getAbsolutePath());
  BufferedReader br = new BufferedReader(new FileReader(fileName));

The output is

Path=H:\Apache\jakarta-tomcat-4.0\bin\user.txt

If I remove the PropertyPermission for user.dir I get an ACE on the
getAbsolutePath() call, this shows it is taking the grant entry.  Can
anyone see what's wrong with the grant entry.  I've tried the same with
no codebase and it does not work.  I've tried 

   permission java.util.FilePermission ALL FILES, read;

still doesn't work.

I'm running 4.0 on WinXP.

Antony


-- 
Antony Bowesman
Teamware Group 
[EMAIL PROTECTED]
phone: +358 9 5128 2562
fax  : +358 9 5128 2705

intra / extra / Internet solutions at www.teamware.com

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




error-page location

2001-11-14 Thread Brian K. Buckley

Is it legal to supply a JSP for the location of an error-page in web.xml?

Tomcat 4.0.1 does not appear to allow it.

 error-page
  exception-typewcd.MyException/exception-type
  location/test.jsp/location !-- does not work but /test.html
does --
 /error-page

-Brian


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




Problem in starting Tomcat

2001-11-14 Thread rehan

Hello Support,

I am facing some problem in installing Tomcat in RHlinux 6.1, i am using
Apache 1.3.9 and jdk 1.3.1

I installed apache with DSO support, i copied the source of Tomacat in
/usr/local/. i had also declare the path for Tomcat and jdk1.3.1
But when i run startup.sh from Tomacat/bin.
It gives me BindException error, port already in use.
I am not getting this error, as my no application is using this port, i
tried
with port 2 also, then also it given me same error, i changed the port
in
tomcat.conf file.

If u can send the installation steps, it will be great.

Thanking u.

Rehan



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




Re: Catalina Apache on different machines

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 02:27 pm, raj [EMAIL PROTECTED] wrote:

 I am trying to set up Apache and Catalina so that they run on different
 machine.
 
 In my Apache httpd.conf, I have
 
 WebAppConnection connwarpip of machine running catalina:8008
 WebAppDeploy foobar  conn/foobar
 
 This httpd.conf also has a VirtualHost defined (www.domainame.org)
 
 
 In my server.xml (for Catalina) I have:
 
 Service name=Tomcat-Apache
   Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache  defaultHost=ip of machine running apache
 debug=0 appBase=webapps
 
 
 Obviously with just these two set, I cannot get the connection to work.
 
 I get the following when I run my servlet as:
 http://www.domainame.org/foobar/servlet/foo
 
 returns as
 
 http://linux.local/foobar/LoginForm.jsp
 
 What is the obvious bit that is missing?

Remove that defaultHost thing in your Engine...

Pier 


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




Re: Major (guru mode) help required

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 03:46 pm, raj [EMAIL PROTECTED] wrote:

 Will authentication (especially FORM) NOT work if Catalina and Apache
 were to run on two different machines.
 Has anyone had any experience on this?
 
 Any help would be much appreciated. Muchas gracias.

What error are you observing ??? (HTTP error code?)

Pier


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




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-14 Thread Geoff Howard

I only meant to ask if you were using the default Tomcat sessions, or
perhaps some customized implementation via an app server, etc.  

I'm not entirely clear from your description exactly what is going on, but
if you have the examples context installed somewhere, try this: 

- Go to /examples/servlet/SessionExample
- note the session id you've been assigned.
- In the IE browser address line type in
javascript:void(window.open('/examples/servlet/SessionExample'));
- In the new window that opens, note that the session id is identical
- Close the new window.
- Refresh the original page.
- Note the session id remains active.

I'm a little suspicious that opening a window like this is not entirely the
same as placing the window.open directly into the page -- you may want to
try modifying the default SessionExample.java to include a window.open for
testing.

Does this represent a simplified version of the situation you have, but with
opposite behavior?  If so, then I'd be suspicious that something else in
your code is really the culprit.  If not, can you modify the above example
to clarify what is going on in the background.

Geoff


-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 8:38 PM
To: Geoff Howard
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
session on open new window


I'm not quite sure I understand what you mean. I am using the default
tomcat4 settings, so I am using cookies I guess...



Amit

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 14 November 2001 4:24 AM
To: 'Amit Kelkar'
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window

How are you implementing your sessions?

Geoff

-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:01 AM
To: Tomcat Users List
Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window




-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 November 2001 6:41 PM
To: Tomcat Users List
Subject: internet explorer nullifies session on open new window

The application we are coding requires a new window to be opened. This new
window may just contain a JavaScript calendar or a JSP page (dispatched by a
servlet).

We have been using Internet Explorer 5 till recently to run the application
and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In
both of the new versions, when a new window is opened and then closed, the
session in the original window gets nullified.

For example, there are places where I need to see a calendar, so I open this
calendar in a new window, I use the calendar, then I close the calendar
window. I then press a button (in the main window) to go to another page in
my application, where all the session values are now displayed as null.
Subsequent system error statements show that the session is indeed null.

I am not sure this is a tomcat problem or a IE problem (probably a IE
problem), but was wondering if anybody has experienced anything similar and
if they have solved the problem...

Note: I am using tomcat 4.01

Thanks much in advance,


Amit Kelkar

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




RE: mod_webapp compiling problems

2001-11-14 Thread Petry Roman, ITS-IT

Hello,

i compiled apache as follows... I need php and mod_perl.. nothing more and
Tomcat of course..

export CFLAGS=
export LIBS=
export INCLUDES=
./configure --prefix=/usr/local/apache \
 --enable-suexec \
--suexec-caller=nobody \
--enable-module=so \
--enable-module=access \
--disable-module=auth_db \
--disable-module=digest \
--enable-module=imap \
--enable-module=mime \
--enable-module=setenvif \
--disable-module=usertrack \
--enable-module=auth \
--disable-module=cern_meta \
--disable-module=expires \
--enable-module=log_config \
--disable-module=proxy \
--disable-module=vhost_alias \
--disable-module=auth_anon \
--enable-module=cgi \
--disable-module=headers \
--disable-module=log_referer \
--disable-module=rewrite \
--enable-module=userdir \
--enable-module=asis \
--enable-module=autoindex \
--disable-module=example \
--disable-module=log_agent \
--enable-module=negotiation \
--enable-module=status \
--enable-module=actions \
--disable-module=auth_dbm \
--enable-module=dir \
--enable-module=include \
--disable-module=mime_magic \
--disable-module=unique_id \
--enable-module=alias \
--disable-module=auth_digest \
--enable-module=env \
--disable-module=info \
--disable-module=mmap_static \
--disable-module=speling \
 --enable-module=ssl \
 --activate-module=src/modules/perl/libperl.a \
 --activate-module=src/modules/php4/libphp4.a \

i used the Apachetoolbox-1.5.44 to build the Apache, and it seems to look
good..

apxs returns the following results.
apxs -q LDFLAGS_SHLIB
returns nothing, i gave no special config for the shlib..

Is it nessecary to put the webapp Directory in the Apache src dir..


thanks
Roman



 -Original Message-
 From: jean-frederic clere [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 4:11 PM
 To: Tomcat Users List
 Subject: Re: mod_webapp compiling problems
 
 
 Petry Roman, ITS-IT wrote:
  
  Hello,
  
  i have some serious problems compiling mod_webapp on my 
 Suse 7.2 System..
  I downloaded APACHE 1.3.22, Tomcat 4.0.1, PHP4 and 
 mod_perl, compiled each
  of them and they work..
  
  Tomcat works standalone and Apache also..
  
  Then i tried to connect Apache and Tomcat with the 
 mod_webapp module.. I
  downloaded the glib2.2 binary from the jakarta site, but 
 the only thing it
  does is a segmentation fault...
  
  then i thought.. maybe the source is with you .. and i 
 downloaded the
  webapp-module-2002.tar.gz
  but i had no luck...
  
  -- snipp ---
  nrz86:~/webapp-module-2002 # ./configure
  --with-apxs=/usr/local/apache/bin/apxs
  
  Finishing up
  checking for APR compilation flags... ok
  checking for Makefile targets... lib apr apache-1.3
  updating cache ./config.cache
  creating ./config.status
  creating ./Makefile
  creating ./Makedefs
  creating ./lib/Makefile
  creating ./java/Constants.java
  creating ./apache-1.3/Makefile
  
  All done. Now you can issue make. Good luck.
  
  -- snipp 
  
  then a make breaks with the following error...
  
  --- snip ---
  
  APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
  /usr/local/apache/bin/apxs \
  -S CFLAGS=${APXS_CFLAGS} \
  -S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
  -o mod_webapp.so \
  -c mod_webapp.c \
  /root/webapp-module-2002/lib/libwebapp.a \
  /root/webapp-module-2002/lib/libapr.a ; \
  }
  apxs:Error: no config variable LDFLAGS_SHLIB
  Usage: apxs -g [-S var=val] -n modname
 apxs -q [-S var=val] query ...
 apxs -c [-S var=val] [-o dsofile] [-D name[=value]]
 [-I incdir] [-L libdir] [-l libname] 
 [-Wc,flags]
 [-Wl,flags] files ...
 apxs -i [-S var=val] [-a] [-A] [-n modname] 
 dsofile ...
 apxs -e [-S var=val] [-a] [-A] [-n modname] 
 dsofile ...
  make[2]: *** [mod_webapp.so] Error 1
  make[2]: Leaving directory `/root/webapp-module-2002/apache-1.3'
  make[1]: Exiting directory apache-1.3
  make[1]: *** [template] Error 2
  make[1]: Leaving directory `/root/webapp-module-2002'
  make: *** [apache-1.3-build] Error 2
  -- snipp ---
  
  I tried to tweak the Makefile a little bit, but i had no luck..
  
  Could anyone help me please..A search in the Archive had no luck..
 
 ?
 It seems you have a broken apache-1.3, at least a broken apxs 
 - reinstall apache
 -
 
  
  thanks in advance...
  
  mfg
  Roman Petry
  Microsoft Certified Systems Engineer (MCSE)
  ITS-IT
  AG der Dillinger Huettenwerke
  Tel.: 0049-6831-474670
  Fax.: 0049-6831-473505
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




resp.sendRedirect(./Join2?Email_Address= + EmailAddress);

2001-11-14 Thread Carl Boudreau

Good Morning Fellow Coders,

I have a very interesting question for all of you.  Below is a small
snippet of code which basically validates a database Insert operation.  The
operation writes to the database then turns around and read the email
address and compares it to what was passed to the Servlets.  For example
within the 20 params sent, [EMAIL PROTECTED] would be sent as an email
address.  It would then be written and then it would re-query the database
and compare the results.  This snippet makes the comparison between what was
passed and what was read out of the database, in turn uses the Redirect to
either move on to the next Servlets Join2 if successful, or display
joinerror.html if un-successful.  But an exception is caught and ends the
Servlets.  During debug I have reduce the error to the redirect line
[resp.sendRedirect(./Join2?Email_Address= + EmailAddress);].

Now I have been monitoring the email forum and had seen there was a problem
with the redirect.  And in the mean time I had manually started these
Servlets by using IE and entering the
[./Join2?[EMAIL PROTECTED])]  and it works fine.  I
think, I found out, that if I manually do this first, then run it normally
by hitting it from a index.html page it works.  But my results have been
very erratic and I don't trust myself.

I have tried to use out.flush( ); alone and then followed up by a
out.close( ); by this doesn't seem to change anything.

DOES ANYONE HAVE ANY SUGGESTIONS, OR A WORK AROUND?

Source Code Snippet;

if(TxtCheck1.equals(MemberMail))
   {
// User join1 data has been added to Database
resp.sendRedirect(./Join2?Email_Address= +
EmailAddress);
}
else {

resp.sendRedirect(./htmlpage/joinerror.html);
   }


System Config;

Win2000pro.
Tomcat 4.0 standalone.
MySQL 7.0


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




Errors reported in IIS_redirect.log

2001-11-14 Thread Richardson, Ray (c)


I have TomCat 3.2.3 and Cocoon running in a test environment with IIS.
Following some basic load testing of the server I have noticed the
IIS_Redirect log has been growing at a fairly steady rate.  The log setting
is set to 'Error' and I'm getting repeated entries in the log as follows :

[jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response,
ServerSupportFunction failed
[jk_ajp12_worker.c (575)]: ajpv12_handle_response, error starting response
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed


Nothing appears to be failing in terms of delivering pages, both straight
HTML and XML/XSL files through cocoon.  Does anybody know what these
messages signify ?


TIA,
   Ray

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




Where can I find the .sendRedirect source code?

2001-11-14 Thread Carl Boudreau

Hi,

Can anyone point me to the area where the redirect are handled in tomcat?
I have already downloaded the source, but can't find the exact location.

And how about any flow diagrams that shows how tomcat is put together,
what classes are being called and the basic flow of the application?


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




Java and double

2001-11-14 Thread Laurent Michenaud

Hi,

Excuse me... this mail shouldnot be on this mailing list but
it is an hurry.

public class TestDouble
{
  static public void main(String args[]) {

double val = 0.5055 * 1000 ;
System.out.println( val );
  }
}

This program gives me the following results :
505.44

I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.

Have u got informations about this ?
Can u try too ?

Thanks a lot and sorry again

Bye

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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




Re: mod_webapp compiling problems

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 03:26 pm, Petry Roman, ITS-IT [EMAIL PROTECTED]
wrote:

 Hello,
 
 i compiled apache as follows... I need php and mod_perl.. nothing more and
 Tomcat of course..
 
 export CFLAGS=
 export LIBS=
 export INCLUDES=
 ./configure --prefix=/usr/local/apache \
 --enable-suexec \
 --suexec-caller=nobody \
 --enable-module=so \
 --enable-module=access \
 --disable-module=auth_db \
 --disable-module=digest \
 --enable-module=imap \
 --enable-module=mime \
 --enable-module=setenvif \
 --disable-module=usertrack \
 --enable-module=auth \
 --disable-module=cern_meta \
 --disable-module=expires \
 --enable-module=log_config \
 --disable-module=proxy \
 --disable-module=vhost_alias \
 --disable-module=auth_anon \
 --enable-module=cgi \
 --disable-module=headers \
 --disable-module=log_referer \
 --disable-module=rewrite \
 --enable-module=userdir \
 --enable-module=asis \
 --enable-module=autoindex \
 --disable-module=example \
 --disable-module=log_agent \
 --enable-module=negotiation \
 --enable-module=status \
 --enable-module=actions \
 --disable-module=auth_dbm \
 --enable-module=dir \
 --enable-module=include \
 --disable-module=mime_magic \
 --disable-module=unique_id \
 --enable-module=alias \
 --disable-module=auth_digest \
 --enable-module=env \
 --disable-module=info \
 --disable-module=mmap_static \
 --disable-module=speling \
 --enable-module=ssl \
 --activate-module=src/modules/perl/libperl.a \
 --activate-module=src/modules/php4/libphp4.a \

That seems right..

 i used the Apachetoolbox-1.5.44 to build the Apache, and it seems to look
 good..

What's that thing?

 apxs returns the following results.
 apxs -q LDFLAGS_SHLIB
 returns nothing, i gave no special config for the shlib..

Although you didn't set anything the variable should be there...

 Is it nessecary to put the webapp Directory in the Apache src dir..

Nope.

Pier



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




Re: Last straw - AccessControlException problem

2001-11-14 Thread Antony Bowesman

Aargh,

Problem solved, I had java.util.FilePermission in my policy not
java.io.FilePermission...  Can't see the wood for the trees.

Antony

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




Re: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);

2001-11-14 Thread Tom Drake

You're @ is likely the problem. You must url-encoude the redirect address.

- Original Message -
From: Carl Boudreau [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:32 AM
Subject: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);


| Good Morning Fellow Coders,
|
| I have a very interesting question for all of you.  Below is a small
| snippet of code which basically validates a database Insert operation.
The
| operation writes to the database then turns around and read the email
| address and compares it to what was passed to the Servlets.  For example
| within the 20 params sent, [EMAIL PROTECTED] would be sent as an
email
| address.  It would then be written and then it would re-query the database
| and compare the results.  This snippet makes the comparison between what
was
| passed and what was read out of the database, in turn uses the Redirect to
| either move on to the next Servlets Join2 if successful, or display
| joinerror.html if un-successful.  But an exception is caught and ends the
| Servlets.  During debug I have reduce the error to the redirect line
| [resp.sendRedirect(./Join2?Email_Address= + EmailAddress);].
|
| Now I have been monitoring the email forum and had seen there was a
problem
| with the redirect.  And in the mean time I had manually started these
| Servlets by using IE and entering the
| [./Join2?[EMAIL PROTECTED])]  and it works fine.  I
| think, I found out, that if I manually do this first, then run it normally
| by hitting it from a index.html page it works.  But my results have been
| very erratic and I don't trust myself.
|
| I have tried to use out.flush( ); alone and then followed up by a
| out.close( ); by this doesn't seem to change anything.
|
| DOES ANYONE HAVE ANY SUGGESTIONS, OR A WORK AROUND?
|
| Source Code Snippet;
|
| if(TxtCheck1.equals(MemberMail))
|{
| // User join1 data has been added to Database
|resp.sendRedirect(./Join2?Email_Address= +
| EmailAddress);
| }
| else {
|
| resp.sendRedirect(./htmlpage/joinerror.html);
|}
|
|
| System Config;
|
| Win2000pro.
| Tomcat 4.0 standalone.
| MySQL 7.0
|
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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




Re: cannot execute binary file

2001-11-14 Thread Noble Long

I actually added it to the tomcat.sh (dirty I know) but I wanted to make
sure it was definitely loaded. But even when I add it to /etc/profile or
/root/.bashrc, /root/.cshrc I get the same messages, the files must have
been getting corrupted in transfer.

Where is TOMCAT_OPTS?

Noble
- Original Message -
From: James Chuang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 7:58 PM
Subject: Re: cannot execute binary file


 Oracle JDBC thin drivers are supposed to be used as .zip.  I've never had
to
 uncompress them, neither on NT, Solaris, or Linux.

 The question is, why is tomcat trying to execute that file?  It sounds
like
 there is something wrong with the startup command.  How did you add it to
 your classpath?  in TOMCAT_OPTS?

 jchuang

 - Original Message -
 From: Eric Strain [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 5:36 PM
 Subject: Re: cannot execute binary file


  Hi:
  I hate to be simplistic, but, is your classes12.zip file still
compressed?
  If so just unzip it to a safe location and alter your classpath
 
 
  From: Noble Long [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: cannot execute binary file
  Date: Tue, 13 Nov 2001 14:41:47 -0600
  
  I am using the Oracle jdbc thin client in my application. I added it to
 my
  classpath /usr/local/classes12.zip , but when I start Tomcat I am
 getting -
  
  bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
  
  I tried other jar, files, etc. and everyone I transefered either in
 binary
  mode or ascii via FTP, XMODEM or ZMODEM gives me the same message.
  
  Is my file being corrupted between windows and linux. I am working with
a
  remote telnet session so I can't exactly download from Oracle's website
 to
  that machine. Funny thing is ... I have the same Red Hat 6.2
environment
  here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make a
  difference?)
  
  Noble
 
 
  _
  Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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



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




Re: Major (guru mode) help required

2001-11-14 Thread raj

Hi Pier,

Thanks for replying.

I set debug=99 on WarpConnector, and my apache_log.2001-11-14.txt comes 
up with
the following:


2001-11-14 16:38:21 WarpEngine[Apache]: Mapping request
2001-11-14 16:38:21 WarpHost[domainname]: Mapping request for Host
2001-11-14 16:38:21 WarpEngine[Apache]: Mapping request
2001-11-14 16:38:21 WarpHost[domainname]: Mapping request for Host
2001-11-14 16:38:21 StandardContext[/weblogin]: Mapping 
contextPath='/weblogin' with requestURI='/weblogin/LoginForm.jsp
' and relativeURI='/LoginForm.jsp'
2001-11-14 16:38:21 StandardContext[/weblogin]: Decoded 
relativeURI='/LoginForm.jsp'
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying exact match
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying prefix match
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying extension match
2001-11-14 16:38:21 StandardContext[/weblogin]:  Mapped to servlet 'jsp' 
with servlet path '/LoginForm.jsp' and path inf
o 'null' and update=true

.
.

Of course on the browser, I only get my Error.jsp displayed, (no HTTP 
errors there).

Cheers
-raj

Will authentication (especially FORM) NOT work if Catalina and Apache
were to run on two different machines.
Has anyone had any experience on this?

Any help would be much appreciated. Muchas gracias.


What error are you observing ??? (HTTP error code?)

Pier




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




Re: Major (guru mode) help required

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 05:01 pm, raj [EMAIL PROTECTED] wrote:

 Of course on the browser, I only get my Error.jsp displayed, (no HTTP
 errors there).

Without the specific error happening, it's impossible to know what's going
on. Sorry.

Pier


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




Installing Tomcat4.0.1 on Mandrake 8.0

2001-11-14 Thread Nick Woolley


Hi,


I've been documenting my installation of Tomcat 4 on Mandrake Linux 8.0. 
  For what it's worth I'm posting this here.

It's a draft, and intended ultimately to contribute to a user's 
installation guide for the Melati package (www.melati.org, which 
requires a servlet container).  As such, I'm trying not to assume that 
the reader has a lot of unix knowledge. Plus, I have only addressed 
installing the RPMs at this point.

I would appreciate any additions, comments or corrections anyone would 
like to submit, and hopefully these can be incorporated.

Certain points exist which I think need to be followed up - I've 
labelled these with the tag 'FIXME'.  Notably:

* There is a problem with the mod_webapp RPM, which misconfigures 
Apache.  This wasn't fixed when I downloaded it a couple of days ago.

* There is also a small problem with the Tomcat RPM creating the Tomcat 
user with a nonexistant home directory.

I'm aware that some of the problems I list here may have been dealt with 
elsewhere on this list and have not been incorporated.  I've has some 
difficulty reading postings on the mailinglist archives at

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

When trying to open a post, I often (but intermittently) get errors like 
this:

Not Found The requested URL 
[EMAIL PROTECTED]/msg36559.html was not found on this server.



Nick

==

Installing Tomcat 4.0.1
===

This starts from the assumtion you have a system broadly like mine,
which is Mandrake 8.0 (although not a fresh installation, it has had
various patches and installs added).

This should apply also to other RedHat derived distributions.

The install was on a Pentium III, 9GB disk space, 312MB RAM (Compaq
M300 Armada laptop)

My system Apache already installed, either from the installation CDs,
or from the Mandrake updates (see any Mandrake ftp mirror) - security
patches up to November 2001 have been applied.  The updates shouldn't
be a requirement for you to get Tomcat working however.

apache-1.3.20-1.2mdk
apache-mod_perl-1.3.20_1.25_01-2.2mdk
apache-devel-1.3.20-1.2mdk
apache-modules-1.3.20-1.2mdk
apache-suexec-1.3.20-1.2mdk
apache-conf-1.3.20-1.2mdk
apache-common-1.3.20-1.2mdk

Apache should work okay out of the box.


Note, I assume you have root access.  Most of the steps following
assume that you a have root access, and a terminal window in which you
have logged on as root.  I also assume you are using the bash shell
(which is the default), and you know how to install an RPM package
with rpm (rpm -i packagename - see the manpage for more details).

I indicate commands typed on the root console with prompts like this

  echo hello I am root
hello I am root
  id
uid=0(root) gid=0(root) 
groups=0(root),10(wheel),6(disk),4(adm),3(sys),2(daemon),1(bin)

Occaisionally, I'll need to indicate that you need to insert whatever
is appropriate on your system - I'll sustitute labels enclosed in
andle brackets for these, like this.

For example:

  cd your download directory

--

1) Download an RPM package for the Java 2 platform standard edition
(newest currently v1.3).

You can do this from Sun, here:
http://java.sun.com/j2se/1.3/

At the time of writing this is j2sdk-1_3_1_01-linux-i386-rpm.bin

Or, from IBM here:
http://www-106.ibm.com/developerworks/java/jdk/linux130/

(IBM calls the the Linux Developer Kit - at the time of writing, it
  is IBMJava2-SDK-1.3-10.0.i386.rpm)

There is an option to download the double-byte fonts for Linux as well
- but these are I think only required if you'll be using non-western
character sets.

Also, registration is required in the case of IBM.

As for the difference, I cannot speak personally since I've not
actually compared the two, but I hear that the IBM implementation is
faster.  Hence that is the one I installed. FIXME Comments?


Install using rpm:

 su
 cd download directory
 rpm -i IBMJava2-SDK-1.3-10.0.i386.rpm

In Sun's case you need to run the .bin file to get a rpm first:

 su
 cd download directory
 sh ./j2sdk-1_3_1_01-linux-i386-rpm.bin
 rpm -i j2sdk-1_3_1_01-linux-i386-rpm


--

2) You may like to download Sun's development environment, Forte from:

http://www.sun.com/forte/ffj/buy.html

- the Community edition is free, and comes as an RPM.

There is also JBuilder, which is not free I think.  IBM's development
environment is Visual Age Java - also not free.  I can't comment about
the merits, relative or otherwise, of these packages.

If you don't mind the text-editor-and command-line route, then the
Mandrake 8.0 CDs contain packages for various editors: nedit, pico,
jed, KEdit, Emacs, vi, etc.


--

3) Install JSSE (and possibly JNDI)

Note, the 

RE: Problem in starting Tomcat

2001-11-14 Thread Larry Isaacs

All versions of Tomcat use more than just 8080.  Search
server.xml for port= to find the ports that could
be used.  Those not part of a commented-out entry will
be used.

Cheers,
Larry

 -Original Message-
 From: rehan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 8:13 AM
 To: [EMAIL PROTECTED]
 Subject: Problem in starting Tomcat
 
 
 Hello Support,
 
 I am facing some problem in installing Tomcat in RHlinux 6.1, 
 i am using
 Apache 1.3.9 and jdk 1.3.1
 
 I installed apache with DSO support, i copied the source of Tomacat in
 /usr/local/. i had also declare the path for Tomcat and jdk1.3.1
 But when i run startup.sh from Tomacat/bin.
 It gives me BindException error, port already in use.
 I am not getting this error, as my no application is using 
 this port, i
 tried
 with port 2 also, then also it given me same error, i 
 changed the port
 in
 tomcat.conf file.
 
 If u can send the installation steps, it will be great.
 
 Thanking u.
 
 Rehan
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: mod_webapp compiling problems

2001-11-14 Thread Petry Roman, ITS-IT

Hello...

first.. tnaks for your fast answers..

Apachetoolbox is a nice shell-script, which helps you to compile Apache with
a lot of modules, if you want.. nice thing.. btw..

Ok.. But back to tomcat.. 
I deleted from the makefile, in the Apache-1.3 dir, the following line..

-S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \

and now the thing runs a little bit more.. BUT..

---snipp ---
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/local/apache/bin/apxs \
-S CFLAGS=${APXS_CFLAGS} \
-o mod_webapp.so \
-c mod_webapp.c \
/root/webapp-module-2002/lib/libwebapp.a \
/root/webapp-module-2002/lib/libapr.a ; \
}
cc -DLINUX=22 -I/usr/include/db1 -DMOD_PERL -DUSE_PERL_SSI
-fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DUSE_HSREGEX -D
NO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FI
LE_OFFSET_BITS=64 -g -O2 -g -O2 -DLINUX=2 -D_REENTRANT
-I/root/webapp-module-200
2/apr/include -I/root/webapp-module-2002/include
-I/usr/local/apache/in
clude  -c mod_webapp.c
*Initialization*:1: warning: `LINUX' redefined
*Initialization*:1: warning: this is the location of the previous definition
  -o mod_webapp.so mod_webapp.o /root/webapp-module-2002/lib/libwebapp.a
/ro
ot/webapp-module-2002/lib/libapr.a
apxs:Break: Command failed with rc=16777215
make[2]: *** [mod_webapp.so] Error 1
make[2]: Leaving directory `/root/webapp-module-2002/apache-1.3'
make[1]: Exiting directory apache-1.3

-- snipp---

and now.. was it wrong to delete the line ?? or is this a new problem which
has nothing to to with the deleted line..??

Thanks..

bye
Roman





 -Original Message-
 From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 4:41 PM
 To: Tomcat Users List
 Subject: Re: mod_webapp compiling problems
 
 
 On 14/11/2001 03:26 pm, Petry Roman, ITS-IT 
 [EMAIL PROTECTED]
 wrote:
 
  Hello,
  
  i compiled apache as follows... I need php and mod_perl.. 
 nothing more and
  Tomcat of course..
  
  export CFLAGS=
  export LIBS=
  export INCLUDES=
  ./configure --prefix=/usr/local/apache \
  --enable-suexec \
  --suexec-caller=nobody \
  --enable-module=so \
  --enable-module=access \
  --disable-module=auth_db \
  --disable-module=digest \
  --enable-module=imap \
  --enable-module=mime \
  --enable-module=setenvif \
  --disable-module=usertrack \
  --enable-module=auth \
  --disable-module=cern_meta \
  --disable-module=expires \
  --enable-module=log_config \
  --disable-module=proxy \
  --disable-module=vhost_alias \
  --disable-module=auth_anon \
  --enable-module=cgi \
  --disable-module=headers \
  --disable-module=log_referer \
  --disable-module=rewrite \
  --enable-module=userdir \
  --enable-module=asis \
  --enable-module=autoindex \
  --disable-module=example \
  --disable-module=log_agent \
  --enable-module=negotiation \
  --enable-module=status \
  --enable-module=actions \
  --disable-module=auth_dbm \
  --enable-module=dir \
  --enable-module=include \
  --disable-module=mime_magic \
  --disable-module=unique_id \
  --enable-module=alias \
  --disable-module=auth_digest \
  --enable-module=env \
  --disable-module=info \
  --disable-module=mmap_static \
  --disable-module=speling \
  --enable-module=ssl \
  --activate-module=src/modules/perl/libperl.a \
  --activate-module=src/modules/php4/libphp4.a \
 
 That seems right..
 
  i used the Apachetoolbox-1.5.44 to build the Apache, and it 
 seems to look
  good..
 
 What's that thing?
 
  apxs returns the following results.
  apxs -q LDFLAGS_SHLIB
  returns nothing, i gave no special config for the shlib..
 
 Although you didn't set anything the variable should be there...
 
  Is it nessecary to put the webapp Directory in the Apache src dir..
 
 Nope.
 
 Pier
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-14 Thread Amit Kelkar

Hi Geoff,

Thanks for all the reponses...

Here is the latest I have on the issue:

* There seems to be a issue with IE 6, with can be fixed up with some
options
* The session seems to keep alive if we use our full domain name
(postmodern.com.au), but not with a local address such as 192.168.x.x
But seems to be causing some error once in a while (tests still in progress)
* IE 5 has no problems with local address or full name
* Your session example worked with local address with session surviving.

I have no idea why it would resolve with the full domain and not the local
address... but either way seems very very weird.

Do you have any theories on why a session might nullify in such a way??


Thanks,

Amit

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 15 November 2001 2:21 AM
To: 'Amit Kelkar'; '[EMAIL PROTECTED]'
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window

I only meant to ask if you were using the default Tomcat sessions, or
perhaps some customized implementation via an app server, etc.

I'm not entirely clear from your description exactly what is going on, but
if you have the examples context installed somewhere, try this:

- Go to /examples/servlet/SessionExample
- note the session id you've been assigned.
- In the IE browser address line type in
javascript:void(window.open('/examples/servlet/SessionExample'));
- In the new window that opens, note that the session id is identical
- Close the new window.
- Refresh the original page.
- Note the session id remains active.

I'm a little suspicious that opening a window like this is not entirely the
same as placing the window.open directly into the page -- you may want to
try modifying the default SessionExample.java to include a window.open for
testing.

Does this represent a simplified version of the situation you have, but with
opposite behavior?  If so, then I'd be suspicious that something else in
your code is really the culprit.  If not, can you modify the above example
to clarify what is going on in the background.

Geoff


-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 8:38 PM
To: Geoff Howard
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
session on open new window


I'm not quite sure I understand what you mean. I am using the default
tomcat4 settings, so I am using cookies I guess...



Amit

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 14 November 2001 4:24 AM
To: 'Amit Kelkar'
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window

How are you implementing your sessions?

Geoff

-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:01 AM
To: Tomcat Users List
Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window




-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 November 2001 6:41 PM
To: Tomcat Users List
Subject: internet explorer nullifies session on open new window

The application we are coding requires a new window to be opened. This new
window may just contain a JavaScript calendar or a JSP page (dispatched by a
servlet).

We have been using Internet Explorer 5 till recently to run the application
and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In
both of the new versions, when a new window is opened and then closed, the
session in the original window gets nullified.

For example, there are places where I need to see a calendar, so I open this
calendar in a new window, I use the calendar, then I close the calendar
window. I then press a button (in the main window) to go to another page in
my application, where all the session values are now displayed as null.
Subsequent system error statements show that the session is indeed null.

I am not sure this is a tomcat problem or a IE problem (probably a IE
problem), but was wondering if anybody has experienced anything similar and
if they have solved the problem...

Note: I am using tomcat 4.01

Thanks much in advance,


Amit Kelkar


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




RE: Java and double

2001-11-14 Thread Jim Rueschhoff

There is no problem.  Float and Double represents a number as a mantissa and
radix which produces a close but not exact representation of a number.  If
you round to a reasonable number of decimal places you will get the
correct result but if you insist on looking at the full precision of the
number you will get round off errors.  This is the very nature of floating
point numbers.



-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 8:39 AM
To: [EMAIL PROTECTED]
Subject: Java and double


Hi,

Excuse me... this mail shouldnot be on this mailing list but
it is an hurry.

public class TestDouble
{
  static public void main(String args[]) {

double val = 0.5055 * 1000 ;
System.out.println( val );
  }
}

This program gives me the following results :
505.44

I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.

Have u got informations about this ?
Can u try too ?

Thanks a lot and sorry again

Bye

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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



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




RE: Java and double

2001-11-14 Thread Mangi, Rick

Ya, I've seen that one before. use the java.math package. 

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Java and double


Hi,

Excuse me... this mail shouldnot be on this mailing list but
it is an hurry.

public class TestDouble
{
  static public void main(String args[]) {

double val = 0.5055 * 1000 ;
System.out.println( val );
  }
}

This program gives me the following results :
505.44

I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.

Have u got informations about this ?
Can u try too ?

Thanks a lot and sorry again

Bye

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




Config crashing Tomcat 4.01

2001-11-14 Thread L Rutker

Hi,
I am new at this and the way I mapped my servlet might be odd but crashing 
tomcat wasn't what I expected.
I am running Tomcat 4.01 standalone on NT 4 SP6
I am starting it using the shortcut provided by the installation (\Apache 
Tomcat 4.0\bin\bootstrap.jar start) and stopping it with the stop shortcut.

Here is what I did. My web.xml is as follows:
web-app
  servlet
  servlet-nameGenServlet/servlet-name
  servlet-classGenServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameGenServlet/servlet-name
  url-pattern/controller/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nameGenServlet/servlet-name
  url-pattern/GenServlet/url-pattern
   /servlet-mapping
!-- next mapping causes problems --
!--servlet-mapping
servlet-nameGenServlet/servlet-name
url-pattern/*/url-pattern
/servlet-mapping--
/web-app

It works and when I hit 
http://localhost:8080/anyservletName?action=addtype=user I get exactly what 
I expect.
But when I tested an oddball url as follows:
http://localhost:8080/?action=addtype=user just passing the params to 
nothing I get the index page (wasn't sure I would get the index page or the 
servlet- now I know). At this point any servlet or JSP I try to invoke the 
system throws a 500 Internal Server Error The root cause is: 
java.lang.StackOverflowError (the longest stack trace I have ever seen - not 
sure this is common in tomcat).
This in itself wouldn't be that bad if I could shut down Tomcat. It doesnt 
fully shut down using the shortcut (the start Tomcat window doesnt shut down 
a message appears Stopping service Tomcat-Standalone and it hangs. When I 
manually shut the window and kill every thread I can see that I think is 
associated with the process (java ones).
Note The problem as I know it is ONLY when trying to do a forward.
Just passing the servlet the parameters ?junk=someJunk will pose no problem. 
It is only when the parameter triggers the servlet to do a forward to a jsp 
page that causes the exception. The only way to restore it is to rebooot. I 
did clear out all the cache in the work folder.

Thanks in advance
Lou

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


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




Re: cannot execute binary file

2001-11-14 Thread James Chuang

You can set TOMCAT_OPTS in your environment, and tomcat will use them as
part of it's startup env. When I added the classes12.zip to my TC
environment, I just added it directly to the tomcat.sh as well, and it works
fine.

Why don't you put together a small test program that loads the driver, and
just run it in Java and see if it works?  If it works, then you know it's
not the driver.

jchuang

- Original Message -
From: Noble Long [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:58 AM
Subject: Re: cannot execute binary file


 I actually added it to the tomcat.sh (dirty I know) but I wanted to make
 sure it was definitely loaded. But even when I add it to /etc/profile or
 /root/.bashrc, /root/.cshrc I get the same messages, the files must have
 been getting corrupted in transfer.

 Where is TOMCAT_OPTS?

 Noble
 - Original Message -
 From: James Chuang [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 7:58 PM
 Subject: Re: cannot execute binary file


  Oracle JDBC thin drivers are supposed to be used as .zip.  I've never
had
 to
  uncompress them, neither on NT, Solaris, or Linux.
 
  The question is, why is tomcat trying to execute that file?  It sounds
 like
  there is something wrong with the startup command.  How did you add it
to
  your classpath?  in TOMCAT_OPTS?
 
  jchuang
 
  - Original Message -
  From: Eric Strain [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, November 13, 2001 5:36 PM
  Subject: Re: cannot execute binary file
 
 
   Hi:
   I hate to be simplistic, but, is your classes12.zip file still
 compressed?
   If so just unzip it to a safe location and alter your classpath
  
  
   From: Noble Long [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: cannot execute binary file
   Date: Tue, 13 Nov 2001 14:41:47 -0600
   
   I am using the Oracle jdbc thin client in my application. I added it
to
  my
   classpath /usr/local/classes12.zip , but when I start Tomcat I am
  getting -
   
   bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
   
   I tried other jar, files, etc. and everyone I transefered either in
  binary
   mode or ascii via FTP, XMODEM or ZMODEM gives me the same message.
   
   Is my file being corrupted between windows and linux. I am working
with
 a
   remote telnet session so I can't exactly download from Oracle's
website
  to
   that machine. Funny thing is ... I have the same Red Hat 6.2
 environment
   here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make a
   difference?)
   
   Noble
  
  
   _
   Get your FREE download of MSN Explorer at
 http://explorer.msn.com/intl.asp
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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



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




STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Nancy Crisostomo Martinez

Hello everybody!
I hope you could help me, please..

Actually, I'm begining to use Tomcat, and I have a succeded start
because it still works PERFECT to me...
But muy problem is very strange :
I installed Tomcat to Solaris 8, and when I start it (startup.sh |
tomcat.sh start ) it starts, but when I close the terminal window Tomcat
shuts down!!! and now I'm using Tomcat with a terminal window opened
with the caution message :DON'T CLOSE, PLEASE...

I hope you could help me to fix it.
Nancy.



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




AW: Java and double

2001-11-14 Thread Ralph Einfeldt

As in most other programming languages float 
and double are implemented in way that numbers 
are not represented exactly. That's caused by 
the internal format which is used to store
floats and doubles.

If you want know more of the basics have a look at
http://cch.loria.fr/documentation/IEEE754/ACM/goldberg.pdf

If you want more accuracy you can use
java.math.BigDecimal.

 -Ursprüngliche Nachricht-
 Von: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. November 2001 16:39
 An: [EMAIL PROTECTED]
 Betreff: Java and double
 
 
 Hi,
 
 Excuse me... this mail shouldnot be on this mailing list but
 it is an hurry.
 
 public class TestDouble
 {
   static public void main(String args[]) {
 
 double val = 0.5055 * 1000 ;
 System.out.println( val );
   }
 }
 
 This program gives me the following results :
 505.44
 
 I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.
 
 Have u got informations about this ?
 Can u try too ?
 
 Thanks a lot and sorry again
 
 Bye
 
 Michenaud Laurent
 - Adeuza -
 [ Développeur Web - Administrateur Réseau ]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




Cp1252

2001-11-14 Thread Chen, Gin

Hi all,
When I am using JBoss and Tomcat 4.0.1 integrated build. I get an
error with any of my JBoss.xml files that have the ?xml version=1.0
encoding=Cp1252? line.
The error is when starting JBoss and it says:

[AutoDeployer] Deployment
failed:file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/deploy/SpecSL.jar
[AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while
starting SpecSL.jar: Could not deploy
 file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/tmp/deploy/Default/SpecSL.jar, Cause:
org.jboss.ejb.DeploymentException
: Could not deploy
file:/C:/JBoss-2.4.3_Tomcat-4.0/jboss/tmp/deploy/Default/SpecSL.jar,
Cause:org.jboss.ejb.De
ploymentException: Stopping after fatal error: The encoding Cp1252 is not
supported., Cause:org.xml.sax.SAXE
xception: Stopping after fatal error: The encoding Cp1252 is not
supported.
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:519)
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
[AutoDeployer]  at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[AutoDeployer]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[AutoDeployer]  at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
[AutoDeployer]  at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Configurati
onService.java:
836)
[AutoDeployer]  at $Proxy0.start(Unknown Source)
[AutoDeployer]  at
org.jboss.util.ServiceControl.start(ServiceControl.java:81)
[AutoDeployer]  at java.lang.reflect.Method.invoke(Native Method)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[AutoDeployer]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[AutoDeployer]  at org.jboss.Main.init(Main.java:221)
[AutoDeployer]  at org.jboss.Main$1.run(Main.java:127)
[AutoDeployer]  at java.security.AccessController.doPrivileged(Native
Method)
[AutoDeployer]  at org.jboss.Main.main(Main.java:123)

As you can see... it says that Cp1252 is not supported. Yet with JBoss and
Tomcat 3.x.x it works fine!
What is going on here? Does this have anything to do with the fact that I am
using Cocoon2? How do I fix this? (Other than by changing the encoding type
to something else (UTF-8?))
Thanks,
-Tim

-
Gin-Ting Chen
[EMAIL PROTECTED]
727-738-3000 x6549

Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

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




RE: Java and double

2001-11-14 Thread Slava

Try to use BigDecimal.
It should be OK. 
--- Mangi, Rick [EMAIL PROTECTED] wrote:
 Ya, I've seen that one before. use the java.math package. 
 
 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 10:39 AM
 To: [EMAIL PROTECTED]
 Subject: Java and double
 
 
 Hi,
 
 Excuse me... this mail shouldnot be on this mailing list but
 it is an hurry.
 
 public class TestDouble
 {
   static public void main(String args[]) {
 
 double val = 0.5055 * 1000 ;
 System.out.println( val );
   }
 }
 
 This program gives me the following results :
 505.44
 
 I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.
 
 Have u got informations about this ?
 Can u try too ?
 
 Thanks a lot and sorry again
 
 Bye
 
 Michenaud Laurent
 - Adeuza -
 [ Développeur Web - Administrateur Réseau ]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 This email and any attachments are confidential and may be 
 legally privileged. No confidentiality or privilege is waived 
 or lost by any transmission in error.  If you are not the 
 intended recipient you are hereby notified that any use, 
 printing, copying or disclosure is strictly prohibited.  
 Please delete this email and any attachments, without 
 printing, copying, forwarding or saving them and notify the 
 sender immediately by reply e-mail.  Zurich Capital Markets 
 and its affiliates reserve the right to monitor all e-mail 
 communications through its networks.  Unless otherwise 
 stated, any pricing information in this e-mail is indicative 
 only, is subject to change and does not constitute an offer 
 to enter into any transaction at such price and any terms in 
 relation to any proposed transaction are indicative only and 
 subject to express final confirmation.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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




Re: cannot execute binary file

2001-11-14 Thread Tom Drake

I think that this may have to do with the security policy not allowing you
to load classes or jars from 'other' directories.

Look in conf/catalina.policy or conf/tomcat.policy (depending on the version
of tomcat you are using).
You will probably need to add an entry that looks like this:

grant codeBase file:/usr/local/- {
permission java.security.AllPermission;
};

Or for greater security:

grant codeBase file:/usr/local/classes12.jar {
permission java.security.AllPermission;
};

- Original Message -
From: James Chuang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 8:52 AM
Subject: Re: cannot execute binary file


| You can set TOMCAT_OPTS in your environment, and tomcat will use them as
| part of it's startup env. When I added the classes12.zip to my TC
| environment, I just added it directly to the tomcat.sh as well, and it
works
| fine.
|
| Why don't you put together a small test program that loads the driver, and
| just run it in Java and see if it works?  If it works, then you know it's
| not the driver.
|
| jchuang
|
| - Original Message -
| From: Noble Long [EMAIL PROTECTED]
| To: Tomcat Users List [EMAIL PROTECTED]
| Sent: Wednesday, November 14, 2001 7:58 AM
| Subject: Re: cannot execute binary file
|
|
|  I actually added it to the tomcat.sh (dirty I know) but I wanted to make
|  sure it was definitely loaded. But even when I add it to /etc/profile or
|  /root/.bashrc, /root/.cshrc I get the same messages, the files must have
|  been getting corrupted in transfer.
| 
|  Where is TOMCAT_OPTS?
| 
|  Noble
|  - Original Message -
|  From: James Chuang [EMAIL PROTECTED]
|  To: Tomcat Users List [EMAIL PROTECTED]
|  Sent: Tuesday, November 13, 2001 7:58 PM
|  Subject: Re: cannot execute binary file
| 
| 
|   Oracle JDBC thin drivers are supposed to be used as .zip.  I've never
| had
|  to
|   uncompress them, neither on NT, Solaris, or Linux.
|  
|   The question is, why is tomcat trying to execute that file?  It sounds
|  like
|   there is something wrong with the startup command.  How did you add it
| to
|   your classpath?  in TOMCAT_OPTS?
|  
|   jchuang
|  
|   - Original Message -
|   From: Eric Strain [EMAIL PROTECTED]
|   To: [EMAIL PROTECTED]
|   Sent: Tuesday, November 13, 2001 5:36 PM
|   Subject: Re: cannot execute binary file
|  
|  
|Hi:
|I hate to be simplistic, but, is your classes12.zip file still
|  compressed?
|If so just unzip it to a safe location and alter your classpath
|   
|   
|From: Noble Long [EMAIL PROTECTED]
|Reply-To: Tomcat Users List [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]
|Subject: cannot execute binary file
|Date: Tue, 13 Nov 2001 14:41:47 -0600
|
|I am using the Oracle jdbc thin client in my application. I added
it
| to
|   my
|classpath /usr/local/classes12.zip , but when I start Tomcat I am
|   getting -
|
|bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
|
|I tried other jar, files, etc. and everyone I transefered either in
|   binary
|mode or ascii via FTP, XMODEM or ZMODEM gives me the same message.
|
|Is my file being corrupted between windows and linux. I am working
| with
|  a
|remote telnet session so I can't exactly download from Oracle's
| website
|   to
|that machine. Funny thing is ... I have the same Red Hat 6.2
|  environment
|here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make
a
|difference?)
|
|Noble
|   
|   
|_
|Get your FREE download of MSN Explorer at
|  http://explorer.msn.com/intl.asp
|   
|   
|--
|To unsubscribe:
mailto:[EMAIL PROTECTED]
|For additional commands:
mailto:[EMAIL PROTECTED]
|Troubles with the list:
mailto:[EMAIL PROTECTED]
|   
|   
|  
|  
|   --
|   To unsubscribe:   mailto:[EMAIL PROTECTED]
|   For additional commands: mailto:[EMAIL PROTECTED]
|   Troubles with the list: mailto:[EMAIL PROTECTED]
|  
| 
| 
|  --
|  To unsubscribe:   mailto:[EMAIL PROTECTED]
|  For additional commands: mailto:[EMAIL PROTECTED]
|  Troubles with the list: mailto:[EMAIL PROTECTED]
| 
|
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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




Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Tom Drake

This has nothing to do with tomcat. It is standard unix behavior. 
When a user logs out, all processes created by that user are killed.

Unix provides simple way to around this feature.
Simply type the following command:

nohup tomcat.sh run 

In this case all 'console output produced by tomcat will 
appear in a file called 'nohup.out'.

The name nohup comes from the days of flaky dialup connections 
and is short for 'no hang-up'. It is used to 
prevent a spurious loss of connection (or hang-up) from stopping
a process.

- Original Message - 
From: Nancy Crisostomo Martinez [EMAIL PROTECTED]
To: Tomcat_Users [EMAIL PROTECTED]
Sent: Monday, October 22, 2001 7:54 AM
Subject: STARTUP.SH DOESN'T WORKS FINE


| Hello everybody!
| I hope you could help me, please..
| 
| Actually, I'm begining to use Tomcat, and I have a succeded start
| because it still works PERFECT to me...
| But muy problem is very strange :
| I installed Tomcat to Solaris 8, and when I start it (startup.sh |
| tomcat.sh start ) it starts, but when I close the terminal window Tomcat
| shuts down!!! and now I'm using Tomcat with a terminal window opened
| with the caution message :DON'T CLOSE, PLEASE...
| 
| I hope you could help me to fix it.
| Nancy.
| 
| 
| 
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
| 
| 
| 


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




Re: Java and double

2001-11-14 Thread Micael Padraig Og mac Grene

Not sure what your point is.  The code is okay, check out the internal
math yourself.  You can do it by hand.  If you want more precision, use
different code.

-Original Message-
From: Mangi, Rick [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Date: Wednesday, November 14, 2001 8:44 AM
Subject: RE: Java and double


Ya, I've seen that one before. use the java.math package.

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Java and double


Hi,

Excuse me... this mail shouldnot be on this mailing list but
it is an hurry.

public class TestDouble
{
  static public void main(String args[]) {

double val = 0.5055 * 1000 ;
System.out.println( val );
  }
}

This program gives me the following results :
505.44

I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.

Have u got informations about this ?
Can u try too ?

Thanks a lot and sorry again

Bye

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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


This email and any attachments are confidential and may be
legally privileged. No confidentiality or privilege is waived
or lost by any transmission in error.  If you are not the
intended recipient you are hereby notified that any use,
printing, copying or disclosure is strictly prohibited.
Please delete this email and any attachments, without
printing, copying, forwarding or saving them and notify the
sender immediately by reply e-mail.  Zurich Capital Markets
and its affiliates reserve the right to monitor all e-mail
communications through its networks.  Unless otherwise
stated, any pricing information in this e-mail is indicative
only, is subject to change and does not constitute an offer
to enter into any transaction at such price and any terms in
relation to any proposed transaction are indicative only and
subject to express final confirmation.

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




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




Re: cannot execute binary file

2001-11-14 Thread Noble Long

Possibly, but it is not only happening in Tomcat. It happens when I put the
CLASSPATH in /root/.bashrc or /root/.cshrc on startup.

Thanks for the info on tomcat.policy though. They are different versions
(Tomcat 3.2.2 -working) (Tomcat 3.2.1 - not working).

Noble

- Original Message -
From: Tom Drake [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 11:11 AM
Subject: Re: cannot execute binary file


 I think that this may have to do with the security policy not allowing you
 to load classes or jars from 'other' directories.

 Look in conf/catalina.policy or conf/tomcat.policy (depending on the
version
 of tomcat you are using).
 You will probably need to add an entry that looks like this:

 grant codeBase file:/usr/local/- {
 permission java.security.AllPermission;
 };

 Or for greater security:

 grant codeBase file:/usr/local/classes12.jar {
 permission java.security.AllPermission;
 };

 - Original Message -
 From: James Chuang [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, November 14, 2001 8:52 AM
 Subject: Re: cannot execute binary file


 | You can set TOMCAT_OPTS in your environment, and tomcat will use them as
 | part of it's startup env. When I added the classes12.zip to my TC
 | environment, I just added it directly to the tomcat.sh as well, and it
 works
 | fine.
 |
 | Why don't you put together a small test program that loads the driver,
and
 | just run it in Java and see if it works?  If it works, then you know
it's
 | not the driver.
 |
 | jchuang
 |
 | - Original Message -
 | From: Noble Long [EMAIL PROTECTED]
 | To: Tomcat Users List [EMAIL PROTECTED]
 | Sent: Wednesday, November 14, 2001 7:58 AM
 | Subject: Re: cannot execute binary file
 |
 |
 |  I actually added it to the tomcat.sh (dirty I know) but I wanted to
make
 |  sure it was definitely loaded. But even when I add it to /etc/profile
or
 |  /root/.bashrc, /root/.cshrc I get the same messages, the files must
have
 |  been getting corrupted in transfer.
 | 
 |  Where is TOMCAT_OPTS?
 | 
 |  Noble
 |  - Original Message -
 |  From: James Chuang [EMAIL PROTECTED]
 |  To: Tomcat Users List [EMAIL PROTECTED]
 |  Sent: Tuesday, November 13, 2001 7:58 PM
 |  Subject: Re: cannot execute binary file
 | 
 | 
 |   Oracle JDBC thin drivers are supposed to be used as .zip.  I've
never
 | had
 |  to
 |   uncompress them, neither on NT, Solaris, or Linux.
 |  
 |   The question is, why is tomcat trying to execute that file?  It
sounds
 |  like
 |   there is something wrong with the startup command.  How did you add
it
 | to
 |   your classpath?  in TOMCAT_OPTS?
 |  
 |   jchuang
 |  
 |   - Original Message -
 |   From: Eric Strain [EMAIL PROTECTED]
 |   To: [EMAIL PROTECTED]
 |   Sent: Tuesday, November 13, 2001 5:36 PM
 |   Subject: Re: cannot execute binary file
 |  
 |  
 |Hi:
 |I hate to be simplistic, but, is your classes12.zip file still
 |  compressed?
 |If so just unzip it to a safe location and alter your classpath
 |   
 |   
 |From: Noble Long [EMAIL PROTECTED]
 |Reply-To: Tomcat Users List [EMAIL PROTECTED]
 |To: [EMAIL PROTECTED]
 |Subject: cannot execute binary file
 |Date: Tue, 13 Nov 2001 14:41:47 -0600
 |
 |I am using the Oracle jdbc thin client in my application. I added
 it
 | to
 |   my
 |classpath /usr/local/classes12.zip , but when I start Tomcat I am
 |   getting -
 |
 |bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary
file
 |
 |I tried other jar, files, etc. and everyone I transefered either
in
 |   binary
 |mode or ascii via FTP, XMODEM or ZMODEM gives me the same
message.
 |
 |Is my file being corrupted between windows and linux. I am
working
 | with
 |  a
 |remote telnet session so I can't exactly download from Oracle's
 | website
 |   to
 |that machine. Funny thing is ... I have the same Red Hat 6.2
 |  environment
 |here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it
make
 a
 |difference?)
 |
 |Noble
 |   
 |   
 |_
 |Get your FREE download of MSN Explorer at
 |  http://explorer.msn.com/intl.asp
 |   
 |   
 |--
 |To unsubscribe:
 mailto:[EMAIL PROTECTED]
 |For additional commands:
 mailto:[EMAIL PROTECTED]
 |Troubles with the list:
 mailto:[EMAIL PROTECTED]
 |   
 |   
 |  
 |  
 |   --
 |   To unsubscribe:
mailto:[EMAIL PROTECTED]
 |   For additional commands:
mailto:[EMAIL PROTECTED]
 |   Troubles with the list:
mailto:[EMAIL PROTECTED]
 |  
 | 
 | 
 |  --
 |  To unsubscribe:   mailto:[EMAIL PROTECTED]
 |  For additional commands: mailto:[EMAIL PROTECTED]
 |  Troubles with the list: mailto:[EMAIL PROTECTED]
 | 
 |
 |
 | --
 | To unsubscribe:   mailto:[EMAIL PROTECTED]
 | For additional commands: mailto:[EMAIL PROTECTED]
 | Troubles with the list: mailto:[EMAIL PROTECTED]
 |
 |
 |



SHA passwords of LDAP and tomcat

2001-11-14 Thread Isaac Cruz Ballesteros

Does anyone know why a SHA password generated by openLDAP is different from a 
SHA password generated by Tomcat?

# slappasswd -h {SHA} -s tomcat
{SHA}U2wLM5NFYWwbM8r0VEVNi4oZDWw=

# java org.apache.catalina.realm.RealmBase -a SHA tomcat
tomcat:536c0b339345616c1b33caf454454d8b8a190d6c

This is a problem because I want to authenticate users from tomcat, and it 
fails because passwords in LDAP are stored in openldap format

If I put by hand the password in tomcat format in LDAP, it works correctly

Any idea?

Thanks in advance.

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




Re: Where can I find the .sendRedirect source code?

2001-11-14 Thread Craig R. McClanahan



On Wed, 14 Nov 2001, Carl Boudreau wrote:

 Date: Wed, 14 Nov 2001 09:37:37 -0600
 From: Carl Boudreau [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Where can I find the .sendRedirect source code?

 Hi,

 Can anyone point me to the area where the redirect are handled in tomcat?
 I have already downloaded the source, but can't find the exact location.


In Tomcat 4, it's in class org.apache.catalina.connector.HttpResponseBase.

Basically, sendRedirect() does the following:
* Sets the response status to 302 (moved temporarily)
* Adds a Location header whose value is the absolute URL
  to which the browser is being redirected.

One of the most common problems you might be encountering is trying to do
this after the response has been committed.  Because the HTTP status and
headers are sent at the beginning of a response, any attempt to modify
them after the first part of the response has been written will fail with
an IllegalStateException.

A second common problem is trying to do a sendRedirect() from inside a
servlet or JSP page that is included via a request dispatcher.  It's not
legal for an included resource to modify the headers, so this would get
ignored.

 And how about any flow diagrams that shows how tomcat is put together,
 what classes are being called and the basic flow of the application?


Alas there is not -- I've been eagerly waiting for ArgoUML to finish
implementing sequence diagrams so I can draw some nice ones :-).  It's
almost there ...

In the mean time, the flow of a request goes basically like this in Tomcat
4 standalone (o.a.c. is short for org.apache.catalina.):

* o.a.c.connector.http.HttpConnector has a server socket
  waiting for connects.  It receives the incoming connect
  and passes it on to an HttpProcessor (on a different thread).

* o.a.c.connector.http.HttpProcessor converts the incoming
  headers into an instance of o.a.c.HttpRequst, and also creates
  an instance of o.a.c.HttpResponse.

* The processor then calls invoke() on the o.a.c.Container
  associated with our Service.  In the usual configuration, this
  will be the Engine you have configured in server.xml -- an
  instance of o.a.c.core.StandardEngine.

* o.a.c.core.StandardEngine passes the request and response through
  any Valves that you have configured inside the Engine element.
  The last of these will be o.a.c.core.StandardEngineValve, which
  figures out which host should handle the request and passes it on
  to the Host's invoke() method.

* o.a.c.core.StandardHost passes the request and response through
  any Valves that you have configured inside the Host element
  (such as the SingleSignOnValve if you turn it on, and the
  AccessLogValve).  The last one will be o.a.c.core.StandardHostValve
  which figures out which Context should handle the request by
  matching against context paths.  Again, it passes on to the
  invoke() method.

* o.a.c.core.StandardContext acts in a very similar manner, passing
  the request and response through the Valve pipeline you have
  configured.  Finally, o.a.c.core.StandardContextValve looks at your
  servlet-mapping definitions and figures out which servlet should
  process the request.  For each servlet definition, there is an
  instance of o.a.c.core.StandardWrapper.

* Yet again (Engine/Host/Context/Wrapper all implement the standard
  functionality of o.a.c.Container), the request and response are
  passed through the Valve pipeline (if any).  The final Valve will be
  o.a.c.core.StandardWrapperValve, which does the following:
  - Assembles a FilterChain if any filters have been defined
  - Calls the first filter in the chain
  - When the last filter calls FilterChain.doFilter(), the
service() method of your servlet is *finally* called.

* Now, the stack unwinds as each invoke() call along the way returns.
  (But you can see from the above why you get such long exception
  stack traces when your servlet throws an exception :-).

If you are familiar with the Gang of Four design patterns book, this is
basically an implementation of the Chain Of Responsibility pattern.  It is
also very similar to the design pattern for Filters in Servlet 2.3, so you
can do the same sort of thing at the application level, but be portable to
any Servlet 2.3 container.

Craig


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




RE: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);

2001-11-14 Thread Carl Boudreau

Well Tom,

I have changed the following code to read;
if(TxtCheck1.equals(User_Name)) {
// User join1 data has been added to Database
String Redirect_String = ./ValidUser?firstname= +
User_Name;
//resp.sendRedirect(./ValidUser?firstname= +
User_Name);
//resp.encodeRedirectURL(./ValidUser?firstname= +
User_Name);
out.println(Redirect_String + br);
//resp.sendRedirect(Redirect_String.trim());
 Error  
resp.sendRedirect(resp.encodeRedirectURL(Redirect_String.trim()));
//out.close();
out.println(Found User_Name  + User_Name +  on
Row  + result.getRow() + br);

//out.println(resp.encodeRedirectUrl(./ValidUser?firstname= + User_Name) +
p);
out.flush();
}
else {
out.println(User_Name +  User_Name Not Found on
Row  + result.getRow() + p);

//resp.sendRedirect(./htmlpage/joinerror.html);
out.flush();
//out.close();
}

And this is returning  java.lang.IllegalStateException  exception, and
still crashing if the  If  is true.

Any ideas?  Carl


-Original Message-
From: Tom Drake [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 9:57 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);


You're @ is likely the problem. You must url-encoude the redirect address.

- Original Message -
From: Carl Boudreau [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 7:32 AM
Subject: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);


| Good Morning Fellow Coders,
|
| I have a very interesting question for all of you.  Below is a small
| snippet of code which basically validates a database Insert operation.
The
| operation writes to the database then turns around and read the email
| address and compares it to what was passed to the Servlets.  For example
| within the 20 params sent, [EMAIL PROTECTED] would be sent as an
email
| address.  It would then be written and then it would re-query the database
| and compare the results.  This snippet makes the comparison between what
was
| passed and what was read out of the database, in turn uses the Redirect to
| either move on to the next Servlets Join2 if successful, or display
| joinerror.html if un-successful.  But an exception is caught and ends the
| Servlets.  During debug I have reduce the error to the redirect line
| [resp.sendRedirect(./Join2?Email_Address= + EmailAddress);].
|
| Now I have been monitoring the email forum and had seen there was a
problem
| with the redirect.  And in the mean time I had manually started these
| Servlets by using IE and entering the
| [./Join2?[EMAIL PROTECTED])]  and it works fine.  I
| think, I found out, that if I manually do this first, then run it normally
| by hitting it from a index.html page it works.  But my results have been
| very erratic and I don't trust myself.
|
| I have tried to use out.flush( ); alone and then followed up by a
| out.close( ); by this doesn't seem to change anything.
|
| DOES ANYONE HAVE ANY SUGGESTIONS, OR A WORK AROUND?
|
| Source Code Snippet;
|
| if(TxtCheck1.equals(MemberMail))
|{
| // User join1 data has been added to Database
|resp.sendRedirect(./Join2?Email_Address= +
| EmailAddress);
| }
| else {
|
| resp.sendRedirect(./htmlpage/joinerror.html);
|}
|
|
| System Config;
|
| Win2000pro.
| Tomcat 4.0 standalone.
| MySQL 7.0
|
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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


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




Re: Wrap an HttpServletRequest (fwd)

2001-11-14 Thread Craig R. McClanahan

This was asked on TOMCAT-USER also, so I'm forwarding my rely.

Craig

-- Forwarded message --
Date: Wed, 14 Nov 2001 09:09:58 -0800 (PST)
From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Tomcat Developers List [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Subject: Re: Wrap an HttpServletRequest



On Wed, 14 Nov 2001, Diego del Río wrote:

 Date: Wed, 14 Nov 2001 10:16:16 -0300
 From: Diego del Río [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Wrap an HttpServletRequest

 Is there any way to wrap an HttpServletRequest in Tomcat 3.2.x and then
 forward the wrapped request to anoher servlet?
 We need a 'decorated request' with added functionality, more precisely, we
 need to add 'extra-parameters' to that request and then forward it to
 another servlet that process both the original and the added parameters.

In servlet 2.2 (Tomcat 3.x), it is not legal to wrap the request (or
response) that you pass to a request dispatcher -- the only choice you
have is to add request attributes.

In servlet 2.3 (Tomcat 4.0), it is legal to wrap the request and response,
as long as you subclass the provided wrapper base classes.  You can do
this for both request dispatchers and filters.

 Thanks,
 diego


Craig McClanahan


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



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




Manager maxIdleBackup, {min,max}IdleSwap query

2001-11-14 Thread Paul DuBois

I've been pondering the Tomcat Manager component documentation
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
with regard to storing sessions in JDBC-based backing store.  I am not
clear on the distinction between backing up a session and swapping it
(the behaviors controlled by the maxIdleBackup attribute and the
minIdleSwap and maxIdleSwap attributes of the Manager element), and I
don't find anything in the archives.

The relevant section of the documentation reads as follows:

--
maxIdleBackup
The time interval (in seconds) since the last access to a session before
it is eligible for being persisted to the session store, or -1 to
disable this feature. By default, this feature is disabled.

maxIdleSwap
The time interval (in seconds) since the last access to a session before
it should be persisted to the session store, and passivated out of the
server's memory, or -1 to disable this feature. If this feature is
enabled, the time interval specified here should be equal to or longer
than the value specified for maxIdleBackup. By default, this feature is
disabled.

minIdleSwap
The time interval (in seconds) since the last access to a session before
it will be eligible to be persisted to the session store, and passivated
out of the server's memory, or -1 for this swapping to be available at
any time. If specified, this value should be less than that specified by
maxIdleSwap. By default, this value is set to -1.
--

Is the distinction simply that for backing up, Tomcat just writes a
copy of the session information to backing store, whereas for swapping,
Tomcat writes it to backing store and forgets it until a client makes a
request that uses the session again?

Also, is there some required relationship between the values of
maxIdleBackup and minIdleSwap?  The documentation states that
maxIdleBackup = maxIdleSwap and minIdleSwap  maxIdleSwap, but nothing
explicit about maxIdleBackup and minIdleSwap.

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




parameters

2001-11-14 Thread Bongiorno, Christian

I am pretty sure that this is true, but just to get a sanity check,
do the username and password come in as parameters to the servlet as part of
the ServletRequest?


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




RE: mod_jk / Ajp13 config fix on heavily loaded system

2001-11-14 Thread Travis Schmid



 -Original Message-
 From: Schulz, Sebastian, fiscus GmbH, Bonn
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 1:19 AM
 To: '[EMAIL PROTECTED]'
 Subject: AW: mod_jk / Ajp13 config fix on heavily loaded system
 
 
 what's about loadbalancing?
 
 say, we have defined local loadbalancing using
 5 ajp13-worker at workers.properties, and we
 have at server.xml:
 Ajp13Connector port=8009 
  maxThreads=100
  maxSpareThreads=50
  minSpareThreads=10 /
 
 Does this mean, we can support through the
 loadbalancer 100 threads or 500 threads
 (100 * number of workers(5) = 500)?
 
500 threads total.  100 per worker/Tomcat

 b.t.w, another question:
 when using local loadbalancing, does every
 worker has its own VM or are they sharing
 all the same VM?
 

I had this question myself.  I think I have it figured out now but feel free
to correct me anyone that understands this better.  
The workers are threads/groups of threads that are running within the web
servers memory space.  They seem to be threads communicating on a particular
port with an open socket to a Tomcat instance.  Each separate Tomcat
instance has its own VM and is listening on a different port number/host
combination.  I don't think the workers actually do much work.  They just
take the information they are given, transmit it to the Tomcat instance, and
hand the reply information from Tomcat back to the web server.  All the real
work is done within the Tomcat instances (each of which can have their own
VM).

Travis

 thank you,
 sebastian
 
 -Ursprüngliche Nachricht-
 Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 13. November 2001 23:45
 An: Tomcat Developers List
 Cc: [EMAIL PROTECTED]
 Betreff: mod_jk / Ajp13 config fix on heavily loaded system
 
 
 Hi to all,
 
 Some of you may have experienced problems on heavily 
 loaded system with mod_jk and Tomcat 3.2/3.3 when using
 ajp13.
 
 As you may know, the Ajp13 connection is permanent
 and is created each time a WebServer task, for
 example an Apache child, have to forward a request
 to Tomcat. 
 
 And in Apache server case, the child will stay alive,
 until the client requests load decrease, or when 
 a child have passed 1000 requests (MaxRequestsPerChild 1000).
 And till the child close the connection, the Tomcat thread
 stay alive.
 
 By default Apache server support up to 150 childs :
 (MaxClients 150 in httpd.conf)
 
 But by default, the Ajp13 Interceptor won't use more
 than 100 threads, so you're stuck when the 101th Apache
 child want to forward a request and see the following
 infamous trace in mod_jk.log :
 
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
 jk_endpoint_t::connect_to_tomcat, failed errno = 111
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error 
 connecting
 to the Tomcat process.
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (848)]: In
 jk_endpoint_t::service, send_request failed in send loop 2
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (228)]:
 connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (712)]: Error reading
 reply
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (845)]: In
 jk_endpoint_t::service, get_reply failed in send loop 0
 [wed oct 31 11:03:21 2001]  [jk_connect.c (143)]: jk_open_socket,
 connect() failed errno = 111
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
 jk_endpoint_t::connect_to_tomcat, failed errno = 111
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error 
 connecting
 to the Tomcat process.
  
 In some case, Apache could be able to connect, since Tomcat listening
 thread will accept incoming connection, but will drop it later if it
 fail to give the socket to a new thread. In that case you'll see 
 only in log :
 
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (848)]: In
 jk_endpoint_t::service, send_request failed in send loop 2
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (228)]:
 connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
 [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (712)]: Error reading
 reply
 
 Fortunatly, the fix is easy, just configure Ajp13Connector in
 server.xml to support up to 150 threads (or whatever you define
 as MaxClients in Apache, didn't know how on IIS/iPlanet).
 
 Ajp13Connector port=8009 
  maxThreads=150
  maxSpareThreads=50
  minSpareThreads=10 /
 
 Also you should take care of the number of descriptors
 opened in your webapplication, which is :
 
   Tomcat used descriptors (sockets, files) 
 + YouWebApp descriptors (files, sockets, jdbc...)
 
 The JVM, like any others process have a limit on the number
 of descriptors it could open (and of course on number of threads).
 
 So take care of closing no more used socket, files and so on.
 
 
 -
 Henri Gomez ___[_]
 

Re: parameters

2001-11-14 Thread Craig R. McClanahan



On Wed, 14 Nov 2001, Bongiorno, Christian wrote:

 Date: Wed, 14 Nov 2001 12:59:06 -0500
 From: Bongiorno, Christian [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: parameters

 I am pretty sure that this is true, but just to get a sanity check,
 do the username and password come in as parameters to the servlet as part of
 the ServletRequest?


In general the answer is no, but it depends on which login method you
are using.  For BASIC authentication, they come in as part of the
Authorization header, in accordance with the requirements of HTTP (see
RFC 2617 for more info -- you can use the search engine at
http://www.rfc-editor.org to find it).

Once the user has been authenticated, you have access to the following
methods at the application level:
* request.getRemoteUser() returns the username
* request.getUserPrincipal() returna a java.security.Principal
  object for the authenticated user
* request.isUserInRole() lets you ask if the currently logged in
  user has a particular security role.

Note that the password is not visible through these APIs.  That is
appropriate, because you don't need it if you are letting the container
manage logins -- all you care about is whether the user has been
authenticated or not.

Craig


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




Request Dispatcher

2001-11-14 Thread Scott Walter

I am trying to use a RequestDispatcher include with a
JSP page, it seems to be including the content above
the location where I have coded the include.  Any 
clues???

Below is my code
%
RequestDispatcher rd =
request.getRequestDispatcher(pageName);
 
rd.include(request,response);
%

=
~~~
Scott

__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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




Re: Request Dispatcher

2001-11-14 Thread Tom Drake

JSP provides an easier way to do what you are attempting.
However, the 'hot' include mechanism, is very much like a
function call. the output from the included jsp/servlet simply
appears in the middle of your output stream. It does not replace
the entire page.

If you need a completely different response, you may need
to use the 'forward' mechanism instead. If you do, you must
forward to the other page prior to producing any output
at all.

Tom
- Original Message - 
From: Scott Walter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 10:16 AM
Subject: Request Dispatcher


| I am trying to use a RequestDispatcher include with a
| JSP page, it seems to be including the content above
| the location where I have coded the include.  Any 
| clues???
| 
| Below is my code
| %
| RequestDispatcher rd =
| request.getRequestDispatcher(pageName);
|  
| rd.include(request,response);
| %
| 
| =
| ~~~
| Scott
| 
| __
| Do You Yahoo!?
| Find the one for you at Yahoo! Personals
| http://personals.yahoo.com
| 
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
| 
| 
| 


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




RE: Request Dispatcher

2001-11-14 Thread Rajah Kalipatnapu

thats exactly correct, and if do not want to use forward, may be u can use a
conditional
statement

-Original Message-
From: Tom Drake [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:32 AM
To: Tomcat Users List
Subject: Re: Request Dispatcher


JSP provides an easier way to do what you are attempting.
However, the 'hot' include mechanism, is very much like a
function call. the output from the included jsp/servlet simply
appears in the middle of your output stream. It does not replace
the entire page.

If you need a completely different response, you may need
to use the 'forward' mechanism instead. If you do, you must
forward to the other page prior to producing any output
at all.

Tom
- Original Message -
From: Scott Walter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 10:16 AM
Subject: Request Dispatcher


| I am trying to use a RequestDispatcher include with a
| JSP page, it seems to be including the content above
| the location where I have coded the include.  Any
| clues???
|
| Below is my code
| %
| RequestDispatcher rd =
| request.getRequestDispatcher(pageName);
|
| rd.include(request,response);
| %
|
| =
| ~~~
| Scott
|
| __
| Do You Yahoo!?
| Find the one for you at Yahoo! Personals
| http://personals.yahoo.com
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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


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




RE: Tomcat 3.2.3 and struts 1.1 - fixed!

2001-11-14 Thread Marko Sarunac

I have deleted the jaxp.jar and parser.jar and replaced it with parser.jar
and crimson.jar 
from jaxp 1.1 implementation and it seems to work now

Thanks Larry!

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 5:57 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.2.3 and struts 1.1


I'm not sure why you are getting duplicate entries in your
CLASSPATH, but it looks like it is only using the parser.jar
from the Tomcat 3.2.3 distribution.  This parser.jar is from
JAXP 1.0.1, which doesn't have a org.xml.sax.helpers.DefaultHandler.
I would guess that your linux system has a newer one.
You can replace the jaxp.jar and parser.jar on your NT system with
a newer XML parser and Tomcat should still run without problems.

Cheers,
Larry

 -Original Message-
 From: Marko Sarunac [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 5:07 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.2.3 and struts 1.1
 
 
 I got tomcat 3.2.3 running with struts 1.1 on linux without problems.
 
 However, on NT, which sadly i have to use as my dev boxit doesn't 
 start and it gives me the following...
 
 Any help is greatelly appreciated!!!
 
 
 
 
 D:\jakarta-tomcat-3.2.3\bintomcat run
 Including all jars in D:\jakarta-tomcat-3.2.3\lib in your CLASSPATH.
 
 Using CLASSPATH: 
 D:\jakarta-tomcat-3.2.3\classes;D:\jakarta-tomcat-3.2.3
 \lib\ant
 .jar;D:\jakarta-tomcat-3.2.3\lib\jasper.jar;D:\jakarta-tomcat-3.2.3
 \lib\jaxp.jar
 ;D:\jakarta-tomcat-3.2.3\lib\parser.jar;D:\jakarta-tomcat-3.2.3
 \lib\servlet.jar;
 D:\jakarta-tomcat-3.2.3\lib\webserver.jar;D:\jakarta-tomcat-3.2.3
 \classes;D:\jak
 arta-tomcat-3.2.3\lib\ant.jar;D:\jakarta-tomcat-3.2.3
 \lib\jasper.jar;D:\jakarta-
 tomcat-3.2.3\lib\jaxp.jar;D:\jakarta-tomcat-3.2.3
 \lib\parser.jar;D:\jakarta-tomc
 at-3.2.3\lib\servlet.jar;D:\jakarta-tomcat-3.2.3
 \lib\webserver.jar;C:\jdk1.3.1_0
 1\lib\tools.jar;C:\jdk1.3.1_01\lib\tools.jar
 
 2001-11-13 13:59:43 - ContextManager: Adding context Ctx( /examples )
 2001-11-13 13:59:43 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx( /mysite )
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx(  )
 2001-11-13 13:59:53 - ContextManager: Adding context Ctx( /test )
 java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at 
 org.apache.tomcat.loader.AdaptiveClassLoader12.doDefineClass
 (Adaptive
 ClassLoader12.java:93)
 at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass
 (AdaptiveClassL
 oader.java:509)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at org.apache.struts.action.ActionServlet.initDigester
 (ActionServlet.jav
 a:)
 at org.apache.struts.action.ActionServlet.initMapping
 (ActionServlet.java
 :1267)
 at org.apache.struts.action.ActionServlet.init
 (ActionServlet.java:461)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.tomcat.core.ServletWrapper.doInit
 (ServletWrapper.java:317)
 
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init
 (ServletWrapper.java:296)
 at 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
 StartupInterceptor.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)
 Exception in thread main java.lang.NoClassDefFoundError: 
 org/apache/commons/di
 gester/Digester
 at org.apache.struts.action.ActionServlet.initDigester
 (ActionServlet.jav
 a:)
 at org.apache.struts.action.ActionServlet.initMapping
 (ActionServlet.java
 :1267)
 at org.apache.struts.action.ActionServlet.init
 (ActionServlet.java:461)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.tomcat.core.ServletWrapper.doInit
 (ServletWrapper.java:317)
 
 at org.apache.tomcat.core.Handler.init(Handler.java:215)
 at org.apache.tomcat.core.ServletWrapper.init
 (ServletWrapper.java:296)
 at 
 org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
 StartupInterceptor.java:130)
 at org.apache.tomcat.core.ContextManager.initContext
 (ContextManager.java
 :491)
 at org.apache.tomcat.core.ContextManager.init
 (ContextManager.java:453)
 at 

Xerces Parser Security and Path Problems

2001-11-14 Thread Frank Lawlor

I encountered  a couple of problems trying to use 
xerces and security in my application.

BUG 1:

I have xerces.jar in myapp/WEB-INF/lib.  This works
fine until I turn on security (-security switch) which
uses conf/catalina.policy.

I added a permission for my application to do anything:
   grant codeBase file:${catalina.home}/webapps/myapp/- {
permission java.security.AllPermission;
   };

This works fine except when I invoke xerces:
XMLReader xr = XMLReaderFactory.createXMLReader();
...
xr.parse(my_xml_file);

I get an access violation on the file (which is in myapp).

If I move xerces.jar to common/lib this error goes away.

There seems to be a problem related to security when loading
jars from WEB-INF/lib.  This was reported earlier by Sergey V. Udaltsov
in the post titled policy for classes in WEB-INF/lib/my.jar.

BUG 2:

FURTHER, moving xerces.jar to common/lib seems to introduce 
its own problem related to the handling of DTDs.  A couple of my
xml files have DTD specs like:
   !DOCTYPE links SYSTEM ../Links.dtd

I found that the parser computes the path relative to the startup
directory of catalina, rather than relative to the location of the
xml file.  It does not do this when it is in WEB-INF/lib.  This is 
clearly unusable since the web app author has no idea where
the startup dir will be and no way to get the DTDs there.


Am I missing something here on how this is supposed to
operate or are these legitimate bugs?

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




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




Re: Cp1252

2001-11-14 Thread Nikola Milutinovic

Chen, Gin wrote:

 Hi all,
   When I am using JBoss and Tomcat 4.0.1 integrated build. I get an
 error with any of my JBoss.xml files that have the ?xml version=1.0
 encoding=Cp1252? line.

CP-1252? You mean Micro$oft CodePage 1252? Don't expect it to work with ANY Java 
based tool. Java recognizes Unicode and ISO-8859-x charsets.

I'm not sure whether CP-1252 has the same encoding as ISO-8859-1 (a.k.a. 
Latin-1), but I know for sure that CP-1250 and ISO-8859-2 DO NOT.

So expect some conversion trouble.

That is, if you are using Western Europe extended ASCII characters (code  127).

Nix.


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




Re: Xerces Parser Security and Path Problems

2001-11-14 Thread Craig R. McClanahan

On Wed, 14 Nov 2001, Frank Lawlor wrote:

 Date: Wed, 14 Nov 2001 12:51:37 -0600
 From: Frank Lawlor [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat (E-mail) [EMAIL PROTECTED]
 Subject: Xerces Parser Security and Path Problems

 I encountered  a couple of problems trying to use
 xerces and security in my application.

 BUG 1:

 I have xerces.jar in myapp/WEB-INF/lib.  This works
 fine until I turn on security (-security switch) which
 uses conf/catalina.policy.

 I added a permission for my application to do anything:
grant codeBase file:${catalina.home}/webapps/myapp/- {
 permission java.security.AllPermission;
};

 This works fine except when I invoke xerces:
 XMLReader xr = XMLReaderFactory.createXMLReader();
   ...
 xr.parse(my_xml_file);

 I get an access violation on the file (which is in myapp).

 If I move xerces.jar to common/lib this error goes away.

 There seems to be a problem related to security when loading
 jars from WEB-INF/lib.  This was reported earlier by Sergey V. Udaltsov
 in the post titled policy for classes in WEB-INF/lib/my.jar.


It's not clear to me that this is a bug.

The exception goes away because the default catalina.policy grants all
permissions to code loaded from the common/lib directory.  If you want an
individual webapp to access files, you need to grant specific file
permissions to it -- see the examples at the bottom of
conf/catalina.policy for hints on how to do this.

Note that this would be required even if you wanted to use file I/O
directly in your servlet (as opposed to indirectly via the parser) -- the
default policy file completely disables file access for classes loaded
from /WEB-INF/classes or /WEB-INF/lib of your webapp.

 BUG 2:

 FURTHER, moving xerces.jar to common/lib seems to introduce
 its own problem related to the handling of DTDs.  A couple of my
 xml files have DTD specs like:
!DOCTYPE links SYSTEM ../Links.dtd

 I found that the parser computes the path relative to the startup
 directory of catalina, rather than relative to the location of the
 xml file.  It does not do this when it is in WEB-INF/lib.  This is
 clearly unusable since the web app author has no idea where
 the startup dir will be and no way to get the DTDs there.


How relative URLs are interpreted is up to the parser, not to Tomcat.  My
understanding is that they were supposed to be relative to the URL of the
document itself -- but you'd have to ask the Xerces folks what they are
asuming.

One thing I generally do is to implement an EntityResolver so that I can
redirect these kinds of things in an application-specific way.


 Am I missing something here on how this is supposed to
 operate or are these legitimate bugs?

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


Craig


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




Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Nikola Milutinovic

Tom Drake wrote:

 This has nothing to do with tomcat. It is standard unix behavior. 
 When a user logs out, all processes created by that user are killed.


No, when a user logs out all processes that are children to that shell instance 
are sent a HUP signal (Hang UP). A process may choose to ignore that signal. 
Every well written daemon and server process SHOULD do that (among other things).


 Unix provides simple way to around this feature.
 Simply type the following command:
 
 nohup tomcat.sh run 


I use tomcat.sh start instead of tomcat.sh run and so should Nancy. The 
problem is in Tomcat getting HUP signal, but in loosing a console, I think.


 In this case all 'console output produced by tomcat will 
 appear in a file called 'nohup.out'.
 
 The name nohup comes from the days of flaky dialup connections 
 and is short for 'no hang-up'. It is used to 
 prevent a spurious loss of connection (or hang-up) from stopping
 a process.

Or for instance, I connect to my company, locate a file for download, place it 
in script, run the script with nohup and disconnect. The download will go on.

Nix.


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




Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams

I have a page (JSP) which contains a form with a servlet as the action
of the form.  However whenever I submit the form I am getting a Not
Found 404 error telling me that a Javascript file which is used for
Javascript on the page is not found.  I am perplexed as to why this is
happening, especially since the Javascript is working as it should.  I
should instead be forwarded to the servlet which will handle the form
parameters.  Can anyone suggest ways to find out what is going wrong
?  Thanks in advance for any suggestions...

-James




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




RE: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Randy Layman



 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 2:07 PM
 To: Tomcat Users List
 Subject: Re: STARTUP.SH DOESN'T WORKS FINE
 
 
 Every well written daemon and server process SHOULD do that 
 (among other things).
 
 

But you need to remember that you are not running Tomcat, you are running
Java - that's a big difference.  And it limits what is possible.


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




Re: Java and double

2001-11-14 Thread phillipmastroianni

try putting a 1000d (I think you have to tell the vm that this is a 
double value or it may try an compute a float!

- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
Date: Wednesday, November 14, 2001 9:41 am
Subject: Re: Java and double

 Not sure what your point is.  The code is okay, check out the 
 internalmath yourself.  You can do it by hand.  If you want more 
 precision, use
 different code.
 
 -Original Message-
 From: Mangi, Rick [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Date: Wednesday, November 14, 2001 8:44 AM
 Subject: RE: Java and double
 
 
 Ya, I've seen that one before. use the java.math package.
 
 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 10:39 AM
 To: [EMAIL PROTECTED]
 Subject: Java and double
 
 
 Hi,
 
 Excuse me... this mail shouldnot be on this mailing list but
 it is an hurry.
 
 public class TestDouble
 {
   static public void main(String args[]) {
 
 double val = 0.5055 * 1000 ;
 System.out.println( val );
   }
 }
 
 This program gives me the following results :
 505.44
 
 I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.
 
 Have u got informations about this ?
 Can u try too ?
 
 Thanks a lot and sorry again
 
 Bye
 
 Michenaud Laurent
 - Adeuza -
 [ Développeur Web - Administrateur Réseau ]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 This email and any attachments are confidential and may be
 legally privileged. No confidentiality or privilege is waived
 or lost by any transmission in error.  If you are not the
 intended recipient you are hereby notified that any use,
 printing, copying or disclosure is strictly prohibited.
 Please delete this email and any attachments, without
 printing, copying, forwarding or saving them and notify the
 sender immediately by reply e-mail.  Zurich Capital Markets
 and its affiliates reserve the right to monitor all e-mail
 communications through its networks.  Unless otherwise
 stated, any pricing information in this e-mail is indicative
 only, is subject to change and does not constitute an offer
 to enter into any transaction at such price and any terms in
 relation to any proposed transaction are indicative only and
 subject to express final confirmation.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



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




Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Tom Drake


- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 11:07 AM
Subject: Re: STARTUP.SH DOESN'T WORKS FINE


| Tom Drake wrote:
|
|  This has nothing to do with tomcat. It is standard unix behavior.
|  When a user logs out, all processes created by that user are killed.
|
|
| No, when a user logs out all processes that are children to that shell
instance
| are sent a HUP signal (Hang UP). A process may choose to ignore that
signal.
| Every well written daemon and server process SHOULD do that (among other
things).

Effectively the process is killed. I think we are saying the same thing.
As far as I know, there's no way to receive SIGHUP (or any other Unix
signal)
in your java code anyway.

|
|
|  Unix provides simple way to around this feature.
|  Simply type the following command:
| 
|  nohup tomcat.sh run 
|
|
| I use tomcat.sh start instead of tomcat.sh run and so should Nancy.
The
| problem is in Tomcat getting HUP signal, but in loosing a console, I
think.

I think that run is actually more appropriate since it will not spawn the
jvm
in background. We are doing that ourselves with the '' at the end of the
command above.

|
|
|  In this case all 'console output produced by tomcat will
|  appear in a file called 'nohup.out'.
| 
|  The name nohup comes from the days of flaky dialup connections
|  and is short for 'no hang-up'. It is used to
|  prevent a spurious loss of connection (or hang-up) from stopping
|  a process.
|
| Or for instance, I connect to my company, locate a file for download,
place it
| in script, run the script with nohup and disconnect. The download will go
on.
|
| Nix.
|
|
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
|
|
|


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




Re: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);

2001-11-14 Thread Tom Drake

Carl:

encodeURL() and encodeRedirectURL() do not do what you think they do.
These methods may add a 'jsessioniid=...' entry to url. They will not URL
encode
the url string itself.

However, I think that I was wrong about the '@' anyway. You could still have
a problem with
invalid characters in your URL. Everyone should be urlencoding everything
after the '?' in their url's.
There is some code on the jakarta site that will do this. I think it's in a
class called something
like HttpUtils.java. I think you can find it in taglibs or struts.

I don't know what would cause an illegal state exception.

Tom
- Original Message -
From: Carl Boudreau [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]; 'Tom Drake'
[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 9:54 AM
Subject: RE: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);


| Well Tom,
|
| I have changed the following code to read;
| if(TxtCheck1.equals(User_Name)) {
| // User join1 data has been added to Database
| String Redirect_String = ./ValidUser?firstname=
+
| User_Name;
| //resp.sendRedirect(./ValidUser?firstname= +
| User_Name);
| //resp.encodeRedirectURL(./ValidUser?firstname=
+
| User_Name);
| out.println(Redirect_String + br);
| //resp.sendRedirect(Redirect_String.trim());
|  Error  
| resp.sendRedirect(resp.encodeRedirectURL(Redirect_String.trim()));
| //out.close();
| out.println(Found User_Name  + User_Name +  on
| Row  + result.getRow() + br);
|
| //out.println(resp.encodeRedirectUrl(./ValidUser?firstname= + User_Name)
+
| p);
| out.flush();
| }
| else {
| out.println(User_Name +  User_Name Not Found
on
| Row  + result.getRow() + p);
|
| //resp.sendRedirect(./htmlpage/joinerror.html);
| out.flush();
| //out.close();
| }
|
| And this is returning  java.lang.IllegalStateException  exception, and
| still crashing if the  If  is true.
|
| Any ideas?  Carl
|
|
| -Original Message-
| From: Tom Drake [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, November 14, 2001 9:57 AM
| To: Tomcat Users List; [EMAIL PROTECTED]
| Subject: Re: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);
|
|
| You're @ is likely the problem. You must url-encoude the redirect address.
|
| - Original Message -
| From: Carl Boudreau [EMAIL PROTECTED]
| To: 'Tomcat Users List' [EMAIL PROTECTED]
| Sent: Wednesday, November 14, 2001 7:32 AM
| Subject: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);
|
|
| | Good Morning Fellow Coders,
| |
| | I have a very interesting question for all of you.  Below is a small
| | snippet of code which basically validates a database Insert operation.
| The
| | operation writes to the database then turns around and read the email
| | address and compares it to what was passed to the Servlets.  For example
| | within the 20 params sent, [EMAIL PROTECTED] would be sent as an
| email
| | address.  It would then be written and then it would re-query the
database
| | and compare the results.  This snippet makes the comparison between what
| was
| | passed and what was read out of the database, in turn uses the Redirect
to
| | either move on to the next Servlets Join2 if successful, or display
| | joinerror.html if un-successful.  But an exception is caught and ends
the
| | Servlets.  During debug I have reduce the error to the redirect line
| | [resp.sendRedirect(./Join2?Email_Address= + EmailAddress);].
| |
| | Now I have been monitoring the email forum and had seen there was a
| problem
| | with the redirect.  And in the mean time I had manually started these
| | Servlets by using IE and entering the
| | [./Join2?[EMAIL PROTECTED])]  and it works fine.  I
| | think, I found out, that if I manually do this first, then run it
normally
| | by hitting it from a index.html page it works.  But my results have been
| | very erratic and I don't trust myself.
| |
| | I have tried to use out.flush( ); alone and then followed up by a
| | out.close( ); by this doesn't seem to change anything.
| |
| | DOES ANYONE HAVE ANY SUGGESTIONS, OR A WORK AROUND?
| |
| | Source Code Snippet;
| |
| | if(TxtCheck1.equals(MemberMail))
| |{
| | // User join1 data has been added to Database
| |resp.sendRedirect(./Join2?Email_Address= +
| | EmailAddress);
| | }
| | else {
| |
| | resp.sendRedirect(./htmlpage/joinerror.html);
| |}
| |
| |
| | System Config;
| |
| | Win2000pro.
| | Tomcat 4.0 standalone.
| | MySQL 7.0
| |
| |
| | --
| | To unsubscribe:   

Byte Serving PDF's

2001-11-14 Thread MacDonald, Todd

Anyone know how (or better yet, have some code to) byte serve PDF's through
Tomcat 4?

-T

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




RE: resp.sendRedirect(./Join2?Email_Address= + EmailAddress);

2001-11-14 Thread Carl Boudreau

Hey Tom,

Another java developer has sugested another avenue of attack

I have replace that last code snippet with ;

if(TxtCheck1.equals(User_Name)) {
// User join1 data has been added to Database
String Redirect_String = ./ValidUser?firstname= +
User_Name;
WltRedirect myRedirect = new
WltRedirect(Redirect_String);
out.println(myRedirect.getRedirect());
}

And then built an object;

public class WltRedirect
{
String redirect;
String fixedA = htmlheadMETA HTTP-EQUIV=\Expires\ CONTENT=\Tue,
01 Jan 1980 1:00:00 GMT\;
String fixedB = META HTTP-EQUIV=\Pragma\ CONTENT=\no-cache\meta
http-equiv=\Refresh\ Content=\0; URL=;
String PassedIn;
String fixedD = \titleWeekly Love
Tips/title/headbody/body/html;

public WltRedirect (String PassedIn)
{
redirect = fixedA + fixedB + PassedIn + fixedD;
}

public String getRedirect()
{
return redirect;
}
}

This seems to be operating smoothly.


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




FW: Xerces Parser Security and Path Problems

2001-11-14 Thread Frank Lawlor


  There seems to be a problem related to security when loading
  jars from WEB-INF/lib.  This was reported earlier by Sergey
 V. Udaltsov
  in the post titled policy for classes in WEB-INF/lib/my.jar.
 

 It's not clear to me that this is a bug.

 The exception goes away because the default catalina.policy grants all
 permissions to code loaded from the common/lib directory.  If
 you want an
 individual webapp to access files, you need to grant specific file
 permissions to it -- see the examples at the bottom of
 conf/catalina.policy for hints on how to do this.

 Note that this would be required even if you wanted to use file I/O
 directly in your servlet (as opposed to indirectly via the
 parser) -- the
 default policy file completely disables file access for classes loaded
 from /WEB-INF/classes or /WEB-INF/lib of your webapp.


I don't think this is correct.
As I indicated, I granted my application All Permissions.
It does do a lot of file access (including to the file
to be parsed).  Without the permissions it gets access
errors, so it seems to be working.  If I open the target
file for the parser, it can access it:
  xr.parse(new InputSource(new java.io.FileReader(my_xml_file)));

I did try specific file permissions granted to the app
and to the xerces.jar and that didn't help.  Is there
some special way that the file permission needs to
be granted (BTW there are no examples of FILE permissions
in my version of catalina.policy).

This seems like a fairly basic problem that should be
easy to verify.

Here is the actual error info:
java.security.AccessControlException:
   access denied (java.io.FilePermission
 D:\jakarta-tomcat-4.0-rc2\webapps\AGCW\agcw.xml read)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122)
  at
com.athensgroup.shared.sax.Agcw_Walker.processConfiguration(Agcw_Walker.java
:52)

Thanks,

  -- Frank


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




RE: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Tanner, Don

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nancy,
Try the following;

If you DO NOT want the output from tomcat.sh to go to the file
nohup.out

nohup tomcat.sh start  /dev/null 21

Later!
DT

The opinions expressed above are probably mine but not necessarily
the opinions of my employers. In order to prevent possible injury to
yourself, or your computer, and to ensure readability, please do not
smoke, eat, drink, spindle, bend, fold, staple, or mutilate this
e-mail message.




- -Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 8:55 AM
To: Tomcat_Users
Subject: STARTUP.SH DOESN'T WORKS FINE


Hello everybody!
I hope you could help me, please..

Actually, I'm begining to use Tomcat, and I have a succeded start
because it still works PERFECT to me...
But muy problem is very strange :
I installed Tomcat to Solaris 8, and when I start it (startup.sh |
tomcat.sh start ) it starts, but when I close the terminal window
Tomcat
shuts down!!! and now I'm using Tomcat with a terminal window opened
with the caution message :DON'T CLOSE, PLEASE...

I hope you could help me to fix it.
Nancy.



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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQA/AwUBO/LRcSqKAcOxsM3XEQJugQCgpdTh+4s7R+DF1httL/erEk0qyR4AoLEx
h1bSrBotdA+YvhhkYre0NVbF
=vMJe
-END PGP SIGNATURE-

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




RE: mod_jk / Ajp13 config fix on heavily loaded system

2001-11-14 Thread Maureen Fisher

We are currently experiencing heavy load using ajpv13.
We had set those parameters as Henri specified as 100, 50 and 20 and still 
she died.

We went back to 12 and experienced same problems.

My questions are:
1) Like apache has the built-in monitor (server-status)  where you can 
watch the states of open threads to the web server, does tomcat offer 
anything like that?

2) how do you insert time/date in mod_jk.log as Henri's snippet includes? I 
have tried
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

but apache complains
Syntax error on line 295:
Invalid command 'JkLogStampFormat', perhaps mis-spelled or defined by a 
module not included in the server configuration
./apachectl startssl: httpd could not be started

3) How do I determine what version of mod_jk.so I am using? My system was 
built for us by our systems group.
Here is the file size:
-rwxr-xr-x   1 root systems   141624 Feb 05 2001  mod_jk.so


Using jdk 1.3.0 under AIX
Apache 1.3.14
Tomcat 3.2.2
ajpv13


At 10:04 AM 11/14/2001 -0800, Travis Schmid wrote:


  -Original Message-
  From: Schulz, Sebastian, fiscus GmbH, Bonn
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, November 14, 2001 1:19 AM
  To: '[EMAIL PROTECTED]'
  Subject: AW: mod_jk / Ajp13 config fix on heavily loaded system
 
 
  what's about loadbalancing?
 
  say, we have defined local loadbalancing using
  5 ajp13-worker at workers.properties, and we
  have at server.xml:
  Ajp13Connector port=8009
   maxThreads=100
   maxSpareThreads=50
   minSpareThreads=10 /
 
  Does this mean, we can support through the
  loadbalancer 100 threads or 500 threads
  (100 * number of workers(5) = 500)?
 
500 threads total.  100 per worker/Tomcat

  b.t.w, another question:
  when using local loadbalancing, does every
  worker has its own VM or are they sharing
  all the same VM?
 

I had this question myself.  I think I have it figured out now but feel free
to correct me anyone that understands this better.
The workers are threads/groups of threads that are running within the web
servers memory space.  They seem to be threads communicating on a particular
port with an open socket to a Tomcat instance.  Each separate Tomcat
instance has its own VM and is listening on a different port number/host
combination.  I don't think the workers actually do much work.  They just
take the information they are given, transmit it to the Tomcat instance, and
hand the reply information from Tomcat back to the web server.  All the real
work is done within the Tomcat instances (each of which can have their own
VM).

Travis

  thank you,
  sebastian
 
  -Ursprüngliche Nachricht-
  Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 13. November 2001 23:45
  An: Tomcat Developers List
  Cc: [EMAIL PROTECTED]
  Betreff: mod_jk / Ajp13 config fix on heavily loaded system
 
 
  Hi to all,
 
  Some of you may have experienced problems on heavily
  loaded system with mod_jk and Tomcat 3.2/3.3 when using
  ajp13.
 
  As you may know, the Ajp13 connection is permanent
  and is created each time a WebServer task, for
  example an Apache child, have to forward a request
  to Tomcat.
 
  And in Apache server case, the child will stay alive,
  until the client requests load decrease, or when
  a child have passed 1000 requests (MaxRequestsPerChild 1000).
  And till the child close the connection, the Tomcat thread
  stay alive.
 
  By default Apache server support up to 150 childs :
  (MaxClients 150 in httpd.conf)
 
  But by default, the Ajp13 Interceptor won't use more
  than 100 threads, so you're stuck when the 101th Apache
  child want to forward a request and see the following
  infamous trace in mod_jk.log :
 
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
  jk_endpoint_t::connect_to_tomcat, failed errno = 111
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error
  connecting
  to the Tomcat process.
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (848)]: In
  jk_endpoint_t::service, send_request failed in send loop 2
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (228)]:
  connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (712)]: Error reading
  reply
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (845)]: In
  jk_endpoint_t::service, get_reply failed in send loop 0
  [wed oct 31 11:03:21 2001]  [jk_connect.c (143)]: jk_open_socket,
  connect() failed errno = 111
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (196)]: In
  jk_endpoint_t::connect_to_tomcat, failed errno = 111
  [wed oct 31 11:03:21 2001]  [jk_ajp13_worker.c (635)]: Error
  connecting
  to the Tomcat process.
 
  In some case, Apache could be able to connect, since Tomcat listening
  thread will accept incoming connection, but will drop it later if it
  fail to give the socket to a new thread. In that case you'll see
  only in log :
 
  [wed oct 31 11:03:21 

Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread James Adams

I have a page (JSP) which contains a form with a servlet as the action
of the form.  However whenever I submit the form I am getting a Not
Found 404 error telling me that a Javascript file which is used for
Javascript on the page is not found.  I am perplexed as to why this is
happening, especially since the Javascript is working as it should.  I
should instead be forwarded to the servlet which will handle the form
parameters.  Can anyone suggest ways to find out what is going wrong
?  Thanks in advance for any suggestions...

-James


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




RE: Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread Randy Layman


First suggestion: Eliminate the JavaScript.  Our developers (myself
included) have had plenty of problems with variables named action resetting
the URL that the form posts to.

Also, try posting to different things - a non-existent HTML file to
start with and check what URL is requested.  This should help you track down
whether its client side or server side that is messing things up.

Randy


 -Original Message-
 From: James Adams [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 1:55 PM
 To: [EMAIL PROTECTED]
 Subject: Why am I getting a Javascript file instead of my servlet ?
 
 
 I have a page (JSP) which contains a form with a servlet as the action
 of the form.  However whenever I submit the form I am getting a Not
 Found 404 error telling me that a Javascript file which is used for
 Javascript on the page is not found.  I am perplexed as to why this is
 happening, especially since the Javascript is working as it should.  I
 should instead be forwarded to the servlet which will handle the form
 parameters.  Can anyone suggest ways to find out what is going wrong
 ?  Thanks in advance for any suggestions...
 
 -James
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread D. Jay Newman

   First suggestion: Eliminate the JavaScript.  Our developers (myself
 included) have had plenty of problems with variables named action resetting
 the URL that the form posts to.

JavaScript itself isn't too bad. It's very useful to add interaction to
a page.

Just don't try having a JavaScript variable named item when using Internet
Explorer.
-- 
D. Jay Newman  !  // The worst possible legal hashCode
[EMAIL PROTECTED]!  public int hashCode() { return 42;}
http://www.sprucegrove.com/~jay/   !-- _Effective Java_

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




RE: Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread Randy Layman



 -Original Message-
 From: D. Jay Newman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, November 14, 2001 4:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Why am I getting a Javascript file instead of my 
 servlet ?
 
 
  First suggestion: Eliminate the JavaScript.  Our 
 developers (myself
  included) have had plenty of problems with variables named 
 action resetting
  the URL that the form posts to.
 
 JavaScript itself isn't too bad. It's very useful to add 
 interaction to
 a page.
 

I wasn't saying JavaScript was bad or should be gotten rid of - I was
suggesting dumping all of the JavaScript as a first step to figuring out
where the problem is (division of one large problem into areas to limit the
amount of code to be examined).


 -- 
 D. Jay Newman  !  // The worst possible 
 legal hashCode
 [EMAIL PROTECTED]!  public int hashCode() { 
 return 42;}
 http://www.sprucegrove.com/~jay/   !-- _Effective Java_
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Class not found in import

2001-11-14 Thread Geoffrey J Bourne

When my JSPs compile, they can't find imported classes (for example 
javax.ejb.CreateException).

The above example is in the j2ee.jar file and I've included it in my CLASSPATH.  In 
fact, I've run javap javax.ejb.CreateException just to make sure.  

Is there so where in Tomcat (on NT) that you can specify global jar files to include, 
or some eniviroment variable I'm missing?

Note, my J2EE_CLASSPATH, PATH, and CLASSPATH are all set.

CLASSPATH=e:\j2sdkee1.3\bin\j2ee.jar

The error is:
E:\Program Files\Apache Tomcat 4.0\work\localhost\Fitch\EJBTester$jsp.java:9: Class 
javax.ejb.CreateException not found in import.
   javax.ejb.CreateException;

Thanks for the help.

-geoff



Re: Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams

As a test I have set the action of the form equal to alert(1) as well as
to a test JSP which prints the form parameters, both of these work
well.  However when the action is my form handler servlet that's when I
get the bad voodoo - it tells me that it can't find the .js file when I
submit, and it shows that it is looking for the file in the same
directory as where the servlet would be located.  Why it is looking for
the .js file instead of the servlet which is the specified action of the
form ?  All other form actions I've tried seem to work OK, but my
servlet has some Javascript monkey business happening with it that just
shouldn't be happening, but why is not obvious.

-James


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




Re: Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread D. Jay Newman

 I wasn't saying JavaScript was bad or should be gotten rid of - I was
 suggesting dumping all of the JavaScript as a first step to figuring out
 where the problem is (division of one large problem into areas to limit the
 amount of code to be examined).

Very true.
-- 
D. Jay Newman  !  // The worst possible legal hashCode
[EMAIL PROTECTED]!  public int hashCode() { return 42;}
http://www.sprucegrove.com/~jay/   !-- _Effective Java_

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




Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Janek Bogucki

Hi Nancy,

This is what happens under Linux:

1. Switch to a virtual console and login
2. execute startup.sh
   (Tomcat is running)
3. exit from shell
4. Login and Tomcat is still running.

So I have daemon behaviour under Linux.

-Janek

 --- Nancy Crisostomo Martinez
[EMAIL PROTECTED] wrote:  Hello everybody!
 I hope you could help me, please..
 
 Actually, I'm begining to use Tomcat, and I have a
 succeded start
 because it still works PERFECT to me...
 But muy problem is very strange :
 I installed Tomcat to Solaris 8, and when I start it
 (startup.sh |
 tomcat.sh start ) it starts, but when I close the
 terminal window Tomcat
 shuts down!!! and now I'm using Tomcat with a
 terminal window opened
 with the caution message :DON'T CLOSE, PLEASE...
 
 I hope you could help me to fix it.
 Nancy.
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

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




Dynamic Email

2001-11-14 Thread Timothy Shadel

Hi,

I'd like to generate dynamic e-mail content, typically based on some parameters stored 
in the current HttpSession.  JSP seems like a great tool for this.  I can easily edit 
the static portion of the e-mail, and have non-technical personnel work with it.  
I'd get all the advantages JSP gives to dynamic HTML generation.  I can't seem to 
figure out a good way to do it, though.  I've tried to use the 
RequestDispactcher.include(), but there's no way to change the OutputStream to recover 
the content that was inadvertently streamed to the browser.  I can't wrap the 
request/response objects in the Servlet 2.2 spec (tomcat 3.x), and I'm not sure I'd 
know the details of how to even if I was running tomcat 4.0.  I tried creating a URL 
and calling getContent(), which returns a PushbackInputStream, but this works only 
sporadically.  Most of the time the buffer has been read completely, and I have no 
data with which to push it back.  All I want to do is load a JSP page, ensure that 
it's processed within the current Session and Request (so it has access to the needed 
variables), and then push that content into an e-mail message that I send using the 
JavaMail API.

I assume that somebody else has wanted this type of thing before.  If there's another 
solution to let end-users easily edit the static surroundings of dynamic e-mail 
content, where I can use templates, internationalization, and other great tools as 
easily as Struts, please let me know.

Thanks,

Tim


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




problem loading JSP on start up (tomcat 3.2.3)

2001-11-14 Thread david chan

Hi,
 I have a JSP need to load on tomcat startup, so I
specify it in the web.xml:
servlet
servlet-name
TestStartup
/servlet-name
jsp-file
 /jsp/TestStartup.jsp
/jsp-file
load-on-startup
1
/load-on-startup
/servlet

Then I restart tomcat, but it is not even compiled, so
I added URI mapping of this serverlet to web.xml:
   servlet-mapping
servlet-name
TestStartup
/servlet-name
url-pattern
/TestStartup
/url-pattern
/servlet-mapping

Then I type the URL: http://localhost/TestStartup,
then it got complied and loaded, but if I restart
tomcat again, it is still not automaticatlly loaded on
startup ?
 Is it a bug of tomcat 3.2.3 ? Or Am I missing some
thing ?

Thanks.
David


__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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




RE: Byte Serving PDF's

2001-11-14 Thread Jim Urban

Do you want to dynamically generate the PDF on the fly and return it
directly to the browser or to simply serve PDF files?  If you want to do
the first, check out the FOP website and have a look at the FOPServlet
source code.  This assumes you can make the contents of the PDF available in
XML format for processing by FOP.

Jim

-Original Message-
From: MacDonald, Todd [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 1:53 PM
To: Tomcat-User (E-mail)
Subject: Byte Serving PDF's


Anyone know how (or better yet, have some code to) byte serve PDF's through
Tomcat 4?

-T

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



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




Loading class files

2001-11-14 Thread Yiu Wing

Hello All,

I'm writing an applet that uses JDBC to connect to MySQL server , and the
applet is embedded in a jsp.  I'm new to this, so I went on and read the
docs that come with Tomcat.  I'm also using CVS and ant for the development.
The source code layout of my project is as suggested in the docs, which is

project name
  |- docs
  |- src
  |- web
|--WEB-INF

In the project/web/WEB-INF directory, do I have to create a classes and lib
subdirectories?  The reason I ask this is because the class loader, from the
Tomcat or web browser, can't find the class files.  But they're clearly in
the web directory, whose structure is as,

project
  | login.jsp (that's the jsp file that embeds the applet)
  | WEB-INF
|--- classes (this directory has all the
needed class files)
|--- lib (where the MySQL driver is
stored)

The Tomcat docs says the classes and lib dir are made visible to other
classes within your particular web application, but why my class files
can't be loaded there?  If I move all the class files to the top of the web
directory, and change code=MyClass.class  to code=MyClass in the jsp
file, then everything seems to working OK. Oh, yeah, almost forgot, I also
need to copy the whole directory tree for the driver to the web directory as
well.  Setting the classpath for the driver doesn't work.  I don't want to
copy the class files to the top of the web directory every time, can those
file be loaded in the classes and lib directories.  Sorry about this rather
long message, but I'm getting very frustrated and hopping some of you can
help me with this.

Thanks for your help in advance.

P.S. I'm using Tomcat4.0 on Win2000




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




  1   2   >