Mavenizing tomcat..

2002-07-23 Thread Martin van den Bemt

Hi everyone,

As Costin mentioned on the commons-dev list, is that a real test for
maven would be mavenizing tomcat (tomcat-connectors would be cool too
btw..). 
Since I am volunteering and don't have commit access (and now for a whle
not fulltime tomcatting anymroe) , I want to ask for some support when
needed (and testing) and commiting of the project.xml and the maven.xml
when I get an initial build running..
I'll hope to get started near the end of the week on this.. 

Mvgr,
Martin

BTW mavezing it, doens't mean replacing the current build,xml !


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




RE: Mavenizing tomcat..

2002-07-23 Thread Martin van den Bemt

Almost Beta 5. It just has undergone a major refactor from b4 and has
really progressed in the mean time. Currently commons is completely
mavenezied to get rid of the bugs that may be around and probably to
solve shortcomings still found before b5 is released. 

Mvgr,
Martin

On Tue, 2002-07-23 at 22:53, Ignacio J. Ortega wrote:
 Which version is maven in, right now?
 
 Saludos ,
 Ignacio J. Ortega
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: Question about patch submission

2002-07-02 Thread Martin van den Bemt

Putting the patch in bugzilla makes it easier to track and cannot get
lost that way ;-)

Mvgr,
Martin

On Wed, 2002-07-03 at 01:10, Russ Trotter wrote:
 Hey all,
 
   Quick question about patch submission:  I submitted a patch a week or so ago 
 and was curious if it was even received or acknowledged or anything or simply 
 diverted to /dev/null.  If it was rejected is there any protocol for the 
 submitter getting notice or anything?
 
 thx,
 russ
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: cvs commit: jakarta-tomcat-connectors/jk/native/netscape README

2002-07-01 Thread Martin van den Bemt

See typo below ;)

On Mon, 2002-07-01 at 13:16, [EMAIL PROTECTED] wrote:
 hgomez  2002/07/01 04:16:35
 
   Added:   jk/native/netscape README
   Log:
   Very minimal README for iplanet/netscape build, we have little
   information about it
   
   Revision  ChangesPath
   1.1  jakarta-tomcat-connectors/jk/native/netscape/README
   
   Index: README
   ===
   ABOUT
   -
   
   The redirector was originally developed using Visual C++ Ver.6.0, 
   so having this environment is a prerequisite if you want to perform 
   a custom build on Windows systems
   
   On Unix system, a Makefile.solaris is provided and should be 
   adapted to tailor to your own configuration.
   
   
   REQUIREMENT for Windows build
   -
   
   MS VC 6.0 (+ update, latest service pack is 5)
   
   BUILDING on Windows
   ---

   The steps that you need to take are:
   
  1. Change directory to the nsapi redirector plugins source directory.
   
  2. Execute the following command:
 MSDEV nsapi.dsp /MAKE ALL
 If msdev is not in your path, enter the full path to msdev.exe
   
   This will build both release and debug versions of the redirector plugin.
   
   An alternative will be to open the 
   isapi workspace file (nsapi.dsw) in msdev and 

isapi should nsapi I guess ;)

Mvgr,
Martin

   build it using the build menu.
   
   
   
   
   
   
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: That Cookie thing

2002-07-01 Thread Martin van den Bemt

Just add something to the docs.. At least we can see rtfm ;) (with
some nice pointers to the specs)

Mvgr,
Martin

On Mon, 2002-07-01 at 14:55, John Baker wrote:
 On Monday 01 July 2002 13:53, John Trollinger wrote:
  I have to disagree with the default as well.. as that can be dangerous
  to someone who simply forgot to supply the path.. this could cause
  security issues with where the cookie can be read..  the way is
  currently works if you forgot to provide the path a you will find out
  quickly that something is not working in the same manor that you did and
  can fix it.
 
 No, you don't find out quickly if you don't know what you're doing and you're 
 newish to web programming. You only find out if you've got a good knowledge 
 of web browsers and you realise that although path is optional, the majority 
 of browsers ignore it in some cases. For example, this problem only occurs if 
 a Cookie will be deleted (setting maxAge to 0) and it has no path. Even the 
 best web programmers will take some time to figure out that's wrong.
 
 Therefore although a default is a bad idea, a warning should be provided 
 clearly in the logs that you've not provided a path, and although the 
 wishy-washy (noone takes any notice of) spec says that's ok, most browsers 
 will totally ignore it.
 
 Therefore you've just made many developers very happy with you for providing 
 such a sensible warning.
 
 
 John
 
  -Original Message-
  From: John Baker [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 01, 2002 8:33 AM
  To: Tomcat Developers List
  Subject: Re: That Cookie thing
 
  On Monday 01 July 2002 13:29, Tim Funk wrote:
   http://wp.netscape.com/newsref/std/cookie_spec.html
  OR
   http://www.ietf.org/rfc/rfc2109.txt
  OR
   http://www.ietf.org/rfc/rfc2965.txt
  
   PATH=path
   Optional. The Path attribute specifies the subset of URLs to which
 
  this
 
   cookie applies.
 
  But as IE/Moz/Konqueror (anyone else fancy trying some others?) ignore
  this,
  would it be more useful to provide a default in some way so it isn't
  ignored?
  The chances of getting all those three to stick to the spec are low ;-)
  Or
  even a warning in the logs that your code is not likely to work?
 
  Of course, normally I'd say follow the spec, but sadly if your target
  audience doesn't, there isn't really much you can do.
 
   John Baker wrote:
On Monday 01 July 2002 13:16, peter lin wrote:
   that's the problem with assumptions :)
   
   Actually I believe the W3C spec says the path will default to
 
  directory
 
   the pages resides in. So that page /hello/greeting.jsp will have
   /hello as the path.  Only files under /hello can read the
 
  cookie.
 
   Atleast that's my understanding of how cookie path is supposed to be
   set.  Some one correct me if I am wrong.
   
Well a reliable source tells me that there is no w3c spec for
 
  Cookies,
 
and infact the concept was conjured by Netscape. There is an RFC
 
  spec for
 
Cookies, but it's largely ignored.
   
So as the useful browsers out there ignore Cookie requests without a
path, it might be handy to add it by default so other people don't
 
  spend
 
an hour or two sitting there thinking Why doesn't this work?. The
current context path would be handy, so the response code could look
 
  like
 
this:
   
public void addCookie(Cookie c)
{
// whatever
if (c.getPath() == null)
c.setPath(getContextPath());
// etc
}
   
Just a thought :)
   
   peter
   
   John Baker wrote:
   On Monday 01 July 2002 12:59, peter lin wrote:
   if you want the cookies to be readable by all pages, you should
 
  set it
 
   to /.  That's standard practice. Also, if you have multiple
 
  webserver
 
   with names like www1, www2, www3., you should also set the
 
  cookie
 
   to use yourbiz.com.
   
   I know this ;-) But I'd forgotten to put the / there, and assumed
 
  the
 
   browser would assume this if no / was passed to it. However they
 
  don't,
 
   so I was suggesting that if a Cookie has no path set then one
 
  should be
 
   written by default as a totally useless header is currently written
 
  in
 
   the form:
   
   Set-Cookie: someName=someValue; expires
   
   and due to the lack of a path, every browser ignores it.
 
 -- 
 John Baker, BSc CS.
 Java Developer, TEAM/Slb. http://www.teamenergy.com
 Views expressed in this mail are my own.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: cvs commit: jakarta-tomcat-4.0/catalina/src/conftomcat-users.xml

2002-06-14 Thread Martin van den Bemt


On Fri, 2002-06-14 at 20:34, Amy Roh wrote:
 Thanks for fixing this, Remy.
 
 Ooops, 6:30am commits are too early for me.  ;-)

Maybe too late too ? 

Mvgr,
Martin



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




RE: Vicious Abuse? (an outsiders perspective)

2002-05-25 Thread Martin van den Bemt

Pier +1'ed it.
And whoever got -1'ed (sorry forgot your name), was pretty cool about
it.. (+100 on that response btw..)
Don't get me wrong, I wouldn't like it either to get -1'ed, although
there were good reasons from Pier's perspective. When he got enough
convincing arguments, he did a +1.. 
Too bad some other discussions got mixed up with this one specifically,
which clouded the request from Pier for more information about him...

Mvgr,
Martin

On Sat, 2002-05-25 at 17:22, James Mitchell wrote:
 I've been following along with this/these rather ridiculous thread's).
 
 No, I am not a committer, so you can hit the delete key now if you judge
 people by their status.
 
 IMHO, giving someone a -1 is one of the rudest things I have seen on this
 list in quite a while.
 What is most surprising to me, is how you stuck to your ignorant opinion,
 even after so many others were willing to vote them in.
 
 I have no plans in the future to become a Tomcat committer, however, I do
 have my sights set on the Struts project.  I sincerely hope that there are
 no committers there who share your view on 'how to keep yourself important
 by keeping others out'.  I have seen this characteristic before in a few
 people, of whom shall remain nameless, but they know who they are.
 
 James Mitchell
 
  -Original Message-
  From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, May 25, 2002 10:52 AM
  To: Jakarta General List
  Cc: Tomcat Developers List
  Subject: Vicious Abuse?
 
 
  Jeff Turner [EMAIL PROTECTED] wrote:
 
   .. and thankful that people like Costin persevere in spite of rather
   vicious abuse.
 
  Vicious abuse? All I am proposing is to add greater flexibility to the
  freedom of those who are involved with the Jakarta project.
 
  All I'm proposing is to accept the idea that we might have coders
  who don't
  care about new projects or PMCs, they just want their code done,
  or that we
  might have important resources out there who might want to get
  involved with
  this project but cannot be tied to one particular code base?
 
  Is it a vicious abuse to ask Sally to become an ASF member ALTHOUGH she
  doesn¹t know how to code in C or Java, or Perl, and doesn't even know what
  CVS is all about?
 
  Is it a vicious abuse to ask to free this community from a concept like
  meritocracy as the number of lines of code you put into CVS?
 
  I don't think so, because if this community believes that freedom is a
  vicious abuse, this community is racist, racist towards those who can't or
  don't want to have to deal with CVS, no more and no less as one could be
  racist on the color of your skin, or the ideas that populate your mind...
 
  Pier (really, really worried)
 
  --
  [Perl] combines all the worst aspects of C and Lisp:  a billion
  of different
  sublanguages in  one monolithic executable.  It combines the
  power of C with
  the readability of PostScript. [Jamie Zawinski - DNA Lounge - San
  Francisco]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




Re: Vicious Abuse?

2002-05-25 Thread Martin van den Bemt

Costin,  

 Having hierarchies of 'people can only code' and 'people who lead' is
 not freedom. Creating a group that is 'more equal than the others' and
 taking away the right to vote to those we believe don't care is not
 freedom.

Maybe I missed something, but who as actually talking about people who
lead? Those non committing members will probably lead in there area
(sysadmins, legal stuff, or whatever you can think of) and they don't
care about projects at all, unless it involves their area.
I must add that I don't exactly know how this is handled right now, but
I guess if you want to put the jsdk on the tomcat site, you will get
someone -1'ing because of legal issues. I don't care about those issues,
so let people take care of what they are good at (in your case tomcat..)
Wouldn't it be great to just say oh, let's cc , and let him/her
figure out it this is legal) and get back to focus on what really is
important. 
That person you are cc'ing could be a pro-deo lawyer and really wants to
be involved in the jakarta commity, but cannot be a member, because he
is not part of a project? You will get laught hard at if you will start
a vote to let this person be a committer, but it is better to start a
vote that he becomes a member, because he is contributing to legal
issues on jakarta.

People like to belong to something, you cannot say to people : we'll
drain your brain, but you are not an essential part of this comminity!
even though he is. The logical consequence will be he will disconnect
the brain drain and will not help us out anymore. 


Is this such a bad idea ? 

This lawyer is an example off course ;)) 


Mvgr,
Martin




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




Re: Role Change

2002-05-18 Thread Martin van den Bemt

Congratulations!
and.. You can always take a day of to work om Tomcat ;))

Mvgr,
Martin van den Bemt

On Sat, 2002-05-18 at 20:20, Craig R. McClanahan wrote:
 Many of you have probably noticed that my level of CVS commits to Tomcat
 has been reduced over the last few weeks.  Primarily, this is because I
 have undertaken two new responsibilities at Sun:
 
 * Web Layer Architect for the J2EE Platform
 
 * Spec Lead for JavaServer Faces (JSR-127)
 
 In my architect role, I will be watching over how all of the web-layer
 technologies (including servlet and JSP) fit together into an integrated
 whole.  As spec lead, I have the usual responsibilities of coordinating
 the expert group that is creating version 1.0 of JavaServer Faces.  As you
 can imagine, this combination of tasks is not going to leave me a lot of
 time to work on Tomcat code ...
 
 You will continue to see Remy and Kin-Man doing the great jobs they have
 started in helping to bring Tomcat 4.1 to completion (and Remy's
 additional willingness to play release manager), along with the valuable
 efforts of everyone else who is contributing to Tomcat's successful
 development.  I'm confident that the continued development of an
 incredibly popular servlet and JSP container is in good hands.
 
 Craig McClanahan
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 



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




RE: Tomcat Bug List

2002-02-26 Thread Martin van den Bemt

http://nagoya.apache.org/bugzilla/query.cgi
and select the component you want the buglist from.
Have fun..

Mvgr,
Martin

 -Original Message-
 From: Muhammad Asif [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 26, 2002 01:30
 To: [EMAIL PROTECTED]
 Subject: Tomcat Bug List
 
 
 hi,
 i have tried this question to tomcat user list but no reply. Can anyone 
 tell me where can i find the known bug list of Tomcat?
 
 Thanks for your time.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Forte deployement with tocat

2002-01-25 Thread Martin van den Bemt

Please see http://www.netbeans.org. They just committed a module for tomcat
4 btw (default support in netbeans is still tomcat 3.x)

Mvgr,
Martin

 -Original Message-
 From: ilker ARABACI [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 25, 2002 17:19
 To: Tomcat Developers List
 Subject: Forte deployement with tocat


 Hi,
 I want to deploy projects developed by forte to apache+ tomcat4
 web server
 , using webdav

 is there any step by step guide to do this , both in server and
 client zone.



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




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




RE: [PATCH] RE: mod_webapp and other connectors status...

2002-01-09 Thread Martin van den Bemt

I found an issue I think..
When you stop an webapplication, the application comes available again
through webapp (I tried to stop tomcat-docs and it was still reachable by
mod_webapp.so), so I think it needs some tweaking..

Mvgr,
martin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of jean-frederic clere
Sent: Wednesday, January 09, 2002 11:25
To: Tomcat Developers List
Subject: Re: [PATCH] RE: mod_webapp and other connectors status...


Martin van den Bemt wrote:

 I tried the latest mod_webapp (build from jakarta-tomcat-connectors, head
 branch) and starting up apache before tomcat still gives the error
 Web-aplication not yet deployed (in wa_request.c).
 I thought : what the hack, let's fix this ;)

Great the patch looks  very easy... Checking the result of calling
wa_startup()
more than once will take a while.

I am worried by the following (in warp_handle):
+++
/* Check application */
if (((int)(appl-conf))==-1)
return(wa_rerror(WA_MARK,r,404,Application not deployed));
+++

I have already checked that it has no impact on TC (On Already deployed
applications).

 Attached the diff to the current cvs version of wa_request
 Please look at it carefully, because I don't have a clue what I really
did,
 so it could mean a lot of memory leaks or bad programming (let's say it's
 bin a while I did c and this is the first time I looked at the
source,so..)

 Hope it is usefull (for me it is for now btw..)

 Mvgr,
 Martin

 PS My first patch, and not even a java one ;)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of jean-frederic clere
 Sent: Tuesday, January 08, 2002 15:11
 To: Tomcat Developers List
 Subject: Re: mod_webapp and other connectors status...

 Martin van den Bemt wrote:
 
  Hi everyone,
 
  I probably missed a couple of threads on mod_webapp, so forgive me ;)
 
  In the release notes of v4.0.2-b1 it states :
 
  * If you restart Tomcat, you must also restart Apache to avoid receiving
Error 400 - Bad Request errors.  This will be handled transparently
in the final release.
 
  Is this dependend on the return of Pier, or is someone else working on
 this
  already ?

 I think it is fixed.

  And if second applies : Is the mod_webapp code integrated into the
tomcat
 4
  cvs already or do I have to get the latest from cvs ?

 In jakarta-tomcat-connectors.

 
  Also I saw a lot of commits come by for ajp (i think the new ajp14??).
Can
 I
  be of any testing assistance in that area ?
 
  I am using tomcat 4 (also have the cvs version of tomcat 3.3 running)
and
  both apache 1.3 and apache 2 running on  redhat 7.1 linux boxes.
  I also depend heavily on virtual hosting, so that is the main reason I
 want
  to test this.. (restarting tomcat, without restarting apache and
 everything
  keeps on running ;).
 
  If there are any specific points you want to be tested, just mail me and
I
  let you know (have an almost clean server on the internet right, which
for
  now hasn't any production stuff on there...
 
  Mvgr,
  Martin van den Bemt
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

   

Name: wa_request.patch
wa_request.patchType: unspecified type (application/octet-stream)
Encoding: quoted-printable

   

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

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



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




[PATCH] RE: mod_webapp and other connectors status...

2002-01-08 Thread Martin van den Bemt

I tried the latest mod_webapp (build from jakarta-tomcat-connectors, head
branch) and starting up apache before tomcat still gives the error
Web-aplication not yet deployed (in wa_request.c).
I thought : what the hack, let's fix this ;)
Attached the diff to the current cvs version of wa_request
Please look at it carefully, because I don't have a clue what I really did,
so it could mean a lot of memory leaks or bad programming (let's say it's
bin a while I did c and this is the first time I looked at the source,so..)

Hope it is usefull (for me it is for now btw..)

Mvgr,
Martin

PS My first patch, and not even a java one ;)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of jean-frederic clere
Sent: Tuesday, January 08, 2002 15:11
To: Tomcat Developers List
Subject: Re: mod_webapp and other connectors status...


Martin van den Bemt wrote:

 Hi everyone,

 I probably missed a couple of threads on mod_webapp, so forgive me ;)

 In the release notes of v4.0.2-b1 it states :

 * If you restart Tomcat, you must also restart Apache to avoid receiving
   Error 400 - Bad Request errors.  This will be handled transparently
   in the final release.

 Is this dependend on the return of Pier, or is someone else working on
this
 already ?

I think it is fixed.

 And if second applies : Is the mod_webapp code integrated into the tomcat
4
 cvs already or do I have to get the latest from cvs ?

In jakarta-tomcat-connectors.


 Also I saw a lot of commits come by for ajp (i think the new ajp14??). Can
I
 be of any testing assistance in that area ?

 I am using tomcat 4 (also have the cvs version of tomcat 3.3 running) and
 both apache 1.3 and apache 2 running on  redhat 7.1 linux boxes.
 I also depend heavily on virtual hosting, so that is the main reason I
want
 to test this.. (restarting tomcat, without restarting apache and
everything
 keeps on running ;).

 If there are any specific points you want to be tested, just mail me and I
 let you know (have an almost clean server on the internet right, which for
 now hasn't any production stuff on there...

 Mvgr,
 Martin van den Bemt

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

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




wa_request.patch
Description: Binary data

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


mod_webapp and other connectors status...

2002-01-07 Thread Martin van den Bemt

Hi everyone,

I probably missed a couple of threads on mod_webapp, so forgive me ;)

In the release notes of v4.0.2-b1 it states :

* If you restart Tomcat, you must also restart Apache to avoid receiving
  Error 400 - Bad Request errors.  This will be handled transparently
  in the final release.

Is this dependend on the return of Pier, or is someone else working on this
already ?
And if second applies : Is the mod_webapp code integrated into the tomcat 4
cvs already or do I have to get the latest from cvs ?

Also I saw a lot of commits come by for ajp (i think the new ajp14??). Can I
be of any testing assistance in that area ?

I am using tomcat 4 (also have the cvs version of tomcat 3.3 running) and
both apache 1.3 and apache 2 running on  redhat 7.1 linux boxes.
I also depend heavily on virtual hosting, so that is the main reason I want
to test this.. (restarting tomcat, without restarting apache and everything
keeps on running ;).

If there are any specific points you want to be tested, just mail me and I
let you know (have an almost clean server on the internet right, which for
now hasn't any production stuff on there...

Mvgr,
Martin van den Bemt


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




RE: some mod_webapp changes

2002-01-04 Thread Martin van den Bemt

Hi Nick,

I don't have anything in my web.xml, so I don't hope this is going to be the
default at some time (or should at least be configurable as it always was
with all the connectors).

Mvgr,
Martin


-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 17:50
To: [EMAIL PROTECTED]
Subject: some mod_webapp changes


hello all,

I don't know if this is really needed or appreciated, but for my own
satisfaction I made some modifications to mod_webapp to make Tomcat only
handle URIs mapped in web.xml, as the connector is intended to do. This
way, Apache itself can serve all your static content. The hooks were
pretty much all in there, I just needed to fiddle with things in a few
places.

My work can be found here: http://www.you-phoria.com/mod_webapp/

It's hardly tested, but I figured I'd put it out there for people to
bang on.

Enjoy,
HailHail


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



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




RE: Configuring Jaspers Compiler Options

2002-01-04 Thread Martin van den Bemt

Using jikes compiler ? (read something about it not supporting -encoding
parameter anymore).

Mvgr,
Martin

-Original Message-
From: Mark Porter [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 18:32
To: [EMAIL PROTECTED]
Subject: Fwd: Configuring Jaspers Compiler Options


Hello All,

I posted this message to the 'user' list and didnt get much 'satisfaction'.
Can anyone here be of any help? Here is a copy of the exact error message:

Error: 500Location: /examples/jsp/num/numguess.jspInternal Servlet Error:
org.apache.jasper.JasperException: Unable to compile jsp-javac: invalid
flag: -encoding
use: jsp-javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
path][-nowrite][-d dir] file.java...

   at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
   at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
Source)
   at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown
Source)
   at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
   at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
   at org.apache.tomcat.core.ContextManager.service(Unknown Source)
   at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
   at java.lang.Thread.run(Thread.java:484, Compiled Code)

Any help would be appreciated ... right now this problem is holding us back
from using Tomcat as out primary web container so I'd like to see this
resolved.

Thanks

Mark

 From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Configuring Jaspers Compiler Options
Date: Thu, 3 Jan 2002 21:15:53 -0500

Hey Folks!

Sorry if this is a repost ... sent it out earlier but still hasnt shown up
on the list.

I'm setting up tomcat 3.2.3 on an Irix6.5 box (java sdk1.3.1) and am having
problems compiling any jsp code. Jasper fails with an Error 500 and the
requisite JSPException stack trace complaining that javac was passed in
invalid flag ( -encoding ). Is there any way to configure the options that
are passed to jasper? Why am I having this problem on Irix and not other
platforms in my shop (linux and HPUX). I'd appreciate any help if anyone
has seen this before!

Thanks

Mark





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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



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




RE: Why do I receive CVS-commit stuff?

2002-01-03 Thread Martin van den Bemt

That is just the reason why you receive them. Since it is a we are the
people who develop tomcat mailinglist and therefor the commit messages are
very usefull (keeping track of changes..).
If you develop applications (webapps) that run under tomcat, the tomcat-user
mailinglist is a more appropiate place.

So we like to keep the commit mails (at least I do..)

Mvgr,
Martin


-Original Message-
From: Roland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 14:55
To: Tomcat Developers List
Subject: Why do I receive CVS-commit stuff?


Hello, I'm subscribed to the tomcat-dev mailing list but keep receiving
cvs-commit emails. Why is that? Here are some of the headers of the emails
I receive:

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: cvs commit:
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session
StandardManager.java

Can someone turn this off please?


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



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




bugzilla issue status change..

2001-12-14 Thread Martin van den Bemt

Hi,

I'm always a bit cautious if not hesitant to change messages in bugzilla,
since I'm not one of the developers. Some issues however I can easily give
an answer to. Should I indeed change the status of those kind of messages,
or just add my comments and leave it open, for someone with the bigger
picture / more knowledge about the issue?


Mvgr,
Martin


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




RE: Instructions for Configuring Tomcat 4.0 with IIS 4.0/IIS 5.0

2001-11-29 Thread Martin van den Bemt

Create an entry in bugzilla and say what the purpose is and attach it
there.. Then you know for sure that your effort is not forgotten.

Mvgr,
Martin

 -Original Message-
 From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 4:32 PM
 To: Tomcat Developers List
 Subject: Re: Instructions for Configuring Tomcat 4.0 with IIS 4.0/IIS
 5.0


 It seems that I cannot send attachments to the list. How can I send an
 attachment?
 Thanks
 --- Rajan Gupta [EMAIL PROTECTED] wrote:
  Enclosed are the instructions for configuring Tomcat 4.0 with IIS.
  Please
  let me know if we can put these somewhere on the website.
 
 
 
  __
  Do You Yahoo!?
  Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
  http://geocities.yahoo.com/ps/info1
   --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 __
 Do You Yahoo!?
 Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
 http://geocities.yahoo.com/ps/info1

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



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




RE: Page Auto Refresh

2001-11-27 Thread Martin van den Bemt

The page that called the page that needs to be refreshed contains a form
submit to that servlet. That is what ie is trying to do again. To overcome
this problem, create a save servlet en resp.redirect to the page that is
showing the information.

Mvgr,
Martin

 -Original Message-
 From: Bala Nemani [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 27, 2001 9:19 PM
 To: '[EMAIL PROTECTED]'
 Subject: Page Auto Refresh


 Hi:

 We have several JSP pages in our application. In few of the
 pages, we open small windows (pop up windows) for
 displaying/updating specific information.

 We like to refresh the main page upon closing a pop up window.
 We could do this but every time we close the popup window,
 Microsoft IE asks another question To make sure user wants to
 refresh (send information to refresh).

 Is there a way to suppress this Default IE's question and do an
 auto refresh?

 Thanks
 Bala


 Regards,

 Bala Nemani
 KHAMELEON
 Adapting to Your Success
  www.khameleons.com
  800-655-6598
  727-539-1077 International  Local
  727-539-1070 Fax
  mailto:[EMAIL PROTECTED]
 
 ~~~

  About KHAMELEON
 
 KHAMELEON provides software and services that enable the
 integration of key
 financial and operations business processes - designed exclusively for
 companies selling solutions comprised of products and services, with
 on-going customer maintenance and support.  KHAMELEON's targeted
 functionality provides a single standard infrastructure for complete
 financial and operations management -- enabling simplicity and ease of use
 in obtaining detailed and consolidated information, for faster response to
 changing market conditions. Our systems deliver the integration of
 financials, projects, orders  distribution, contracts, service desk, and
 sales force management processes, across an entire enterprise. By
 streamlining processes, KHAMELEON helps decrease costs, increase
 profit, and
 improve customer satisfaction. Our customers represent a broad-range of
 product and service providers - all running on Oracle® - the premier
 database technology for the Internet.



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



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




RE: DO NOT REPLY [Bug 4843] New: - The stream from PageData.getInputStream() doesn't contain an encoding information

2001-11-13 Thread Martin van den Bemt

If no encoding is known or set in the xml, utf-8 will be assumed.
That is all I can help you with ;))

Mvgr,
Martin

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 7:08 PM
 To: [EMAIL PROTECTED]
 Subject: DO NOT REPLY [Bug 4843] New: - The stream from
 PageData.getInputStream() doesn't contain an encoding information


 DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
 RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4843.
 ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
 INSERTED IN THE BUG DATABASE.

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4843

 The stream from PageData.getInputStream() doesn't contain an
 encoding information

Summary: The stream from PageData.getInputStream() doesn't
 contain an encoding information
Product: Tomcat 4
Version: 4.0.1 Final
   Platform: All
 OS/Version: All
 Status: NEW
   Severity: Blocker
   Priority: Other
  Component: Jasper
 AssignedTo: [EMAIL PROTECTED]
 ReportedBy: [EMAIL PROTECTED]


 I have the TagLibraryValidator of JSPTL emitting the following exception:

  org.xml.sax.SAXParseException: An invalid XML character
 (Unicode: 0x83) was
 found in the CDATA section.

 The code it reports (0x83 here) varies depending on the JSP content.

 This happens when I have both taglib page directive to JSPTL and
 non-ascii
 characters outside the custom tags.  I looked into
 TagLibraryValidator of JSPTL
 and found the following code in its validate(String prefix,
 PageData page)
 method:

  SAXParserFactory f = SAXParserFactory.newInstance();
  f.setValidating(true);
  SAXParser p = f.newSAXParser();
  p.parse(page.getInputStream(), h);

 TagLibraryValidator.validate is not provided with anything else
 but PageData,
 to my knowledge, so I thought this is the best it can do even
 though it doesn't
 mention encodings.  (This is why I'm submitting this report to
 Tomcat team
 rather than JSPTL team.)

 Next, I dumped what PageData.getInputStream() contains, and found
 that it is
 missing the XML declaration, which I thought should contain the encoding
 attribute propagated from JSP page directive.  So, no wonder the
 SAX parser
 JSPTL uses fails at non-ascii characters.

 I suppose this is a serious situation since this may imply people
 cannot mix
 non-ascii html text and tag libraries that has
 TagLibraryValidator.  I see two
 immediate remedies to this, either make PageData.getInputStream()
 produce an
 XML declaration containing appropriate encoding attribute, or
 give PageData
 another method getEncoding().

 P.S. I'm not an expert of JSP or XML.  So forgive me if I'm
 saying something
 irrelevant.

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



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




RE: DO NOT REPLY [Bug 4843] New: - The stream from PageData.getInputStream() doesn't contain an encoding information

2001-11-13 Thread Martin van den Bemt

sorry.. I have a reading problem ;)) I put this comment in bugzilla ;)
Mvgr,
Martin

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 7:11 PM
 To: Tomcat Developers List
 Subject: RE: DO NOT REPLY [Bug 4843] New: - The stream from
 PageData.getInputStream() doesn't contain an encoding information


 If no encoding is known or set in the xml, utf-8 will be assumed.
 That is all I can help you with ;))

 Mvgr,
 Martin

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 13, 2001 7:08 PM
  To: [EMAIL PROTECTED]
  Subject: DO NOT REPLY [Bug 4843] New: - The stream from
  PageData.getInputStream() doesn't contain an encoding information
 
 
  DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
  RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4843.
  ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
  INSERTED IN THE BUG DATABASE.
 
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4843
 
  The stream from PageData.getInputStream() doesn't contain an
  encoding information
 
 Summary: The stream from PageData.getInputStream() doesn't
  contain an encoding information
 Product: Tomcat 4
 Version: 4.0.1 Final
Platform: All
  OS/Version: All
  Status: NEW
Severity: Blocker
Priority: Other
   Component: Jasper
  AssignedTo: [EMAIL PROTECTED]
  ReportedBy: [EMAIL PROTECTED]
 
 
  I have the TagLibraryValidator of JSPTL emitting the following
 exception:
 
   org.xml.sax.SAXParseException: An invalid XML character
  (Unicode: 0x83) was
  found in the CDATA section.
 
  The code it reports (0x83 here) varies depending on the JSP content.
 
  This happens when I have both taglib page directive to JSPTL and
  non-ascii
  characters outside the custom tags.  I looked into
  TagLibraryValidator of JSPTL
  and found the following code in its validate(String prefix,
  PageData page)
  method:
 
   SAXParserFactory f = SAXParserFactory.newInstance();
   f.setValidating(true);
   SAXParser p = f.newSAXParser();
   p.parse(page.getInputStream(), h);
 
  TagLibraryValidator.validate is not provided with anything else
  but PageData,
  to my knowledge, so I thought this is the best it can do even
  though it doesn't
  mention encodings.  (This is why I'm submitting this report to
  Tomcat team
  rather than JSPTL team.)
 
  Next, I dumped what PageData.getInputStream() contains, and found
  that it is
  missing the XML declaration, which I thought should contain the encoding
  attribute propagated from JSP page directive.  So, no wonder the
  SAX parser
  JSPTL uses fails at non-ascii characters.
 
  I suppose this is a serious situation since this may imply people
  cannot mix
  non-ascii html text and tag libraries that has
  TagLibraryValidator.  I see two
  immediate remedies to this, either make PageData.getInputStream()
  produce an
  XML declaration containing appropriate encoding attribute, or
  give PageData
  another method getEncoding().
 
  P.S. I'm not an expert of JSP or XML.  So forgive me if I'm
  saying something
  irrelevant.
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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



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




RE: Specifying port number , host name during startup

2001-11-13 Thread Martin van den Bemt

Create a bash script that copies the original server.xml, adjusts the
configuration and after that starts tomcat. (that's the way we do it). You
need to use sed or some other tool to replace the entries you want to
replace...

Mvgr,
Martin

 -Original Message-
 From: praveen Kumar [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 9:52 PM
 To: [EMAIL PROTECTED]
 Subject: Specifying port number , host name during startup


 Hello,

 We run couple dozens of web srevers, for different services.
 The port number and host name to bind to comes from a config file.

 I need to have a way to specify port number and hostname which to which
 it should bind
 when the server startsup, on the command line (through catalina.sh
 command line arguments).

 Is there a way to specfiy these parametes on the command line .

 We want to keep a single server.xml and web.xml file for each service,
 but started by different
 developers during devlopement.

 Regards,
 Praveen Kumar A.R.


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



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




RE: And in case I don't see you, good afternoon, good evening andgood bye...

2001-11-01 Thread Martin van den Bemt

You are not seeing I think ;))
Maybe you are more appreciated than you think by the people you had
flamewars with ;)
Enjoy your independence and if you want something else then rain in London,
come and enjoy the rain here in Holland..

Mvgr,
Martin

 -Original Message-
 From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 02, 2001 3:32 AM
 To: Tomcat Developers List
 Subject: Re: And in case I don't see you, good afternoon, good evening
 andgood bye...


 Bojan Smojver at [EMAIL PROTECTED] wrote:

  I wish you all the best in your future undertakings and I
 really hope you'll
  stick around Jakarta because I'm sure your work is appreciated by all.

 Not by _all_ AFAICS :) Read, been in a lot of flamewars myself... :)

 Pier


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




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




mod_webapp webapp-info static ?

2001-10-24 Thread Martin van den Bemt

Hi,

Looks like the /webapp-info is behaving like a static webpage, created at
startup of apache. If you eg stop tomcat and do a refresh on the webapp-info
all applications are still set to deployed.
If you start apache and after that tomcat eg the examples webapp is not
deployed and also not available via apache.
Is this intended behavior, undesirable behaviour but apache doesn't allow
dynamic allocation of new interceptors, is it forgotten or is it bug (in the
last 2 cases, I will file one..), or is it just me behaving not like
everyone should behave ?

Using the webapp from cvs (just build it a couple of minutes ago..)

Mvgr,
Martin




RE: CVs question.

2001-08-30 Thread Martin van den Bemt

set the HOME variable to where to login has taken place..
eg export HOME=/root
Mvgr,
Martin

 -Original Message-
 From: Dave Oxley [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 1:39 PM
 To: [EMAIL PROTECTED]
 Subject: CVs question.


 Hello all,

 Sorry for the off-topic question :) but...

 I'm trying to update my TC4 sources each morning with a cron job.
 How can I
 get CVS to not prompt for a password (i.e. pick the password up from a
 file). I've looked on the cvshome.org website but found nothing
 that told me
 how to do this.

 Thanks.
 Dave.

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






RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/collections SimpleHashtable.java

2001-08-30 Thread Martin van den Bemt

Since I was very busy lately (still am), could this be the thing that solves
my reladoing problem and the Application state not ready after that ?
I will test it somewhere next week, just to be sure, but it doesn't hurt to
ask..

Mvgr,
Martin

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 10:41 PM
 To: [EMAIL PROTECTED]
 Subject: cvs commit:
 jakarta-tomcat/src/share/org/apache/tomcat/util/collections
 SimpleHashtable.java


 costin  01/08/30 13:40:51

   Modified:src/share/org/apache/tomcat/util/collections
 SimpleHashtable.java
   Log:
   Fix an error in SimpleHashtable.remove, that caused problems in
 reloading.

   ( also added few more debug statements )

   Revision  ChangesPath
   1.6   +15 -5
 jakarta-tomcat/src/share/org/apache/tomcat/util/collections/Simple
 Hashtable.java

   Index: SimpleHashtable.java
   ===
   RCS file:
 /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/collecti
 ons/SimpleHashtable.java,v
   retrieving revision 1.5
   retrieving revision 1.6
   diff -u -r1.5 -r1.6
   --- SimpleHashtable.java2001/08/29 05:08:40 1.5
   +++ SimpleHashtable.java2001/08/30 20:40:51 1.6
   @@ -97,7 +97,7 @@
 * it makes a significant difference when normalizing attributes,
 * which is done for each start-element construct.
 *
   - * @version $Revision: 1.5 $
   + * @version $Revision: 1.6 $
 */
public final class SimpleHashtable implements Enumeration
{
   @@ -108,6 +108,7 @@
private Entry  current = null;
private intcurrentBucket = 0;

   +// number of elements in hashtable
private intcount;
private intthreshold;

   @@ -317,18 +318,22 @@
   Entry prev=null;
   int hash = key.hashCode();
   int index = (hash  0x7FFF) % tab.length;
   +   if( dL  0 ) d(Idx  + index ++ tab[index] );
   for (Entry e = tab[index] ; e != null ; prev=e, e = e.next) {
   +   if( dL  0 ) d(  + prev +   + e.next +   + e + 
  + e.key);
   if ((e.hash == hash)  e.key.equals(key)) {
   if( prev!=null ) {
   prev.next=e.next;
   } else {
   tab[index]=e.next;
   }
   +   if( dL  0 ) d(Removing from list  + tab[index] +
   + prev +
   ++ e.value);
   +   count--;
   +   Object res=e.value;
   +   e.value=null;
   +   return res;
   }
   -   count--;
   -   Object res=e.value;
   -   e.value=null;
   -   return res;
   }
   return null;
}
   @@ -348,5 +353,10 @@
   this.value = value;
   this.next = next;
   }
   +}
   +
   +private static final int dL=0;
   +private void d(String s ) {
   +   System.err.println( SimpleHashtable:  + s );
}
}








RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup EnableAdmin.java EmbededTomcat.java StopTomcat.java Tomcat.java

2001-08-17 Thread Martin van den Bemt

Can you add the tomcat version number when the startup parameter is -help,
that is probably better then my proposal to add a -version..

Mvgr,
Martin




RE: Tomcat before Apache

2001-08-17 Thread Martin van den Bemt

Pier,

I won't make commercials anymore for running as root, just to keep you
happy..
Maybe adding some extra info to the mod_jk.html howto about accesability of
the 8007 and 8009 ports if you don't change the defaults (you have to
specifically tell to only accept requests from address 127.0.0.1. Switching
that address thing in the standard distro' will improve security a lot..
telnetting to those ports is a  big security risk for your webapp (at least
in my point of view..). Since people don't read their entire config files
all the time (me included btw..) and isn't mentioned in the
mod_jk-howto.html (the one in cvs..) and other documentation it's better to
deliver it a bit more secure then it is delivered now.. (talking about tc 33
now, didn't check the other tc's for those docs and problems).
If you say it is written in some kind of hidden doc somewhere (server.xml is
not a doc) then that is really not sufficient enough to point out to people
that they have a potiential big problem when they don't change those
settings.. (it just says if you want to bind it to a specific network
interface blahblah..)

Maby I'm wrong about this, then just let me know..
Please flame me if I missed something obvious , but a grep -r address
didn't give me any info on  security issues involved in not setting that
thing..


 Let's try to be a LITTLE BIT security conscious here...


Maby your just having a bad day??
Let's start with the security tomcat can give by default instead of wining
about os security administration.. My answer in tomcat-user explicitely is
pretty self explaining :

 Please tell me what is dangerous about running tomcat as root? I've
 taken the following security measures :
 port 8007 and 8009 is blocked from the outside (firewall)
 tomcat is not running on 8080 and only allowing communications from
 localhost (127.0.0.1).
The only potential problem is that if a tomcat /apache bug is exploited, you
potentially have a problem.



Maby combining a little bit of the input a lot of people gave will end up in
a more secure tomcat and some nice docs.. JUST saying that your gonna flame
everybody who says that running tomcat as root isn't bad is saying to a
soccer goalkeeper it is ok to let the ball through, because the net protects
the other team from scoring.. If the keeper knows the rules a bit better he
will try to catch the ball anyway (=protecting the Interceptors). When he
didn't catch 20 balls, he is probably gonna train a bit more and get
fimiliar witch catching the ball (=su ing processes).

A nice little story about soccer ;-))


Mvgr,
Martin





RE: randomFile in SessionIdGenerator TC3.3B1

2001-08-16 Thread Martin van den Bemt

works well for me ;)) 

 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 16, 2001 7:19 PM
 To: [EMAIL PROTECTED]
 Subject: randomFile in SessionIdGenerator TC3.3B1
 
 
 I just lost half an hour of my life trying to set up TC3.3B1 on a
 Windows box because I forgot to remove the randomFile attribute on
 SessionIdGenerator.  For the benefit of us under-priviledged 
 people who have
 to live on systems like Windows and Solaris, could this attribute 
 please be
 moved to the comment in the default server.xml?
 
 



Exception when hitting stop on slow servlet..

2001-08-16 Thread Martin van den Bemt

Hi,

Just got an exception on a slow servlet and probably hit stop on the right
moment, because it didn't happen anymore after that, so this one is easy to
mis..

(sorry I cannot copy and paste so bear with me..)

Ajp13Interceptor: Processing connection
org.apache.tomcat.util.net.TcpConnection - java.net.SocketException:
Connection reset by peer (maby this must be Pier?)
 java.net.SocketInputStream.socketRead (native method)
 java.net.SocketInputStream.read (86)
 org.apache.tomcat.modules.server.Ajp13.receive(Ajp13.java:647)
 org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Ajp13.java:241)

org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Ajp13Interc
eptor.java:218)

org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:153)
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:438)
 snap (horrible to manually type this).

The exception doesn't end up in a log file and only goes to the console and
the exception is correct ;)). Maby catching and logging it would look a bit
better, so for that reason (cannot test btw, since I cannot reproduce it
anymore, ehh after 15 minutes of stopping request I gave up..) I added a
little bit of catching and tried to add logging, but the log(blah) didn't
compile anymore..
Also I don't know if this change fuckes up the rest and must be caught at
the Interceptor..

Hope this is usefull, if not : I've tried ;))

Mvgr,
Martin


Index: Ajp13.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java,v
retrieving revision 1.21
diff -r1.21 Ajp13.java
647c647,653
   int rd = in.read( b, 0, H_SIZE );
---
   int rd = 0;
   try {
   rd = in.read( b, 0, H_SIZE );
   }catch(java.net.SocketException se) {
   //XXX log(client-side terminated request);
   }
   



FW: Version

2001-08-16 Thread Martin van den Bemt

Based on this (and other reactions) maby adding a -version to the startup
options is a good idea ?

mvgr,
Martin

-Original Message-
From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 9:38 PM
To: [EMAIL PROTECTED]
Subject: Version


Folks,
How do I know what version of tomcat I have on my apache server?  This dude
who installed tomcat for us, I think, he installed only the beta release of
tomcat.  Now, he is asking $10,000 to fix it.  Oh holly cow! was my bosses
reaction.:)

I used the command:

openssl version -a

But it only gave me the ssl version.

Any help will be appreciated!




RE: Exception when hitting stop on slow servlet..

2001-08-16 Thread Martin van den Bemt

Keep forgetting that.. mod_webapp crashes are yours ;)).. 

 -Original Message-
 From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 16, 2001 10:20 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Exception when hitting stop on slow servlet..
 
 
 Martin van den Bemt at [EMAIL PROTECTED] wrote:
 
  Hi,
  
  Just got an exception on a slow servlet and probably hit stop 
 on the right
  moment, because it didn't happen anymore after that, so this 
 one is easy to
  mis..
  
  (sorry I cannot copy and paste so bear with me..)
  
  Ajp13Interceptor: Processing connection
  org.apache.tomcat.util.net.TcpConnection - java.net.SocketException:
  Connection reset by peer (maby this must be Pier?)
 
 I'm not doing AJP nor mod_jk... Sorry.
 
 Pier
 
 



FW: i18n UTF to ISO charsets conversions..

2001-08-16 Thread Martin van den Bemt

Hi guys,

I think my message got lost on tomcat-user and will never be replies to
;((..
Since tomcat does a lot of translating, I hope one of you guys (or girls?)
can give me a couple of hints how to get this done (if it can be done that
is..)..

TIA,
Mvgr,
Martin

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 1:42 PM
To: jakarta-tomcat-user
Subject: i18n UTF to ISO charsets conversions..


Hi,

Just keep in mind that a big system was designed without REAL i18n in mind,
so there are better solutions to storing the data.

We have a 2 part system : one which allowes multiple encodings to be used
(eg an english web user-interface, where you can edit data in a localized
manner). Because of that we have to use UTF-8 for this system.
The other system is showing the result of system 1 localised (so not mixed
as system 1).
Everything is stored as text databases on the file system using the java
default encoding of ISO-8859-1 (even greek text), which works great for
system 2 (just set the appropiate charset in the request header and
everything works well.)

System 1 doesn't have problems with this either, until we want to save
data..
It comes in encoded as UTF-8 and needs to be written to disk as ISO-8859-1
(1000's of files are set up like this and converting those is too much
impact right now)

What I need is to convert the parameter from UTF-8 to ISO-8859-whatever..

As an example 2 headers : (extracted with getReader and read()..)

this is greek text entered in ie..

the ISO-8859-1 encoding
isotext=%EB%E5%F0%F4%EF%EC%DD%F1%E5%E9%E5%F2
the UTF-8 encoding
utf8text=%CE%BB%CE%B5%CF%80%CF%84%CE%BF%CE%BC%CE%AD%CF%81%CE%B5%CE%B9%CE%B5%
CF%82

from ISO to UTF is not a problem, but from UTF-8 to IS0-8859-whatever is
not working..

so I want to get convert utf8text to have the same value as with isotext..

Does anyone know how to handle this conversion or know where to find a class
/ source that can do this conversion?

Hope it makes any sense what I'm asking


TIA

Mvgr,
Martin




RE: Nightly builds for 3.3

2001-08-14 Thread Martin van den Bemt

A bit of concern here..
I'm working constantly with 3.3 cvs version and have a lot of classloader
issues and class context reloading issues.. (the lot means : it happens a
lot..) Some are solved by moving the jar file to the root lib dir (didn't
find the time to get a nice reproductions scenario yet, to see if a fix
works). The class ,eh actually context reloading, issue is in bugzilla and
didn't get around to fix that either. Reproducing it is for now only
possible in our very big webapp. (reloading the context after a certain
number of servlets is loaded will give state not ready for one servlet,
which, you probably guessed already, our main entry point in the system).
In short : How long do I have to fix the problems and from who can I get
some help for these class(re)loading issues?

TIA

Mvgr,
Martin

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 14, 2001 11:57 PM
 To: [EMAIL PROTECTED]
 Subject: Nightly builds for 3.3


 Hi,

 Nightly builds for 3.3 are out, it seems somehow they are destabilising
 the system and Pier asked me to find a different machine.

 I'll try to do that, the sourceforge build machines seems nice ( but I'll
 have to do some tricks ), or I could use my home machine ( which seems to
 be faster anyway ).

 This isn't a big deal, most development in the 3.3 main tree has been
 completed, the code is stable and in beta. The only thing that's going to
 change are modules - but mod_jk and ajp14 were not included in the
 nightly, and all modules I'm working on are just add-ons.


 As previously discussed, 3.3 core can be considered frozen, we're doing
 the final reviews to make sure it'll be able to handle any kinds of
 modules. Testing 3.3 with those add-on modules is important, and that's
 where I'll focus. Testing 3.3 basic every few hours is no longer that
 important.


 Costin







[PATCH] DecodeInterceptor.java debugging info

2001-08-13 Thread Martin van den Bemt

Changed debugging info in the class. If debug  -1 then it logs the session
charset. If you compare it with eg the request charset the charset is only
logged when debug  0, so this is more conistent

Mvgr,

Martin



Index: DecodeInterceptor.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java,v
retrieving revision 1.7
diff -r1.7 DecodeInterceptor.java
440c440
   if( debug-1  charset!=null )
---
   if( debug0   charset!=null )



RE: Tomcat-Users mailing list...

2001-08-07 Thread Martin van den Bemt

I'll subscribe again too and also answer when time permits..

 -Original Message-
 From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 07, 2001 7:01 PM
 To: tomcat dev jakarta.apache.org
 Subject: Tomcat-Users mailing list...


 Folks... We need someone from the Tomcat 3.x developers to monitor and
 answer questions on the tomcat-user mailing list.

 There are tons of questions related to mod_jk, tons of questions
 related to
 bugs that seem to be fixed in bugzilla but are constantly reappearing in
 later builds.

 I and Craig (thank god he exists) are answering some of them, but at least
 in my case I don't have enough knowledge of the codebase to see
 whether some
 of them are real bugs or just something that users are doing wrong...

 Just a FYI...

 Pier






RE: TOMCAT 3.2.3 won't compile | PLEASE HELP!!!

2001-08-02 Thread Martin van den Bemt

besides the typo in your classpath (I assume the xalan.jara must be
xalan.jar), my experience is best to just type ant and it builds fine
(assuming ant is in you path). This way it doesn't look for an in a specific
directory that you don't have..

mvgr,
Martin


 -Original Message-
 From: alexus [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 03, 2001 12:57 AM
 To: [EMAIL PROTECTED]
 Subject: Fw: TOMCAT 3.2.3 won't compile | PLEASE HELP!!!



 - Original Message -
 From: alexus [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 02, 2001 6:42 PM
 Subject: TOMCAT 3.2.3 won't compile


  su-2.05# echo $CLASSPATH
 
 /usr/local/java/jaxp/jaxp.jar:/usr/local/java/jaxp/crimson.jar:/us
 r/local/ja
 
 va/jaxp/xalan.jara:/usr/local/java/jdk/jsse/lib/jcert.jar:/usr/loc
 al/java/jd
 
 k/jsse/lib/jnet.jar:/usr/local/java/jdk/jsse/lib/jsse.jar:/usr/loc
 al/java/JA
 
 KARTA/jakarta-ant/build/lib/ant.jar:/usr/local/java/JAKARTA/jakart
 a-servleta
  pi/lib/servlet.jar
  su-2.05# echo $PATH
 
 /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/
 X11R6/bin:
  /usr/local/java/jdk/bin
  su-2.05# pwd
  /usr/local/java/JAKARTA/jakarta-tomcat
  su-2.05# sh build.sh
  expr: syntax error
  Buildfile: build.xml
 
  prepare:
 
  BUILD FAILED
 
  /usr/local/java/JAKARTA/jakarta-tomcat-3.2.3-src/build.xml:32:
  /usr/local/java/JAKARTA/jakarta-ant-1.3/bin not found.
 
  Total time: 1 second
  su-2.05#
 
  what can't it found???
 






RE: 2 build suggestions

2001-07-27 Thread Martin van den Bemt

  1) How hard would it be to remove the !(*.bat) files from /bin for
 .zip
  builds, and the same for the .gz builds !(*.sh)?  Might make it a bit
 less
  confusing for people to see less files in there.

 As we're working with Java here - lots of us out here tend to work on
 multiple platforms (personally I switch back and forward all day between
 W2K and Linux) so:
 a) I'd like to get everything for multiplatform work in one go.
 b) When offered the same files compressed multiple ways I always just go
 for the smallest - I don't equate .gz with just UNIX (WinZip handles tar
 and gz just fine, and I have bzip, bzip2 for windows and unzip for
 UNIX).

completely +1 on keeping it the way it is.. I do the same as you (at least
for building tomcat, I switch around a lot..)

Mvgr,
Martin




RE: ehh small problem context/servlet reloading

2001-07-27 Thread Martin van den Bemt

Me again with some more info on the issue below.
The following happens :
When I do a specific scenario of servlet access then replace a servlet and
start-up our login servlet I get the 503 error. The servlet has status 0 and
should have status 3 (according to my debugging. All the other servlets
are still working (to a certain point, because most of them depend on the
servlet I am calling after the context is reloaded). I've been turning on
debugging, added my own logging etc,etc.. But still I cannot find where the
actual status of Request is set for that specific servlet, after the
reloading that is. Can someone please help me in where to exactly look for
this, because I cannot find it anymore. Didn't see anyone complain about
this problem yet, so I like to fix it ;-)). I'm using tc33 from cvs btw To
bad my debugger is horrible else it would be a little bit easier. Every
The problem doesn't occur when : I call servlet A go to B goto C replace B
and goto A again. (reloading is ok)
The problem occurs when : I call servlet A go to B goto C goto D replace B
and goto A again. (these are just my servlets, didn't test another scenario
yet, I first wanted to find the problem ;-)
Hope you guys can help to help me fix the bug and learn more about the
internals of tomcat..
TIA..

Here is some logging of the reloading (the strange logging is mine ;-).

2001-07-27 12:08:38 - ReloadInterceptor: MVDB : after removeing context
2001-07-27 12:08:38 - Ctx() : X CALLING CONTEXT SETSATE

XX 0
2001-07-27 12:08:38 - Ctx() : X LEAVING SETCONTEXT
X
0
2001-07-27 12:08:38 - ContextManager: MVDB state ; 3 state_NEW 0
2001-07-27 12:08:38 - LogEvents: addContext DEFAULT:/ROOT
2001-07-27 12:08:38 - ReloadInterceptor: ADDCONTEXT in
ReloadInterceptorDEFAULT:
/ROOT
2001-07-27 12:08:38 - Ctx() : X CALLING CONTEXT SETSATE

XX 0
2001-07-27 12:08:38 - Ctx() : X LEAVING SETCONTEXT
X
0
2001-07-27 12:08:38 - ContextManager: Adding context DEFAULT:/ROOT
2001-07-27 12:08:38 - ContextManager: after adding context the state is  : 1
2001-07-27 12:08:38 - ReloadInterceptor: MVDB: state after adding context..3
2001-07-27 12:08:38 - LogEvents: contextInit DEFAULT:/ROOT
2001-07-27 12:08:38 - SimpleMapper1: SM: extension map /*.jsp Ct (*.jsp  )
DependManager: Added /usr/local/tomcat33dev/webapps/cubic/WEB-INF/web.xml
web.xm
l
2001-07-27 12:08:38 - Ctx() : X CALLING CONTEXT SETSATE

XX 1
2001-07-27 12:08:38 - Ctx() : X LEAVING SETCONTEXT
X
1
2001-07-27 12:08:38 - ReloadInterceptor: MVDB : status of contextmap : 0
class :
 org.apache.tomcat.modules.config.PathSetter
2001-07-27 12:08:38 - ReloadInterceptor: MVDB : status of contextmap : 0
class :
 org.apache.tomcat.modules.config.ServerXmlReader
2001-07-27 12:08:38 - LogEvents: contextMap R(  + /servlet/cubic.adm.login +
nul
l)
2001-07-27 12:08:38 - ReloadInterceptor: MVDB : status of contextmap : 0
class :
 org.apache.tomcat.modules.loggers.LogEvents
2001-07-27 12:08:38 - ContextManager: Host = swami.mvdb.com
2001-07-27 12:08:38 - ContextManager: SM: Prefix match
/servlet/cubic.adm.login
- /servlet/cubic.adm.login/* ServletH cubic.adm.login(SW (null
CN=cubic.adm.log
in)) null
2001-07-27 12:08:38 - SimpleMapper1: Adjust for prefix map
/servlet/cubic.adm.lo
gin
2001-07-27 12:08:38 - SimpleMapper1: SM: After mapping R(  +
/servlet/cubic.adm.
login + null) ServletH cubic.adm.login(SW (null CN=cubic.adm.login))
2001-07-27 12:08:38 - ReloadInterceptor: MVDB : status of contextmap : 0
class :
 org.apache.tomcat.modules.mappers.SimpleMapper1
2001-07-27 12:08:38 - ContextManager: MVDB : showing servlet error


Mvgr,
Martin

 -Original Message-
 From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 25, 2001 7:57 PM
 To: jakarta-tomcat-dev
 Subject: ehh small problem context/servlet reloading


 Hi,

 I use the latest version from cvs (not commits since my built..).
 When compiling a new servlet, the system tries to remove the
 context and add
 the context again (so far so good). I go the the servlet again and get :
 Error: 503
 Location: /servlet/cubic.adm.login
 Application not available

 each time I try to go there it will remove/add the context.

 I can have a look at it (if you want) or maby someone can point into a
 direction of where to look for this problem..

 Mvgr,
 Martin






Exception in UDecoder..

2001-07-25 Thread Martin van den Bemt

Does anyone know about this (using Milestone 3 btw). Has it anything to do
with the M$ encoding scheme and should I try to fix it ?

Mvgr,
Martin

java.lang.ArrayIndexOutOfBoundsException
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:99)
at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:385
)
at org.apache.tomcat.core.Request.handlePostParameters(Request.java:411)
at
org.apache.tomcat.facade.HttpServletRequestFacade.getParameterValues(HttpSer
vletRequestFacade.java:254)
at
com.cubicinternational.components.scheduler.EditSchedule.EditSchedule(EditSc
hedule.java:59)
at
com.cubicinternational.components.scheduler.EditSchedule.doPost(EditSchedule
.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
at org.apache.tomcat.core.Handler.service(Handler.java:223)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:82
6)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:739)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:162)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:435)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:505)
at java.lang.Thread.run(Thread.java:484)




ehh small problem context/servlet reloading

2001-07-25 Thread Martin van den Bemt

Hi,

I use the latest version from cvs (not commits since my built..).
When compiling a new servlet, the system tries to remove the context and add
the context again (so far so good). I go the the servlet again and get :
Error: 503
Location: /servlet/cubic.adm.login
Application not available

each time I try to go there it will remove/add the context.

I can have a look at it (if you want) or maby someone can point into a
direction of where to look for this problem..

Mvgr,
Martin




RE: System hangs after 2-3 hours of use

2001-07-24 Thread Martin van den Bemt

  I had (on linux rh 6 and 7).
 
  What's the exact problem with mod_jk and ajp12 ?
  Couldn't you switch to tomcat 3.2.3 and ajp13 ?

 Exactly the same configuration here in dev and prod.
 Redhat 6.x, TC 3.2.3/3.3 and mod_jk / ajp13
 Never go any problems

then we have to switch to ajp13 (not in a rush though, mod_jserv is working
fine now)

 Never thought about that option actually. We used the default
 ajp (in our
 case indeed ajp12) which was with the distribution. (from the
 conf-auto).
 Let's say our experience was horrible with it ;-) I can remember a big
 discussion on tomcat-user however with a lot of people having the same
 problems (I unsubscribed at a certain moment, so I lost if it ever got
 fixed).

 Problems with ajp13 ? It's the reference today and all the effort are
 against mod_jk/ajp13 duo. I don't see bugs using ajp13.

They could have had the same bug.. So it was safer to swith back to
mod_jserv..

 What happens after a certain amount of time is that
 libhttpd.ep is at 50%
 (times 4, we have 2 cpu's in the production server..). It still served
 requests, but It was like having my Sinclair ZX 81 running windows NT
 -(( (that is really bad..). It never crashed when people
 were using the
 shops created with our toolkit (just a little session stuff),
 but happened
 when people were changing or creating shops (my guess is the
 upload forms
 that would mess up the system..).

 What's libhttpd.ep ? Don't you said you're running Linux Redhat ? In that
 case process name is httpd.
part of the pstree (also looks like that with mod_jk ajp12.
|-libhttpd.ep---10*[libhttpd.ep]
Maby someone made a strange build of httpd, don't see the libhttpd.ep on my
machine (apache 1.3.20)


 Searched for some old mod_jk errors and here they are some entries.. :
 
 [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error
 writing back to
 server (and then a lot of times..)
 and some of these :
 [jk_ajp12_worker.c (463)]: In ajpv12_handle_request, failed to
 write to the
 cont
 ainer
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = 6

 Did you restart tomcat at some time ?

As much as possible, but since it is hosting a lot of sites, it is not
always possible.

 If you want I can zip up our logfile and send it to your
 private mail ;-))

 Yes you could but ajp12 IS CLEARLY DEPRECATED today. Only used to
 shutdown Tomcat.

Maby a note on the jakarta site to say that it is absolutely adviced to
switch to ajp13,because of some bugs ;-). If you have no intention to fix
the ajp12, sending the zip file is not much of use I think. If I have the
problem om ajp13, I will notify you right away ;-)

Mvgr,
Martin van den Bemt




Status virtual host- reasking question..

2001-07-23 Thread Martin van den Bemt

Hi,

I'm about to setup virtual host specific stuff on my webserver. Are there
some scenario's I can test (using rh 71, apache 1.3.20, tomcat 33). Or
should every scenario just work and testing isn't needed ?
I can even setup some docs on this (if not already there).

Please let me know..

Mvgr,
Martin




RE: System hangs after 2-3 hours of use

2001-07-23 Thread Martin van den Bemt

It's a mod_jk bug. Mod_jserv doesn't seem to have the problem and I don't
know if mod_jk is already fixed. (Pier?)
Don't know about NT though, but I suspect the same problem is there as what
I had (on linux rh 6 and 7).

Mvgr,
Martin

 -Original Message-
 From: Twele, Charles G [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 23, 2001 8:35 PM
 To: [EMAIL PROTECTED]
 Subject: System hangs after 2-3 hours of use


 My Tomcat 3.1 application hangs after a while. However, if I
 restart Tomcat
 again all goes well for some time i.e. 2 to 3 hours and then it goes down
 again. I am using Apache 1.3.12 and Tomcat 3.1 on Win NT

 Anyone encountered this problem with Tomcat?









RE: System hangs after 2-3 hours of use

2001-07-23 Thread Martin van den Bemt

after 2-3 hours of use


 It's a mod_jk bug. Mod_jserv doesn't seem to have the problem
 and I don't
 know if mod_jk is already fixed. (Pier?)
 Don't know about NT though, but I suspect the same problem is
 there as what

 mod_jk is not the speciality of Pier :)

Sorry ;-)) My eyes are not so good ;-)

 I had (on linux rh 6 and 7).

 What's the exact problem with mod_jk and ajp12 ?
 Couldn't you switch to tomcat 3.2.3 and ajp13 ?

Never thought about that option actually. We used the default ajp (in our
case indeed ajp12) which was with the distribution. (from the conf-auto).
Let's say our experience was horrible with it ;-) I can remember a big
discussion on tomcat-user however with a lot of people having the same
problems (I unsubscribed at a certain moment, so I lost if it ever got
fixed).
What happens after a certain amount of time is that libhttpd.ep is at 50%
(times 4, we have 2 cpu's in the production server..). It still served
requests, but It was like having my Sinclair ZX 81 running windows NT
-(( (that is really bad..). It never crashed when people were using the
shops created with our toolkit (just a little session stuff), but happened
when people were changing or creating shops (my guess is the upload forms
that would mess up the system..).
Searched for some old mod_jk errors and here they are some entries.. :

[jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to
server (and then a lot of times..)
and some of these :
[jk_ajp12_worker.c (463)]: In ajpv12_handle_request, failed to write to the
cont
ainer
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = 6

If you want I can zip up our logfile and send it to your private mail ;-))

Mvgr,
Martin

 
  -Original Message-
  From: Twele, Charles G [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 23, 2001 8:35 PM
  To: [EMAIL PROTECTED]
  Subject: System hangs after 2-3 hours of use
 
 
  My Tomcat 3.1 application hangs after a while. However, if I
  restart Tomcat
  again all goes well for some time i.e. 2 to 3 hours and then
 it goes down
  again. I am using Apache 1.3.12 and Tomcat 3.1 on Win NT
 
  Anyone encountered this problem with Tomcat?
 
 
 
 
 
 





RE: [FAQ] jGuru FAQ Update

2001-07-21 Thread Martin van den Bemt

Maby it is on http://www.adcritic.com. Or ask if they set it up.. (so I can
see it too..)

 -Original Message-
 From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 21, 2001 2:40 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [FAQ] jGuru FAQ Update


 [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

  Sure, it could, but (a) I don't think one message a week will be
  enough traffic to bother anyone, and (b) sometimes developer-related
  FAQs show up on the Tomcat list.

 It's pretty cool, but check your scripts, as it's coming once a day, not
 once a week...

 Pier (again on the floor laughing for that MTV ad: gotta MPG it)






Nice script to change all those cvsroots?

2001-07-19 Thread Martin van den Bemt

Has anyone got a nice script to replace the jakarta.apache.org cvsroot to
the cvs.apache.org cvs root? It's a lot of time to checkout everything again
and gives lot's of other problems (losing changes I made to ant and tomcat
eg..). It is for linux btw.
Just a not : I have a checkout of all the jakarta projects, so I will save a
lot of traffic to the cvs server with a nice change script.. (I'm not a guru
on bash scripts..)

Mvgr,
Martin




RE: HttpServletRequestFacade

2001-07-14 Thread Martin van den Bemt

No hablo espagnol ;-))

 -Original Message-
 From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 13, 2001 11:55 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: HttpServletRequestFacade


 Me equivoque al responderte era este al que me referia

 Saludos ,
 Ignacio J. Ortega

 -Mensaje original-
 De: Tomas Perez Garcia [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes 13 de julio de 2001 13:56
 Para: tomcat development
 Asunto: HttpServletRequestFacade


 I'm using apache with tomcat3.2.

 The HttpServletRequestFacade lib colud be at org.apache.tomcat.core path
 but it isn't
 I have found the HttpServletRequestFacade at org.apache.tomcat.facade
 path but now,
 a error ocurr because this lib isn't public class or it isn't public
 interface.

 I think that in the tomcat3.2 a redistribution of libs has ocurred, but
 I' m not sure.

 Can yout help me, please?



 Tomás Pérez García
 Ingeniero de software


 [EMAIL PROTECTED]
 http://www.renr.esTlf:
 Fax: 96.598.71.70
  96.592.43.12


 Recursos en la Red,S.L.U.
 Pintor Cabrera, 22 - Esc.B 3º
 03003 Alicante (España)





RE: Table of Contents

2001-07-11 Thread Martin van den Bemt


 P.S. What hacker I mean is:  The one who read the source code and make
 change to it so that the whole system get benefit from it.  So you are
 hacker. (but me not yet).  The guy who break the system is
 cracker, or black
 hacker to be specific.
??? A cracker is a criminal hacker. not someone who broke introduced a bug
;-)




RE: [DOC] Table of Contents

2001-07-10 Thread Martin van den Bemt

I'm missing a very important one : servlet debugging. All the development
environments support jps debugging, but servlet debugging is still a pain..
So that could need some explenation..

Mvgr,
Martin

 -Original Message-
 From: Alex Chaffee [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 10, 2001 4:37 AM
 To: [EMAIL PROTECTED]
 Subject: [DOC] Table of Contents


 OK, at Craig's request, here's the current Table of Contents for Tomcat
 docs.  (I wrote a program to convert *** to 1.2.3. format so it's easier
 to read.)

 It just occured to me that maybe the TOC will be applicable to both
 versions (3 vs 4), even though the content of each chapter will be
 completely different. I think there's actually value in synchronizing
 the TOCs of two different books, though maybe I'm just being weird :-)

 --
 Alex Chaffee   mailto:[EMAIL PROTECTED]
 jGuru - Java News and FAQs http://www.jguru.com/alex/
 Creator of Gamelan http://www.gamelan.com/
 Founder of Purple Technology   http://www.purpletech.com/
 Curator of Stinky Art Collective   http://www.stinky.com/





RE: tomcat docs mailinglists..

2001-07-09 Thread Martin van den Bemt


  I created a few mailinglist on my server
 tomcatdocs.isallineed.org , to send
  notes for tomcat documentation to. This is just to gather all
 the notes on a
  specific subject to make  documentation from.

 -1. They should have been created on an apache.org server.

I thought : make stuff available to make the docs gathering process
easier, especially for things that are just notes and not really docs and as
I said : it is not replacement for the apache.org mailinglist, if it is ever
gonna be there.
Question : the -1 is for what actually? Or is it a +1 to let me setup this
stuff on an apache server (I'll be happy to do that too..)
Another question : when is who gonna create these mailinglists and how are
they gonna manage it?
Any ideas on the format of the messages, so there is a parsing possibility?


Mvgr,
Martin




RE: tomcat docs mailinglists..

2001-07-09 Thread Martin van den Bemt

  Question : the -1 is for what actually?

 Using your lists. I'm not going to subscribe.

Me neither.. It's just for gathering notes.. You can subscribe if you want
to, but the intention is to just request (or parse if possible) the messages
to construct docs from in a later stage. So once a month (or whenever) I
collect the information in the lists and try to incorporate it into the
created docs on tomccat-docs (or whatever its name is gonna be). So not
subscribing is intended use ;-).

BTW where can I find Anakia (not that I looked heavily for it though..)..
But maby I can integrate some stuff in my qmail manager (writing that in
java btw.. and is still a work in progress..)

Mvgr,
Martin




RE: tomcat docs mailinglists..

2001-07-09 Thread Martin van den Bemt

  BTW where can I find Anakia (not that I looked heavily for it
 though..)..

 http://jakarta.apache.org/velocity/anakia.html

  But maby I can integrate some stuff in my qmail manager (writing that in
  java btw.. and is still a work in progress..)

 Check out...

 http://anzu.tigris.org/

 The website isn't real up to date, but the source code is and I'm
 sure that
 collaboration is better than working alone.

If your interested :
Yep.. probably.. The problem is the different approach.. They are focused on
the ezmlm and I'm focused on actually managing the qmail server, integration
with dns, sanity checks etc, and that all in java.. They also use perl stuff
to make their life a little bit easier.. If I have to use natives, so it be,
but still not necessary ;-). So I'm writing a qmail manager which other
people can extend to. It is also a experiment project for myself, so it
has some use to do it alone, but for the sake of it : I'll drop them a mail.
If something comes out of it, I'll drop you a mail..



 We use it within our CollabNet SourceCast application.

 -jon






DOC: Re: Vote on oustanding doc issues?

2001-07-09 Thread Martin van den Bemt

 On the topic of a new mailing list:
 I think we can do the next steps inside the tomcat-dev list or on our
 own. (BTW, let's use DOC: as a prefix so it's easier to scan for new
 messages.) I want to do this in full view of the rest of the community,
 mostly so they can see what's going on and volunteer to contribute.

I prefer [DOC] btw.. replying to a doc issue with DOC: removes the DOC:
entry. (at least in outlook).

 (Martin's notes-gathering list is a good idea, but I think a bit
 premature, given issues like what the topics are and what format they
 need to be in. I definitely don't want substantive discussion to happen
 on his lists (see prior para.))

The lists are not for discussion and especially not these discussions.. They
should contain notes! Good idea, a hey, mail to one of the lists (you don't
have to be a member).
The format needs to be discussed indeed. My proposal on that wasn't really
usefull and too complicated.

  on these two things?  Are we ready to do that yet?

 I don't want to rush it.

Better do it correct the first time.


  1) Tomcat documentation per-project or in a single repository?
 

 (Personally, I'm leaning towards yes on all 3, but I'm not quite sure.)

I agree completely. Don't think we must start this in a current cvs root.

  2) What is the format (XML, *Book, HTML, etc.) of the
 documentation source?
  If XML, what DTD?


 I propose that we do *NOT* try to answer this yet, or maybe ever.
 Instead, I propose anarchy: that the Table Of Contents be maintained in
 a convenient text-editable format. It will contain links to doc files
 (sections or guides or chapters) that are files in whatever format
 they're in. I imagine that it will eventually be most convenient to use
 Anakia, but for now, it means that we don't have to worry about
 rewriting useful docs that are already in HTML.

The main parts and main chapters in seperate subdirs at first?
Generating a default output at a certain point is not too bad though. But we
have to be open enough for people who want to convert this to eg man pages
or a nice pdf.

 Organizing the TOC and and assigning volunteer authors to write parts is
 much more important than file format right now.

I already volunteerd for the gathering notes ;)

  Once we know these two things, we can get to work.  Of course
 there will be
  discussion on these points, but I'd like to bring them to a close sooner
  than later, so we can keep moving on with things like the TOC.

 We can work on the TOC independently of resolving those other issues.

As long everything is stays flexible enough, we don't want to spend 80% of
our time in generating docs in whatever format. In the beginning we probably
will only be complementry to current documentation until we are grown up
enough to be the source for documentation on tomcat releases. This leaves
room for experimenting with what works best.

A vote on a seperate mailinglist for discussing doc issues would be
appreciated though. It's getting a lot of discussion already and this will
grow in the near future I think (and hope..). This way we don't miss any of
the important non-docs specific stuff.

Mvgr,
Martin




tomcat docs mailinglists..

2001-07-07 Thread Martin van den Bemt

Hi,

I created a few mailinglist on my server tomcatdocs.isallineed.org , to send
notes for tomcat documentation to. This is just to gather all the notes on a
specific subject to make  documentation from.

Why did I do this? If I fixed something or got something running, found an
issue while upgrading etc,etc, you don't have the time to write everything
down. The information is present in your gray mass upstairs,  but if you
need to create documentation you cannot remember that specific little thing
anymore. I normally start notepad, type it in and save it to be never found
again. If you just write an e-mail to eg
[EMAIL PROTECTED], it will be stored, so your
grandchildren can still enjoy your knowledge and other people (maby me, or
someone else who wants to do it), can gather that information once in a
while and update the docs, faq, tips,etc,etc...
Hope not only me and Thomas Bezdicek like the idea, but other people too..
These mailinglist are not a replacement for a future mailinglist on apache
on tomcat documentation (if it is gonna be created), so it's not a
discussion forum
(I will make one if someone thinks that it is usefull).

Suggestions for the subject line :

tomcatversion (if applicable) eg T4.0B5
other details devided by a - eg. -windows-upgrade-tc33
subject : the subject of the note

If someone has a better idea or a format that is better parseable to a faq
or documentation, please let me know, so I can write that parser ;-)

For now I created the following mailinglists :
connectors
dev
faq
install
tips
users

See http://tomcatdocs.isallineed.org if you don't have a clue where to put
your note..
Just mail to mailinglistname@tomcatdocs.isallineed.org
subsribing can be done with :
mailinglistname[EMAIL PROTECTED]
unsubscribing can be done with
mailinglistname[EMAIL PROTECTED]

You don't have to subscribe to the mailinglist to send mails to that
list (and it is not moderated at the moment, but I will check once a
week or something to see if there is rubbish in the mailinglist).

Hope it is usefull and else : why not use it anyway.

Mvgr,
Martin van den Bemt





RE: tomcat docs mailinglists..

2001-07-07 Thread Martin van den Bemt

Ehh.. an extra note : My server is still subject to change and needs a
restart of apache so now and then, but qmail will keep on running during my
webserver down time.. (i'm running on an ADSL connection, so that is also
not guaranteed to be up at all times)..

Mvgr,
Martin




RE: PROPOSAL: Tomcat docs

2001-07-04 Thread Martin van den Bemt

Has someone got any ideas of how we are gonna gather all the information? I
have some things that come to mind, which can be forgotten tomorrow ;-).
Maby by using the faq that was around in the jserv erra ;) and add entries
there? Or is someone already gonna be a mail repository for this?
Maby I can setup a mailinglist on my server for this, until we get things
really running. Still fighting with the mailinglist a bit, but if the idea
is welcomed, I'll make it a spare time top priority.

Mvgr,
Martin van den Bemt


 -Original Message-
 From: Thomas Bezdicek [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 04, 2001 4:11 PM
 To: [EMAIL PROTECTED]
 Subject: AW: PROPOSAL: Tomcat docs


  More refinements...  if i didn't quote it, I agree with it =)  BTW, what
  does AW in a subject line mean?  I see it all the time...
 AW = Antwort which is pretty the same like RE=reply in english,
 except that
 it is in german :) Its done by outlock.

  0) Introduction to the TC4 container
  ADD  - Requirements (JDK versions, extra libs?, etc.)
 agree

  1) User's Guide (or Administrator's)
   - Tomcat and different JDK Versions
  Moved this up to (0)
 agree

   2) web app development w/Tomcat  Can't think of a title =)
   ^
   Tomcat Webdeveloper Guide
 
  I think we do need to separate out the fact that there are a
  group of people
  who will developing/embedding/extending Tomcat, and a group of
 people that
  will be developing web applications for Tomcat.  As a web
  developer, I don't care a lot of about Tomcat's internals ;)
 Ok, but I think it is better to split the pure administrator stuff
 from what ever kind of developer stuff.
 developers who want to extend/embedd tomcat will be much more interessted
 in the api-docs and specs. normal webdevelopers arent interessted in that.

 2) Tomcat Development Guide
- Web developers
- extending/embedding Tomcat

  3) Tomcat Upgrade Guide
 
  I think this would equate to a lot of feature mapping from one
  container to
  another.  The Admin's guide should suffice.  REALLY all you
 need to do is
  drop a .WAR file in and change the port to get the container running
  standalone.
 ask someone who ported from jserv to tomcat :)) just the zone handling
 (which was a real crap in jserv) ... and for those upgrading from servlet
 api 2.2 to 2.3 there might also be some tiny changes which might result
 in a major problem ...
 and even the what is a .war file would be much help for beginners.

   4) Appendix
 
  Suggest that we move this all up into (0).  I'd like people to
 know these
  things asap =)  With the history of doc reading, I dunno anyone
 would make
  it this far!
 hmm, I do. (like me)


 tom






RE: Exepsion catching

2001-06-30 Thread Martin van den Bemt



As you 
say : Catch the exception and redirect to a jsp page ;-)) Best is to override 
HttpServlet and make a MainServlet to catch Exception and handle the errors. 
Don't know how to do anything in a jsp page, so if you were asking that : don't 
know...

Mvgr,
Martin

  -Original Message-From: Zsolt Horvath 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 28, 2001 
  12:18 PMTo: [EMAIL PROTECTED]Subject: 
  Exepsion catching
  Hi !
  
  Can I catch the all of exceptions and redirect to 
  a JSP file ? Mostly I need to catch the Internal Server error 500 
  !
  
  


Redirect to empty

2001-06-19 Thread Martin van den Bemt

Hi,

In jserv when you did a resp.sendRedirect(); you get an empty page. Since
then this has changed  and it is very annoying behaviour, because this
redirect redirects to itself without any parameters. Since our urls are
(thank god!) not hardcoded, but freely configurable, it could be that people
make a mistake, which can lead to a horrible hit on your server (that
servlet redirects when certain conditions are met and those conditions are
allways met when no parameters are provided, so you get an infinite loop in
redirecting.
I know it's best to solve that programmatically, but it's easy to make a
mistake in a complicated system. I would prefer the page to turn up blank
when a redirect to  is done (or an exception).  Is this behaviour supposed
to act like that, or is it something that may be fixed ?
If you say fix it : I'm doing it asap ;-)) (saves a lot of time in
debugging..)

Mvgr,
Martin




RE: Decoding problems.

2001-06-18 Thread Martin van den Bemt

org.apache.tomcat.util.buf.UDecode.java got lost somewhere along the way. It
crashed my tomcat on some forms (no special things happening btw). So maby
the problem is in there. Where it is, I don't have a clue..

Mvgr,
Martin

 -Original Message-
 From: Angel Aray [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 1:39 PM
 To: 'Tomcat-Dev
 Subject: Decoding problems.



 I am having problems with tomcat handlings of special characters.
 Whenever some data is post/get that contains special characters (i.e.
 characters with accents, tildes, etc) the request parameter gets truncated
 up to the occurrence of the first special character.

 I would like to help and fix this bug, but I don't know where to
 start. One thing I did try was to disable de Decode Interceptor but
 that had no effect.


 Any hints where to start looking will be appreciated.


 P.S: I am using  tomcat33 out of CVS and the problem appeared recently. I
 had an about 3 weeks old tomcat out of CVS and the problem was
 not there. I
 hope this helps to find/solve this bug.



 Regards.

 Angel Aray.






RE: ~rant~ Docs, user list, etc.

2001-06-15 Thread Martin van den Bemt

MSI is used by office 2000, which runs well as from win 98 (probably also
win95, but that thing is 6 years old ;-)) . (it needs to install itself
first, if not present).
NT 4 doesn't also come with the MSI pre-installed. As from win me and 2000
it's part of the default install.

Mvgr,
Martin

 -Original Message-
 From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 15, 2001 7:56 AM
 To: [EMAIL PROTECTED]
 Subject: RE: ~rant~ Docs, user list, etc.


  Or maybe a configuration validation program that does more
 than just check
  syntax (a la httpd's)?
 
 I like this idea - but more usefull would be a simple
 InstallShield ( or
 whatever ) installer for windows

 We could use the NullSoft install system instead of InstallShield.
 HTTP team use MSI (Microsoft Software Installer) but I'm not sure
 it's available on all Windows release (may be just WinNT/Win2K)

 ( the RPMs on linux are magic, soon I
 might forget how to install :-), maybe for other platforms ( since most
 installers can now generate cross platform things ).

 We should add a DEB (Debian package) and PKG used by Solaris.
 If there is people on the list who have to .deg/.pkg, may we
 suggest them send their build file. I could commit the .spec
 for RPM building with it's companion files (patches, init...)

 What about adding that in subdirs in tomcat src/build/pkg : ?

 jakarta-tomcat/src/build/pkg
 jakarta-tomcat/src/build/pkg/DEB  (debian packaging)
 jakarta-tomcat/src/build/pkg/RPMS (redhat packaging)
 jakarta-tomcat/src/build/pkg/MSI  (microsoft install system)
 jakarta-tomcat/src/build/pkg/NIS  (nullsoft install system)
 jakarta-tomcat/src/build/pkg/PKG  (solaris pkg system)






Tomcat book WAS : RE: ~rant~ Docs, user list, etc.

2001-06-14 Thread Martin van den Bemt

I tried that in the past, writing a book ;-(( wasn't happy with that, before
I finished, the new version was already there or someone else already
created a book. I'm not a fast writer anyway ;-)) (the first sentence block,
is what I'm suffering of). maby we could all write that book. Everyone has
different experience in different area's and can write on there favorite
subject (also needed for documentation anyway). Why not make it a more
structured effort for this. Maby a n writer with some experience in writing
(?) can do an initial set up of where such a book should end up, to be
actually usefull. This is just an idea and no I'm not volunteering to do
this ;-)). I actually need to do some painting and do something about my
garden now, so I can enjoy the summer and a home which actually looks like a
place where also other people would like to come ;-)).

Mvgr,
Martin the guy who needs to paint and to mow the lawn van den Bemt



 -Original Message-
 From: Andy Armstrong [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 3:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ~rant~ Docs, user list, etc.


 How about a decent book?

 Robert Slifka wrote:
 
  I've only recently re-subscibed to the user list, but so far, since last
  summer, the average quality of question seems way down.  I guess it's a
  testament to Tomcat's increasing popularity.  People think,
 oh, Tomcat!
  then they come here and email to the user list, How do i install and
  configure Tomcat?  I'm sure the committers get this all the
 time, but in
  2-3 days of answering questions, I've started to get personal emails as
  well!
 
  Rather than continue to bludgeon people with documentation they
 refuse to
  read (as one poster writes, ...hence i would like to get your
 ideas rather
  than just reading through the docs) is there something else that can be
  done?
 
  Maybe more mailing lists than just user?  tomcat-apache, tomcat-install,
  etc.?
 
  Or maybe a configuration validation program that does more than
 just check
  syntax (a la httpd's)?
 
  I'm trying to take some intiative here, but I've been out of
 the loop since
  Oct 2000 or so =)
 
  Thoughts anyone?
 
  - r

 --
 Andy Armstrong, Tagish





RE: ~rant~ Docs, user list, etc.

2001-06-14 Thread Martin van den Bemt

I totally agree on the downgrade and actually (sorry to say) the huge
number of double posts, unsubscribe messages. I wrote a little message about
it, because it was getting way to annoying and eating up too much times. I
was actually flamed after that by a guy who calls himself a real
professional. If I have to deal with those guys, the story ends for me. I
did an unsubscribe and I'm a happier man because of it.

My 2 cents,

Martin van den Bemt

 -Original Message-
 From: Robert Slifka [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 3:32 PM
 To: '[EMAIL PROTECTED]'
 Subject: ~rant~ Docs, user list, etc.


 I've only recently re-subscibed to the user list, but so far, since last
 summer, the average quality of question seems way down.  I guess it's a
 testament to Tomcat's increasing popularity.  People think, oh, Tomcat!
 then they come here and email to the user list, How do i install and
 configure Tomcat?  I'm sure the committers get this all the time, but in
 2-3 days of answering questions, I've started to get personal emails as
 well!

 Rather than continue to bludgeon people with documentation they refuse to
 read (as one poster writes, ...hence i would like to get your
 ideas rather
 than just reading through the docs) is there something else that can be
 done?

 Maybe more mailing lists than just user?  tomcat-apache, tomcat-install,
 etc.?

 Or maybe a configuration validation program that does more than just check
 syntax (a la httpd's)?

 I'm trying to take some intiative here, but I've been out of the
 loop since
 Oct 2000 or so =)

 Thoughts anyone?

 - r





RE: Tomcat 4.0/Solaris why doesn't tomcat follow soft links?

2001-06-14 Thread Martin van den Bemt

We have for all developers apache + tomcat running on different ports.
(7401, 7501, 7601 and 7701). Most of the stuff from apache is symlinked and
the core of tomcat is shared. so the home directory looks a bit like this :
(please think /home/username/ in front of the directories
apache
bin   (shell scripts such as tomcat.sh, startup.sh, apachectl etc)
conf  (tomcat and apache conf, using the correct port numbers)
devel (developers stuff, such as checkout)
htdocs
lib
logs - /home/martin/apache/logs
shared - /home/shared
webapps
work

Have fun,
Martin van den Bemt

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 7:56 PM
 To: Robert Evans
 Cc: [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.0/Solaris why doesn't tomcat follow soft links?




 On Thu, 14 Jun 2001, Robert Evans wrote:

  Greetings,
 
  I am in the process of configuring Tomcat to be used with
 several classes
  at the Johns Hopkins University.  I would like to have each
 student have
  their own webapp in their public_html directory.
 
  I tried Tomcat 3.2.1, but couldn't get the security policy to
 work right
  (all jsp pages kept wanting to use the examples directory?)
 
  I am trying Tomcat 4.0B5, and was going to use soft links in
 the webapps
  directory to point to each students public_html directory.  The only
  problem is that Tomcat doesn't seem to want to follow the soft
 links.  If I
  make a real directory in the webapps dir, everything works
 fine, but if I
  try to use a soft linked one, I get:
 
Http Status 503 - This application is not currently available
 
The requested service(This application is not currently
 available) is
  not currently available
 
  Any suggestions/help would be greatly appreciated.  If I don't get this
  working within a week, it'll be back to the Java Web Server.  :-(
 
  Bob
 
 

 Not following symlinks is an unfortunate side effect of the processing
 that Tomcat has to do to avoid directory name spoofing (/WeB-iNf) on case
 insensitive platforms).  :-(

 For Tomcat 4, have you tried using the user home directories option, to
 automatically recognize each student's public_html directory?  This will
 save you having to configure them all into server.xml:

 Host name=localhost ...

   ...

   Listener className=org.apache.catalina.startup.UserConfig
 directoryName=public_html

 userClass=org.apache.catalina.startup.PasswdUserDatabase/

   ...

 /Host

 Craig McClanahan







Ways of Debugging tomcat itself..

2001-06-14 Thread Martin van den Bemt

Hi,

Maby this question has been asked before, but I'm looking for a good way to
debug tomcat itself (not taling about servlets in specific). The environment
i'm using now is netbeans 3.2.
Does anyone have tips on how to debug tomcat (except for logging to the
console, that one I know..).
I would love to have an opinion / your experience with this. Doesn't matter
which environment you use or how you debug, it may be interesting to put
this in a document. If there is already some nice info on this, please also
let me know..

Mvgr,
Martin van den Bemt




RE: [j-t-c] OS poll

2001-06-11 Thread Martin van den Bemt

Redhat 7.1 (3 x), on of them is portable (acer travalmate 312T, if your
interested). Furthermore 1 proliant 380 2 cpu's , rh 7, 2 proliants 360's
with 2 cpu's and rh 7, 1 rh 5.2 with jserv (still running) and many more
machines, all running together with apache httpd btw.

Mvgr,
Martin van den Bemt


 -Original Message-
 From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 11, 2001 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: [j-t-c] OS poll


 Hi,

 A quick poll to get informations about OS used by
 j-t-c developpers  users ...

 I: Redhat 6.2 / 7.1

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





RE: java.lang.outOfMemory Exception

2001-06-10 Thread Martin van den Bemt



Most 
of the time it's caused by an infinite loop. (put a hashtable in the session 
attribute, where on of the values is a pointer to iteself)..
Very 
confusing somethimes.. ;-)) Especially if it's not your code ;-)) 


Mvgr,
Martin

  -Original Message-From: arun 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 4:48 
  PMTo: [EMAIL PROTECTED]Subject: 
  java.lang.outOfMemory Exception
  hi,
  
  I'mare facing a typical problem. An error 
  pops up in the page sometimes which says "java.lang.outOfMemory " . 
  
  
  What can cause it and also could it be possible 
  that an exception in the error page itself might create this 
  problem.
  If the error page has an error and its page 
  directive specifies 'isErrorPage = true', then where will 
  the error go ?
  Canit fall into an infinite loop which 
  might be a possible cause of java.lang.outOfMemory ?
  
  Arun Bhutra
  
  


Fix for the tomcat-ssl-howto.html

2001-06-04 Thread Martin van den Bemt

Hi,

the above mentioned file, contains bad links to the images  Search for
uguide/images and delete the uguide part. I tried to diff it, but line
endings show a very big diff ;-)). This way the images show from a cvs
checkout, a build and from the website (they are missing also on
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html ).
There are only 2 occurences of this..

Mvgr,
Martin van den Bemt




RE: mod_webapp under Linux

2001-05-31 Thread Martin van den Bemt

Do you believe in or is you choice better... I'm having some trouble now and
then with the mod_webapp...

Mvgr,
Martin


 -Original Message-
 From: kevin seguin [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 31, 2001 2:02 AM
 To: [EMAIL PROTECTED]
 Subject: Re: mod_webapp under Linux


 for what it's worth, from the mentioned post, i believe this:

  An other solution would be to use an APR without threads. To do so use
  ./configure --enable-threads=no when configuring APR.

 rather than this:

  I have no found exactly what happends but just add -lpthread in the
  (tomcat-connectors)/Makefile solves the problem:

 is what you want.  you want a single-threaded apr for apache 1.3 rather
 than a multi-threaded mod_webapp.

 Martin van den Bemt wrote:
 
  There is an answer about this in tomcat-dev (I had the same problem and
  found the solution for it). I believe it's just adding a parameter when
  compiling. (I posted this also in tomcat-user). Oops.. found the url...
 
  See http://marc.theaimsgroup.com/?l=tomcat-devm=99020542608948w=2 (the
  ant-dev mailinglist...).
 
  Have fun,
 
  Martin van den Bemt
 
   -Original Message-
   From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 31, 2001 1:30 AM
   To: [EMAIL PROTECTED]
   Subject: Re: mod_webapp under Linux
  
  
   Dave Oxley at [EMAIL PROTECTED] wrote:
  
Pier,
   
Is there anywhere I can download an archive of apr that works!
   On the other
hand if you fix it could you Email me or the list.
  
   I really don't know... It works on MacOS/X, have you tried
 compiling it
   without multi threading support? The last two days I've been
 quite busy
   updating Nagoya and the bugzilla database and won't have a
 chance to dig
   into it before Friday...
  
   BTW, have you tried (of course) the latest CVS checkout? :)
  
   Thanks and sorry...
  
   Pier
  
  





RE: Slow session creating Tomcat 3.2.1

2001-05-25 Thread Martin van den Bemt

It isn't a problem.. We always look after a restart if everything still
works, so we allways are the first to encounter it.. Is there already a
tomcat 3.2.2 branch where I can check out that version from? And does this
also contain any fixes towards the mod_jk instability (within one hour our
Proliant, 1GB, 1Ghz, dual pentium III is out of everything ;-)) (even
sendmail stops accepting connection on port 25...). Or is the best way to go
back to mod_jserv?

Mvgr,
Martin

 -Original Message-
 From: Dave Oxley [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 25, 2001 8:18 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Slow session creating Tomcat 3.2.1


 I think you'll find that this has been fixed in 3.2.2 which is due to be
 released very shortly (hopefully!!).

 Dave
 [EMAIL PROTECTED]

 From: Martin van den Bemt [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Slow session creating Tomcat 3.2.1
 Date: Fri, 25 May 2001 03:51:33 +0200
 
 As far as I know it is because tomcat needs to init classes on first use.
 
 Mvgr,
 Martin van den Bemt
 
   -Original Message-
   From: Strubinski,Waldemar W [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, May 24, 2001 10:46 PM
   To: '[EMAIL PROTECTED]'
   Subject: Slow session creating Tomcat 3.2.1
  
  
I've noticed that Tomcat  3.2.1  takes a long time to create
a session for the first time.
   
I think it only takes  a long time the very first time it's asked to
create
a session (when the first person logs in after restarting Tomcat).
   
   Do you have any suggestions how to fix it or where I
can find any documentation on  that?
   
Thanks,
   Waldemar
  
  
  

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






RE: Slow session creating Tomcat 3.2.1

2001-05-24 Thread Martin van den Bemt

As far as I know it is because tomcat needs to init classes on first use. 

Mvgr,
Martin van den Bemt

 -Original Message-
 From: Strubinski,Waldemar W [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 10:46 PM
 To: '[EMAIL PROTECTED]'
 Subject: Slow session creating Tomcat 3.2.1
 
 
  I've noticed that Tomcat  3.2.1  takes a long time to create
  a session for the first time.  
  
  I think it only takes  a long time the very first time it's asked to
  create
  a session (when the first person logs in after restarting Tomcat).
  
 Do you have any suggestions how to fix it or where I
  can find any documentation on  that? 
  
  Thanks,
 Waldemar 
 
 
 



the ssi mediator

2001-05-22 Thread Martin van den Bemt

Hi,

I've been browsing through the util package
(catalaina/src/share/org/apache/catalina/util/* ) for my preperation of
writing tests. I came acros the SsiMediator. All the ssi commands created
there override SsiMediator and SsiMediator adds all the commands to a
hashtable of the commands.
Isn't it wiser to set up a ssicommands.properties with eg :
config=org.apache.blah.blah

And make a instance from that class depending on that properties file.
This will make it more flexible and the compile dependencies on each ssi
command are gone..

Don't if this stuff is actualy used in tomcat 4 (and how to use it), but
just an idea..

We could also do this for the server variables (don't know if this is
subject to change though...

I'm happy to do the rewrite if I can test this ;-).

Mvgr,
Martin van den Bemt




Nullpointer exeption when try to read welcome page (tomcat 4 b6)

2001-05-22 Thread Martin van den Bemt

Hi,

After a post in tomcat-user and not getting a reply, I dug into the
Exception below myself and based on that I think it is appropiate to put it
here.

java.lang.NullPointerException
at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338)
at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j
ava:669)
at
org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpResponseBase
.java:1072)
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:150)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1072)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
snap a lot if intersting stuff is snapped, please let me know


According to the code it tries to get the welcome page and doesn't succeed
and just redirects to null. This is only when using tomcat through apache,
on port 80 it's working fine.
So if you do :
http://servername/examples/
You get a nice directory listing. After you click on servlets, you will get
the exception. If you just type
http://servername/examples/servlets/index.html then everything is ok and
you can process the servlets..


Mvgr,
Martin




Version control in tomcat 4...

2001-05-21 Thread Martin van den Bemt

Hi,

I just installed tomcat 4 and some things are looking good (didn't deploy my
current applications yet under tomcat 4), but one of the big issues when
running a server that must be online 24 hours a day, is upgrading the server
with new classes / configs etc. The current stable tomcat doesn't reload
stuff correctly all the time and tomcat 4 solves these problems (at least
that is my understandig from the docs). I would like to take a step further
: using a tomcat internal version control system, so that you can go back to
the previous version(s) of your webapplication without any trouble.
Lets first point out the perfect world scenario (the it supposed to be, or
reasons why the above idea is bad ) :

- You're code should always be tested (ahum...)
- You should write test cases (eg jUnit)
- You should do integration tests on a separate server, to see if everything
is still ok.
- You shouldn't write buggy code (ahum..)
- Version control is in CVS..

Now the arguments that support my version control wish :

- We're humans and make mistakes (which can be deadly on a production
server)
- Version control in CVS is limited and too much time consuming
- All scenarios can be tested, but if you have eg 2000 shops running at the
same time and all the shops have been made under a different release and
changed in different releases, it's hard to test that (it is possible, but
very time consuming).
- If you can go back with a press on the button scenario, the customers
are happy again.
- Better possibilties for remote managament of servers and version control
(not all our customers give us the access to eg telnet, which makes it
harder to use cvs amd ant for this).

If I  missed some reading and this is on the list to be done, let me know
:-)

Do you (=the developers) like that idea?

I would be happy to invest time in this (to build it), but I never peeked at
the source before, so I don't know yet what I'm volunteering for...

Mvgr,
Martin




RE: Version control in tomcat 4...

2001-05-21 Thread Martin van den Bemt

Hi Graig,

 It's hard to know how to answer that question, because I'm not quite sure
 what you're proposing.  Let me try a few assumptions about what you're
 suggesting and make some comments on them:

My writing can get unclear at certain moments. While I'm typing, most of
the time I'm already thinking of 2 lines ahead ;-))..


 VERSION CONTROL ON YOUR OWN WEBAPPS.  This makes a lot of sense, but
 doesn't directly involve Tomcat.  I would suggest looking at how you could
 use the Manager webapp to undeploy and redeploy applications on the fly,
 without having to restart Tomcat.  It should be feasible to script this.

This is what I was looking for..
Scenario :

We're at version 1.5 of our webapp
We install it on all the servers, but on some servers we want to just still
run 1.3, but also have available there the 1.5 version of the system. At an
agreed moment with the customer we switch to the new version (or schedule
the switching of version in the night). This way were able to put the latest
stuff on all the server and without actually directly have to worry about
upgrading the system at that moment and worrying : what is running where and
can we upgrade there, etc,etc.. Even possibilities of running rules for the
upgrade (eg we need to update al the shop configuration files) and downgrade
where possible.

So :
- Upgrade to a version without actually using it at the time of the upgrade
- Upgrade through a scheduler or downgrade / rollback.
- Being able to write rules for upgrading / downgrading a system (we can
have some default rules, like Downgrade not possible.
- Do it remotely (which is possible via the Manager, as I understood).
- Also (the rules can be used for this) is release management for content
not served by tomcat, but eg by apache. (we serve pictures, javascript and
dtd's on  apache for speed).

Volunteering for this I think ;-))

 VERSION CONTROL TO AUTOMATICALLY SWITCH TOMCAT VERSIONS.

nah.. let's not do this one..

 WRITE UNIT TESTS FOR TOMCAT.  If you are volunteering to write JUnit based
 unit tests for the server side components of Tomcat, your contributions
 would be very welcome.  I would like to see us begin doing this.

Is very good for me probably to start learning about tomcat 4 (how it's
build) and jUnit.. (I didn't dig into that yet).
Any suggestions/examples on this part are appreciated.. (where to start,
what needs to be tested (functionality..), what to look out for, etc).

Volunteering for this first ;-))..

 WRITE UNIT TESTS FOR WEB APPS.
 http://jakarta.apache.org/commons/cactus/).

Have it, but don't use it yet.. Some tests on the default webapps in tomcat
4 should also be made?

Mvgr,
Martin





RE: Version control in tomcat 4...

2001-05-21 Thread Martin van den Bemt

Hi Craig,

Saw your commits ;-))

Mvgr,
Martin