Re: aaargh!

2001-04-12 Thread David Crooke

Horses for courses..

Win98 is designed to run games and Microsoft Office; it's not a webserver
platform. Yes, it's possible to build a Unix-like development environment, but
it will take work. Most Unix-esque open source stuff can be made to run on some
versions of Windows, but it can take work.

Conversely, Linux requires some hassle to support MS-Office documents (you have
to tell Netscape to launch StarOffice / ABIword / ApplixWare) has limited
support for browser plug-ins, and no games to speak of, but has an extremely
comprehensive development environment out of the box (gcc, make, emacs, perl,
tcl, cvs, ..) and you can build Apache from scratch like this:

tar xvzf apache-1.3.19.tar.gz ; cd apache-1.3.19 ; ./configure ; make ; make
install

I must say I'm slightly surprised that you can't find a pre-built gcc binary for
Win98 that you can use without needing to bootstrap via another compiler.

I'd seriously suggest partitioning your hard disk and doing your Java servlet
tinkering in Linux - you'll find it a lot less stressful. At minimum, can 98 in
favour of NT.

Cheers
Dave

Michael McElligott wrote:

 Okay, so I want to hook up apache with Tomcat on my development box (win98).
 So I read server.xml, and it tells me I need to make these modifications to
 httpd.conf.  Then it says: here's how you make mod_webapp.so. Of course, to
 make mod_webapp.so, I need make, right?  And since I'm on 98, I don't have
 it.  That's aside from the fact that I need a compiler (I'm thinking gcc,
 right?). So I download gcc.  It has to be made as well.  From the
 documentation that I went through, looks like it encourages you to start with
 Visual C++.  I don't *have* Visual C++.  I'm a java guy.  I was very happy to
 leave pointers at school and go to a nice warm everything-done-for-you Java
 world.  So then I think, well I guess I need to get make anyway (regardless of
 the VC++ question).  Make has to be made too.  Hmm.. So I spot something
 called egcs at one point and for some reason think it's an executable that
 will run on Intel hardware.  Wrong.  Doesn't support windows at this time. The
 point of this rant is not (as you might think) that the universe needs to
 satisfy me.. it's just that I'm a little concerned that I need to go buy a
 Microsoft product to get open source software to run on my machine.. Just
 ranting at 2:15... Mike P.S.  I do have VC around here somewhere, but I
 imagine lots of folks don't.. how do they get everything set up, without
 having to guy buy VC++? P.P.S.  I suppose the easy answer would be to download
 Red Hat, huh? ;)




RE: in-process howto

2001-04-12 Thread Michael Klimkin

Does it works on your machine? When I make changes to the worker.properties
and set up worker.list=inprocess (or jni), change uniworkermap.properties
and set up /*=inprocess (or jni) IIS doesn't redirect all requests to
tomcat. But when univorkermap.properties contains string /*=ajp12 and
worker.properties doesn't contain inprocess or jni in the worker.list, IIS
works!

Michael


-Original Message-
From: Mark Mynsted [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 3:24 AM
To: [EMAIL PROTECTED]
Subject: in-process howto


The in-process howto is very good however, it is not clear to me how this
works without making any changes to IIS.  When I do the out of process
method with tomcat, I must set up filter to use isapi_redirect.dll, but I
need do nothing to use the inprocess method?




Servlet Mapping in tomcat

2001-04-12 Thread Lakshmeenarayana G G



Hi..

I have mapped requests to any resource in my images 
directory under my application context, to the home page of my application. But 
the problem is that the internal references to the Images directory are also 
being routed to the home page. I dont want my internal references to be 
considered while mapping. I want the mapping to work only when the resources 
under image directoryare referenced externally through an URL from the 
location bar of a browser.

Regards.

L G GoundalkarIntertec CommunicationsINDIA



Re: Thanks: Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Andy C

- Original Message -
From: "Jeff Kilbride" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Andy C" [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 11:25 PM
Subject: Re: Thanks: Re: Fed up to the back teeth with tomcat !!!
 Hi Andy,

 Did you ever post your configuration? I would be interested in what OS;
 Tomcat/Apache versions; JVM; DB backend and driver; whether or not you're

I have to admit that the configuration is a little complex, mostly because
of legacy
database and servlets left over from the JavaWebserver version.  Here goes
though:

Server is NT2000
Apache is  1.3.12 with mod_jk
Tomcat is 3.2.2.b2 (I upgraded from 3.2.1 in the hope it would fix the
problem.)
JVM is 1.1.6 (old version but it's the only one that would run a legacy
servlet)

Databases are:
mysql 3.23.28 (Handles all the main jsp stories)
SQL server V7 (Handles servlet requests for release dates)

JDBC bridge to mysql is mm-mysql-2.0.4
JDBC-ODBC bridge for SQL server (This could be the problem)

Hope this is of interest.

Andy C
Editor R2 Project
http://www.r2-dvd.org





RE: multipart requests and file uploads problems on the Apache connection

2001-04-12 Thread Sandy McPherson

You need tp use Ajp12 for multipart request servlets.
Just specify something like this
#
# The following line mounts all JSP files and the /spqr/servlet/ uri to
tomcat
#
JkMount /spqr/servlet/* ajp13
JkMount /spqr/servlet/LogoUpload ajp12 # Ajp13 won't handle the multi-part
request properly
JkMount /spqr/*.jsp ajp13

I believe there is a patch somewhere in the CVS repository, but seeing as we
Upload Files once in a blue-moon, and the "slower" Ajp12 does the job, I
haven't bothered. Never fix a running system!

Sandy

 -Original Message-
 From: Bard [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 08, 2001 4:19 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: multipart requests and file uploads problems on the Apache
 connection


 Hello Sandy McPherson,


 Sorry to be mailing you directly, but I've had exactly the problems you
 described in you posting

 (http://archive.covalent.net/jakarta/tomcat-user/2000/12/0612.xml)

 and have been trying to find an answer for weeks now. Have you found out
 how Apache+mod_jk+tomcat can be configured properly to allow binary file
 uploads using servlets or JSPs? I tried the code that uses
 PerTools as well
 as several other variations with exactly the same "infinite loop" of
 "Y"s appearing in the console where tomcat was started.

 Very frustrated,

 Bard






RE: aaargh!

2001-04-12 Thread Sandy McPherson

Once you have cygwin32 (with gcc-2.95) and you can get the ant environment
variables sorted out using the apache/tomcat combo is a piece of cake. There
are also cygwin versions of SSL out there, if you just look...
http://sources.redhat.com/cygwin/
Sandy




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Crooke
 Sent: Thursday, April 12, 2001 8:47 AM
 To: [EMAIL PROTECTED]
 Subject: Re: aaargh!


 Horses for courses..

 Win98 is designed to run games and Microsoft Office; it's not a webserver
 platform. Yes, it's possible to build a Unix-like development
 environment, but
 it will take work. Most Unix-esque open source stuff can be made
 to run on some
 versions of Windows, but it can take work.

 Conversely, Linux requires some hassle to support MS-Office
 documents (you have
 to tell Netscape to launch StarOffice / ABIword / ApplixWare) has limited
 support for browser plug-ins, and no games to speak of, but has
 an extremely
 comprehensive development environment out of the box (gcc, make,
 emacs, perl,
 tcl, cvs, ..) and you can build Apache from scratch like this:

 tar xvzf apache-1.3.19.tar.gz ; cd apache-1.3.19 ; ./configure ;
 make ; make
 install

 I must say I'm slightly surprised that you can't find a pre-built
 gcc binary for
 Win98 that you can use without needing to bootstrap via another compiler.

 I'd seriously suggest partitioning your hard disk and doing your
 Java servlet
 tinkering in Linux - you'll find it a lot less stressful. At
 minimum, can 98 in
 favour of NT.

 Cheers
 Dave

 Michael McElligott wrote:

  Okay, so I want to hook up apache with Tomcat on my development
 box (win98).
  So I read server.xml, and it tells me I need to make these
 modifications to
  httpd.conf.  Then it says: here's how you make mod_webapp.so.
 Of course, to
  make mod_webapp.so, I need make, right?  And since I'm on 98, I
 don't have
  it.  That's aside from the fact that I need a compiler (I'm
 thinking gcc,
  right?). So I download gcc.  It has to be made as well.  From the
  documentation that I went through, looks like it encourages you
 to start with
  Visual C++.  I don't *have* Visual C++.  I'm a java guy.  I was
 very happy to
  leave pointers at school and go to a nice warm
 everything-done-for-you Java
  world.  So then I think, well I guess I need to get make anyway
 (regardless of
  the VC++ question).  Make has to be made too.  Hmm.. So I spot something
  called egcs at one point and for some reason think it's an
 executable that
  will run on Intel hardware.  Wrong.  Doesn't support windows at
 this time. The
  point of this rant is not (as you might think) that the
 universe needs to
  satisfy me.. it's just that I'm a little concerned that I need
 to go buy a
  Microsoft product to get open source software to run on my
 machine.. Just
  ranting at 2:15... Mike P.S.  I do have VC around here somewhere, but I
  imagine lots of folks don't.. how do they get everything set up, without
  having to guy buy VC++? P.P.S.  I suppose the easy answer would
 be to download
  Red Hat, huh? ;)






RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Sandy McPherson

I have had no trouble with Apache and Tomcat running A MySQL database, the
mm JDBC library behaves itself impeccably. So I think the problem is as the
others have said not likely to lie in the JDBC not in Tomcat/Apache.

IMHO: before you go blaming something in public you should first identify
the problem lies actually with the product you are slagging. Perhaps you
should change your database to mysql!

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 On Behalf Of Fernando Padilla
 Sent: Thursday, April 12, 2001 6:33 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Fed up to the back teeth with tomcat !!!



 Hmm, interesting..

 I did have a similar issue with an Oracle driver a while back. Yes, the
 Debugging helped alot.  So I was driven to doing a System.gc(); after
 and/or before every statement... :)

 I think discovered this, assuming that all of that io and String creation
 forced a gc... and it seems to work now :):)




 On Wed, 11 Apr 2001, Lyle H. Ward wrote:

  Since you are using SQL server, are you using ODBC? There is a
 bug in ODBC
  that stops the [web] service. It doesn't affect all
 installations. If this
  is what's happening, there is an awful work-around. Turn on
 ODBC tracing. It
  prevents the service from halting but creates a monster log file.
 
 
  At 08:11 PM 4/11/2001 +0100, you wrote:
  I am fed up to the back teeth with Tomcat under Apache.  I'm
 trying to run
  a 24/7 web page servinbg around 20,000 .jsp pages a day and I'v ehad
  to reset the damn server 3 times today already.
  
  It keeps falling over
  with absolutly no error  *** log messages at all.  I am at
 my wits end,
  not
  to mention my poor users who have had to put up with this
 service for the
  past month.  I am totaly lost now as to where to look for solutions
  
  So can someone please recomend a good webserver that will run .jsp and
  servlets pages and integrates well with a SQL server ?  I used to
  run Java Webserver 2.0 would going back to that help ?
  
  Andy C
  Editor R2 Project
  http://www.r2-dvd.org
  (lets hopr you don't see a 500 internal error message.)
  
  
  
 






Index files and CGI UNDER TOMCAT

2001-04-12 Thread Hunor Nam

Hi.
My problem is:

I need to use the welcome-file attribute but in a different way...

Our app. has many folders and I do not want to put an index file in each
of them...
Especially that it has more sub applications so I would need different
index files for different folders... it would be nasty to put one in
each of them and after that, if something changes to change all the
files... 
I would like to have some kind of redirection set to some folder levels
(so everything beneath them to call its own index...)
Ok so it's not to clear...? Well... I'll try explaining it a little more
detailed (with some examples)

Lets say the folder structure looks like this:

Main Folder
+App nr.1
+-Folder Level1
+-Folder Level2
+App nr.2
+-Folder Level1
+-Folder Level2

+App nr.3
+-Folder Level1
+-Folder Level2

So I need one index file for the Main Folder, that's easy ... but
everything beneath App nr.1 should go to indexapp nr.1 (and that means
every Folder Level ...1, 2, 3 and so one)
The same goes to App nr.2 everything beneath it should go to indexapp
nr.2.
OK I would manage handling 3,4 index files but not 20-30 (as how many
folders we have...)
I'm not sure if something like this is possible and/or how it's done but
something like: 

"If folder starts whit /app nr.1 go to index nr.1;
 If folder starts whit /app nr.2 go to index nr.2;
 And so on"

Problem nr. 2:
How can I tell tomcat that I do not want some files (having the same
extension) to be accessible for the end user, those files are actually
.jsp flies used whit include file ?

After all these problems I have an Easter egg for the Tomcat Users (if
any one is interested), especially that Easter is close... :) 
We developed a module that supports cgi running under Tomcat.
I say, "We developed it" because we have not found anything like it on
the net...
So if there would be any one interested in it we would appreciate some
feedback so we would optimize and publish the module, at this time it
was tested whit cgis from Crystal Reports.

Thanks
Hades

Ps: sorry for my poor English...




logout

2001-04-12 Thread Dries Watteyne

Hello,

Can anybody tell what's the best solution for logging out.
I use Tomcat 3.2.1, Windows2000 and JDBCRealm.

thanks
Dries



re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Andy C


- Original Message -
From: "Sandy McPherson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:06 AM
Subject: RE: Fed up to the back teeth with tomcat !!!


 IMHO: before you go blaming something in public you should first identify
 the problem lies actually with the product you are slagging. Perhaps you
 should change your database to mysql!

Yes, I would like to apologise for that.  Please understand last night I was
extremly irratable and unreasonable after a day of frustration.

Note:  I am uses mysql as well as SQL-server7.0.  As I have intimated in
another message SQL-server is being used as it is is a "legacy" database.
The main page is generated from a  mysql databse, only release date
queries are  being generated from SQL-server.

I also have the problem that after a month of trying to find out where the
problem lies (by examing logs, hammering a test server with request etc) I
am no nearer to the truth.  I will however persevere.

BTW
Is there an easy way to import a SQL-Server database into mysql ?  At least
that way I could dump the jdbc-odbc bridge ?

Regards
Andy C
Editor R2 project
http://www.r2-dvd.org






Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Arthur Veinstein

Hi,
we also use the same configuration (5 * RH Linux 6, Tomcat 3.2.1, Apache
1.3.9, Sun JDK 1.2, Alteon web load balancer)
serving  2 pages per day and connecting to DB using RMI, we only
restart on application updates (3 months)

Arthur Veinstein
- Original Message -
From: "Kevin Sangeelee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 1:26 AM
Subject: RE: Fed up to the back teeth with tomcat !!!


 And another, we're serving up  5000 pages per day from our application
 (April stats), Tomcat has never crashed, and has run for well over a month
 without hitch (restarting Tomcat only necessary when the application gets
 updated). RH Linux 6, Tomcat 3.2.1, Apache 1.3.9, Sun JDK 1.2

 Kevin

 On Wed, 11 Apr 2001, Randy Layman wrote:

 
  I have a success story to the contrary - using Windows NT 4, Tomcat
  3.2.1, and IIS 4 we are serving a decent sized application with no
problems.
  We've been averaging uptimes of about 5 - 6 days before the machine is
  restarted because of other software on the machine.  No detectable
resource
  loss, no crashes.
 





Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Benoît Jacquemont

I use Tomcat 3.2.1, Apache 1.3.12, mod_jk (own build) on a Linux RedHat 6.2
box (kernel 2.2.14). The database is MySQL 3.23 and I use the mm JDBC
driver.

The application has worked perfectly great since the beginning of March with
a medium and sometimes heavy charge, without any rebooting...

Before putting fire to Tomcat just because it is a free software, you should
take a look at the other over-expensive products from big (and reliable
?) company... You should maybe use one of the new service pack/patches
that makes Win2K a little bit less a beta product...
By the way, what are the others softwares running on your machine ? (There's
always a lot of stuff that Win2K settles on your machine without any
warning. It needs long time before having a slightly clean Win2K server.)
I don't want to start a war, I use a lot of Microsoft products and I'm happy
with them (Office is really great). But when you set up a server, you have
to take EVERYTHING into account.

Anyway, the use of ODBC with SQL Server is the right choice because it is
the natural and native way to talk to a SQL Server database.

Benot


 -Message d'origine-
 De : Andy C [mailto:[EMAIL PROTECTED]]
 Envoy : jeudi 12 avril 2001 09:23
  : [EMAIL PROTECTED]
 Objet : Re: Thanks: Re: Fed up to the back teeth with tomcat !!!


 - Original Message -
 From: "Jeff Kilbride" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; "Andy C" [EMAIL PROTECTED]
 Sent: Wednesday, April 11, 2001 11:25 PM
 Subject: Re: Thanks: Re: Fed up to the back teeth with tomcat !!!
  Hi Andy,
 
  Did you ever post your configuration? I would be interested
 in what OS;
  Tomcat/Apache versions; JVM; DB backend and driver; whether
 or not you're

 I have to admit that the configuration is a little complex,
 mostly because
 of legacy
 database and servlets left over from the JavaWebserver
 version.  Here goes
 though:

 Server is NT2000
 Apache is  1.3.12 with mod_jk
 Tomcat is 3.2.2.b2 (I upgraded from 3.2.1 in the hope it would fix the
 problem.)
 JVM is 1.1.6 (old version but it's the only one that would
 run a legacy
 servlet)

 Databases are:
 mysql 3.23.28 (Handles all the main jsp stories)
 SQL server V7 (Handles servlet requests for release dates)

 JDBC bridge to mysql is mm-mysql-2.0.4
 JDBC-ODBC bridge for SQL server (This could be the problem)

 Hope this is of interest.

 Andy C
 Editor R2 Project
 http://www.r2-dvd.org





RE: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Danny Angus


I think something like:

   servlet-mapping
servlet-name
indexServlet
/servlet-name
url-pattern
   app_nr*/
/url-pattern
/servlet-mapping

should take all hits to that path, but not to specified files, to the
indexServlet, which can parse the request URI to decide what to give you,
depending on where you think you are.. because none of these folders will
actually need to exist.
Unless you really want to put files in them ;-)

Its just a hunch, but should be worth a try as the real answer will probably
look something like this.

danny



 -Original Message-
 From: Hunor Nam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: Index files and CGI UNDER TOMCAT


 Hi.
 My problem is:

 I need to use the welcome-file attribute but in a different way...

 Our app. has many folders and I do not want to put an index file in each
 of them...
 Especially that it has more sub applications so I would need different
 index files for different folders... it would be nasty to put one in
 each of them and after that, if something changes to change all the
 files...
 I would like to have some kind of redirection set to some folder levels
 (so everything beneath them to call its own index...)
 Ok so it's not to clear...? Well... I'll try explaining it a little more
 detailed (with some examples)

 Lets say the folder structure looks like this:

 Main Folder
 +App nr.1
   +-Folder Level1
   +-Folder Level2
 +App nr.2
   +-Folder Level1
   +-Folder Level2

 +App nr.3
   +-Folder Level1
   +-Folder Level2

 So I need one index file for the Main Folder, that's easy ... but
 everything beneath App nr.1 should go to indexapp nr.1 (and that means
 every Folder Level ...1, 2, 3 and so one)
 The same goes to App nr.2 everything beneath it should go to indexapp
 nr.2.
 OK I would manage handling 3,4 index files but not 20-30 (as how many
 folders we have...)
 I'm not sure if something like this is possible and/or how it's done but
 something like:

 "If folder starts whit /app nr.1 go to index nr.1;
  If folder starts whit /app nr.2 go to index nr.2;
And so on"

 Problem nr. 2:
 How can I tell tomcat that I do not want some files (having the same
 extension) to be accessible for the end user, those files are actually
 .jsp flies used whit include file ?

 After all these problems I have an Easter egg for the Tomcat Users (if
 any one is interested), especially that Easter is close... :)
 We developed a module that supports cgi running under Tomcat.
 I say, "We developed it" because we have not found anything like it on
 the net...
 So if there would be any one interested in it we would appreciate some
 feedback so we would optimize and publish the module, at this time it
 was tested whit cgis from Crystal Reports.

 Thanks
   Hades

 Ps: sorry for my poor English...





RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Samson, Lyndon [IT]

You could allways get the source to Tomcat, and insert your own logging!!!

Ooh now, there's an idea :-)


-Original Message-
From: Andy C [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:34 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: re: Fed up to the back teeth with tomcat !!!



- Original Message -
From: "Sandy McPherson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:06 AM
Subject: RE: Fed up to the back teeth with tomcat !!!


 IMHO: before you go blaming something in public you should first identify
 the problem lies actually with the product you are slagging. Perhaps you
 should change your database to mysql!

Yes, I would like to apologise for that.  Please understand last night I was
extremly irratable and unreasonable after a day of frustration.

Note:  I am uses mysql as well as SQL-server7.0.  As I have intimated in
another message SQL-server is being used as it is is a "legacy" database.
The main page is generated from a  mysql databse, only release date
queries are  being generated from SQL-server.

I also have the problem that after a month of trying to find out where the
problem lies (by examing logs, hammering a test server with request etc) I
am no nearer to the truth.  I will however persevere.

BTW
Is there an easy way to import a SQL-Server database into mysql ?  At least
that way I could dump the jdbc-odbc bridge ?

Regards
Andy C
Editor R2 project
http://www.r2-dvd.org





Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Jon Barber

You may have already tried this, but you could always download a different 
servlet engine such as JRun and try out your servlets with the new engine.  
If you see the same problems then the problem probably isn't with tomcat.

Jon.


On Thursday 12 April 2001 08:34, you wrote:
 - Original Message -
 From: "Sandy McPherson" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 12, 2001 9:06 AM
 Subject: RE: Fed up to the back teeth with tomcat !!!

  IMHO: before you go blaming something in public you should first identify
  the problem lies actually with the product you are slagging. Perhaps you
  should change your database to mysql!

 Yes, I would like to apologise for that.  Please understand last night I
 was extremly irratable and unreasonable after a day of frustration.

 Note:  I am uses mysql as well as SQL-server7.0.  As I have intimated in
 another message SQL-server is being used as it is is a "legacy" database.
 The main page is generated from a  mysql databse, only release date
 queries are  being generated from SQL-server.

 I also have the problem that after a month of trying to find out where the
 problem lies (by examing logs, hammering a test server with request etc) I
 am no nearer to the truth.  I will however persevere.

 BTW
 Is there an easy way to import a SQL-Server database into mysql ?  At least
 that way I could dump the jdbc-odbc bridge ?

 Regards
 Andy C
 Editor R2 project
 http://www.r2-dvd.org



error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Stéphane BAUDET

Hello,


I'm using Tomcat 3.2.1 under Windows 2000.
In my web.xml descriptor, I've set up this error-page directive

error-page
error-code404/error-code
location/404.html/location
/error-page

404.html is a the root of my context.
When I type an incorrect URL, I've got a 500 response, and a
java.lang.StackOverflowError exception in thrown.

Any idea ???

In the log I've got:

Plenty of these lines:
2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /404.html
C:\tomcat321\webapps\glextra\404.html C:\tomcat321\webapps\glextra
2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /default.jsp2
C:\tomcat321\webapps\glextra\default.jsp2 C:\tomcat321\webapps\glextra

Than:
2001-04-12 10:56:12 - Ctx( /glextra ): Exception in: R( /glextra +
/default.jsp2 + null) - java.lang.StackOverflowError
at java.lang.Exception.init(Exception.java:38)
at java.io.IOException.init(IOException.java:43)
at java.io.FileNotFoundException.init(FileNotFoundException.java:62)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:64)
at java.io.FileInputStream.init(FileInputStream.java:95)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049)
at
org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at

load balancing performance

2001-04-12 Thread Nico Wieland

hi list

i'm wondering if somebody has experience with the tomcat load balancing in real life? 
i have set it up and it works nicely, but i want to use it for a project that will 
generate quite some load for a couple of days, and am not sure if it then will 
continue to work as it should :) anyone got some experience with this? especially 
regarding performance and reliability.

thanks,

-nico




Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread andy


- Original Message -
From: "Benot Jacquemont" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:50 AM
Subject: Re: Fed up to the back teeth with tomcat !!!



 Before putting fire to Tomcat just because it is a free software, you
should
 take a look at the other over-expensive products from big (and reliable
 ?) company... You should maybe use one of the new service pack/patches
 that makes Win2K a little bit less a beta product...

Please,
I'v no wish to start a war here   For the most part I am very happy with
Tomcat,
the development of the application went reasonably smothly and it was easy
to
set up.Both Apache and mySQL work like a dream so there's two "freeware"
solutions I'm over the moon with.

If only I could reproduce the fault and diagnose it I would be very happy !
I will
howver continue to work on the probelm. As one poster suggeted if neccessary
I'll hack the source code of tomcat to generate the logs I need !

Regards
Andy C





RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Danny Angus


 BTW
 Is there an easy way to import a SQL-Server database into mysql ?
  At least
 that way I could dump the jdbc-odbc bridge ?

if you have fewer than 100's of tables use rational rose to de-construct the
SQL server into DDL, throw away all the relationship definitions [sic],
switch a few data types, select everything from SQL server into a tab delim
or csv file, and bingo.. ready for import into mysql




Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Sandy McPherson



Andy C wrote:

 - Original Message -
 From: "Sandy McPherson" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 12, 2001 9:06 AM
 Subject: RE: Fed up to the back teeth with tomcat !!!
 
 
 IMHO: before you go blaming something in public you should first identify
 the problem lies actually with the product you are slagging. Perhaps you
 should change your database to mysql!
 
 
 Yes, I would like to apologise for that.  Please understand last night I was
 extremly irratable and unreasonable after a day of frustration.

I know the feeling...


Here's a concrete suggestion to improve your debugging

Your users are probably seeing the stack trace you yourself want to see, 
so set up an error page which writes any exceptions to a log file and 
possibly mails the exceptions thrown in the production system to you. In 
each servlet you should do a catch( Throwable ex ) around the servlet 
body and report the exception before re-throwing the it.

I have attached a tag class which you can hack about to acheive the 
desired effect. I have hacked out most of the stuff specific to my 
environment, so it may not work "out of the box". I guess you can figure 
out what should go in the TLD.

The mail is probably a luxury, but it will wake up your operators!



/*
** $Log: MailException.java,v $
** Revision 1.2  2001/02/23 17:20:37  sandy
** Tidy up exception handling
**
** Revision 1.1  2001/02/15 15:17:02  sandy
** Make error page mail exceptions to admin.
**
*/
package com.mapquest.environment;

import java.lang.*;
import java.io.*;
import java.sql.SQLException;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

/**
** Class to mail an exception to the admninistrator
** p
** This is a tag which should be used from a JSP error page
** /p
*/
public class MailException extends TagSupport
{
   
   /**
   ** Constructs a mailable exception
   ** p
   ** /p
   ** @exception The exception whose details should be mailed
   */
   public int doStartTag( )
  throws JspTagException
   {
  try
  {
 ServletContext application = pageContext.getServletContext( );
 Throwable exception = (Throwable)pageContext.getAttribute( 
"exception" ); 
 StringWriter trace = new StringWriter( );
 PrintWriter traceWriter = new PrintWriter ( trace );
 exception.printStackTrace( traceWriter );
 JspWriter out = pageContext.getOut( );
 System.out.println( trace.toString( ) );
 try
 {
SQLException dbex = (SQLException)exception;
System.out.println( "SQL ANSI 92 State = "+dbex.getSQLState( ) 
);
System.out.println( "SQL Error Code = "+dbex.getErrorCode( ) );
 }
 catch( java.lang.ClassCastException ex )
 {
 }
 try
 {
// 
// see if this is a servlet exception
//
Throwable rootcause = 
((ServletException)exception).getRootCause( );
if ( rootcause != null )
{
   StringWriter roottrace = new StringWriter( );
   PrintWriter roottraceWriter = new PrintWriter ( roottrace );
   rootcause.printStackTrace( roottraceWriter );
   System.out.println( "Root Cause:" );
   System.out.println( roottrace.toString( ) );
   SQLException dbex = SQLException)rootcause;
   System.out.println( "SQL ANSI 92 State = 
"+dbex.getSQLState( ) );
   System.out.println( "SQL Error Code = "+dbex.getErrorCode( 
) );
}
 }
 catch( java.lang.ClassCastException ex )
 {
 }

//
// mail the message
//
String smtphost = application.getInitParameter( 
"MAIL.SMTP.HOST" );
if ( smtphost == null )
{
   throw new JspTagException( "MAIL.SMTP.HOST not set");
}

String to = application.getInitParameter("MAIL.ADMIN.EMAIL");
if ( to == null )
{
   throw new JspTagException( "MAIL.ADMIN.EMAIL not set");
}
//
// set up the message
//
StringWriter message = new StringWriter( );
 

Re: stdout/err logging - how?

2001-04-12 Thread Sebastian Hauer

Hi,

Warren Crossing wrote:
 umm you could do something like append
 
 tomcat-start-command  or  logfile.name
 
 i think this gets stdout but stderr uses 2 or something.. i think its
 called redirecting output, i'm not sure.. but i think its really pathetitc

"tomcat.sh  file.log" will overwrite your logfile every time you call
this command. It  redirects stdout and stderr to a file.
If you want to concat output from stderr as well as stdout to some log
file do:
"tomcat.sh  file.log 21"
or if you want all error message in a separate file:
"tomcat.sh  file.normal.log 2 file.error.log"

 that your not using logforge which is also an apache code license java
 thingy!
what about log4j?
http://jakarta.apache.org/log4j/docs/index.html
This is what I want to use in my next project maybe.
Do you have an URL to logforge?

Sebastian

 
 warren.
 iwokeupthismorninginthelandofthefree!



native threads on solaris 8

2001-04-12 Thread Chad LaJoie

 I can't tell if this is a problem with tomcat or the 
JDK.  Whenever I start tomcat the JRE starts the java process and it start 
the native_threads process.  When I stop tomcat the java process goes away 
but the native_threads continues to run, and as it runs begins to eat up 
huge amounts of the CPU.  Has anyone else encountered this and if so how 
did you fix it?

Chad La Joie   "Only a man who can not conquer
IT Specialist his deficiencies feels the need to
ISC - WARD convince the world he has none"




Re: Forms work with JServ+Apache, do not work with Tomcat+Apache: Images in forms show up randomly! Please help!

2001-04-12 Thread Pascal Avrilla

hello

if you get your html sources and put them in your xml directories, is it
working ?
so you will see if it's a path's problem or not. the directorie under
webapps is your root directorie.

Natasa Lazetic wrote:
 
 Hello!
 
 I have been having problems with the display of images (and application
 of CSS's) in forms ever since I have starting using Tomcat + Apache
 configuration.  The images/resources displayed perfectly with JServ +
 Apache combination.
 
 I am using Java servlets.
 
 I create HTML forms using XSL stylesheets and XML and Xalan/Xerces
 combination.
 
 Originally when I switched from JServ to Tomcat, the images would not
 show up at all.  Then I added some .flush() and .close() methods to the
 OutputSreams/PrintWriters and that helped some - the images started
 showing up.  However, they don't show up consistently.  If I refresh the
 form, containing say two images and a CSS, that formats the title's
 font, one image may be missing, or both images, or CSS may not get
 applied.  You never know.  On rare occasions, they all show up.
 
 This problem happens only on IE 5.5 and Netscape 4.7, but does not
 happen on Netscape 6.0.
 
 Any ideas?
 
 Exact product versions:
 Apache 1.3.12 (or 1.3.14, does not work on either)
 Tomcat 3.2.1
 Xalan-J 1.2.2
 Xerces-J 1.2.2
 
 More notes:
 * Could it be a cashing problem?  The caching in HTTP response is now
 set to "no-cache"
 * The method that goes to get an image uses ContentType of
 "application/octet-stream".  Could this cause some trouble? (I've tested
 it with "image/gif" content type for a form that used a GIF, and that
 did not help)
 
 Thank you for your time.
 
 Cheers,
 
 ... Natasa ...

begin:vcard 
n:avrilla;pascal
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:pascal avrilla
end:vcard



RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Samson, Lyndon [IT]

Hi Alistair,

I tried to get to the Virtuso link www.openlink.com buts its a redirect to
internet.com Was your email some kind of clever spam :-)



-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!


For more complex data transfers between databases, take a look at virtuoso
at openlink.com.

It's a meta-database-engine that lets you write SQl loading from one
database into another.

This is nice as you can remove early-effort-stupidities and rearrange your
schema when moving db.

Al.

-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!



 BTW
 Is there an easy way to import a SQL-Server database into mysql ?
  At least
 that way I could dump the jdbc-odbc bridge ?

if you have fewer than 100's of tables use rational rose to de-construct the
SQL server into DDL, throw away all the relationship definitions [sic],
switch a few data types, select everything from SQL server into a tab delim
or csv file, and bingo.. ready for import into mysql






RE: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Hunor Nam

Hi again,
Well, Danny thanks a lot. Your idea was god.
Almost perfect for my needs.
There is a big "bubu" anyhow...
This is how things look now:

Part of web.xml :

servlet
servlet-name indexOfOneApp /servlet-name
servlet-classapp.utils.tomcat.indexOfOneApp /servlet-class
/servlet

servlet-mapping
servlet-nameindexOfOneApp /servlet-name
url-pattern/OneApp/*/url-pattern
/servlet-mapping



the indexOfOneApp servlet:

public class indexOfOneApp extends HttpServlet
{

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

public void doGet(HttpServletRequest
req,HttpServletResponse res) throws IOException
{
res.sendRedirect("/app/oneapp/oneapp.jsp");
}   
}

Well what happens now is that (I think) because the oneapp.jsp is itself
under app/oneapp/ it gets traped in an infinit loop
(I have tried putting a System.out.println ("something") in the doGet
method... well, it was printing "something" all over again...)

Pleas do assist me further (I really need some god ideas...)
Thanks again !

Hades


-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:58 AM
To: [EMAIL PROTECTED]
Subject: RE: Index files and CGI UNDER TOMCAT



I think something like:

   servlet-mapping
servlet-name
indexServlet
/servlet-name
url-pattern
   app_nr*/
/url-pattern
/servlet-mapping

should take all hits to that path, but not to specified files, to the
indexServlet, which can parse the request URI to decide what to give
you,
depending on where you think you are.. because none of these folders
will
actually need to exist.
Unless you really want to put files in them ;-)

Its just a hunch, but should be worth a try as the real answer will
probably
look something like this.

danny



 -Original Message-
 From: Hunor Nam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: Index files and CGI UNDER TOMCAT


 Hi.
 My problem is:

 I need to use the welcome-file attribute but in a different way...

 Our app. has many folders and I do not want to put an index file in
each
 of them...
 Especially that it has more sub applications so I would need different
 index files for different folders... it would be nasty to put one in
 each of them and after that, if something changes to change all the
 files...
 I would like to have some kind of redirection set to some folder
levels
 (so everything beneath them to call its own index...)
 Ok so it's not to clear...? Well... I'll try explaining it a little
more
 detailed (with some examples)

 Lets say the folder structure looks like this:

 Main Folder
 +App nr.1
   +-Folder Level1
   +-Folder Level2
 +App nr.2
   +-Folder Level1
   +-Folder Level2

 +App nr.3
   +-Folder Level1
   +-Folder Level2

 So I need one index file for the Main Folder, that's easy ... but
 everything beneath App nr.1 should go to indexapp nr.1 (and that means
 every Folder Level ...1, 2, 3 and so one)
 The same goes to App nr.2 everything beneath it should go to indexapp
 nr.2.
 OK I would manage handling 3,4 index files but not 20-30 (as how many
 folders we have...)
 I'm not sure if something like this is possible and/or how it's done
but
 something like:

 "If folder starts whit /app nr.1 go to index nr.1;
  If folder starts whit /app nr.2 go to index nr.2;
And so on"

 Problem nr. 2:
 How can I tell tomcat that I do not want some files (having the same
 extension) to be accessible for the end user, those files are actually
 .jsp flies used whit include file ?

 After all these problems I have an Easter egg for the Tomcat Users (if
 any one is interested), especially that Easter is close... :)
 We developed a module that supports cgi running under Tomcat.
 I say, "We developed it" because we have not found anything like it on
 the net...
 So if there would be any one interested in it we would appreciate some
 feedback so we would optimize and publish the module, at this time it
 was tested whit cgis from Crystal Reports.

 Thanks
   Hades

 Ps: sorry for my poor English...





Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Andy C

Many Many thanks for that, I'll get to it right away.

Andy



- Original Message - 
From: "Sandy McPherson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:48 AM
Subject: Re: Fed up to the back teeth with tomcat !!!


 
 
 Andy C wrote:
 
  - Original Message -
  From: "Sandy McPherson" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]

 Here's a concrete suggestion to improve your debugging
 
 Your users are probably seeing the stack trace you yourself want to see, 
 so set up an error page which writes any exceptions to a log file and 
 possibly mails the exceptions thrown in the production system to you. In 
 each servlet you should do a catch( Throwable ex ) around the servlet 
 body and report the exception before re-throwing the it.
 
 I have attached a tag class which you can hack about to acheive the 
 desired effect. I have hacked out most of the stuff specific to my 
 environment, so it may not work "out of the box". I guess you can figure 
 out what should go in the TLD.
 
 The mail is probably a luxury, but it will wake up your operators!
 
 





RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Alistair Hopkins

very sorry.

try www.openlinksw.com/virtuoso

no spam is clever spam

did I mention it's free for  4 connections?  but not opensource...



-Original Message-
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 12:27 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Fed up to the back teeth with tomcat !!!


Hi Alistair,

I tried to get to the Virtuso link www.openlink.com buts its a redirect to
internet.com Was your email some kind of clever spam :-)



-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!


For more complex data transfers between databases, take a look at virtuoso
at openlink.com.

It's a meta-database-engine that lets you write SQl loading from one
database into another.

This is nice as you can remove early-effort-stupidities and rearrange your
schema when moving db.

Al.

-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!



 BTW
 Is there an easy way to import a SQL-Server database into mysql ?
  At least
 that way I could dump the jdbc-odbc bridge ?

if you have fewer than 100's of tables use rational rose to de-construct the
SQL server into DDL, throw away all the relationship definitions [sic],
switch a few data types, select everything from SQL server into a tab delim
or csv file, and bingo.. ready for import into mysql







Re: mod_jserv compilation problem (AIX)

2001-04-12 Thread Olivier Hislaire

Just in case, for the archives: I found it in the newsgroup.

The first think to do was to add -bexpall to the LDFLAGS, then compile and 
link with "apxs -c mod_jserv.c jserv*.c". Using "axps ... *.c" instead of 
"jserv*.c" makes one more (useless here) source to compile, a source with a 
"main()" in it, which share objects don't like too much - at least on AIX.

Olivier.

At 03:14 PM 4/10/01 +0100, you wrote:

Hi there,

I am trying to build the mod_jserv.so shared object in IX 4.3.1.0, using 
gcc 2.7.2, apxs from apache 1.3.19 (binary distribution for aix4.3) and 
tomcat 3.2.1. And I *almost* made it :-(

Since, there is just one stupid problem in linking the share object (see 
below); could anybody help me with this, or tell me where to find a 
suitable mod_jserv.so for my aix box ?

Thanks,

Olivier

- start of inclusion

(...)

gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ 
-DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic 
-DSHARED_MODULE -I/usr/local/apache/include -c mod_jserv.c

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

ld: 0711-244 ERROR: No csects or exported symbols have been saved.
apxs:Break: Command failed with rc=8

- end

Olivier Hislaire

MSG International   Email:   [EMAIL PROTECTED]
97 Avenue de Tervuren Phone: +32 (0)2 735.91.59 Ext. 55
1040 Brussels Fax: +32 (0)2 732.12.19
Belgium  http://www.msg-i.com






Olivier Hislaire

MSG International   Email:   [EMAIL PROTECTED]
97 Avenue de Tervuren Phone: +32 (0)2 735.91.59 Ext. 55
1040 Brussels Fax: +32 (0)2 732.12.19
Belgium  http://www.msg-i.com







Only The Most Beautiful Teens

2001-04-12 Thread john


Young Teen Female Oriented Porn CD

Watch and see before your very own eyes, in front
of the privacy of your own computer, young girls
get pleasured by older men, finger tight shaved
pussy's, rub luscious clits, masturbate with
gigantic dildos, tweak luscious nipples,
timulate themselves with intriguing vibrators, pant,
moan, and feel themselves up until they explode with
orgasmic pleasure spraying visually for you to see
and enjoy!

Full 700MB CD
Over 30 MPEGs (movies)
Over 200 JPEGs (pictures)
Of the youngest, most erotic, gorgeous looking,
teenagers allowed by law.

Mailed discreetly in an unmarked package to anywhere
in the world as soon as payment is received.

We accept Cash, Checks, Money Orders and Cashiers
Checks
Please make payment USD $15.99 payable to:

Mr. Smith
9974 Scripps Ranch Blvd. 110
San Diego, CA 92131

Questions call our voicemail and please clearly
state your e-mail address:
1-800-699-2466 EXT# 858-333-

Please don’t forget to enclose your mailing address!

Legal notice:

We immediately honor all requests to be removed
from this list. This message is being sent to
you in compliance with the Federal legislation
for commercial e-mail (H.R.4176 – Section 101,
Paragraph (e)(1)(a)) and Bill s.1618 Title III
passed by the 105th US Congress.  Code 001

Please reply with "remove" in the subjuct line
to be removed from further mailings.

















































DISCLAIMER- -By bidding on this item, you
certify that you are at least 18 years of
age, and you will not permit any minor or
any other person who may find this personally
offensive to view this material. -You verify
that you are entitled to possess sexually
explicit materials where you live and believe
such materials to be within your community
standards. -You certify that you are not an
employee of the US Post Office, any law
enforcement agency, or any individual whose
purpose is entrapment and will in no way
seek legal action against the seller for any
damages that may be done. -You are not
purchasing this material to use against
the seller or any person in any conceivable
manner. Although assumed otherwise, the seller
in no way guarantees the legality of
purchasing and owning this material where
you live. All models are 18 years of age
or older. !





RE: logout

2001-04-12 Thread Michael Wentzel

 Can anybody tell what's the best solution for logging out.
 I use Tomcat 3.2.1, Windows2000 and JDBCRealm.

session.invalidate();

simple yet effective.

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



RE: logout

2001-04-12 Thread Michael Wentzel

  Can anybody tell what's the best solution for logging out.
  I use Tomcat 3.2.1, Windows2000 and JDBCRealm.
 
 session.invalidate();
 
 simple yet effective.

In addition, if you are actually referring to logging out of 
windows.  Try changing to 1.2 jvm(I believe the latest 1.3 beta
also works correctly).



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



Re: The Joy of File : New Window

2001-04-12 Thread Wyn Easton

Welcome to the world of web programming ;-

I had the same problem a while back.
What we did was create a "key" for each new logon.
By logon I mean that requests always came to one
servlet before going to other servlets or JSPs.
This "main" servlet would generate a unique key and
pass it to other servlets or JSPs in the request
as an attribute. (request.setAttribute("sessionKey",
theKey);) We used the Date() method to get a unique
key. The JSPs would always store this key in a hidden
variable in the form it sends back to the web server.
We stored the bean for this request in the session
using the key (session.setAttribute(key,theBean);
Then when a another request came in we first get the
key from the request (String theKey =
requesst.getParameter("mySessionKey");) then get the
bean for the request (session.getAttribute(theKey);)

For this to work you must not call getSession(true)
except in the "main" servlet. All other servlets
should use getSession(false);  then check for a null
return.
If it is null, send the request to the "main" servlet.




--- Erik Horstkotte [EMAIL PROTECTED] wrote:
 I've run into a problem that seems to lie in the
 borders between Struts
 and Tomcat. We're developing a fairly large JSP 
 EJB - based project
 and have just run into the fun fact that when a user
 (of IE 5.5 or
 Communicator 4.61 at least) "splits" the window, the
 session id cookie
 is inherited by the new window, and therefore *both*
 windows start
 sharing the same form beans. This causes havoc. I
 don't see how our app
 can even *detect* the condition, much less *deal*
 with it.
 
 How are you others out there dealing with this
 issue?
 
 -- Erik
 
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Randy Layman


In the BugParade, bug #4113225 (at
http://developer.java.sun.com/developer/bugParade/bugs/4113225.html) details
what I believe to be your problem - concurrent access of ODBC crashes the
server.  There is even sample code to reproduce the problem.  Sun's
evaluation - Not supported, not to be fixed, use commercial.

Also, while JDK 1.1.6 does run on 2000, Sun only recommends using
the JDK 1.1.8 on Windows 2000 (and only JDK 1.1.8_007 on Pentium IV), if you
are going to use JDK 1.1.x.  (I couldn't find any specific warnings but did
find a few bugs in the Bug Parade).

So, I would suggest change your database drivers.  I believe that
there is a free software effort at freetds.org and I would like to plug the
drivers we use from inetsoftware.de (we use it without any problems).  I
would also suggest upgrading your JDK to 1.1.8.  I would not use MySQL in
place of SQL Server.  If you must leave SQL Server, try PostgreSQL.  (MySQL
doesn't pass the ACID test, which causes all sorts of problems for people
worried about data consistency and integrity)

Randy

 -Original Message-
 From: Andy C [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 7:30 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Fed up to the back teeth with tomcat !!!
 
 
 Many Many thanks for that, I'll get to it right away.
 
 Andy
 
 
 
 - Original Message - 
 From: "Sandy McPherson" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 12, 2001 11:48 AM
 Subject: Re: Fed up to the back teeth with tomcat !!!
 
 
  
  
  Andy C wrote:
  
   - Original Message -
   From: "Sandy McPherson" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
 
  Here's a concrete suggestion to improve your debugging
  
  Your users are probably seeing the stack trace you yourself 
 want to see, 
  so set up an error page which writes any exceptions to a 
 log file and 
  possibly mails the exceptions thrown in the production 
 system to you. In 
  each servlet you should do a catch( Throwable ex ) around 
 the servlet 
  body and report the exception before re-throwing the it.
  
  I have attached a tag class which you can hack about to acheive the 
  desired effect. I have hacked out most of the stuff specific to my 
  environment, so it may not work "out of the box". I guess 
 you can figure 
  out what should go in the TLD.
  
  The mail is probably a luxury, but it will wake up your operators!
  
  
 
 



Basic HTTP Authorization and JDBCRealm

2001-04-12 Thread Ricardo Gladwell

Dear All,

I'm using JDBCRealm on Tomcat through IIS 5.0 on Windows 2000 to
authenticate users for my companies Intranet. I managed to configure my
server to authenticate user via HTTP basic authorization. However, when I
attempt to log into my web application I receive the following errors in my
jvm.stderr.log file:

2001-04-12 12:54:33 - ContextManager: JDBCRealm: JDBCRealm.authenticate:
SELECT Password FROM People WHERE UserName = ?
2001-04-12 12:54:34 - ContextManager: JDBCRealm: Authentication unsuccessful
for user null

With a bit a research it would appear that the JDBCRealm interceptor is not
reading the HTTP Authorization header properly. The authenticate( String,
Hashtable ) method is being passed a null value for the username, or the
authenticate( Request, Response ) is not receiving the headers. Perhaps IIS
or the ISAPI redirector are stripping this header when it passes the request
onto Tomcat?

If anyone could tell me what I'm doing wrong or where the problem is likely
to lie, I would be most grateful as this conundrum is eating up days of my
time. Here is the configuration for my server.xml file (the SimpleRealm
interceptor is commented out):

RequestInterceptor
className="org.apache.tomcat.request.JDBCRealm"
debug="99"

driverName="sun.jdbc.odbc.JdbcOdbcDriver"

connectionURL="jdbc:odbc:Intranet"
connectionName="user"
connectionPassword="pass"

userTable="People"
userNameCol="UserName"
userCredCol="Password"

userRoleTable="Roles"
roleNameCol="RoleName"
/

Here is the configuration from the web.xml for my web application:

security-constraint

web-resource-collection
web-resource-nameIntranet/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection

auth-constraint
role-nameIntranetUser/role-name
/auth-constraint

/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameUBQT Media Intranet/realm-name
/login-config

TIA...

--
Ricardo Gladwell
UBQT Media PLC, Windsor
Mobile: (07779) 841 444




RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Lyle H. Ward

Yahoo says www.openlinksw.com
Virtuso database

At 12:27 PM 4/12/2001 +0100, you wrote:
Hi Alistair,

I tried to get to the Virtuso link www.openlink.com buts its a redirect to
internet.com Was your email some kind of clever spam :-)



-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!


For more complex data transfers between databases, take a look at virtuoso
at openlink.com.

It's a meta-database-engine that lets you write SQl loading from one
database into another.

This is nice as you can remove early-effort-stupidities and rearrange your
schema when moving db.

Al.

-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Fed up to the back teeth with tomcat !!!



 BTW
 Is there an easy way to import a SQL-Server database into mysql ?
  At least
 that way I could dump the jdbc-odbc bridge ?

if you have fewer than 100's of tables use rational rose to de-construct the
SQL server into DDL, throw away all the relationship definitions [sic],
switch a few data types, select everything from SQL server into a tab delim
or csv file, and bingo.. ready for import into mysql









Re: Only The Most Beautiful Teens

2001-04-12 Thread Moin Anjum H.

Please remove this guy of the List.

Moin.

john wrote:

 Young Teen Female Oriented Porn CD

 Watch and see before your very own eyes, in front
 of the privacy of your own computer, young girls
 get pleasured by older men, finger tight shaved
 pussy's, rub luscious clits, masturbate with
 gigantic dildos, tweak luscious nipples,
 timulate themselves with intriguing vibrators, pant,
 moan, and feel themselves up until they explode with
 orgasmic pleasure spraying visually for you to see
 and enjoy!

 Full 700MB CD
 Over 30 MPEGs (movies)
 Over 200 JPEGs (pictures)
 Of the youngest, most erotic, gorgeous looking,
 teenagers allowed by law.

 Mailed discreetly in an unmarked package to anywhere
 in the world as soon as payment is received.

 We accept Cash, Checks, Money Orders and Cashiers
 Checks
 Please make payment USD $15.99 payable to:

 Mr. Smith
 9974 Scripps Ranch Blvd. 110
 San Diego, CA 92131

 Questions call our voicemail and please clearly
 state your e-mail address:
 1-800-699-2466 EXT# 858-333-

 Please don’t forget to enclose your mailing address!

 Legal notice:

 We immediately honor all requests to be removed
 from this list. This message is being sent to
 you in compliance with the Federal legislation
 for commercial e-mail (H.R.4176 – Section 101,
 Paragraph (e)(1)(a)) and Bill s.1618 Title III
 passed by the 105th US Congress.  Code 001

 Please reply with "remove" in the subjuct line
 to be removed from further mailings.

 DISCLAIMER- -By bidding on this item, you
 certify that you are at least 18 years of
 age, and you will not permit any minor or
 any other person who may find this personally
 offensive to view this material. -You verify
 that you are entitled to possess sexually
 explicit materials where you live and believe
 such materials to be within your community
 standards. -You certify that you are not an
 employee of the US Post Office, any law
 enforcement agency, or any individual whose
 purpose is entrapment and will in no way
 seek legal action against the seller for any
 damages that may be done. -You are not
 purchasing this material to use against
 the seller or any person in any conceivable
 manner. Although assumed otherwise, the seller
 in no way guarantees the legality of
 purchasing and owning this material where
 you live. All models are 18 years of age
 or older. !




RE: error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Arne Borkowski \(borko.net\)

Hi,

I am using Tomcat 3.2.1 under RedHat Linux and also tried
to configure my own error-page entries in the WEB.XML
of the context in question. And it failed with a similar
error (stack overflow) flodding my console with lines like

Ctx(  ): 404 R(  + /nono.xml + null ) null

I set Cocoon's Tomcat context to "/" making my Apache and
Cocoon conext pointing to .../htdocs directory. So far so
good. Only too bad, that ERROR 404 (and others are not
handled properly).

BTW: if I use the Tomcat context "/cocoon" things are *no*
better regarding error-page behaviour!

Does any of you know where I do wrong?

Regards, Arne





 -Original Message-
 From: Stphane BAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:45 AM
 To: [EMAIL PROTECTED]
 Subject: error-page directive throw a java.lang.StackOverflowError


 Hello,


 I'm using Tomcat 3.2.1 under Windows 2000.
 In my web.xml descriptor, I've set up this error-page directive

 error-page
   error-code404/error-code
   location/404.html/location
 /error-page

 404.html is a the root of my context.
 When I type an incorrect URL, I've got a 500 response, and a
 java.lang.StackOverflowError exception in thrown.

 Any idea ???

 In the log I've got:

 Plenty of these lines:
 2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /404.html
 C:\tomcat321\webapps\glextra\404.html C:\tomcat321\webapps\glextra
 2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /default.jsp2
 C:\tomcat321\webapps\glextra\default.jsp2 C:\tomcat321\webapps\glextra

 Than:
 2001-04-12 10:56:12 - Ctx( /glextra ): Exception in: R( /glextra +
 /default.jsp2 + null) - java.lang.StackOverflowError
   at java.lang.Exception.init(Exception.java:38)
   at java.io.IOException.init(IOException.java:43)
   at
 java.io.FileNotFoundException.init(FileNotFoundException.java:62)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:64)
   at java.io.FileInputStream.init(FileInputStream.java:95)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:365)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
  

RE: error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Randy Layman


Generally, getting a stack overflow in this situation indicates that
your error page has an error, which is handled by your error page, which has
an error  I would suggest removing the error page directive and then
making a request for the error page.  Once its working then add the error
page directive back.  This way you first verify that the error page works,
and then you verify that the errorpage directive is set up correctly.

Randy

 -Original Message-
 From: Arne Borkowski (borko.net) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:40 AM
 To: [EMAIL PROTECTED]
 Subject: RE: error-page directive throw a 
 java.lang.StackOverflowError
 
 
 Hi,
 
 I am using Tomcat 3.2.1 under RedHat Linux and also tried
 to configure my own error-page entries in the WEB.XML
 of the context in question. And it failed with a similar
 error (stack overflow) flodding my console with lines like
 
   Ctx(  ): 404 R(  + /nono.xml + null ) null
 
 I set Cocoon's Tomcat context to "/" making my Apache and
 Cocoon conext pointing to .../htdocs directory. So far so
 good. Only too bad, that ERROR 404 (and others are not
 handled properly).
 
 BTW: if I use the Tomcat context "/cocoon" things are *no*
 better regarding error-page behaviour!
 
 Does any of you know where I do wrong?
 
 Regards, Arne
 
 
 
 
 
  -Original Message-
  From: Stphane BAUDET [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:45 AM
  To: [EMAIL PROTECTED]
  Subject: error-page directive throw a java.lang.StackOverflowError
 
 
  Hello,
 
 
  I'm using Tomcat 3.2.1 under Windows 2000.
  In my web.xml descriptor, I've set up this error-page directive
 
  error-page
  error-code404/error-code
  location/404.html/location
  /error-page
 
  404.html is a the root of my context.
  When I type an incorrect URL, I've got a 500 response, and a
  java.lang.StackOverflowError exception in thrown.
 
  Any idea ???
 
  In the log I've got:
 
  Plenty of these lines:
  2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /404.html
  C:\tomcat321\webapps\glextra\404.html C:\tomcat321\webapps\glextra
  2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /default.jsp2
  C:\tomcat321\webapps\glextra\default.jsp2 
 C:\tomcat321\webapps\glextra
 
  Than:
  2001-04-12 10:56:12 - Ctx( /glextra ): Exception in: R( /glextra +
  /default.jsp2 + null) - java.lang.StackOverflowError
  at java.lang.Exception.init(Exception.java:38)
  at java.io.IOException.init(IOException.java:43)
  at
  java.io.FileNotFoundException.init(FileNotFoundException.java:62)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.init(FileInputStream.java:64)
  at java.io.FileInputStream.init(FileInputStream.java:95)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:365)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
  org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
  java:1049)
  at
  org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
  java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  at
  
 

RE: error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Hunor Nam

Hi
I had a similar problem my self...
Here is how i solvedit:
I renamed the 404.jsp to something else... like badrequest.jsp or
something... (not sure if requeired) 
And make sure to add this to your error page ! :%@ page
isErrorPage="true" %
Hades

-Original Message-
From: Arne Borkowski (borko.net) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 3:40 PM
To: [EMAIL PROTECTED]
Subject: RE: error-page directive throw a java.lang.StackOverflowError


Hi,

I am using Tomcat 3.2.1 under RedHat Linux and also tried
to configure my own error-page entries in the WEB.XML
of the context in question. And it failed with a similar
error (stack overflow) flodding my console with lines like

Ctx(  ): 404 R(  + /nono.xml + null ) null

I set Cocoon's Tomcat context to "/" making my Apache and
Cocoon conext pointing to .../htdocs directory. So far so
good. Only too bad, that ERROR 404 (and others are not
handled properly).

BTW: if I use the Tomcat context "/cocoon" things are *no*
better regarding error-page behaviour!

Does any of you know where I do wrong?

Regards, Arne





 -Original Message-
 From: Stphane BAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:45 AM
 To: [EMAIL PROTECTED]
 Subject: error-page directive throw a java.lang.StackOverflowError


 Hello,


 I'm using Tomcat 3.2.1 under Windows 2000.
 In my web.xml descriptor, I've set up this error-page directive

 error-page
   error-code404/error-code
   location/404.html/location
 /error-page

 404.html is a the root of my context.
 When I type an incorrect URL, I've got a 500 response, and a
 java.lang.StackOverflowError exception in thrown.

 Any idea ???

 In the log I've got:

 Plenty of these lines:
 2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /404.html
 C:\tomcat321\webapps\glextra\404.html C:\tomcat321\webapps\glextra
 2001-04-12 10:56:12 - Ctx( /glextra ): Get real path /default.jsp2
 C:\tomcat321\webapps\glextra\default.jsp2 C:\tomcat321\webapps\glextra

 Than:
 2001-04-12 10:56:12 - Ctx( /glextra ): Exception in: R( /glextra +
 /default.jsp2 + null) - java.lang.StackOverflowError
   at java.lang.Exception.init(Exception.java:38)
   at java.io.IOException.init(IOException.java:43)
   at
 java.io.FileNotFoundException.init(FileNotFoundException.java:62)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.init(FileInputStream.java:64)
   at java.io.FileInputStream.init(FileInputStream.java:95)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:365)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.
 java:1049)
   at
 org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.
 java:387)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
 

first getSession after tomcat start

2001-04-12 Thread Gerrit Schimpf

hi,

I've some problems with SessionHandling. The first time i call getSession
after i've started tomcat. I have to wait about 60 seconds until the page will
be shown. I have this problem im my own servlets, and in the examples from
tomcat!

sy
Gerrit

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




RE: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Danny Angus

if you leave the * out of the URL pattern you'll only get directories, not
files in them, does that help?
or try /OneApp/*/

I don't know how hot pattern matching is in the config parser, but I'd
expect that to match anything ending with / even things with / in them,
which is therefore any directory but no file...

/OneApp/*/ should match ..

/OneApp/subdir/
and
/OneApp/subdir/subsubdir/
not
/OneApp/subdir/file.xyz


It would be cool if you could use regex in URL pattern..

d


 -Original Message-
 From: Hunor Nam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 12:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT


 Hi again,
 Well, Danny thanks a lot. Your idea was god.
 Almost perfect for my needs.
 There is a big "bubu" anyhow...
 This is how things look now:

 Part of web.xml :

 servlet
   servlet-name indexOfOneApp /servlet-name
   servlet-classapp.utils.tomcat.indexOfOneApp /servlet-class
 /servlet

 servlet-mapping
 servlet-nameindexOfOneApp   /servlet-name
 url-pattern/OneApp/*/url-pattern
 /servlet-mapping



 the indexOfOneApp servlet:

   public class indexOfOneApp extends HttpServlet
   {

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

   public void doGet(HttpServletRequest
 req,HttpServletResponse res) throws IOException
   {
   res.sendRedirect("/app/oneapp/oneapp.jsp");
   }
   }

 Well what happens now is that (I think) because the oneapp.jsp is itself
 under app/oneapp/ it gets traped in an infinit loop
 (I have tried putting a System.out.println ("something") in the doGet
 method... well, it was printing "something" all over again...)

 Pleas do assist me further (I really need some god ideas...)
   Thanks again !

   Hades


 -Original Message-
 From: Danny Angus [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:58 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT



 I think something like:

servlet-mapping
 servlet-name
 indexServlet
 /servlet-name
 url-pattern
app_nr*/
 /url-pattern
 /servlet-mapping

 should take all hits to that path, but not to specified files, to the
 indexServlet, which can parse the request URI to decide what to give
 you,
 depending on where you think you are.. because none of these folders
 will
 actually need to exist.
 Unless you really want to put files in them ;-)

 Its just a hunch, but should be worth a try as the real answer will
 probably
 look something like this.

 danny



  -Original Message-
  From: Hunor Nam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 9:03 AM
  To: [EMAIL PROTECTED]
  Subject: Index files and CGI UNDER TOMCAT
 
 
  Hi.
  My problem is:
 
  I need to use the welcome-file attribute but in a different way...
 
  Our app. has many folders and I do not want to put an index file in
 each
  of them...
  Especially that it has more sub applications so I would need different
  index files for different folders... it would be nasty to put one in
  each of them and after that, if something changes to change all the
  files...
  I would like to have some kind of redirection set to some folder
 levels
  (so everything beneath them to call its own index...)
  Ok so it's not to clear...? Well... I'll try explaining it a little
 more
  detailed (with some examples)
 
  Lets say the folder structure looks like this:
 
  Main Folder
  +App nr.1
  +-Folder Level1
  +-Folder Level2
  +App nr.2
  +-Folder Level1
  +-Folder Level2
 
  +App nr.3
  +-Folder Level1
  +-Folder Level2
 
  So I need one index file for the Main Folder, that's easy ... but
  everything beneath App nr.1 should go to indexapp nr.1 (and that means
  every Folder Level ...1, 2, 3 and so one)
  The same goes to App nr.2 everything beneath it should go to indexapp
  nr.2.
  OK I would manage handling 3,4 index files but not 20-30 (as how many
  folders we have...)
  I'm not sure if something like this is possible and/or how it's done
 but
  something like:
 
  "If folder starts whit /app nr.1 go to index nr.1;
   If folder starts whit /app nr.2 go to index nr.2;
   And so on"
 
  Problem nr. 2:
  How can I tell tomcat that I do not want some files (having the same
  extension) to be accessible for the end user, those files are actually
  .jsp flies used whit include file ?
 
  After all these problems I have an Easter egg for the Tomcat Users (if
  any one is interested), especially that Easter is close... :)
  We developed a module that supports cgi running under Tomcat.
  I say, "We developed it" because we have not found anything like it on
  the net...
  So if there would be any one interested in it we 

Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Robert Keddie



what did you find that was better?

Robert Keddieweb developmentMarion County, FL 
[EMAIL PROTECTED] 04/11/01 03:11PM I am fed up to the back teeth 
with Tomcat under Apache. I'm trying to runa 24/7 web page servinbg 
around 20,000 .jsp pages a day and I'v ehadto reset the damn server 3 times 
today already.It keeps falling overwith absolutly no error 
*** log messages at all. I am at my wits end,notto mention my poor 
users who have had to put up with this service for thepast month. I am 
totaly lost now as to where to look for solutionsSo can someone please 
recomend a good webserver that will run .jsp andservlets pages and 
integrates well with a SQL server ? I used torun Java Webserver 2.0 
would going back to that help ?Andy CEditor R2 Projecthttp://www.r2-dvd.org(lets hopr you don't 
see a 500 internal error message.)


RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Danny Angus


  possibly mails the exceptions thrown in the production system

Mailing responsible people (other than yourself, obviously) for every 500
error is a *great* wakeup call to nail shoddy workmanship.




issues with setProperty=*

2001-04-12 Thread Calin Duma

Hello,

I am having trouble with the following jsp action:

File: search.jsp (an HTML form)

jsp:useBean
 id="searchAttributes" scope="request"
 class="mypackage.CustomerSearchBean"
 jsp:setProperty name="searchAttributes" property="*" /
/jsp:useBean

The CustomerSearchBean has attributes that match the form field names in
search.jsp.  It does not exist in request scope under the
"searchAttributes" keyword - so I expect it to be created by the JSP.

The servlet that receives the form post request can't find an attribute
in the request scope associated to the "searchAttributes" keyword:

CustomerSearchBean bAtt = (mypackage.CustomerSearchBean)
req.getAttribute("searchAttributes");
if(bAtt == null) {
  logger.log("No REQUEST ATTRIBUTE FOUND", true); // i get this
}


I am trying to automatically populate the bean with the fields that were
entered by the user, rather than interrogate the request parameters for
each specific field.  According to the JSP spec, the property='*' should
accomplish exactly this (on forward to a JSP should fill up the fields -
and on dispatch from the JSP should create and populate the bean).  

Any ideas on what am I doing wrong ?

Thanks,

Calin



RE: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Hunor Nam

Yep your right but anyhow I managed to solve the problem useing
errorpages...
if interested here is the solution...:
I suppressed folder browseing and I made the error page to check
the URI and if it has the needed patern (OneApp) I make a forward to
oneappindex if it has the SecondApp patern I forward to secondappindex
and so on... :-)

Thanks a lot

By the way I used your idea in a another problem (so dont thing you were
not apricieted :-) )

Hades 

-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Index files and CGI UNDER TOMCAT


if you leave the * out of the URL pattern you'll only get directories,
not
files in them, does that help?
or try /OneApp/*/

I don't know how hot pattern matching is in the config parser, but I'd
expect that to match anything ending with / even things with / in them,
which is therefore any directory but no file...

/OneApp/*/ should match ..

/OneApp/subdir/
and
/OneApp/subdir/subsubdir/
not
/OneApp/subdir/file.xyz


It would be cool if you could use regex in URL pattern..

d


 -Original Message-
 From: Hunor Nam [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 12:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT


 Hi again,
 Well, Danny thanks a lot. Your idea was god.
 Almost perfect for my needs.
 There is a big "bubu" anyhow...
 This is how things look now:

 Part of web.xml :

 servlet
   servlet-name indexOfOneApp /servlet-name
   servlet-classapp.utils.tomcat.indexOfOneApp /servlet-class
 /servlet

 servlet-mapping
 servlet-nameindexOfOneApp   /servlet-name
 url-pattern/OneApp/*/url-pattern
 /servlet-mapping



 the indexOfOneApp servlet:

   public class indexOfOneApp extends HttpServlet
   {

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

   public void doGet(HttpServletRequest
 req,HttpServletResponse res) throws IOException
   {
   res.sendRedirect("/app/oneapp/oneapp.jsp");
   }
   }

 Well what happens now is that (I think) because the oneapp.jsp is
itself
 under app/oneapp/ it gets traped in an infinit loop
 (I have tried putting a System.out.println ("something") in the doGet
 method... well, it was printing "something" all over again...)

 Pleas do assist me further (I really need some god ideas...)
   Thanks again !

   Hades


 -Original Message-
 From: Danny Angus [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:58 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT



 I think something like:

servlet-mapping
 servlet-name
 indexServlet
 /servlet-name
 url-pattern
app_nr*/
 /url-pattern
 /servlet-mapping

 should take all hits to that path, but not to specified files, to the
 indexServlet, which can parse the request URI to decide what to give
 you,
 depending on where you think you are.. because none of these folders
 will
 actually need to exist.
 Unless you really want to put files in them ;-)

 Its just a hunch, but should be worth a try as the real answer will
 probably
 look something like this.

 danny



  -Original Message-
  From: Hunor Nam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 9:03 AM
  To: [EMAIL PROTECTED]
  Subject: Index files and CGI UNDER TOMCAT
 
 
  Hi.
  My problem is:
 
  I need to use the welcome-file attribute but in a different way...
 
  Our app. has many folders and I do not want to put an index file in
 each
  of them...
  Especially that it has more sub applications so I would need
different
  index files for different folders... it would be nasty to put one in
  each of them and after that, if something changes to change all the
  files...
  I would like to have some kind of redirection set to some folder
 levels
  (so everything beneath them to call its own index...)
  Ok so it's not to clear...? Well... I'll try explaining it a little
 more
  detailed (with some examples)
 
  Lets say the folder structure looks like this:
 
  Main Folder
  +App nr.1
  +-Folder Level1
  +-Folder Level2
  +App nr.2
  +-Folder Level1
  +-Folder Level2
 
  +App nr.3
  +-Folder Level1
  +-Folder Level2
 
  So I need one index file for the Main Folder, that's easy ... but
  everything beneath App nr.1 should go to indexapp nr.1 (and that
means
  every Folder Level ...1, 2, 3 and so one)
  The same goes to App nr.2 everything beneath it should go to
indexapp
  nr.2.
  OK I would manage handling 3,4 index files but not 20-30 (as how
many
  folders we have...)
  I'm not sure if something like this is possible and/or how it's done
 but
  something like:
 
  "If folder starts 

newbie problem

2001-04-12 Thread Duraisamy, Kandaprabhu (Kandaprabhu)** CTR **

Hi all,
I installed tomcat 3.2.1 yesterday and i am unable to run the jsp examples
given.Even in the servlet examples,given i am unable to run some of the
examples.I am getting an error in the run method of thread.It says null
pointer exception and SHA-1 not available.Any idea on where i am going
wrong?

Using CLASSPATH:
c:\tomcat\classes;c:\tomcat\lib\ant.jar;c:\tomcat\lib\jaxp.jar;c:\tomcat\lib
\servlet.jar;c:\tomcat\lib\parser.jar;c:\tomcat\lib\webserver.jar;c:\tomcat\
lib\jasper.jar;.;..;c:\jdk1.3\lib\tools.jar;C:\ASN1PJAV\WIN32\1.1\lib\OSS.JA
R  on Windows 2000 pro

Stack trace1:
java.lang.NullPointerException
at
jsp.error._0002fjsp_0002ferror_0002ferr_0002ejsperr_jsp_0._jspService(_0002f
jsp_0002ferror_0002ferr_0002ejsperr_jsp_0.java:132)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Stack trace 2:
Location: /examples/servlet/SessionExample
Internal Servlet Error:
java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:89)
at sun.security.provider.SecureRandom.(SecureRandom.java:68)
at java.security.SecureRandom.(SecureRandom.java:128)
at
org.apache.tomcat.util.SessionIdGenerator.getIdentifier(SessionIdGenerator.j
ava:135)
at
org.apache.tomcat.util.SessionIdGenerator.generateId(SessionIdGenerator.java
:177)
at
org.apache.tomcat.util.SessionUtil.generateSessionId(SessionUtil.java:180)
at
org.apache.tomcat.session.StandardManager.getNewSession(StandardManager.java
:379)
at
org.apache.tomcat.session.StandardSessionInterceptor.newSessionRequest(Stand
ardSessionInterceptor.java:177)
at
org.apache.tomcat.core.ContextManager.doNewSessionRequest(ContextManager.jav
a:913)
at
org.apache.tomcat.core.RequestImpl.getSession(RequestImpl.java:478)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getSession(HttpServletRequ
estFacade.java:381)
at SessionExample.doGet(SessionExample.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Thanks

Prabhu










Re: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Stéphane BAUDET

What do you mean by suppress folder browsing ?
How to you do this ?

Hunor Nam a crit :
 
 Yep your right but anyhow I managed to solve the problem useing
 errorpages...
 if interested here is the solution...:
 I suppressed folder browseing and I made the error page to check
 the URI and if it has the needed patern (OneApp) I make a forward to
 oneappindex if it has the SecondApp patern I forward to secondappindex
 and so on... :-)
 
 Thanks a lot
 
 By the way I used your idea in a another problem (so dont thing you were
 not apricieted :-) )
 
 Hades
 
 -Original Message-
 From: Danny Angus [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 4:23 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT
 
 if you leave the * out of the URL pattern you'll only get directories,
 not
 files in them, does that help?
 or try /OneApp/*/
 
 I don't know how hot pattern matching is in the config parser, but I'd
 expect that to match anything ending with / even things with / in them,
 which is therefore any directory but no file...
 
 /OneApp/*/ should match ..
 
 /OneApp/subdir/
 and
 /OneApp/subdir/subsubdir/
 not
 /OneApp/subdir/file.xyz
 
 It would be cool if you could use regex in URL pattern..
 
 d
 
  -Original Message-
  From: Hunor Nam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 12:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Index files and CGI UNDER TOMCAT
 
 
  Hi again,
  Well, Danny thanks a lot. Your idea was god.
  Almost perfect for my needs.
  There is a big "bubu" anyhow...
  This is how things look now:
 
  Part of web.xml :
 
  servlet
servlet-name indexOfOneApp /servlet-name
servlet-classapp.utils.tomcat.indexOfOneApp /servlet-class
  /servlet
 
  servlet-mapping
  servlet-nameindexOfOneApp   /servlet-name
  url-pattern/OneApp/*/url-pattern
  /servlet-mapping
 
 
 
  the indexOfOneApp servlet:
 
public class indexOfOneApp extends HttpServlet
{
 
public void init(ServletConfig conf) throws
  ServletException
{
super.init(conf);
}
 
public void doGet(HttpServletRequest
  req,HttpServletResponse res) throws IOException
{
res.sendRedirect("/app/oneapp/oneapp.jsp");
}
}
 
  Well what happens now is that (I think) because the oneapp.jsp is
 itself
  under app/oneapp/ it gets traped in an infinit loop
  (I have tried putting a System.out.println ("something") in the doGet
  method... well, it was printing "something" all over again...)
 
  Pleas do assist me further (I really need some god ideas...)
Thanks again !
 
Hades
 
 
  -Original Message-
  From: Danny Angus [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:58 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Index files and CGI UNDER TOMCAT
 
 
 
  I think something like:
 
 servlet-mapping
  servlet-name
  indexServlet
  /servlet-name
  url-pattern
 app_nr*/
  /url-pattern
  /servlet-mapping
 
  should take all hits to that path, but not to specified files, to the
  indexServlet, which can parse the request URI to decide what to give
  you,
  depending on where you think you are.. because none of these folders
  will
  actually need to exist.
  Unless you really want to put files in them ;-)
 
  Its just a hunch, but should be worth a try as the real answer will
  probably
  look something like this.
 
  danny
 
 
 
   -Original Message-
   From: Hunor Nam [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, April 12, 2001 9:03 AM
   To: [EMAIL PROTECTED]
   Subject: Index files and CGI UNDER TOMCAT
  
  
   Hi.
   My problem is:
  
   I need to use the welcome-file attribute but in a different way...
  
   Our app. has many folders and I do not want to put an index file in
  each
   of them...
   Especially that it has more sub applications so I would need
 different
   index files for different folders... it would be nasty to put one in
   each of them and after that, if something changes to change all the
   files...
   I would like to have some kind of redirection set to some folder
  levels
   (so everything beneath them to call its own index...)
   Ok so it's not to clear...? Well... I'll try explaining it a little
  more
   detailed (with some examples)
  
   Lets say the folder structure looks like this:
  
   Main Folder
   +App nr.1
   +-Folder Level1
   +-Folder Level2
   +App nr.2
   +-Folder Level1
   +-Folder Level2
  
   +App nr.3
   +-Folder Level1
   +-Folder Level2
  
   So I need one index file for the Main Folder, that's easy ... but
   everything beneath App nr.1 should go to indexapp nr.1 (and that
 means
   every Folder Level ...1, 2, 3 and so one)
   The same goes to App 

RE: first getSession after tomcat start

2001-04-12 Thread William Kaufman

While I haven't seen anything this bad (it's more like 10 seconds for me),
JProbe said the servlet spent all the first-call time in
SecureRandom.getLong() (generating the session key, I think).

We're currently using Tomcat 3.2.1.  The readme for 3.2.2b3 says that
version has:

  -  Better initialization of psuedo-random number generator improves
 response time for first request that generates a session.

I think this'll fix my problem, and possibly yours.

-- Bill K.


 -Original Message-
 From: Gerrit Schimpf [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 2:47 AM
 To: [EMAIL PROTECTED]
 Subject: first getSession after tomcat start
 
 
 hi,
 
 I've some problems with SessionHandling. The first time i 
 call getSession
 after i've started tomcat. I have to wait about 60 seconds 
 until the page will
 be shown. I have this problem im my own servlets, and in the 
 examples from
 tomcat!
 
 sy
 Gerrit
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 



first getSession after tomcat start

2001-04-12 Thread Gerrit Schimpf

hi,

I've some problems with SessionHandling. The first time i call getSession
after i've started tomcat. I have to wait about 60 seconds until the page will
be shown. I have this problem im my own servlets, and in the examples from
tomcat!

sy
Gerrit

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




IIS - ISAPI redirector oddities

2001-04-12 Thread Ray Rush

I've spent quite some time looking around on the FAQ,
documentation and other resources trying to find an
answer to this but have found nothing.  Please take a
look.

I have a Win2k Pro machine with IIS 5.0.  Tomcat 3.2.1
is installed and working just fine.  The ISAPI
redirector works great with this setup.  However, this
machine is hidden from the outside.  If I use
mod_proxy w/Apache 1.3.12 (Solaris 7) to pass requests
to this machine, the filter does not catch the
/servlet
 in the URL so Tomcat doesn't get the request.  The
URL is
'http://hostname/servlet/com.esri.esrimap.Esrimap?ServiceName=swdms'.

This proxying scenario has worked for me previously on
an NT4 machine using the iPlanet FastTrack server. 
But on Win2k with IIS and the ISAPI redirector it just
fails.

I've very confused on why the '/servlet/*=ajp12' line
in uriworkermap.properties works when done purely on
the native machine but not when proxied by Apache it
bombs.

When it is successfull, my IIS web log has the line
'POST /jakarta/isapi_redirect.dll 200', 
but when it fails I see
'POST /servlet/com.esri.esrimap.Esrimap 405'.

The 405 error means post/get is being used on a page
that does not allow post/get.  To me, the filter just
isn't handling the redirect properly.

I hope this is something that is obvious to those with
better knowledge of how the redirector works.  Any
hints/tips/suggestions will be greatly appreciated. 
And yes, I am confined to the NT world for this
particular servlet application.

Ray Rush

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



JDBCRealms

2001-04-12 Thread Leon Palermo

Hello,

I have set up my database tables and the appropriate RequestInterceptor in
my server.xml file.  Can someone show me an example of what should be in the
web.xml file (including roles) to utilize the JDBCRealm?  Thanks in advance!

Leon Palermo




RE: Index files and CGI UNDER TOMCAT

2001-04-12 Thread Hunor Nam

Wel, I made that in Tomcat Stand Alone, every web server has its own way
(I think...)
But here is what you have to do in Tomcat:

In the server.xml :
locate :
RequestInterceptor
className="org.apache.tomcat.request.StaticInterceptor" debug="0"
suppress="false" /
and rewrite it to :
RequestInterceptor
className="org.apache.tomcat.request.StaticInterceptor" debug="0"
suppress="true" /
This works for me... if its not workin' for you than try seting :
suppress="true" in other request interceptors .
God luck
Hades 

-Original Message-
From: Stphane BAUDET [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Index files and CGI UNDER TOMCAT


What do you mean by suppress folder browsing ?
How to you do this ?

Hunor Nam a crit :
 
 Yep your right but anyhow I managed to solve the problem useing
 errorpages...
 if interested here is the solution...:
 I suppressed folder browseing and I made the error page to
check
 the URI and if it has the needed patern (OneApp) I make a forward to
 oneappindex if it has the SecondApp patern I forward to secondappindex
 and so on... :-)
 
 Thanks a lot
 
 By the way I used your idea in a another problem (so dont thing you
were
 not apricieted :-) )
 
 Hades
 
 -Original Message-
 From: Danny Angus [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 4:23 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Index files and CGI UNDER TOMCAT
 
 if you leave the * out of the URL pattern you'll only get directories,
 not
 files in them, does that help?
 or try /OneApp/*/
 
 I don't know how hot pattern matching is in the config parser, but I'd
 expect that to match anything ending with / even things with / in
them,
 which is therefore any directory but no file...
 
 /OneApp/*/ should match ..
 
 /OneApp/subdir/
 and
 /OneApp/subdir/subsubdir/
 not
 /OneApp/subdir/file.xyz
 
 It would be cool if you could use regex in URL pattern..
 
 d
 
  -Original Message-
  From: Hunor Nam [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 12:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Index files and CGI UNDER TOMCAT
 
 
  Hi again,
  Well, Danny thanks a lot. Your idea was god.
  Almost perfect for my needs.
  There is a big "bubu" anyhow...
  This is how things look now:
 
  Part of web.xml :
 
  servlet
servlet-name indexOfOneApp /servlet-name
servlet-classapp.utils.tomcat.indexOfOneApp /servlet-class
  /servlet
 
  servlet-mapping
  servlet-nameindexOfOneApp   /servlet-name
  url-pattern/OneApp/*/url-pattern
  /servlet-mapping
 
 
 
  the indexOfOneApp servlet:
 
public class indexOfOneApp extends HttpServlet
{
 
public void init(ServletConfig conf) throws
  ServletException
{
super.init(conf);
}
 
public void doGet(HttpServletRequest
  req,HttpServletResponse res) throws IOException
{
res.sendRedirect("/app/oneapp/oneapp.jsp");
}
}
 
  Well what happens now is that (I think) because the oneapp.jsp is
 itself
  under app/oneapp/ it gets traped in an infinit loop
  (I have tried putting a System.out.println ("something") in the
doGet
  method... well, it was printing "something" all over again...)
 
  Pleas do assist me further (I really need some god ideas...)
Thanks again !
 
Hades
 
 
  -Original Message-
  From: Danny Angus [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 11:58 AM
  To: [EMAIL PROTECTED]
  Subject: RE: Index files and CGI UNDER TOMCAT
 
 
 
  I think something like:
 
 servlet-mapping
  servlet-name
  indexServlet
  /servlet-name
  url-pattern
 app_nr*/
  /url-pattern
  /servlet-mapping
 
  should take all hits to that path, but not to specified files, to
the
  indexServlet, which can parse the request URI to decide what to give
  you,
  depending on where you think you are.. because none of these folders
  will
  actually need to exist.
  Unless you really want to put files in them ;-)
 
  Its just a hunch, but should be worth a try as the real answer will
  probably
  look something like this.
 
  danny
 
 
 
   -Original Message-
   From: Hunor Nam [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, April 12, 2001 9:03 AM
   To: [EMAIL PROTECTED]
   Subject: Index files and CGI UNDER TOMCAT
  
  
   Hi.
   My problem is:
  
   I need to use the welcome-file attribute but in a different
way...
  
   Our app. has many folders and I do not want to put an index file
in
  each
   of them...
   Especially that it has more sub applications so I would need
 different
   index files for different folders... it would be nasty to put one
in
   each of them and after that, if something changes to change all
the
   files...
  

RE: in-process howto

2001-04-12 Thread Mark Mynsted

I followed the instructions in the inprocess howto and I can not see that it did 
anything, except that the jsps are not being served.

 [EMAIL PROTECTED] 4/12/2001 1:57:12 AM 
Does it works on your machine? When I make changes to the worker.properties
and set up worker.list=inprocess (or jni), change uniworkermap.properties
and set up /*=inprocess (or jni) IIS doesn't redirect all requests to
tomcat. But when univorkermap.properties contains string /*=ajp12 and
worker.properties doesn't contain inprocess or jni in the worker.list, IIS
works!

Michael


-Original Message-
From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 12, 2001 3:24 AM
To: [EMAIL PROTECTED] 
Subject: in-process howto


The in-process howto is very good however, it is not clear to me how this
works without making any changes to IIS.  When I do the out of process
method with tomcat, I must set up filter to use isapi_redirect.dll, but I
need do nothing to use the inprocess method?






Tomcat Problem (startup.bat)

2001-04-12 Thread EventHorizon14
Hello, 

I am having a particular problem in getting one of my servlets to work with 
Tomcat. My servlet (and other classes it calls upon to perform processing) is 
located in a directory named: 

c:\tomcat\webapps\nodes\web-inf\classes 

When I run c:\tomcat\bin\startup.bat, and try to run the servlet, tomcat 
immediately closes. But, when I run the startup.bat command from the 
directory that the servlet exists in 
(c:\tomcat\webapps\nodes\web-inf\classes\startup.bat), the servlet works 
fine. 

Note: one of the classes reads an input.dat file, which at first I thought 
was causing the problem. The .dat file is in the same directory as the 
servlet. I changed the way I called the .dat file from 

"BufferedReader infile = new BufferedReader(new FileReader("input.dat"));" 

to 

"BufferedReader infile = new BufferedReader(new 
InputStreamReader(getClass().getResourceAsStream("input.dat")));" 

but this did not help the situation. I think it must be a classpath problem; 
this is what my classpath looks like: 

CLASSPATH=c:\jdk1.3\jre\lib\rt.jar;c:\j2sdkee1.3\lib\j2ee.jar;c:\tomcat\lib\se
 

rvlet.jar;c:\tomcat\webapps\nodes\web-inf\classes;c:\tomcat\webapps;c:\tomcat\
 

webapps\nodes\web-inf;c:\orion\default-web-app\web-inf\classes 

Does anyone know what may be causing this problem? I want the servlet to run 
when I launch startup.bat from the c:\tomcat\bin directory, instead of only 
running from when I run startup.bat from the directory the servlet and 
related classes are in. 

Thanks, 

M. Kaluzienski 
www.networks-plus.net 




JDBCRealms

2001-04-12 Thread Leon Palermo

Hello,

I have set up my database tables and the appropriate RequestInterceptor in
my server.xml file.  Can someone show me an example of what should be in the
web.xml file (including roles) to utilize the JDBCRealm?  Thanks in advance!

Leon Palermo





RE: Tomcat Problem (startup.bat)

2001-04-12 Thread Danny Angus



I 
think you need to specify a full file path, because your servlet will search in 
the current directory, which is way *not* ever going to be where you expect it 
to be...
You 
can use your knowledge of your own application, the request URI, and TOMCAT_HOME 
to build one that's independant of installation directories, or I think you can 
set it as a parameter in web.xml

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Thursday, 
April 12, 2001 2:55 PMTo: 
[EMAIL PROTECTED]Subject: Tomcat Problem 
(startup.bat)
Hello, 
  I am having a particular problem in getting one of my servlets to work 
  with Tomcat. My servlet (and other classes it calls upon to perform 
  processing) is located in a directory named: 
  c:\tomcat\webapps\nodes\web-inf\classes When I run 
  c:\tomcat\bin\startup.bat, and try to run the servlet, tomcat immediately 
  closes. But, when I run the startup.bat command from the directory that 
  the servlet exists in 
  (c:\tomcat\webapps\nodes\web-inf\classes\startup.bat), the servlet works 
  fine. Note: one of the classes reads an input.dat file, which at 
  first I thought was causing the problem. The .dat file is in the same 
  directory as the servlet. I changed the way I called the .dat file from 
  "BufferedReader infile = new BufferedReader(new 
  FileReader("input.dat"));" to "BufferedReader infile = new 
  BufferedReader(new 
  InputStreamReader(getClass().getResourceAsStream("input.dat")));" 
  but this did not help the situation. I think it must be a classpath 
  problem; this is what my classpath looks like: 
  CLASSPATH=c:\jdk1.3\jre\lib\rt.jar;c:\j2sdkee1.3\lib\j2ee.jar;c:\tomcat\lib\se 
  rvlet.jar;c:\tomcat\webapps\nodes\web-inf\classes;c:\tomcat\webapps;c:\tomcat\ 
  webapps\nodes\web-inf;c:\orion\default-web-app\web-inf\classes 
  Does anyone know what may be causing this problem? I want the servlet 
  to run when I launch startup.bat from the c:\tomcat\bin directory, instead 
  of only running from when I run startup.bat from the directory the servlet 
  and related classes are in. Thanks, M. Kaluzienski 
  www.networks-plus.net 


Re: Two Depressed Questions

2001-04-12 Thread Mark Mynsted

Speaking for myself I read them, I just can't help you.  I would love to know the 
answers if some smarty-pants would post them.  ;-)

 [EMAIL PROTECTED] 4/11/2001 11:11:03 PM 
They're depressed because apparently nobody read them when I posted previously. ;) Or 
maybe nobody had the answers.  These are two questions I'm still hoping for a response 
on.  I'm hoping for Craig-like knowledge, but someone else who does have the same 
configuration but doesn't have the same problems would also have useful information..

1.  I have a listener registered in a web application.  This listener receives the 
appropriate callbacks.  One of the methods called is: 
contextInitialized(ServletContextEvent event).  The body of the method I've written 
there adds a few things to the ServletContext and then starts a background thread to 
do some processing.  The problem is: Tomcat will not serve anything when I include 
this listener.  Similarly, when I had that same code in a .jsp file, the .jsp file 
never finished processing (I never got data back in the browser, as I should have).  
The .jsp file _did_ finish when I was not spawning this background thread.

2.  I set up two virtual hosts in server.xml in addition to the default host, which I 
left as-shipped.  They each contain a context with a path = "".  When I access 
'www.host1.com:8080' I get the correct results.  When I access 'www.host2.com:8080' I 
get a 503 error.  Eliminating either entry allows the other to work.  It appears to be 
a "Clash of the Contexts", where two contexts cannot have the same name, regardless of 
the host in which they are nexted.  The following log error suggests something in this 
area too:

2001-04-05 05:33:37 StandardContext[]: Error initializing naming context for context 
2001-04-05 05:33:37 StandardContext[]: Context startup failed due to previous errors

Any knowledge and help is appreciated.

Mike




RE: IIS - ISAPI redirector oddities

2001-04-12 Thread Randy Layman


Is it possible that either the filter of virtual directory aren't
set up for the virtual host being used by the proxy but are for the virtual
host serving up the internal requests?  (From my own experience, IIS is very
picky and sometime very odd in its choice of which virtual host to use for a
given request).

Randy


 -Original Message-
 From: Ray Rush [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 9:49 AM
 To: [EMAIL PROTECTED]
 Subject: IIS - ISAPI redirector oddities
 
 
 I've spent quite some time looking around on the FAQ,
 documentation and other resources trying to find an
 answer to this but have found nothing.  Please take a
 look.
 
 I have a Win2k Pro machine with IIS 5.0.  Tomcat 3.2.1
 is installed and working just fine.  The ISAPI
 redirector works great with this setup.  However, this
 machine is hidden from the outside.  If I use
 mod_proxy w/Apache 1.3.12 (Solaris 7) to pass requests
 to this machine, the filter does not catch the
 /servlet
  in the URL so Tomcat doesn't get the request.  The
 URL is
 'http://hostname/servlet/com.esri.esrimap.Esrimap?ServiceName=swdms'.
 
 This proxying scenario has worked for me previously on
 an NT4 machine using the iPlanet FastTrack server. 
 But on Win2k with IIS and the ISAPI redirector it just
 fails.
 
 I've very confused on why the '/servlet/*=ajp12' line
 in uriworkermap.properties works when done purely on
 the native machine but not when proxied by Apache it
 bombs.
 
 When it is successfull, my IIS web log has the line
 'POST /jakarta/isapi_redirect.dll 200', 
 but when it fails I see
 'POST /servlet/com.esri.esrimap.Esrimap 405'.
 
 The 405 error means post/get is being used on a page
 that does not allow post/get.  To me, the filter just
 isn't handling the redirect properly.
 
 I hope this is something that is obvious to those with
 better knowledge of how the redirector works.  Any
 hints/tips/suggestions will be greatly appreciated. 
 And yes, I am confined to the NT world for this
 particular servlet application.
 
 Ray Rush
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/
 



RE: JDBCRealms

2001-04-12 Thread Ricardo Gladwell

To secure you web application you need to add the following sequence to the
web.xml file for the web application you want to secure, amended for your
own needs:

security-constraint

web-resource-collection
web-resource-nameIntranet/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection

auth-constraint
role-nameIntranetUser/role-name
/auth-constraint

/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameUBQT Media Intranet/realm-name
/login-config

The web-resource-collection details the areas and access points of your
application you wish to secure. The web-resource-name *appears* to be just
an identifier for the particular web-resource, but with documentation for
this feature being very thin on the ground it's dificult to say for sure.
The url-pattern tag allows you to specify wildcard filters to determine
which files are to be secured. For example,
url-pattern/*.jsp/url-pattern will only ask for authentication for your
JSP files. You may also add http-method tags to limit authentication to
specific HTTP methods, such as GET or POST. By default all HTTP methods will
be authenticated.

The auth-constraint specifies the authentication constraints on users. For
example, the role-name tags allows you to specify that only users that
members of certain roles have access.

Finally, the login-config group allows you specify the authentication
method (which must be either BASIC or FORM). The realm-name tag allows you
specify the domain/realm name that will appear in the password dialog for
the client.

Hope that was helpful, yours...

--
Ricardo Gladwell
UBQT Media PLC, Windsor
Mobile: (07779) 841 444

 -Original Message-
 From: Leon Palermo [mailto:[EMAIL PROTECTED]]
 Sent: 12 April 2001 15:00
 To: [EMAIL PROTECTED]
 Subject: JDBCRealms


 Hello,

 I have set up my database tables and the appropriate RequestInterceptor in
 my server.xml file.  Can someone show me an example of what
 should be in the
 web.xml file (including roles) to utilize the JDBCRealm?  Thanks
 in advance!

 Leon Palermo





Lots of threads an %MEN for Tomcat

2001-04-12 Thread Wolle


Hello all wise guys,
i have a question about the tomcat environment,
when i start the Jarkarta-Tomcat3.2.2b2 and look with ps aux on the
system,
(with Tomcat3.2.1final it will be 33 Threads ;-)) )
 it show :

..
.
root  7287  0.0 18.2 214124 17876 tty1   S14:26   0:03
/usr/local/jdk1.3/bin/i386/native_threads/java
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
org.apache.tomcat.startup.Tomcat

root  7327  0.0 18.2 214124 17876 tty1   S14:26   0:06
/usr/local/jdk1.3/bin/i386/native_threads/java
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
org.apache.tomcat.startup.Tomcat
..
CUT
.
root  7328  0.0 18.2 214124 17876 tty1   S14:26   0:00
/usr/local/jdk1.3/bin/i386/native_threads/java
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
-Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
org.apache.tomcat.startup.Tomcat

there are 34 Threads !!! is that normal ? (the -Djava... is only a
parameter)
And the 18.2 is the %MEN variable. The sum of all cpu use is about 8
percent , that's ok.
The %MEN will grow Up when I work with the servlets.
After 4 Day's the server was very slow, and finnaly it hangs Up !!
The System is SuseLinux 7.1 (and no Microsoft, then a had understand why
it hangs up ; )

Have anyone the same experience ?
Or some work around ??

Please help,
thank you for inconvenience,
Michael




RE: in-process howto

2001-04-12 Thread Mark Mynsted

oops.  (I am a total fool.)  It did work after all.  
I do not even want to explain what I did.  


 Michael Klimkin [EMAIL PROTECTED] 4/12/2001 8:56:36 AM 
It really works!!! I've done it!

-Original Message-
From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 12, 2001 5:50 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: RE: in-process howto


I followed the instructions in the inprocess howto and I can not see that it
did anything, except that the jsps are not being served.

 [EMAIL PROTECTED] 4/12/2001 1:57:12 AM 
Does it works on your machine? When I make changes to the worker.properties
and set up worker.list=inprocess (or jni), change uniworkermap.properties
and set up /*=inprocess (or jni) IIS doesn't redirect all requests to
tomcat. But when univorkermap.properties contains string /*=ajp12 and
worker.properties doesn't contain inprocess or jni in the worker.list, IIS
works!

Michael


-Original Message-
From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 12, 2001 3:24 AM
To: [EMAIL PROTECTED] 
Subject: in-process howto


The in-process howto is very good however, it is not clear to me how this
works without making any changes to IIS.  When I do the out of process
method with tomcat, I must set up filter to use isapi_redirect.dll, but I
need do nothing to use the inprocess method?







RE: Basic HTTP Authorization and JDBCRealm

2001-04-12 Thread Ignacio J. Ortega

This is a problem of the AJP12 connector, well really not a problem,
it's suppoused that when Tomcat is used behind any Web server ( IIS in
your case ) the BASIC auth headers are honored by the HTTP Server itself
not Tomcat, Tomcat ( in cooperation with ISAPI filter ) tries retrieve
this info from HTTP Server and in the IIS case this is a big problem, as
the BASIC config on IIS is connected to the NT auth in the OS so
everybody that tries to use IIS Basic auth have this problem...a Sad
problem..

3.3 can help you :) , this problem is resolved by adding a new (
undocumented until today :) attribute to AJP12connector ,
"tomcatAuthentication" when this attribute is true , Tomcat tries to do
BASIC auth by itself without reliying on HTTPServer capacities thus
making you happier ...

Hope this helps..

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Ricardo Gladwell [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 12 de abril de 2001 14:09
 Para: Tomcat Users
 Asunto: Basic HTTP Authorization and JDBCRealm
 
 
 Dear All,
 
 I'm using JDBCRealm on Tomcat through IIS 5.0 on Windows 2000 to
 authenticate users for my companies Intranet. I managed to 
 configure my
 server to authenticate user via HTTP basic authorization. 
 However, when I
 attempt to log into my web application I receive the 
 following errors in my
 jvm.stderr.log file:
 
 2001-04-12 12:54:33 - ContextManager: JDBCRealm: 
 JDBCRealm.authenticate:
 SELECT Password FROM People WHERE UserName = ?
 2001-04-12 12:54:34 - ContextManager: JDBCRealm: 
 Authentication unsuccessful
 for user null
 
 With a bit a research it would appear that the JDBCRealm 
 interceptor is not
 reading the HTTP Authorization header properly. The 
 authenticate( String,
 Hashtable ) method is being passed a null value for the 
 username, or the
 authenticate( Request, Response ) is not receiving the 
 headers. Perhaps IIS
 or the ISAPI redirector are stripping this header when it 
 passes the request
 onto Tomcat?
 
 If anyone could tell me what I'm doing wrong or where the 
 problem is likely
 to lie, I would be most grateful as this conundrum is eating 
 up days of my
 time. Here is the configuration for my server.xml file (the 
 SimpleRealm
 interceptor is commented out):
 
 RequestInterceptor
 className="org.apache.tomcat.request.JDBCRealm"
 debug="99"
 
   driverName="sun.jdbc.odbc.JdbcOdbcDriver"
 
   connectionURL="jdbc:odbc:Intranet"
   connectionName="user"
   connectionPassword="pass"
 
   userTable="People"
   userNameCol="UserName"
   userCredCol="Password"
 
   userRoleTable="Roles"
   roleNameCol="RoleName"
   /
 
 Here is the configuration from the web.xml for my web application:
 
   security-constraint
 
   web-resource-collection
   web-resource-nameIntranet/web-resource-name
   url-pattern/*/url-pattern
   /web-resource-collection
 
   auth-constraint
   role-nameIntranetUser/role-name
   /auth-constraint
 
   /security-constraint
 
   login-config
   auth-methodBASIC/auth-method
   realm-nameUBQT Media Intranet/realm-name
   /login-config
 
 TIA...
 
 --
 Ricardo Gladwell
 UBQT Media PLC, Windsor
 Mobile: (07779) 841 444
 
 



apache 1.3.19/ tomcat 4.0.b1 - win32 error

2001-04-12 Thread kerry finn

Hi,

Been running tomcat (WIN32) standalone for a while - things work fine.
Now I'm ready
to try using apache/cgi scripts. I've install and started apache 1.3.19
along with the
tomcat package.

- WIN32
- installed and running tomcat for a while - servlets (backend mysql)
- also installed and running apache 1.3.19 and get errors try to run the 
  "test-cgi" script.


from the browser:   
-
http://dhcp-70-219/cgi-bin/test-cgi

error.log on the server:

[Wed Apr 11 22:25:39 2001] [error] [client 127.0.0.1] couldn't spawn
child process: c:/apache/apache_1.3.19/apache/cgi-bin/test-cgi

Maybe this is a specific apache question, sorry if this is the wrong
forum.

Any ideas?

thanks,
Kerry



RE: Lots of threads an %MEN for Tomcat

2001-04-12 Thread Danny Angus

lots of threads is normal, top ^M shows nothing but java threads for me ..
I have also found that memory leaks on linux, but perhaps thats my app... I
haven't finished changing everything yet...


 -Original Message-
 From: Wolle [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: Lots of threads an %MEN for Tomcat



 Hello all wise guys,
 i have a question about the tomcat environment,
 when i start the Jarkarta-Tomcat3.2.2b2 and look with ps aux on the
 system,
 (with Tomcat3.2.1final it will be 33 Threads ;-)) )
  it show :

 ..
 .
 root  7287  0.0 18.2 214124 17876 tty1   S14:26   0:03
 /usr/local/jdk1.3/bin/i386/native_threads/java
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
 org.apache.tomcat.startup.Tomcat

 root  7327  0.0 18.2 214124 17876 tty1   S14:26   0:06
 /usr/local/jdk1.3/bin/i386/native_threads/java
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
 org.apache.tomcat.startup.Tomcat
 ..
 CUT
 .
 root  7328  0.0 18.2 214124 17876 tty1   S14:26   0:00
 /usr/local/jdk1.3/bin/i386/native_threads/java
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/jakarta-tomcat-3.2.2b2/bin/..
 org.apache.tomcat.startup.Tomcat

 there are 34 Threads !!! is that normal ? (the -Djava... is only a
 parameter)
 And the 18.2 is the %MEN variable. The sum of all cpu use is about 8
 percent , that's ok.
 The %MEN will grow Up when I work with the servlets.
 After 4 Day's the server was very slow, and finnaly it hangs Up !!
 The System is SuseLinux 7.1 (and no Microsoft, then a had understand why
 it hangs up ; )

 Have anyone the same experience ?
 Or some work around ??

 Please help,
 thank you for inconvenience,
 Michael





AW: Two Depressed Questions

2001-04-12 Thread Stefan Busse

Maybe I can help you with the second question at least:

I removed the default host and put several virtual hosts in
my server.xml and some of them contain the same path "/". It 
works just beautifully. Maybe you throw out the default host
like I did. If tomcat works like apache, it will use the
first virtual host as default host anyway. Maybe there is
also a problem using an empty "" path.

cheers,
*stefan

 2.  I set up two virtual hosts in server.xml in addition
 to the default host, which I left as-shipped.  They 
 each contain a context with a path = "".  When I access
 'www.host1.com:8080' I get the correct results.  When 
 I access 'www.host2.com:8080' I get a 503 error.  
 Eliminating either entry allows the other to work.  
 It appears to be a "Clash of the Contexts", where 
 two contexts cannot have the same name, regardless of 
 the host in which they are nexted.  The following log 
 error suggests something in this area too:
 2001-04-05 05:33:37 StandardContext[]: Error initializing
 naming context for context 
 2001-04-05 05:33:37 StandardContext[]: Context startup 
 failed due to previous errors





RE: error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Arne Borkowski \(borko.net\)

Hi,

everything is fine again, after I deleted the contents
of the /usr/local/tomcat/work directory. Could someone
explain to me, how the contents of this directory affects
a rebooted server? And I "shutdown -r now" the Linux box.

I am really new to Tomcat, so maybe this question is not
too stupid at all?

-Arne



Good book

2001-04-12 Thread davea

Hi,

 Being a newbie to TOMCAT and Java.  Is there a good book or some other type of 
reading material for TOMCAT.  I work as a system administrator and will not be 
developing JAVA servlet applications.  But, I do need to understand the ins and outs 
of TOMCAT for installation, configurations and security.  I don't understand the 
information in the various files, like server.xml, web.xml, etc and their 
releationships.

Dave




Re: Good book

2001-04-12 Thread Gaziz Nugmanov

Hello davea,

Do you know how do I unsubscribe from the lists, pls?

Thursday, April 12, 2001, 11:08:00 AM, you wrote:

dtjjm Hi,

dtjjm  Being a newbie to TOMCAT and Java.  Is there a good book or some other type of 
reading material for TOMCAT.  I work as a system administrator and will not be 
developing JAVA servlet
dtjjm applications.  But, I do need to understand the ins and outs of TOMCAT for 
installation, configurations and security.  I don't understand the information in the 
various files, like server.xml,
dtjjm web.xml, etc and their releationships.

dtjjm Dave




-- 
Best regards,
 Gazizmailto:[EMAIL PROTECTED]





RE: Good book

2001-04-12 Thread Gonzalez, Kristopher
Title: RE: Good book





[EMAIL PROTECTED]


-Original Message-
From: Gaziz Nugmanov [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Good book


Hello davea,


Do you know how do I unsubscribe from the lists, pls?


Thursday, April 12, 2001, 11:08:00 AM, you wrote:


dtjjm Hi,


dtjjm Being a newbie to TOMCAT and Java. Is there a good book or some other type of reading material for TOMCAT. I work as a system administrator and will not be developing JAVA servlet

dtjjm applications. But, I do need to understand the ins and outs of TOMCAT for installation, configurations and security. I don't understand the information in the various files, like server.xml,

dtjjm web.xml, etc and their releationships.


dtjjm Dave





-- 
Best regards,
Gaziz mailto:[EMAIL PROTECTED]





RE: error-page directive throw a java.lang.StackOverflowError

2001-04-12 Thread Randy Layman


The Work directory is where the compiled JSPs go.  When tomcat
receives a request for a new JSP it checks the timestamp of the JSP file
against the timestamp of the compiled file and uses the newer.  Since you
don't want to compile files every time the server (tomcat process) restarts,
the files persist across startup/shutdown.

Randy

 -Original Message-
 From: Arne Borkowski (borko.net) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 10:55 AM
 To: [EMAIL PROTECTED]
 Subject: RE: error-page directive throw a 
 java.lang.StackOverflowError
 
 
 Hi,
 
 everything is fine again, after I deleted the contents
 of the /usr/local/tomcat/work directory. Could someone
 explain to me, how the contents of this directory affects
 a rebooted server? And I "shutdown -r now" the Linux box.
 
 I am really new to Tomcat, so maybe this question is not
 too stupid at all?
 
 -Arne
 



Serving with Virtual Hosts w/o a Context Name - ?

2001-04-12 Thread Hunter Hillegas

Here's my setup:

Tomcat 3.2.1 with Apache 1.3.19 on Red Hat 6.2.

We have about 50 IP based virtual hosts, some of which use Tomcat, others
which do not.

Is it possible to setup Tomcat to serve a virtual host the contents of a
context without the context name having to be in the URL?

I.e. www.somedomain.com goes directly to the context mywebapp instead of it
having to be www.somedomain.com/mywebapp/ ?

I thought I saw a site that did this but I wasn't sure, especially since I
have Apache in the mix and all the virtual hosts...

The FAQ-O-Matic answer is to put in a redirect. That works fine, just seems
less elegant.

Any ideas?
Hunter




Java Update on Linux

2001-04-12 Thread Hunter Hillegas

Anyone tried the JDK1.3.1 that Sun released recently for Linux?

They claim reliability enhancements... Just wondering.

Hunter




Tomcat 3 vs Tomcat 4

2001-04-12 Thread TomCat TomCat

Hi, I am in the process of investigating to choose a servlet container for 
our project. I am wondering if we should start off with Tomcat 4.0 or Tomcat 
3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x and 
Tomcat 4.x?

Thanks.

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




Re: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm not sure if there's a good book yet about Tomcat. I think some dudes on 
this mailing list are working on that. There is however a good website which 
is being updated frequently and describes everything you need to administer 
a Tomcat web site.


hope this helps.

Kenneth Westelinck


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Good book
Date: Thu, 12 Apr 01 11:08:00 EDT

Hi,

  Being a newbie to TOMCAT and Java.  Is there a good book or some other 
type of reading material for TOMCAT.  I work as a system administrator and 
will not be developing JAVA servlet applications.  But, I do need to 
understand the ins and outs of TOMCAT for installation, configurations and 
security.  I don't understand the information in the various files, like 
server.xml, web.xml, etc and their releationships.

Dave


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




Re[2]: Good book

2001-04-12 Thread Gaziz Nugmanov

Hello Kristopher,


Thanks.

Sorry for posting to the list.

Thursday, April 12, 2001, 11:21:27 AM, you wrote:

GK [EMAIL PROTECTED]

 -Original Message-
 From: Gaziz Nugmanov [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 10:21 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Good book
 
 Hello davea,
 
 Do you know how do I unsubscribe from the lists, pls?
 
 Thursday, April 12, 2001, 11:08:00 AM, you wrote:
 
 dtjjm Hi,
 
 dtjjm  Being a newbie to TOMCAT and Java.  Is there a good book or some
 other type of reading material for TOMCAT.  I work as a system
 administrator and will not be developing JAVA servlet
 dtjjm applications.  But, I do need to understand the ins and outs of
 TOMCAT for installation, configurations and security.  I don't understand
 the information in the various files, like server.xml,
 dtjjm web.xml, etc and their releationships.
 
 dtjjm Dave
 
 
 
 
 -- 
 Best regards,
  Gazizmailto:[EMAIL PROTECTED]
 



-- 
Best regards,
 Gazizmailto:[EMAIL PROTECTED]





Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Scott Tatum

At WorldCom our group is using Tomcat 3.2.1 along with various versions of
Apache and Solaris in production environments for Intranet applications. We
have one production box serving several apps via virtual hosts, each with their
own Tomcat instance. They all get thousands of hits a day (one of them averages
over 10k) and we never have to restart the server for anything other than to
upgrade the application files periodically. Now that I have fixed the
utilization problems I am VERY happy with the stability and performance of
Tomcat in a production environment, and my bosses are too. :)

-Scott
--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Srinivas Kurella wrote:

 I have the same problem. I am running tomcat 3.2.1 on solaris without
 apache. There is not much of a db activity going on. To me it looks as if
 tomcat dies even if there is no activity or hits after a while.
 From the other messages , it looks like it is a bit  more stable on Linux
 than other OSs.

 Srini

 -Original Message-
 From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 4:27 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Fed up to the back teeth with tomcat !!!

 And another, we're serving up  5000 pages per day from our application
 (April stats), Tomcat has never crashed, and has run for well over a month
 without hitch (restarting Tomcat only necessary when the application gets
 updated). RH Linux 6, Tomcat 3.2.1, Apache 1.3.9, Sun JDK 1.2

 Kevin

 On Wed, 11 Apr 2001, Randy Layman wrote:

 
I have a success story to the contrary - using Windows NT 4, Tomcat
  3.2.1, and IIS 4 we are serving a decent sized application with no
 problems.
  We've been averaging uptimes of about 5 - 6 days before the machine is
  restarted because of other software on the machine.  No detectable
 resource
  loss, no crashes.
 






RE: Java Update on Linux

2001-04-12 Thread Patil, Anand

I have installed jdk1.3.1 on redhat 7.0 kernel 2.4.2,
and i don't see any problems. Ran a couple of programs with threads,
and GUI and it is going fine so far.
Anand
 -Original Message-
 From: Hunter Hillegas [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:27 AM
 To:   Tomcat User List
 Subject:  Java Update on Linux
 
 Anyone tried the JDK1.3.1 that Sun released recently for Linux?
 
 They claim reliability enhancements... Just wondering.
 
 Hunter



RE: Java Update on Linux

2001-04-12 Thread Boyce, David

That's not a release, it's a release *candidate*. A big difference.

-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:27 AM
To: Tomcat User List
Subject: Java Update on Linux


Anyone tried the JDK1.3.1 that Sun released recently for Linux?

They claim reliability enhancements... Just wondering.

Hunter



[ANS] Good book

2001-04-12 Thread davea

Ken,

 Do happen to know the URL for the website? 

 Thanks a bunch,

Dave
 From [EMAIL PROTECTED]  Thu Apr 
12 11:37:01 2001
 Received: from otto.nawcad.navy.mil (otto-internal.nawcad.navy.mil [192.58.199.212])
   by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id LAA23125
   for [EMAIL PROTECTED]; Thu, 12 Apr 2001 11:37:01 -0400 (EDT)
 Received: by otto.nawcad.navy.mil; id LAA05276; Thu, 12 Apr 2001 11:37:00 -0400 (EDT)
 Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil via smap (V4.2)
   id xma004897; Thu, 12 Apr 01 11:36:48 -0400
 Received: (qmail 74671 invoked by uid 500); 12 Apr 2001 15:32:48 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 Reply-To: [EMAIL PROTECTED]
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 74649 invoked from network); 12 Apr 2001 15:32:48 -
 Received: from f85.law4.hotmail.com (HELO hotmail.com) (216.33.149.85)
   by h31.sny.collab.net with SMTP; 12 Apr 2001 15:32:48 -
 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Thu, 12 Apr 2001 08:32:49 -0700
 Received: from 195.207.101.123 by lw4fd.law4.hotmail.msn.com with HTTP;   Thu, 
12 Apr 2001 15:32:49 GMT
 X-Originating-IP: [195.207.101.123]
 From: "Kenneth Westelinck" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Good book
 Date: Thu, 12 Apr 2001 15:32:49 -
 Mime-Version: 1.0
 Content-Type: text/plain; format=flowed
 Message-ID: [EMAIL PROTECTED]
 X-OriginalArrivalTime: 12 Apr 2001 15:32:49.0347 (UTC) FILETIME=[D4AB1930:01C0C365]
 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
 
 Hi,
 
 I'm not sure if there's a good book yet about Tomcat. I think some dudes on 
 this mailing list are working on that. There is however a good website which 
 is being updated frequently and describes everything you need to administer 
 a Tomcat web site.
 
 
 hope this helps.
 
 Kenneth Westelinck
 
 
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Good book
 Date: Thu, 12 Apr 01 11:08:00 EDT
 
 Hi,
 
   Being a newbie to TOMCAT and Java.  Is there a good book or some other 
 type of reading material for TOMCAT.  I work as a system administrator and 
 will not be developing JAVA servlet applications.  But, I do need to 
 understand the ins and outs of TOMCAT for installation, configurations and 
 security.  I don't understand the information in the various files, like 
 server.xml, web.xml, etc and their releationships.
 
 Dave
 
 
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 





Re: Good book

2001-04-12 Thread Bo Xu

[EMAIL PROTECTED] wrote:

 Hi,

  Being a newbie to TOMCAT and Java.  Is there a good book or some other type of 
reading material for TOMCAT.  I work as a system administrator and will not be 
developing JAVA servlet applications.  But, I do need to understand the ins and outs 
of TOMCAT for installation, configurations and security.  I don't understand the 
information in the various files, like server.xml, web.xml, etc and their 
releationships.

 Dave

Hi :-)  there are several books about how to develop Servlet(for example,
Jason Hunter's book), but I didn't find a book about how to admin
TOMCAT, I suggest you read the following:

- TOMCAT web site
- the document in TOMCAT(for example, in jakarta-tomcat-3.2.1/doc)
- there are many good emails in this List

Bo
Apr.12, 2001






Apache 1. +tomcat 4.0

2001-04-12 Thread Chelkowski, Tadeusz

How to connect them ?
where can i find webapps.dll ?




Update: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Andy C

Many thanks to all who have taken the time to answer our 
rather irratable plea for help.  Although we haven't 100% got the 
solution, following advice from Randy Layman, we have upgraded
our JVM to 1.1.8 (remember there is a lagacy servlet that will not
run on a higher JVM).  We have also changed from the 
sun JDBC-ODBC driver to a type 4 JDBC driver from 
http://www.freetds.org/  for access to the SQL Server database.


We will report back if these changes stabalise the platform and 
keep on running.

Many thanks once again to one and all...

Andy C
Editor R2 project
http://www.r2-dvd.org





Re: Tomcat 3 vs Tomcat 4

2001-04-12 Thread Pae Choi

A couple of major differences among others will be:

o Support for Different Specification of Servlet  JSP
o Architecture

See the Documentation.


Pae



Hi, I am in the process of investigating to choose a servlet container for
our project. I am wondering if we should start off with Tomcat 4.0 or
Tomcat
3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x and
Tomcat 4.x?

Thanks.

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





RE: Good book

2001-04-12 Thread Patil, Anand

Please let me know what this website is.
Anand 
 -Original Message-
 From: Kenneth Westelinck [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:33 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Good book
 
 Hi,
 
 I'm not sure if there's a good book yet about Tomcat. I think some dudes
 on 
 this mailing list are working on that. There is however a good website
 which 
 is being updated frequently and describes everything you need to
 administer 
 a Tomcat web site.
 
 
 hope this helps.
 
 Kenneth Westelinck
 
 
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Good book
 Date: Thu, 12 Apr 01 11:08:00 EDT
 
 Hi,
 
   Being a newbie to TOMCAT and Java.  Is there a good book or some other 
 type of reading material for TOMCAT.  I work as a system administrator
 and 
 will not be developing JAVA servlet applications.  But, I do need to 
 understand the ins and outs of TOMCAT for installation, configurations
 and 
 security.  I don't understand the information in the various files, like 
 server.xml, web.xml, etc and their releationships.
 
 Dave
 
 
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



RE: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm sorry, I forgot to mention the URL (my mistake :-). It's on 
tomcat.mslinn.com .


regards,

Kenneth Westelinck


From: Georges Boutros [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: Good book
Date: Thu, 12 Apr 2001 11:29:07 -0400

what is this web site
do you have the address

-Original Message-
From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Good book


Hi,

I'm not sure if there's a good book yet about Tomcat. I think some dudes on
this mailing list are working on that. There is however a good website 
which

is being updated frequently and describes everything you need to administer
a Tomcat web site.


hope this helps.

Kenneth Westelinck


 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Good book
 Date: Thu, 12 Apr 01 11:08:00 EDT
 
 Hi,
 
   Being a newbie to TOMCAT and Java.  Is there a good book or some other
 type of reading material for TOMCAT.  I work as a system administrator 
and
 will not be developing JAVA servlet applications.  But, I do need to
 understand the ins and outs of TOMCAT for installation, configurations 
and
 security.  I don't understand the information in the various files, like
 server.xml, web.xml, etc and their releationships.
 
 Dave
 

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

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




Context Manager: Error reading request

2001-04-12 Thread Animesh Chaturvedi - US
Title: Context Manager: Error reading request





Hi


I am trying to run Tomcat 3.2.1 on NetBSD with Kaffe JVM in standalone mode.


Everytime I send a request to the server I get the following exception



ContextManager: Error reading request, ignored - java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(System.java:native)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:118)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:69)
 at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:115)
 at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106)
 at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)
 at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
 at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129)
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:325)



What is going wrong? I had no problem working with tomcat3.1.1. 


I am under pressure to reslove this issue. I will really appreciate any help regarding this.


Thanks in advance


Animesh





Re: Tomcat 3 vs Tomcat 4

2001-04-12 Thread Hunter Hillegas

Just to chime in, the documentation for TC4 is still pretty raw. I asked
this same question awhile back, as well as details for mod_webapp and got no
response.

Is there documentation not on the site?

Hunter

 From: "Pae Choi" [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Thu, 12 Apr 2001 08:55:22 -0700
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat 3 vs Tomcat 4
 
 A couple of major differences among others will be:
 
 o Support for Different Specification of Servlet  JSP
 o Architecture
 
 See the Documentation.
 
 
 Pae
 
 
 
 Hi, I am in the process of investigating to choose a servlet container for
 our project. I am wondering if we should start off with Tomcat 4.0 or
 Tomcat
 3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x and
 Tomcat 4.x?
 
 Thanks.
 
 -Vik
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 




Re: Forms work with JServ+Apache, do not work with Tomcat+Apache: Images in forms show up randomly! Please help!

2001-04-12 Thread dhay



Hi.  Do they show up when you go back a page to them?  That was subject of my
post a few days ago...no answer yet though.

Dave




"Natasa Lazetic" [EMAIL PROTECTED] on
04/11/2001 10:07:13 PM

Please respond to [EMAIL PROTECTED]

To:   "Tomcat-User@Jakarta. Apache. Org (E-mail)"
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Forms work with JServ+Apache, do not work with Tomcat+Apache: Images
  in forms show up randomly! Please help!



Hello!

I have been having problems with the display of images (and application
of CSS's) in forms ever since I have starting using Tomcat + Apache
configuration.  The images/resources displayed perfectly with JServ +
Apache combination.

I am using Java servlets.

I create HTML forms using XSL stylesheets and XML and Xalan/Xerces
combination.

Originally when I switched from JServ to Tomcat, the images would not
show up at all.  Then I added some .flush() and .close() methods to the
OutputSreams/PrintWriters and that helped some - the images started
showing up.  However, they don't show up consistently.  If I refresh the
form, containing say two images and a CSS, that formats the title's
font, one image may be missing, or both images, or CSS may not get
applied.  You never know.  On rare occasions, they all show up.

This problem happens only on IE 5.5 and Netscape 4.7, but does not
happen on Netscape 6.0.

Any ideas?

Exact product versions:
Apache 1.3.12 (or 1.3.14, does not work on either)
Tomcat 3.2.1
Xalan-J 1.2.2
Xerces-J 1.2.2

More notes:
* Could it be a cashing problem?  The caching in HTTP response is now
set to "no-cache"
* The method that goes to get an image uses ContentType of
"application/octet-stream".  Could this cause some trouble? (I've tested
it with "image/gif" content type for a form that used a GIF, and that
did not help)


Thank you for your time.

Cheers,

... Natasa ...









Re: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Manish

Hi All,

Is it possible to use connection pooling using jConnect 5.2 , tomcat 
3.2. I want to use the file server as my service provider cause we dont 
want to implement LDAP server. what are the necessary configuration 
steps needed to do that (if possible). Kindly advice.

Thanks and Regards

Manish




RE: Java Update on Linux

2001-04-12 Thread Kaneda K

At 11:36 12/04/2001 -0400, you wrote:
That's not a release, it's a release *candidate*. A big difference.

Which is ??


-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:27 AM
To: Tomcat User List
Subject: Java Update on Linux


Anyone tried the JDK1.3.1 that Sun released recently for Linux?

They claim reliability enhancements... Just wondering.

Hunter




Re: Java Update on Linux

2001-04-12 Thread Hunter Hillegas

Release candidates are not production level code, at least by name... The
relase candidate may become the golden master, but there is no guarantee
there aren't show-stopping bugs.

Still, I'm interested in experiences. I'm Dling it now.

Hunter

 From: Kaneda K [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Thu, 12 Apr 2001 19:02:18 +0200
 To: [EMAIL PROTECTED]
 Subject: RE: Java Update on Linux
 
 At 11:36 12/04/2001 -0400, you wrote:
 That's not a release, it's a release *candidate*. A big difference.
 
 Which is ??
 
 
 -Original Message-
 From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 11:27 AM
 To: Tomcat User List
 Subject: Java Update on Linux
 
 
 Anyone tried the JDK1.3.1 that Sun released recently for Linux?
 
 They claim reliability enhancements... Just wondering.
 
 Hunter
 




Re: Tomcat 3 vs Tomcat 4

2001-04-12 Thread Kief Morris

 Hi, I am in the process of investigating to choose a servlet container for
 our project. I am wondering if we should start off with Tomcat 4.0 or
 Tomcat
 3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x and
 Tomcat 4.x?

A couple of major differences among others will be:


o Support for Different Specification of Servlet  JSP
o Architecture


I think the most important difference for someone considering which to use
for a production site is that 4.0 is still in beta, and is likely to be for a while
yet since the servlet 2.3 standard isn't expected to be finalized for at least
a few months. I don't believe the Apache connectors are ready yet (I could 
be mistaken though). 

3.2.1 is a production release: if I were setting up a business-critical/
job security-critical site, I would use it rather than 4.0. If it's a non-critical
site and you'd like to get used to the forthcoming 2.3 standard, 4.0 will put 
you ahead of the curve.

Kief




RE: Java Update on Linux

2001-04-12 Thread Craig O'Brien

Sun's 1.3.1 is an early release SDK.  I have been using it on Mandrake 7.2
with good results. It is the SDK that I use with Tomcat.  There are still
some keyboard mapping issues with Linux however.  I also use JBuilder3.5 and
I have better luck using blackdown's 1.3 SDK for Linux.  Both are harmonious
on the same system.  As a side note, IBM's SDK 1.3 is said to be quick but
use much more ram then the above mentioned SDKs and have poor debugging
capabilities. (I do not have first hand knowledge of this) Sun's SDK works
great on my Windows2000 systems.

Regards,
Craig

-Original Message-
From: Kaneda K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Java Update on Linux


At 11:36 12/04/2001 -0400, you wrote:
That's not a release, it's a release *candidate*. A big difference.

Which is ??


-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:27 AM
To: Tomcat User List
Subject: Java Update on Linux


Anyone tried the JDK1.3.1 that Sun released recently for Linux?

They claim reliability enhancements... Just wondering.

Hunter





Re: Java Update on Linux

2001-04-12 Thread Peter Davison

Is there actually a JDK 1.3.1 version or are you referring to the JDK 1.3.0_02 release?

By the way no, I haven't tried it (regardless of what the version number is.)
We are currently using 1.3.0.

Pete.

On Thu, 12 Apr 2001 08:26:59 -0700
Hunter Hillegas [EMAIL PROTECTED] wrote:

 Anyone tried the JDK1.3.1 that Sun released recently for Linux?
 
 They claim reliability enhancements... Just wondering.
 
 Hunter



Re: Java Update on Linux

2001-04-12 Thread Peter Davison

Never mind.  I found the link. (It pays to read doesn't it) ;-).

P.

On Thu, 12 Apr 2001 13:28:52 -0400
Peter Davison [EMAIL PROTECTED] wrote:

 Is there actually a JDK 1.3.1 version or are you referring to the JDK 1.3.0_02 
release?
 
 By the way no, I haven't tried it (regardless of what the version number is.)
 We are currently using 1.3.0.
 
 Pete.
 
 On Thu, 12 Apr 2001 08:26:59 -0700
 Hunter Hillegas [EMAIL PROTECTED] wrote:
 
  Anyone tried the JDK1.3.1 that Sun released recently for Linux?
  
  They claim reliability enhancements... Just wondering.
  
  Hunter



Hi-Level Understanding of Tomcat 3.2.1 Design!

2001-04-12 Thread TomCat TomCat

Can anybody give me a high level architecture/design involved in tomcat 3.x 
such as, when a request comes from a client then what are the steps involved 
to process the request and send it back to the client. (Assuming tomcat is 
integrated with Apache (or any web server) in a separate JVM).

If someone can differentiate between tomcat 3.x and tomcat 4.x's design then 
that would help me.

-Vik


From: Kief Morris [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 3 vs Tomcat 4
Date: Thu, 12 Apr 2001 20:08:02 +0300

  Hi, I am in the process of investigating to choose a servlet container 
for
  our project. I am wondering if we should start off with Tomcat 4.0 or
  Tomcat
  3.2.1. Can anybody tell me what are the major differences in Tomcat 3.x 
and
  Tomcat 4.x?
 
 A couple of major differences among others will be:
 
 
 o Support for Different Specification of Servlet  JSP
 o Architecture
 

I think the most important difference for someone considering which to use
for a production site is that 4.0 is still in beta, and is likely to be for 
a while
yet since the servlet 2.3 standard isn't expected to be finalized for at 
least
a few months. I don't believe the Apache connectors are ready yet (I could
be mistaken though).

3.2.1 is a production release: if I were setting up a business-critical/
job security-critical site, I would use it rather than 4.0. If it's a 
non-critical
site and you'd like to get used to the forthcoming 2.3 standard, 4.0 will 
put
you ahead of the curve.

Kief


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




RE: IIS - ISAPI redirector oddities - SOLVED

2001-04-12 Thread Ray Rush

This ended up being my error.  I figured out I could
change the log level of the ISAPI redirector and I put
it to inform level.  I saw that for the non-proxy site
request it saw /servlet/class but for the proxied
request it saw //servlet/class so it didn't match
the worker mapping.  

I checked my proxy config and that's where I was
picking up the extra "/".  I swear this was the
configuration I had used before.  Maybe the iPlanet
server was being more forgiving of my sloppy URL
rewriting.  It's funny that IIS only saw it as
/servlet too--maybe it's forgiving too but the ISAPI
redirector isn't.  Oh well, just a few hours lost.  I
should have checked the detailed logging yesterday. 
Live and learn.

--- Randy Layman [EMAIL PROTECTED] wrote:
 
   Is it possible that either the filter of virtual
 directory aren't
 set up for the virtual host being used by the proxy
 but are for the virtual
 host serving up the internal requests?  (From my own
 experience, IIS is very
 picky and sometime very odd in its choice of which
 virtual host to use for a
 given request).
 
   Randy
 
 
  -Original Message-
  From: Ray Rush [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 12, 2001 9:49 AM
  To: [EMAIL PROTECTED]
  Subject: IIS - ISAPI redirector oddities
  
  
  I've spent quite some time looking around on the
 FAQ,
  documentation and other resources trying to find
 an
  answer to this but have found nothing.  Please
 take a
  look.
  
  I have a Win2k Pro machine with IIS 5.0.  Tomcat
 3.2.1
  is installed and working just fine.  The ISAPI
  redirector works great with this setup.  However,
 this
  machine is hidden from the outside.  If I use
  mod_proxy w/Apache 1.3.12 (Solaris 7) to pass
 requests
  to this machine, the filter does not catch the
  /servlet
   in the URL so Tomcat doesn't get the request. 
 The
  URL is
 

'http://hostname/servlet/com.esri.esrimap.Esrimap?ServiceName=swdms'.
  
  This proxying scenario has worked for me
 previously on
  an NT4 machine using the iPlanet FastTrack server.
 
  But on Win2k with IIS and the ISAPI redirector it
 just
  fails.
  
  I've very confused on why the '/servlet/*=ajp12'
 line
  in uriworkermap.properties works when done purely
 on
  the native machine but not when proxied by Apache
 it
  bombs.
  
  When it is successfull, my IIS web log has the
 line
  'POST /jakarta/isapi_redirect.dll 200', 
  but when it fails I see
  'POST /servlet/com.esri.esrimap.Esrimap 405'.
  
  The 405 error means post/get is being used on a
 page
  that does not allow post/get.  To me, the filter
 just
  isn't handling the redirect properly.
  
  I hope this is something that is obvious to those
 with
  better knowledge of how the redirector works.  Any
  hints/tips/suggestions will be greatly
 appreciated. 
  And yes, I am confined to the NT world for this
  particular servlet application.
  
  Ray Rush
  
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail. 
  http://personal.mail.yahoo.com/
  


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



RE: Forms work with JServ+Apache, do not work with Tomcat+Apache: Images in forms show up randomly! Please help!

2001-04-12 Thread Natasa Lazetic

Hi!

The issue turned out to be my programming mistake, rather than something
to do with Tomcat :-)

The problem was in the HTTP response's content length setting (found in
in the header of the HTTP response).  

The content length was being set to -1 as apposed to a positive number,
representing the number of bytes in the image/CSS/resource.  Here is the
excerpt of the code that was getting the image/CSS/resource:

java.io.FileInputStream in = new
java.io.FileInputStream(requestedResource);
java.io.OutputStream out =
response.getOutputStream();

byte data[] = new byte[4048];
int bytesRead = in.read(data);
long byteCounter = 0;
while (bytesRead  0)
{
byteCounter +=
bytesRead;
out.write(data, 0,
bytesRead);
bytesRead =
in.read(data);
}
 


response.setContentLength(bytesRead);



The variable bytesRead always equals to -1 after it gets done with the
loop.  So,  the last line should say something like


response.setContentLength((int)byteCounter);

instead.

The interesting thing is that JServ+Apache combination was seemingly
disregarding this setting (content length), while Tomcat+Apache
definitely takes it into account.

Dave, 
I found this issue by mainly using the "log" method of the
javax.servlet.GenericServlet class (you can also use print lines) and
watching the state of all the variables, including the header of your
responses.  Maybe, that way you will also notice some unreasonable
settings in your servlets/jsp's.

Also I suggest using .flush() and .close() methods on all of the
Input/Output Streams or Writers that you use.  They can make whole bunch
of difference.

Dave and Pascal, Thank you for your input.

Cheers,

... Natasa ...





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Forms work with JServ+Apache, do not work with
Tomcat+Apache: Images in forms show up randomly! Please help!




Hi.  Do they show up when you go back a page to them?  That was subject
of my
post a few days ago...no answer yet though.

Dave




"Natasa Lazetic" [EMAIL PROTECTED] on
04/11/2001 10:07:13 PM

Please respond to [EMAIL PROTECTED]

To:   "Tomcat-User@Jakarta. Apache. Org (E-mail)"
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Forms work with JServ+Apache, do not work with Tomcat+Apache:
Images
  in forms show up randomly! Please help!



Hello!

I have been having problems with the display of images (and application
of CSS's) in forms ever since I have starting using Tomcat + Apache
configuration.  The images/resources displayed perfectly with JServ +
Apache combination.

I am using Java servlets.

I create HTML forms using XSL stylesheets and XML and Xalan/Xerces
combination.

Originally when I switched from JServ to Tomcat, the images would not
show up at all.  Then I added some .flush() and .close() methods to the
OutputSreams/PrintWriters and that helped some - the images started
showing up.  However, they don't show up consistently.  If I refresh the
form, containing say two images and a CSS, that formats the title's
font, one image may be missing, or both images, or CSS may not get
applied.  You never know.  On rare occasions, they all show up.

This problem happens only on IE 5.5 and Netscape 4.7, but does not
happen on Netscape 6.0.

Any ideas?

Exact product versions:
Apache 1.3.12 (or 1.3.14, does not work on either)
Tomcat 3.2.1
Xalan-J 1.2.2
Xerces-J 1.2.2

More notes:
* Could it be a cashing problem?  The caching in HTTP response is now
set to "no-cache"
* The method that goes to get an image uses ContentType of
"application/octet-stream".  Could this cause some trouble? (I've tested
it with "image/gif" content type for a form that used a GIF, and that
did not help)


Thank you for your time.

Cheers,

... Natasa ...









binary needed for mod_jserv.so on Solaris 2.7

2001-04-12 Thread Pralabh Dayal

Hi All,

 I have Apache and Tomcat running on my Sun Solaris2.7 (SPARC) and am now
trying to configure apache to forward jsp requests to tomcat. Now when
apache tries to reload tomcat-apache.conf, it gives error loading
mod_jserv.so

I am unable to build the source for jserv coz my C compiler can not make
excutables. Hence i am restricted to binaries.

1. Can anyone suggest me a url to mod_jserv.so / mod_jk.so for SPARC 2.7 ? I
was able to get hold of binaries for apache and tomcat but can not find any
binaries for jserv.

2. Is there any other work-around for apache-tomcat integration?

thanks in advance,

- Pralabh Dayal
Software Consultant
Genuity Inc.
150 Cambridge Park Drive,
Cambridge, MA - 02140
# 617-873-6599 (W)
# 617-306-6752 (M)




Weird Cookie Behavior

2001-04-12 Thread David M. Rosner

Hi All,

I have a jsp that sets a cookie named 'riCookie'. For some reason this 
cookie will not be sent to the browser unless I set an additional cookie 
after that. Here is the code:

This doesn't work:

%
 response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
 response.sendRedirect( "/someOtherPage.jsp" );
%

But this does work:
%
 response.addCookie( new Cookie("riCookie", "DATA" ) ) ;
 response.addCookie( new Cookie("Something", "More DATA" ) ) ;
 response.sendRedirect( "/someOtherPage.jsp" );
%

Any idea why? I tried other names with the word 'Cookie' in them and they 
seem to work as well.

Thanks for any help,

-dave





  1   2   >