Lots of threads an %MEN for Tomcat

2001-04-12 Thread Wolle


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

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

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

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

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

Please help,
thank you for inconvenience,
Michael




Server slows down after a couple of days

2001-04-13 Thread Wolle

Hello,
i run an Tomcat-Jakarta Server with mod_jk over Apache 1.3.17-10
Tomcat is 3.2.2b2, JDK 1.3 , OS Suse 7.1

I installed Tomcat and it runs for about 4 Days, then the Server slows
down,
has someone the the effect ? or work it's fine by anybody ?

I don't know if it from the Jakrata-Tomcat, or something other goes
wrong.
The only thing i knew is that this problem is a new problem. Bevor the
Server work very good.

Greetings,
Michael




Re: ** Does Tomcat need Restart **

2001-04-16 Thread Wolle



"Mr.Y.SHIVAKANT" wrote:

> -Original Message-
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Monday, April 16, 2001 3:20 PM
> Subject: ** Does Tomcat need Restart **
>
> >Hi,
> >
> >Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
> >to restart automatically whenever a servlet gets modified (i.e. I
> >re-compile the servlet).
> >
> >I am running Tomcat and Apache on Linux OS.
> >
> >Regards,
> >Marathe
> >
> Hi ,
>   Is its into big time tomcat

??? what do you mean with this ?

Greetings,
Michael




PrintWriter close whne exception is thrown ?

2001-04-16 Thread Wolle

Hello all,
i have a question about the Servlet class.
The Methode of the servlet (doPost and doGet) throws a exception.
But what is with the PrintWriter when a excpetion is thrown ?
Will it close the Writer explicit, or hopes it, that the gabrage
Collector will give it free ?

Thank you for inconvenience,
Michael




Re: please unsubscribe me

2001-04-17 Thread Wolle

Hello guys,
is it so difficult ?
you have only to send a Email to:

[EMAIL PROTECTED]

Greetings,
Michael

"Gottwald, Oliver" wrote:

> me too for the 15th time...
>
> -Original Message-
> From: Maura TAYLOR [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 8:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: please unsubscribe me
>
> please take me off this list.




Re: WEB-INF/lib vs. TOMCAT_HOME/lib

2001-04-18 Thread Wolle

Hello,
i have set the properity jar files in the webapps/.../WEB-INF/lib/  dir,
and this works fine (i haven't change any configuration for it).
I use the Version 3.2.2b2 (perhaps  that's important ?)

Greetings,
Michael

Chad LaJoie wrote:

> I haven't noticed this problem.  I have however noted that when Tomcat
> starts up it doesn't list the jar for any of my webapps in it's initial
> classpath.  If, however, I check my jasper.log it does list them.  So you
> might want to just check that, Tomcat might be working right for you, you
> just might be looking in the wrong spot to find the classpath it's using.
>
> At 06:18 AM 4/18/2001, you wrote:
> >I have the same problem and have posted the same thing before with no reply.
> >I actually keep the jars in the WEB-INF/lib directory and add them to the
> >Tomcat classpath with wrapper.properties (I'm starting as an NT service).
> >This means a config change whenever I deploy a webapp which is far from
> >ideal.
> >
> >Maybe someone with superior knowledge about this could shed some light this
> >time?
> >
> >Richard.
> >
> >-Original Message-
> >From: Chris Bailey [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, April 17, 2001 7:32 PM
> >To: [EMAIL PROTECTED]
> >Subject: WEB-INF/lib vs. TOMCAT_HOME/lib
> >
> >
> >The Tomcat automatic setting of a classpath for a given webapp is not
> >seeming to work for me.  I have my various jar files in .../WEB-INF/lib,
> >for my web app.  But, that fails.  If I however, put them in
> >$TOMCAT_HOME/lib, then they get added to the generic classpath (which is
> >displayed on startup of Tomcat), and things work fine.
> >
> >How do I fix this?
> >
> >--
> >Chris Bailey[EMAIL PROTECTED]
> >Wego Systemshttp://www.wego.com
> >
> >
> >**
> >Information in this email is confidential and may be privileged.
> >It is intended for the addressee only. If you have received it in error,
> >please notify the sender immediately and delete it from your system.
> >You should not otherwise copy it, retransmit it or use or disclose its
> >contents to anyone.
> >Thank you for your co-operation.
> >**
>
> Chad La Joie   "Only a man who can not conquer
> IT Specialist his deficiencies feels the need to
> IS&C - WARD convince the world he has none"






Re: Tomcat with Apache/URLRewritting and mod_rewrite

2001-04-18 Thread Wolle

Hello,
yes, you're right, the Protocol ajp13 supports the SSL protocol better (relating
to the methode request.isSecure() ).
But this SSL and URL Rewriting is a Bug , see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578

This has been fixed in the last csv release, and will hoply be fixed in the
3.2.2 final release or 3.2.2b4, also.

Greetings,
Michael

Sam Newman wrote:

> It can (see the Apache-tomcat readme in the tomcat distro), but it is
> strongly suggested that you use mod_jk & tomcat instead of using JServ as it
> has less bugs, is faster, and I believe is also better maintained.
>
> sam
> - Original Message -
> From: "Tassilo Pilati" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 11:03 AM
> Subject: AW: Tomcat with Apache/URLRewritting and mod_rewrite
>
> > Do you know if the mod_jserv can be used with tomcat ?
> >






Re: Can Sessions be tracked via URL-rewriting?

2001-04-19 Thread Wolle

Hei,
You have to do it in your Servlet/JSP
with the Methode encodeURL or encodeRedirectURL.
response.encodeURL("/test/URL")
This have you to do with all your Links in the Servelt.
Tomcat will automaticly choose the URI-Rewriting if the cookies are
disabled.
When the cookies are enabled, the encodeURL Methode won't change the URL.
So you don't have to handle it if there cookies or not.

Greetings
Michael

Robert Zazueta wrote:

> Nope. Where would I need to do that? In all of my servlets, or in the
> Tomcat code?
>
> -Original Message-
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Can Sessions be tracked via URL-rewriting?
>
> Are you asking Tomcat to do URL re-writing (by calling
> HttpServletResponse.encodeURL())?
>
> -- Bill K.
>
> > -Original Message-
> > From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can Sessions be tracked via URL-rewriting?
> >
> >
> > Fresh out of the "box", Tomcat appears to write the jsession ID to the
> > users cookies exclusively, making those who don;t have
> > cookies turned on
> > for whatever reasons lose their session.
> >
> > Is there a way to configure Tomcat so that it writes the jsession via
> > URL-rewriting for those folks without cookies turned on? Or even just
> > replaces the jsession cookie with URL-rewriting entirely?
> >
> > Thanks!
> >
> > Rob Z.
> >






Re: session maintenance problem with: ssl + cookies disabled

2001-04-20 Thread Wolle

Hello,
jep that's is ab bug ,
see:  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578
there is a workaround in it, and it will work with it,
on the next release the Bug will be fixed. (3.2.2)

Greetings,
Michael

[EMAIL PROTECTED] wrote:

> When I disable cookies in browser and use ssl connection (default https
> connector) session maintaining via URL rewriting does not work. One can try it
> with example from binary distribution: examples/servlet/SessionExample.
>
> Seems like a bug to me.
>
> Maciek Kaminski
> [EMAIL PROTECTED]







Re: to many tomcat processes!! AAH!!

2001-04-23 Thread Wolle

Hei,
i use JDK 1.3

Saurabh Shukla wrote:

> which JDK are you using ?
>
> Shuklix
>
> -Original Message-
> From: Georges Boutros [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: to many tomcat processes!! AAH!!
>
> does anyone know how can i force java to use green threads?
>
> thanks
>
> -Original Message-
> From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 8:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: to many tomcat processes!! AAH!!
>
> Hi,
>
> maybe the many processes are because jdk1.2 and up use native threads
> (AFAIK, 1.1 used "green" threads, i. e. a threading package implemented
> in java itself).
>
> With 1.2+, every java thread is a native OS thread and therefor gets
> listed by ps. Have you tried forcing java to use green threads? I'm
> quite sure that it is possible (RTFM).
>
> --
> Best regards,
>
> Ansgar W. Konermann
> eMail: [EMAIL PROTECTED]
>
> --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: SSL detection

2001-04-23 Thread Wolle

Hello,
you can check it with the methode "request.isSecure",.
that will give you true or false, make shure you use the ajp13 protocol with
mod_jk.
I don't know how to get the detailed information about the protocol and the key.

Greetings,
Wolle

Sam Newman wrote:

> I have Apache and Tomcat running together under SSL. I now want to create a
> page which only run under SSL. I want http and https to share the same
> documents however. My first idea is to simply have a tag handler, which
> detects the protocol, and if not SSL is simply redirects to a page explaning
> why they cannot view the requested document.
> By problem is that I'm not sure on the correct way to retrieve what type of
> protocol is being used. There is a getAuthType method in HttpServletRequest,
> but the return type is simply a string (e.g. "BASIC" or "SSL"). My concern
> is that this return could vary from browser to browser. Can I assume that if
> using SSL the return will always be the string "SSL"? Also, how can I detect
> which level of encryption is being used? Ideally, I'd like to restrict users
> to connecting using 128bit only, or at least issue a warning when its at
> 40bit.
>
> Thanks in advance,
>
> Sam

--




Re: to many tomcat processes!! AAH!!

2001-04-23 Thread Wolle

Thanks for all the Information,
i don't want to change it in green Threads, I would only knew what's goining on
with these Threads , and know I have these Information, thanks a lot !

Greetings,
Wolle

Craig O'Brien wrote:

> I do not know why you would want to do this other then for testing but --
> change your startup script for tomcat to include the option java -classic
>   and you will be using green threads.  Be aware that it is now easier
> to create a deadlock situation. I believe that it would be a big mistake to
> deploy a system with green threads.  My system incorrectly reports that I am
> using 217 meg of ram but that is incorrect, It is actually using 74 meg of
> ram.(with tomcat running) Use gps for a more accurate reading. Pushing the
> server hard during testing does not increase the ram used significantly.
> (cpu usage reflects as you would expect)
>
> All those processes that you are seeing are simply sleeping threads.  They
> are NOT using any resources and are being incorrectly reported as consuming
> processes.  This is the very compelling reason that you would want to use
> java in the first place. Native multi-threading. You have a thread pool
> ready to respond without the overhead of creating new processes on demand.
>
> Good luck,
> Craig
>
> Let us know what you find out.
>
> -Original Message-
> From: Wolle [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 4:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: to many tomcat processes!! AAH!!
>
> Hei,
> i use JDK 1.3
>
> Saurabh Shukla wrote:
>
> > which JDK are you using ?
> >
> > Shuklix
> >
> > -Original Message-
> > From: Georges Boutros [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 1:34 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: to many tomcat processes!! AAH!!
> >
> > does anyone know how can i force java to use green threads?
> >
> > thanks
> >
> > -Original Message-
> > From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 12, 2001 8:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: to many tomcat processes!! AAH!!
> >
> > Hi,
> >
> > maybe the many processes are because jdk1.2 and up use native threads
> > (AFAIK, 1.1 used "green" threads, i. e. a threading package implemented
> > in java itself).
> >
> > With 1.2+, every java thread is a native OS thread and therefor gets
> > listed by ps. Have you tried forcing java to use green threads? I'm
> > quite sure that it is possible (RTFM).
> >
> > --
> > Best regards,
> >
> > Ansgar W. Konermann
> > eMail: [EMAIL PROTECTED]
> >
> > --- Hello, I am a message footer. -




Re: Encoding URL fails

2001-04-24 Thread Wolle

hello,
you could make a workaround.
simple useurl =  encodeURL("url") + "¶meter=bla";

Greetings,
WOlle

Andreas Schlegel wrote:

> Hi,
>
> I have a problem encoding a string containing the character '&' and put
> it as param in an URL
>
> If I encode A&P the URLEncoder.encode(value) returns A%26P. But if I put
> this result string as parameter in an URL, the URL contains A&P. So what
> can I do to have the encoded value in the URL?
>
> I am a little bit confused because if I do the same using a string
> containing the character '?' everything is fine!
>
> Greetings,
> Andreas






Re: Tomcat & SSL

2001-04-24 Thread Wolle

Hello,
you don't discommenct the ajp12 Protocol,
because this is use from Tomcat to Shutdown.
So you must have install (and run) both connectors.
You could start apache bevor Tomcat,
but you have to start Tomcat first on the first run,
because Tomcat will generate the Apache-Tomcat.conf.
You don't need it, when you have your own configuration in the httpd.conf
file, it's nonrelevant who will start's first.
You have only to started both bevor a request comes to Tomcat ;-)).

Greetings,
Michael

Milt Epstein wrote:

> On Tue, 24 Apr 2001, GOMEZ Henri wrote:
>
> > >> -- SSL is only supported for Apache, and you need Apache-SSL or
> > >> apache-mod_ssl, running with mod_jk
> > >>
> > >> -- mod_jserv won't work if you want to use SSL
> > >>
> > >> Is the above true?  And also, if my web server is IPlanet/Netscape or
> > >> IIS, do those redirectors provide SSL support?
> > >>
> > >> Any help would be greatly appreciated!  Please cc: [EMAIL PROTECTED]
> > >
> > >Well, I can't answer all your questions, but I am using Apache,
> > >mod_ssl, tomcat, and mod_jserv, so the answer to your last one would
> > >seem to be "no, it's false" :-).
> >
> > Make me a favour, switch to mod_jk and ajp13 which is faster and
> > support much more servers (Apache, IIS, IPlanet/NES, jni).
> >
> > And that the part of the connector area which is the more activelly
> > maintained.
>
> Wasn't there something about tomcat being more difficult to restart
> when using ajp13?  Like apache had to be restarted as well?  If true,
> I think that's too big an inconvenience to warrant switching.
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]




Re: Tomcat & SSL

2001-04-24 Thread Wolle



Sam Newman wrote:

> You might have problems detecting if you are working over a secure
> connection. See if the isSecure() method works in a servlet when working
> over SSL.

-> and for that you need the ajp13 Protocol, with ajp12 the isSecure Methode
will mostly not work correct.


>
>
> sam
> > > mod_jserv didn't support SSL neither ajp12. You must use mod_jk
> > > with ajp13 to get SSL info forwarded from Apache to Tomcat.
> > [ ... ]
> >
> > Can you clarify what you mean bu this?  Because I'm using Apache with
> > mod_ssl, and Tomcat with mod_jserv, and things are working just fine.
> > Perhaps there's some functionality I don't have, but I guess I haven't
> > needed it yet.
> >

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: Very hard to stop tomcat3.2.2b2 on linux

2001-04-24 Thread Wolle

Hello,
say something about your Configuration,
use you the ajp13 Procotcol ?
When yes , have you the ajp12 Protocol disabled ?
When yes -> that's the reason .

Greetings,
Michael

Todd Chaffee wrote:

> Check your classpath.
>
> At 12:46 AM 04/25/01 +0200, you wrote:
> >Hello,
> >
> >I've got really hard problem to stop tomcat !!!
> >
> >I've received an exception into GenericServlet (a nullpointer exception)
> >or tomcat's processes are not stopped..
> >then the connector is stopped (so I can not stop it anymore without
> >killing processes !!
> >
> >any ideas ?

-




Re: Tomcat & SSL

2001-04-24 Thread Wolle



Joel Parramore wrote:

> When I've had to kill Tomcat on my setup, Apache locks up and requires a
> restart, even after restarting Tomcat.
>
> Also, according to the mod_jk FAQ:
>
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html#s8
>
> "Q. Whenever I restart Tomcat, Apache locks up!
> A. The Ajp13 protocol keeps an open socket between Tomcat and Apache. When
> you restart Tomcat, you need to restart Apache as well."
>
> which was pretty much my own experience,
>
> Regards,
> Joel Parramore
>

-> mmh, i haven't had this.
  When i shutdown only the Tomcat Server, apache will show a internal Server
error,
until Tomcat is back up ..(Tomcat3.2.2b2 and apache 1.3.17-10)..

Greetings,
Michael

>
> - Original Message -
> From: "Jeff Kilbride" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 6:38 PM
> Subject: Re: Tomcat & SSL
>
> > Well, apache doesn't die, per se -- it just doesn't respond to connections
> > from Tomcat until restarted.
> >
> > --jeff
> >
> > - Original Message -
> > From: "Joel Parramore" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 24, 2001 3:31 PM
> > Subject: Re: Tomcat & SSL
> >
> >
> > >
> > >
> > > Using ajp13 with Apache and Tomcat holds open a socket for requests
> > between
> > > the two as opposed to opening a socket  for every request (ajp12).
> > Shutting
> > > down Tomcat apparently does not gracefully allow Apache to deal with the
> > > socket suddenly closing, so Apache dies as well.
> > >
> > > Regards,
> > > Joel Parramore
> > >
> > >
> > > - Original Message -
> > > From: "Milt Epstein" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 24, 2001 5:37 PM
> > > Subject: RE: Tomcat & SSL
> > >
> > >
> > > > On Tue, 24 Apr 2001, GOMEZ Henri wrote:
> > > >
> > > > > >> -- SSL is only supported for Apache, and you need Apache-SSL or
> > > > > >> apache-mod_ssl, running with mod_jk
> > > > > >>
> > > > > >> -- mod_jserv won't work if you want to use SSL
> > > > > >>
> > > > > >> Is the above true?  And also, if my web server is
> IPlanet/Netscape
> > or
> > > > > >> IIS, do those redirectors provide SSL support?
> > > > > >>
> > > > > >> Any help would be greatly appreciated!  Please cc:
> [EMAIL PROTECTED]
> > > > > >
> > > > > >Well, I can't answer all your questions, but I am using Apache,
> > > > > >mod_ssl, tomcat, and mod_jserv, so the answer to your last one
> would
> > > > > >seem to be "no, it's false" :-).
> > > > >
> > > > > Make me a favour, switch to mod_jk and ajp13 which is faster and
> > > > > support much more servers (Apache, IIS, IPlanet/NES, jni).
> > > > >
> > > > > And that the part of the connector area which is the more activelly
> > > > > maintained.
> > > >
> > > > Wasn't there something about tomcat being more difficult to restart
> > > > when using ajp13?  Like apache had to be restarted as well?  If true,
> > > > I think that's too big an inconvenience to warrant switching.
> > > >
> > > > Milt Epstein
> > > > Research Programmer
> > > > Software/Systems Development Group
> > > > Computing and Communications Services Office (CCSO)
> > > > University of Illinois at Urbana-Champaign (UIUC)
> > > > [EMAIL PROTECTED]
> > >




Re: mod_ssl breaks response.encodeURL()? !SOLUTION!

2001-04-24 Thread Wolle

Yes, i have asked it, and I get these followed answer :

I finished this today (4/16/01).  There are a couple other loose ends that
need to be resolved before I release 3.2.2.  If you can build and run from
source then please try the lastest code from CVS and make sure it addresses
your need.

from [EMAIL PROTECTED]


Greetings,
Michael

Jeff Kilbride wrote:

> Has this fix been added to 3.2.2? I seem to remember seeing that it had
> been.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Mark Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 3:50 PM
> Subject: Re: mod_ssl breaks response.encodeURL()? !SOLUTION!
>
> > Thanks to a tip from [EMAIL PROTECTED], I've got this working on
> Tomcat
> > 3.2.1 with gnu/linux+apache+mod_ssl.
> >
> > Here's HOWTO:
> > 1. Get jsse-1.0.2-do.zip and unpack. In lib/ are three jars. Put 'em in
> your
> > CLASSPATH.
> > 2. Patch:
> >
> $JAKARTA_HOME/jakarta-tomcat/src/share/org/apache/tomcat/facade/HttpServletR
> esponseFacade.java
> >
> > with:
> >
> > return (false);
> > if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> > return (false);
> > -// Set the URL port to HTTP default if not available before
> > comparing
> > +// Set the URL port to protocol default if not available before
> > comparing
> >  int urlPort = url.getPort();
> >  if (urlPort == -1) {
> > -urlPort = 80;
> > +if("http".equalsIgnoreCase(url.getProtocol())) {
> > +urlPort = 80;
> > +} else if ("https".equalsIgnoreCase(url.getProtocol())) {
> > +urlPort = 443;
> > +}
> >  }
> >
> > 3. compile the class file to
> >
> $TOMCAT_HOME/classes/org/apache/tomcat/facade/HttpServletResponseFacade.clas
> s
> >
> > 4. Done!
> >
> > Mark Johnson wrote:
> >
> > > My app uses the HttpSession interface. In order to handle client
> > > browsers which don't accept cookies, I used the
> > > response.encodeURL("myURL") method.
> > >
> > > Using apache without mod_ssl, and using a browser set to deny cookies, I
> > > detect the method in action when the jsessionid is appended to the
> > > URL's. Everything is dandy!
> > >
> > > However, when I run apache with mod_ssl, it is as if the method has not
> > > been invoked.
> > >
> > > I speculate that this effect is related to mod_ssl's use of another
> > > port, 443. Perhaps response.encodeURL("myURL") only works on the port
> > > number in httpd.conf's Port directive.
> > >
> > > Can anyone explain what's going on? Better yet, how do I solve the
> > > problem?
> > >
> > > TIA
> >






Re: urgent

2001-04-25 Thread Wolle

Hello,

simple,
1. Download
2. install
3. run
 ;-)
could you specify you Problem and configuration a lit more ?

Greetings,
Michael

Jignasha Raval wrote:

> i want to know how to configure tomcat with pws 4.0...
> as the earliest
>
> pls send me the step by step method
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Problem at mod_jk.conf-auto

2001-04-25 Thread Wolle



Hello,
use your own configuration File, because all your alternations will
be lost, when you restart Tomcat.
You could insert the configuration in the httpd.con file from Apache
like this:
In httpd.conf:
LoadModule jk_module something/mod_jk.so  (the something is a
path behind the apache path)
AddModule mod_jk.c
JkWorkersFile /user/local/TOMCAT_HOME/conf/workers.properties
JkLogFile   /usr/local/TOMCAT_HOME/log/servlet.log
Alias /test "/usr/local/TOMCAT_HOME/webapps/test
-> see more in the apache-tomcat.howto
Greetings,
Michael
Chonsiu208 wrote:

hi there, Does
anybody know how to change the configuration of mod_jk.confg-auto ? I want
to instruct Apache to load the jk module from location other than the default
libexec/mod_jk.so.Thanks chonsiu.

 





Exception

2001-04-25 Thread Wolle

Hello,
I've seen that a normal Servlet Class will throw two Excetions,
A ServletException and a IOException,
i'm not happy about hand over some Exception without knowing what will
done with it, and where will these Exception be thrown ? IOException, i
guess, when something failed with creating /using the PrintWriter ,  but
what is with the ServletException.

Does anybody know something about that, and coud help me, please ?

Greetings,
Michael






Re: JDK1.3 ?

2001-04-25 Thread Wolle

Hello,
I have Win2k and JDK 1.3  and Tomcat 3.2.2b2 , that works fine.

Richard Keene wrote:

> Does Tomcat work with JDK1.3 ?
>
> I have Windows2000, JDK1.3
>
> with
> tomcat run
> I get ...
>
> C:\jakarta-tomcat\bin>tomcat run
> Using classpath: C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\webserver.jar;C
> :\jakarta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\xml.jar;C:\jakarta-tomcat\
> lib\servlet.jar;C:\jdk1.3\lib\tools.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_c
> omp.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_comp.jar;./WEB-INF/classes;C:\jdk
> 1.3\lib\tools.jar;C:\MySQL-JDBC\mm.mysql.jdbc-1.2c\mysql_comp.jar;C:\jakarta-tom
> cat\webapps\iCentrisTime;C:/Odyssey3/dst/classes/pcl5.jar;C:/javamail-1.2/mail.j
> ar;C:/javamail-1.2/activation.jar;C:/javamail-1.2/pop3.jar;C:\jdk1.2.2\lib\icema
> il-3-0-4.jar;C:\j2sdkee1.2.1\lib\j2ee.jar;E:\WEB-INF\classes;C:\trav\ta.jar
> java  -Dtomcat.home="C:\jakarta-tomcat" org.apache.tomcat.startup.Tomcat
>
> java.lang.ClassNotFoundException: com.sun.xml.parser.Parser
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:124)
> at org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:124)
> at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> FATAL: configuration error
> java.lang.Exception: Error creating sax parser
> at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
>
> But if I type the class name directly I get...
>
> C:\jakarta-tomcat\bin>java com.sun.xml.parser.Parser
> Exception in thread "main" java.lang.NoSuchMethodError: main
>
> so it is finding the class.  It appears that tomcat has a differnt or custom class 
>loader?
>
> Richard Keene
> VP Development
> iCentris.com
> 801-201-0969
> [EMAIL PROTECTED]PGP Key
> http://www.icentris.com
>






Re: Tomcat & SSL

2001-04-26 Thread Wolle

That's means, when you build your own mod_jk, you get a change that
Apache will not hang up ?
This could be the reason why this has no happend in my case.

Greetings,
Wolle


GOMEZ Henri wrote:

> >> When I've had to kill Tomcat on my setup, Apache locks up
> >and requires a
> >> restart, even after restarting Tomcat.
> >>
> >> Also, according to the mod_jk FAQ:
> >>
> >>
> >http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-
> >howto.html#s8
> >>
> >> "Q. Whenever I restart Tomcat, Apache locks up!
> >> A. The Ajp13 protocol keeps an open socket between Tomcat
> >and Apache. When
> >> you restart Tomcat, you need to restart Apache as well."
> >>
> >> which was pretty much my own experience,
> >>
> >> Regards,
> >> Joel Parramore
> >>
>
> It's no more true with the latest mod_jk/ajp13 found in
> TC 3.3 cvs. I commited two patches in ajp13 worker (C side)
> which fixes that.
>
> But mod_jk in TC 3.2 != mod_jk in TC 3.3 since some fixes
> are delicate and Marc ask us to avoid touching sensible
> code in TC 3.2.x. Even if I'm convident with the ajp13 worker
> patch we need many testers to put it back in TC 3.2.

--





NEW Q: Mem uses will grow Up on heavy Load

2001-04-27 Thread Wolle

Hello,
i have found some  error,
when you have massive Load on your Server, I get an Error like this:

java.net.SocketException: Datenübergabe unterbrochen (broken pipe):
Datenübergabe unterbrochen (broken pipe)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at
org.apache.tomcat.service.connector.TcpConnector.receiveFully(TcpConnector.java:150)

at
org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnector.java:121)

at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:146)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

now i have changed back to the ajp12 Protocol and these error will never be
thrown (it will never been shown at least).
Is there an Error in the ajp13 Protocol and some workaround ?

But the main Question is unresolved, why rise the Mem usage up, and would
never becomes free again ?
I had forgotten some important thing, my Java is JDK1.3 sun.

Greetings and thanks for waste your time,
Michael


Wolle wrote:

> Hello,
>
> My Servlet Enviroment is : Tomcat3.2.2b2 , Apache 1.3.17-10,mod_ssl
> 2.7.1-0, SUSE 7.1, ajp13 with mod_jk.
>
> When i ran my Servlets, the Memusage will grow up, thats normal ;-))
> But when you make massiv Client request, the memusage rise extremly.
> The shell brings Messages from "Broken pipe", when  I start a new
> request, bevor the old one is answered.I have a Load from 70% of 98 MB
> Ram.
> when i wait, the Mem will never becomes free.
> What does TOmcat, when a exception is thrown ? Don't give it all the
> resources free ? What becomes with a Servlet Instanz, when the doPost or
> doGet Methode is done ? Stay it in the Mem ? Must I call the destroy()
> Methode to do this ? How could I avoid these heavy and resistent mem
> load ? I will have a sercure site, and when it hangs Up the system with
> simple massivs request, it will be not so good. ;-)
> Is this right, or have I misunderstood some things with the Servlet
> implementation.
> I hope someone  knows a reslution for this,
>
> Please please help,
> thank you for inconvenience,
> Michael Wollenhaupt







Mem uses will grow Up on heavy Load

2001-04-27 Thread Wolle

Hello,

My Servlet Enviroment is : Tomcat3.2.2b2 , Apache 1.3.17-10,mod_ssl
2.7.1-0, SUSE 7.1, ajp13 with mod_jk.

When i ran my Servlets, the Memusage will grow up, thats normal ;-))
But when you make massiv Client request, the memusage rise extremly.
The shell brings Messages from "Broken pipe", when  I start a new
request, bevor the old one is answered.I have a Load from 70% of 98 MB
Ram.
when i wait, the Mem will never becomes free.
What does TOmcat, when a exception is thrown ? Don't give it all the
resources free ? What becomes with a Servlet Instanz, when the doPost or
doGet Methode is done ? Stay it in the Mem ? Must I call the destroy()
Methode to do this ? How could I avoid these heavy and resistent mem
load ? I will have a sercure site, and when it hangs Up the system with
simple massivs request, it will be not so good. ;-)
Is this right, or have I misunderstood some things with the Servlet
implementation.
I hope someone  knows a reslution for this,

Please please help,
thank you for inconvenience,
Michael Wollenhaupt





heavy Traffic will rise Mem usage extremly

2001-04-28 Thread Wolle

Hello,
i have testet some Servlets, and i'm prof that I give all the Readers
and Writes free, when a error occurs, so my Servlets are mostly memory
leak free.
So, when I  make a big traffic to my servlets, the memory usage of
Tomcat will rise extremly, and after that it won't give these memory
free.And so the Server will become slow.
Is that a error in Tomcat, or must I set some enviroment in the Tomcat
server.xml or so ?
I have build some extra Commands in the Serverlet to call System.gc() or
System.runFinalization(), but no changes will occurse.
I have read about the VM that in some VM it's normal that they give not
all the memory free.
W. Klum told me that you can explzit turn the JIT Compiler of , but how
could I do this ?
I have test it all with JDK1.3 , JDK1.3.02 (with CLIENT VM , and SERVER
VM),
 on Linux Suse 7.1 and Linux Mandrake 8.0 with Tomcat 3.2.2b2 with ajp12
and ajp13 Protocol over mod_jk, 98 MB RAM and Apache
1.3.17-10/mod_ssl2.7.1-0  and apache 1.3.19-3/mod_ssl 2.8.2-5.
Every time I get the same result.
The server will slow done with lot's of memory usage by Tomcat, the only
way to resolve it is to restart tomcat.
I have produce the high traffic with making a refresh very often.
Has someone the same error, or is it still only a error on my system ?

Please help me, it's urgent,
thank you for inconvenience,
Michael
---
  [EMAIL PROTECTED]





Start the VM with options on Tomcat

2001-04-28 Thread Wolle

Hello,
i have another question about the VM,
you could start it Server-Side optimized or client-side.
This option could you change, when you edit the JDK/jre/lib/jvm.cfg.
So you could change the default start opion (the first line is the
default start option).
But how could I use mor option as default when I start Tomcat ?
I want to use java -server -verbose:gc , to get information about the
Garbage Collect call from the VM (when it occurs and so), but this i
can't insert in the jvm.cfg file.
Is there some way to do this, pherapse in a tomcat Start script ?

thank you for inconvenience,
Michael




Re: Start the VM with options on Tomcat

2001-04-28 Thread Wolle

thank you,
i have set it in the startup.sh, but you're right, to set the TOMCAT_OPTS
is much easier and flexible,

Greetings,
Michael

Milt Epstein wrote:

> On Sat, 28 Apr 2001, Wolle wrote:
>
> > Hello,
> > i have another question about the VM,
> > you could start it Server-Side optimized or client-side.
> > This option could you change, when you edit the JDK/jre/lib/jvm.cfg.
> > So you could change the default start opion (the first line is the
> > default start option).
> > But how could I use mor option as default when I start Tomcat ?
> > I want to use java -server -verbose:gc , to get information about the
> > Garbage Collect call from the VM (when it occurs and so), but this i
> > can't insert in the jvm.cfg file.
> > Is there some way to do this, pherapse in a tomcat Start script ?
>
> Set the TOMCAT_OPTS environment variable to the options you want,
> e.g. "-server -verbose:gc".  (Exactly how/where you do this is
> particular to your environment -- OS, shell, etc.)
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]




Re: How to turn off jsp auto-loading/compiling

2001-04-30 Thread Wolle

Hello,
set your reloadable=false in the server.xml
on your 

Greetings,
Wolle

Christian Hargraves wrote:

> Hi,
>
> I have looked everywhere on this. Does anyone know how to configure tomcat
> so that it won't check the jsp file's date everytime before executing the
> code? We want to turn this off to speed things up a bit.
>
> Thanks,
> Christian






Re: Boycott China - A great idea - please do it

2001-04-30 Thread Wolle

Hello Huang,
it doesn't matter where you are or where you came from !
This is another user-group for other problems,
so PLEASE DON'T SENT THOSE MESSAGES TO HERE !
I think here is enough traffic over the day !
And i thnik that's the reason for lots of different news-groups.

in this way,
Michael

"Huang, Lou" wrote:

> Hi All real friend of Chinese people:
>
> As a Chinese, I really like the idea of boycott China.  This idea is benifit
> to both Chinese people and American people; of course not China, American
> government and billionaries.
>
> Benifits to China:
> In China, almost all of the companies are state owned.  Every body knows
> that as a state owned company, its competitive ability, efficiency is very
> very low.  It is much much much worse than American's senator's district pig
> projects.
>
> Now in China, every corner is occupied by multi international companies like
> Motorola, Microsoft,
> IBM, etc.  These companies can do whatever they want; they can kill small
> private companies mercilessly; they rob China's natural resources and make
> China's environment worse and worse.
>
> If every one can boycott China at least 10 years, then China will:
>
> 1) The small private companies will grow up gradually and eventually replace
> all the high cost, low efficiency state owned companies.  If the world would
> isolate China only 10 years, China will have his own giant private
> companies, ie., China will have his own Motorola, etc.  At that time, the
> compitition will be equal.  American giant companies don't have too much
> advantages and they can not do everything they want like they are doing now.
>
> 2) The Chinese people will enjoy cheap products because they don't need to
> compete with American consumers.
>
> 3) China's natural resource will last longer.
>
> 4) China's environment will be cleaner.
>
> The benifits to American people:
>
> 1) Increase the employment opportunities because the giant companies can not
> move factories to China.
>
> 2) A little bit higher consumer good price is OK because 98% Americans are
> millionare.
>
> 3) Prevent American from other place's political unrest. Because giant
> companies will utilize and explore American's natural resource like oil, US
> will not depend on foreign energy supply.
>
> 4) A little bit environmental worse is OK because American's environment is
> the cleanest in the world.  At most the American's environment becomes the
> second cleanest.
>
> I really hope that Boycott China is reality!
>
> It does not matter that Boycott China will success or fail (many things are
> controlled by greedy multi internal firms, not by our good hearts), I
> sincerely appreciate the idea and thanks from my heart those people who
> propose boycott China.  Because these people are the real friends of Chinses
> people, not those multi national firms.
>
> L. Huang
>
> -Original Message-
> From: Patil, Anand [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 9:23 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Boycott China - please read - your life may depend on it
>
> Wrong.That depends what you define as politics.
> Politics is something which you don't always understand
> first time or may be forever.
> Annd
>
> > -Original Message-
> > From: Dick Poon [SMTP:[EMAIL PROTECTED]]
> > Sent: Saturday, April 28, 2001 12:04 AM
> > To:   [EMAIL PROTECTED]; Arnaud Dostes - NTI
> > Subject:  Re: Boycott China - please read - your life may depend on it
> >
> > I don't think this list is the place to talk about politic!Right?
> >
> >
> > Dick Poon
> > - Original Message -
> > From: "Arnaud Dostes - NTI" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, April 27, 2001 4:31 PM
> > Subject: Re: Boycott China - please read - your life may depend on it
> >
> >
> > > The Tomcat-Mailing list is the last list where I thought I would find
> > > hateful opinions and so poorly directed propaganda.
> > >
> > > - Original Message -
> > > From: "Rick Horowitz" <[EMAIL PROTECTED]>
> > > To: "Horowitz" <[EMAIL PROTECTED]>
> > > Sent: Friday, April 27, 2001 12:21 AM
> > > Subject: Boycott China - please read - your life may depend on it
> > >
> > >
> > > > Hello Everyone,
> > > >
> > > > The following speech, reprinted from www.newsmax.com, was made this
> > > Tuesday
> > > > night by U.S. Congressman Dana Rohrabacher of California. I urge you
> > all
> > > to
> > > > read every word of this speech. I have been aware of much of the
> > budding
> > > > catastrophe we face regarding China, yet have not seen the issues
> > > > articulated with anything near the clarity that Mr. Rohrabacher does
> > in
> > > > this speech.
> > > >
> > > > My wife and I began boycotting Chinese-made goods about a year ago in
> > > > recognition of the reasons outlined here. I urge every one of you to
> > > > forward this message to everyone in your email list, and begin
> > boycotting
> > > > Chinese goods immediately.
> > > >
> > > > My own brief 

Re: back button

2001-04-30 Thread Wolle

Hei ,
that can't you block explicit,
you could only check, when you create the Page (wich comes up when you press
the back button), if some record is in use already, and then redirect to the
prefered site.

Greetings,
Michael


Abraham Liu wrote:

> Hi,
> How can  I  do something so user can't click "back button" for some
> particular pages. Ex. user can't click "back button" to go back to the
> confirm page to insert record again.
> I know it is off-topic. But I think lots of gurus in this list know how to
> do. Please help me.
> Thanks
> Abe Liu




TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-02 Thread Wolle

I have testet the TC3.2.2b4 now with the ajp13 protocol over the new
mod_jk-eapi.so
and mod_jk-stdapi.so (release 4/30), and nothing will work with URI
Rewriting.
Have I  something more to  do ? set TOMCAT_OPS like below, or to copy
the
jsee.jar and jnet.jar in the lib dir ?

Greetings and sorry for the massive questions,
Michael

Marc Saegesser wrote:

> There were two problems that I knew about and both are described in
the bug
> report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578.  One
problem
> is addressed by defining
> java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and
other
> problem was that it wouldn't set the default port correctly for https
URLs.
>
> Both of these bugs have been fixed in beta 4.  If your still seeing a
> problem there must be something else wrong that I haven't seen yet.
One
> thing to note, however, is that there is a known issue with AJP12 that

> prevents URL rewritting from working correctly on ports other than
443.  For
> example, if your using Apache to serve HTTPS on port 8443 then Tomcat
won't
> know that the connection is secure and will think the URL scheme is
actually
> HTTP.  This is a limitation of the AJP protocol and we can't fix it.
The
> AJP13 protocol does not have this problem.
>
> > -Original Message-
> > From: Wolle [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 01, 2001 2:55 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat 3.2.2 beta 4 & mod_ssl & URI
> >
> >
> > Hello,
> > i have one question about the session tracking (URI) with mod_ssl.
> > You have said, that you have fixed it.
> > But in TC3.2.2b4 it isn't fixed, did you mean you fixed it only
> > in the final
> > release ?
> > I think session tracking and mod_ssl is some important thing,
> > that should work
> > together.
> >
> > Please worte back,
> > Michael
> >




Re: TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-03 Thread Wolle

Thanks,
but this should be the old Bug, when you have to make URI Rewriting with
mod_ssl,
like the bug#578, this should be fiex in the new 3.2.2b4 Version, but it
isn't.
I have checked it with this new Version with the ajp12 and ajp13 Protocol
and the new Version of mod_jk (mod_jk-eapi.so and mod_jk-stdapi.so),
but no one will work ;-((

Greetings and thanks,
Wolle

GOMEZ Henri wrote:

> If you could send an example code, I'll try to fix it
>
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .)
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
>
> >-Original Message-
> >From: Wolle [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, May 03, 2001 12:13 AM
> >To: tomcatUser
> >Subject: TC 3.2.2b4 URI Rewriting with mod_ssl
> >
> >
> >I have testet the TC3.2.2b4 now with the ajp13 protocol over the new
> >mod_jk-eapi.so
> >and mod_jk-stdapi.so (release 4/30), and nothing will work with URI
> >Rewriting.
> >Have I  something more to  do ? set TOMCAT_OPS like below, or to copy
> >the
> >jsee.jar and jnet.jar in the lib dir ?
> >
> >Greetings and sorry for the massive questions,
> >Michael
> >
> >Marc Saegesser wrote:
> >
> >> There were two problems that I knew about and both are described in
> >the bug
> >> report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578.  One
> >problem
> >> is addressed by defining
> >> java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and
> >other
> >> problem was that it wouldn't set the default port correctly for https
> >URLs.
> >>
> >> Both of these bugs have been fixed in beta 4.  If your still seeing a
> >> problem there must be something else wrong that I haven't seen yet.
> >One
> >> thing to note, however, is that there is a known issue with
> >AJP12 that
> >
> >> prevents URL rewritting from working correctly on ports other than
> >443.  For
> >> example, if your using Apache to serve HTTPS on port 8443 then Tomcat
> >won't
> >> know that the connection is secure and will think the URL scheme is
> >actually
> >> HTTP.  This is a limitation of the AJP protocol and we can't fix it.
> >The
> >> AJP13 protocol does not have this problem.
> >>
> >> > -Original Message-
> >> > From: Wolle [mailto:[EMAIL PROTECTED]]
> >> > Sent: Tuesday, May 01, 2001 2:55 PM
> >> > To: [EMAIL PROTECTED]
> >> > Subject: Tomcat 3.2.2 beta 4 & mod_ssl & URI
> >> >
> >> >
> >> > Hello,
> >> > i have one question about the session tracking (URI) with mod_ssl.
> >> > You have said, that you have fixed it.
> >> > But in TC3.2.2b4 it isn't fixed, did you mean you fixed it only
> >> > in the final
> >> > release ?
> >> > I think session tracking and mod_ssl is some important thing,
> >> > that should work
> >> > together.
> >> >
> >> > Please worte back,
> >> > Michael
> >> >
> >

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: Memory usage

2001-05-03 Thread Wolle



Hei,
i had the the error with Tomcat 3.2.2b2 and I've started the VM with
-verbose:gc,
so it shows me if the Garbage Collector will work.
his Work was Ok, but doesn't release the memory.
I have change ther Version of TC to 3.2.2b3 and the memory rising has
stopped, and he gives memory back after using !
So try the TC3.2.2b3 or b4
Greetings,
Wolle
Garry De Toffoli wrote:

Hi
to all,
I have in trouble with the memory usage with Tomcat 3.21, on WinNt 2000
and Jdk 1.3 of Sun.
the problem is that any operation does not release the memory occuped;
to control the memory usage I use the Task Manager;
when Tomcat start, the memory used from the process Java is of 9608 K;
when I request a Jsp page that has an error, like a variable not declared,
the memory used is 11868K; if I wait for 1 ay also, this value does not
change, so the memory used is not released,
running a correct Jsp page, the memory used increase, and this is not released
yet;    I
have written a log on the finalize method of my class, and this is called,
so the garbage collector release all my object.
This behavoir is normal? Probably changing the version of Tomcat this problem
may be corrected.
What do you think about this?
Thank you. 






Re: TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-03 Thread Wolle

Hello,
yes, sorry Henri I will discribe it now,
I have wrote some Servlet , which uses the resopnse.encodeURL and
response.EncodeRedirectURL.
They will work fine without ssl, when you disable Cookie, the sessionID
attached to the URL. When you use the same Servlet and the same enviroment
over mod_ssl,
Session Tracking will not be possible.
That is a known Bug ,see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578
Marc has said, that he has fixed in the current release TC3.2.2b4, but it
won't work.
What should I describe now ? The workaround was
1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir.
2.set the TOMCAT_OPTS
=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
3. Modify the HttpServletResponseFacade.java:
retrieving revision 1.6.2.3
diff -u -r1.6.2.3 HttpServletResponseFacade.java
--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
2001/03/06 17:38:13 1.6.2.3
+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
2001/03/20 13:29:41
@@ -353,10 +353,14 @@
return (false);
if (!request.getServerName().equalsIgnoreCase(url.getHost()))
return (false);
-// Set the URL port to HTTP default if not available before
comparing
+// Set the URL port to protocol default if not available before
comparing
 int urlPort = url.getPort();
 if (urlPort == -1) {
-urlPort = 80;
+if("http".equalsIgnoreCase(url.getProtocol())) {
+urlPort = 80;
+} else if ("https".equalsIgnoreCase(url.getProtocol())) {
+urlPort = 443;
+}
 }
if (request.getServerPort() != urlPort)
return (false);
I have made this with TC3.2.2b2 and TC3.2.2b3, and this works.
Then it doesn't matter if you use the ajp12 or ajp13 Protocol
(I have read that this is important to use ajp13)

so please help,
Greetings and thanks for inconvenience,
Wolle

GOMEZ Henri wrote:

> so scould you detail us an example so we could mimic
> to test and fix the problem ?
>
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .)
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
>
> >-Original Message-
> >From: Wolle [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, May 03, 2001 10:57 AM
> >To: [EMAIL PROTECTED]
> >Subject: Re: TC 3.2.2b4 URI Rewriting with mod_ssl
> >
> >
> >Thanks,
> >but this should be the old Bug, when you have to make URI
> >Rewriting with
> >mod_ssl,
> >like the bug#578, this should be fiex in the new 3.2.2b4
> >Version, but it
> >isn't.
> >I have checked it with this new Version with the ajp12 and
> >ajp13 Protocol
> >and the new Version of mod_jk (mod_jk-eapi.so and mod_jk-stdapi.so),
> >but no one will work ;-((
> >
> >Greetings and thanks,
> >Wolle
> >
> >GOMEZ Henri wrote:
> >
> >> If you could send an example code, I'll try to fix it
> >>
> >> -
> >> Henri Gomez ___[_]
> >> EMAIL : [EMAIL PROTECTED](. .)
> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >>
> >> >-Original Message-
> >> >From: Wolle [mailto:[EMAIL PROTECTED]]
> >> >Sent: Thursday, May 03, 2001 12:13 AM
> >> >To: tomcatUser
> >> >Subject: TC 3.2.2b4 URI Rewriting with mod_ssl
> >> >
> >> >
> >> >I have testet the TC3.2.2b4 now with the ajp13 protocol over the new
> >> >mod_jk-eapi.so
> >> >and mod_jk-stdapi.so (release 4/30), and nothing will work with URI
> >> >Rewriting.
> >> >Have I  something more to  do ? set TOMCAT_OPS like below,
> >or to copy
> >> >the
> >> >jsee.jar and jnet.jar in the lib dir ?
> >> >
> >> >Greetings and sorry for the massive questions,
> >> >Michael
> >> >
> >> >Marc Saegesser wrote:
> >> >
> >> >> There were two problems that I knew about and both are
> >described in
> >> >the bug
> >> >> report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578.  One
> >> >problem
> >> >> is addressed by defining
> >> >>
> >java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and
> >> >other
> >> >> problem was that it wouldn't set the default port
> >correctly for https
> >> >URLs.
> >> >>
> >> >> Both of these bugs have been fixed in beta

Re: Memory usage

2001-05-03 Thread Wolle

Hello,
i have tested the Sun VM JDK1.30_02 as Server VM.
When I start my servlets and use the VM with the option -verbose:gc, it
shows,  that the gc will do his work ervery second when you work with the VM.
Sometimes (?) it makes a FULL GC, that gives more memory free, but I don't
know exactly the difference (perhaps it will call finalize first).
I have also testet to make explizit calls like System.gc() or
System.runFinalization(),
it becomes no difference to the memory usage without that call.
Set the TOMCAT_OPTS variable to "-verbose:gc" and you'll see.
Btw you could set the default start option of the SUN VM in /jre/jvm.cfg.

Greetings,
Wolle

William Kaufman wrote:

> Nope.  If you _didn't_ null out the reference, you're guaranteed that it
> _won't_ get garbage-collected; but if you _do_ null it out, you're only
> making it _available_ for garbage collection.
>
> The actual garbage collection only happens when the VM runs out of memory,
> or some unspecified time after calling System.gc().  Or, when the VM just
> plain wants to--the JLS isn't specific about this.
>
> -- Bill K.
>
> > -Original Message-
> > From: Jurrius, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 03, 2001 7:43 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Memory usage
> >
> >
> > Correct me if I'm wrong.  If for instance I want a bean
> > removed knowing that
> > System.gc() does not happen immediately, would setting the
> > bean equal to
> > null force the bean to be removed from memory right away and
> > not have to
> > rely on the garbage collection to eventually take place?
> >
> > Mark
> >
> >
> > -Original Message-
> > From: William Kaufman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 03, 2001 10:07 AM
> > To:   '[EMAIL PROTECTED]'
> > Subject:  RE: Memory usage
> >
> > > That your finalize method is called, doesn't mean that
> > > the garbage collector has released your objects. The
> > > only way to be shure that this happens, is to explicitly
> > > run System.gc().
> >
> > Even that's not sufficient: it just suggests to the VM that
> > garbage-collecting might be a good idea right now.  Any actual garbage
> > collection would take place later, in another thread.
> >
> > And, even when it does happen, that doesn't mean all the memory will
> > necessarily be released to the OS: the VM will hold on to
> > some so that it
> > won't need to go back to the OS on the next allocation.
> >
> > You might want to get a memory profiler (like JProbe) and see
> > where the
> > memory is going.  At the very least, try doing something like,
> >
> >   Runtime rt = Runtime.getRuntime();
> >   System.err.println("Free="+rt.freeMemory()+",
> > total="+rt.totalMemory());
> >
> > often, to see how much memory is actually in use, and how much is just
> > allocated from the OS.
> >
> > -- Bill K.
> >
> >
> > > -Original Message-
> > > From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 03, 2001 5:51 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: AW: Memory usage
> > >
> > >
> > > That your finalize method is called, doesn't mean that
> > > the garbage collector has released your objects. The
> > > only way to be shure that this happens, is to explicitly
> > > run System.gc(). Otherwise it's up to the VM when it will
> > > free the memory. (Sun's JDK per default only releases
> > > memory if otherwise an OutOfMemoryError would occur, so
> > > unless you reach this border the VM will constanly grow)
> > >
> > > See also the options for the JVM:
> > >   -verbose:gc (Any VM)
> > >   -Xincgc (Sun SDK 1.3.*)
> > >   -Xms (Sun + IBM)
> > >   -Xmx (Sun + IBM)
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Donnerstag, 3. Mai 2001 14:34
> > > An: [EMAIL PROTECTED]
> > > Betreff: Memory usage
> > >
> > > 
> > > I have in trouble with the memory usage with Tomcat 3.21,
> > WinNt 2000
> > > and Jdk 1.3 of Sun. the problem is that any operation does
> > > not release
> > > the memory occuped; to control the memory usage I use the
> > > Task Manager;
> > > when Tomcat start, the memory used from the process Java is
> > of 9608 K;
> > > when I request a Jsp page that has an error, like a variable
> > > not declared,
> > > the memory used is 11868K; if I wait for 1 ay also, this
> > > value does not
> > > change, so the memory used is not released,
> > >
> > > running a correct Jsp page, the memory used increase, and
> > this is not
> > > released yet;
> > > I have written a log on the finalize method of my class,
> > and this is
> > > called, so the garbage collector release all my object.
> > >
> > > This behavoir is normal?
> > > Probably changing the version of Tomcat this problem may be
> > corrected.
> > > 
> > >
> >




Re: TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-04 Thread Wolle



GOMEZ Henri wrote:

> >That is a known Bug ,see
> >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578
> >Marc has said, that he has fixed in the current release
> >TC3.2.2b4, but it
> >won't work.
> >What should I describe now ? The workaround was
>
> Fixed by costin in TC 3.3 since 01/04/22 11:56:03

so I have all these things  in TC3.2.2b4, fill it be insert in TC3.2.2 final ?

>
>
> >1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir.
> >2.set the TOMCAT_OPTS
> >=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
> >3. Modify the HttpServletResponseFacade.java:
> >retrieving revision 1.6.2.3
> >diff -u -r1.6.2.3 HttpServletResponseFacade.java
> >--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> >2001/03/06 17:38:13 1.6.2.3
> >+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> >2001/03/20 13:29:41
> >@@ -353,10 +353,14 @@
> >return (false);
> >if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> >return (false);
> >-// Set the URL port to HTTP default if not available before
> >comparing
> >+// Set the URL port to protocol default if not
> >available before
> >comparing
> > int urlPort = url.getPort();
> > if (urlPort == -1) {
> >-urlPort = 80;
> >+if("http".equalsIgnoreCase(url.getProtocol())) {
> >+urlPort = 80;
> >+} else if ("https".equalsIgnoreCase(url.getProtocol())) {
> >+urlPort = 443;
> >+}
> > }
> >if (request.getServerPort() != urlPort)
> >return (false);
>
> That code need to be commited in 3.2.2b4

only this, or the other two step also ?

>
>
> >I have made this with TC3.2.2b2 and TC3.2.2b3, and this works.
> >Then it doesn't matter if you use the ajp12 or ajp13 Protocol
> >(I have read that this is important to use ajp13)
>
> You need ajp13 to get some SSL web-server vars.
>
> >so please help,
>
> You provide a patch which may be included in tomcat and must be
> reviewed by Marc for approval but It seems ok to me and Costin use
> the same (cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade
> HttpServletResponseFacade.java)

thnaks and this will be the last questions about that problem ;-),
Greetings Wolle




Re: TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-04 Thread Wolle


Hello,
sorry I just wake up ;-)
Wolle wrote:

> GOMEZ Henri wrote:
>
> > >That is a known Bug ,see
> > >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578
> > >Marc has said, that he has fixed in the current release
> > >TC3.2.2b4, but it
> > >won't work.
> > >What should I describe now ? The workaround was
> >
> > Fixed by costin in TC 3.3 since 01/04/22 11:56:03
>
> so I have all these things  in TC3.2.2b4, fill it be insert in TC3.2.2 final ?

not fill -> new sentence
so I have to do all these things in TC3.2.2b4, will it be completly insert in
TC3.2.2 final ?

>
>
> >
> >
> > >1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir.
> > >2.set the TOMCAT_OPTS
> > >=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
> > >3. Modify the HttpServletResponseFacade.java:
> > >retrieving revision 1.6.2.3
> > >diff -u -r1.6.2.3 HttpServletResponseFacade.java
> > >--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> > >2001/03/06 17:38:13 1.6.2.3
> > >+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> > >2001/03/20 13:29:41
> > >@@ -353,10 +353,14 @@
> > >return (false);
> > >if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> > >return (false);
> > >-// Set the URL port to HTTP default if not available before
> > >comparing
> > >+// Set the URL port to protocol default if not
> > >available before
> > >comparing
> > > int urlPort = url.getPort();
> > > if (urlPort == -1) {
> > >-urlPort = 80;
> > >+if("http".equalsIgnoreCase(url.getProtocol())) {
> > >+urlPort = 80;
> > >+} else if ("https".equalsIgnoreCase(url.getProtocol())) {
> > >+urlPort = 443;
> > >+}
> > > }
> > >if (request.getServerPort() != urlPort)
> > >return (false);
> >
> > That code need to be commited in 3.2.2b4
>
> only this, or the other two step also ?

only this, or the other two steps also ?


>
>
> >
> >
> > >I have made this with TC3.2.2b2 and TC3.2.2b3, and this works.
> > >Then it doesn't matter if you use the ajp12 or ajp13 Protocol
> > >(I have read that this is important to use ajp13)
> >
> > You need ajp13 to get some SSL web-server vars.
> >
> > >so please help,
> >
> > You provide a patch which may be included in tomcat and must be
> > reviewed by Marc for approval but It seems ok to me and Costin use
> > the same (cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade
> > HttpServletResponseFacade.java)
>
> thnaks and this will be the last questions about that problem ;-),
> Greetings Wolle

thanks and this will be the last questions about that problem ;-),
Greetings Wolle

;-)
thanks for inconvenience
Michael




Re: Tomcat-MySQL connection problem

2001-05-05 Thread Wolle

Hei,
if this doesn't work.
Put the .jar file in your TOMCAT/webapps/YOUR_APPL/WEB-INF/lib.
When you put your .jar file in here, it's only accessible for this
WEB-Application.
When you put it in TOMCAT/lib it's accessible to all your Servlets/JSP.
You could also put it into your JDK/jre/lib/ext directory, so it's available
to all your Java Applicaitons.
I have read something about putting the .jar file in /JDK could cause
some errors.

Greetings,
Michael

Brahmanand Gannur wrote:

> put the  mysql driver( .jar )  into the lib directory of the TOMCAT and
> restart the tomcat
> hope this helps
>
> -Original Message-
> From: Angela Stempfel [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 05, 2001 6:06 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat-MySQL connection problem
>
> Hi all,
>
> The past hours I tried to set up Tomcat on my local Win2000 box. I've
> installed the lastest MySQL package and also the latest Tomcat version I
> got.
>
> After I've read the manual of the JDBC Driver I was able to set it up
> that I can connect to MySQL with my short Java Class I wrote. This class
> simply creates some tables in MySQL, so far so good.
> Afterwards I tried to use exactly the same way of connecting to MySQL in
> my JSP Files, again using Java to connect to MySQL. But it doesn't
> matter how I try to do it, I always get the
> "javax.servlet.ServletException: No suitable driver..." Exception.
>
> I connect like this:
>
>try
> {
> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
> }
>
> catch(Exception e)
> {
> System.err.println("Unable to load driver.");
> e.printStackTrace();
> }
>
> con =
> DriverManager.getConnection("jdbc:mysql://localhost/horse");
>
> As I said this *works* if I do that with a simple Java test-Class, but
> not after I try to do it in Tomcat. Classpath should be correct, at
> least I double checked it about 100 times. The Java files I use are in a
> package, could that be a problem? The test files are not in the package
> (to be honest, I don't really understand this package stuff :-)
>
> I've also tried to add the port (3306 which seems to be default port in
> MySQL) after localhost but this doesn't help. Is there a way to check if
> the port is really used in Windows?
>
> I'm really running out of ideas now, I checked all the information I
> found, checked the web on other mailinglists (google rulez) and every
> thing I tried did not help so far. So any suggestions are very welcome
> :-)
>
> thanks in advance
>
> Angela




Re: Tomcat-MySQL connection problem

2001-05-05 Thread Wolle

Hello,
try the mm.mysql-2.0.4-bin.jar file, not the source file.

Greetings,
Michael

Angela Stempfel wrote:

> Brahmanand Gannur wrote:
>
> > put the  mysql driver( .jar )  into the lib directory of the TOMCAT and
> > restart the tomcat
> > hope this helps
>
> I now copied the mm.mysql-2.0.4-src.jar to the lib directory of TOMCAT and
> restarted it. However, it did not help as well. Is there any way to debugg
> the problem to get more information where exactly it fails?
>
> thanks
>
> Angela







Re: Tomcat-MySQL connection problem

2001-05-05 Thread Wolle

How do you create an Instance of this driver ?
Do you use the static call class.forName(driver) ?
Try the extend it with class.ForName(driver).newInstance(),
this must be done on some VM .

Greetings,
Michael

Wolle wrote:

> Hello,
> try the mm.mysql-2.0.4-bin.jar file, not the source file.
>
> Greetings,
> Michael
>
> Angela Stempfel wrote:
>
> > Brahmanand Gannur wrote:
> >
> > > put the  mysql driver( .jar )  into the lib directory of the TOMCAT and
> > > restart the tomcat
> > > hope this helps
> >
> > I now copied the mm.mysql-2.0.4-src.jar to the lib directory of TOMCAT and
> > restarted it. However, it did not help as well. Is there any way to debugg
> > the problem to get more information where exactly it fails?
> >
> > thanks
> >
> > Angela




Ajp13 with mod_jk and mod_jk-eapi

2001-05-05 Thread Wolle

Hello,
I hae an error, which will occure, when I refresh in the Web Client is
too fast,
Tomcat will throw an Error (or better mod_jk ?), which popup on stdout:
->
java.net.SocketException: Datenübergabe unterbrochen (broken pipe):
Datenübergabe unterbrochen (broken pipe)
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at
org.apache.tomcat.service.connector.TcpConnector.receiveFully(TcpConnector.java:150)

at
org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnector.java:121)

at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:146)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

at java.lang.Thread.run(Thread.java:484)

When I do the same procedure with the ajp12 Protocol no error will
occurs,
or better, it would be shown (?)

Is there some Workaround, or a Fix ?
I have tried this with the newest mod_jk-eapi.so (04/30) and an older
one.
Every time the same result.

Greetings,
and thanks for inconvenience,
Michael

--




Threads

2001-05-05 Thread Wolle

Hello all wise guys,
Could I manange the number of Thread that Tomcat will creat ?
Is there an  Option in the server.xml (somthing like max_thread) ?
when yes, how do I configure this.

Greetings,
Michael




Re: Threads

2001-05-06 Thread Wolle

Hei,
thanks, that was exactly what I mean

Greetings,
Michael
P.S. Exists some doku about this features ?

[EMAIL PROTECTED] wrote:

> hi ;
>
> u can use it like that in your server.xml
>
>  
>  name="handler"
>
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
>
>  name="port"
> value="8007"/>
>  name="max_threads"
> value="30"/>
>  name="max_spare_threads"
> value="20"/>
>  name="min_spare_threads"
> value="5" />
>
> 
>
> I think this is what u want
> -Original Message-
> From: Wolle [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 06, 2001 3:52 AM
> To: tomcatUser
> Subject: Threads
>
> Hello all wise guys,
> Could I manange the number of Thread that Tomcat will creat ?
> Is there an  Option in the server.xml (somthing like max_thread) ?
> when yes, how do I configure this.
>
> Greetings,
> Michael

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: TC 3.2.2b4 URI Rewriting with mod_ssl

2001-05-06 Thread Wolle

Hello,
I have found out, how it will works.
The code is insert in the TC beta4 Code,
but you still have to insert the jnet.jar and jsse.jar file in th TC/lib dir.
You have also set the TOMCAT_OPTS like below and then
URI-Rewriting with mod_ssl works...

have a nice day,
Michael

GOMEZ Henri wrote:

> >That is a known Bug ,see
> >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578
> >Marc has said, that he has fixed in the current release
> >TC3.2.2b4, but it
> >won't work.
> >What should I describe now ? The workaround was
>
> Fixed by costin in TC 3.3 since 01/04/22 11:56:03
>
> >1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir.
> >2.set the TOMCAT_OPTS
> >=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
> >3. Modify the HttpServletResponseFacade.java:
> >retrieving revision 1.6.2.3
> >diff -u -r1.6.2.3 HttpServletResponseFacade.java
> >--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> >2001/03/06 17:38:13 1.6.2.3
> >+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java
> >2001/03/20 13:29:41
> >@@ -353,10 +353,14 @@
> >return (false);
> >if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> >return (false);
> >-// Set the URL port to HTTP default if not available before
> >comparing
> >+// Set the URL port to protocol default if not
> >available before
> >comparing
> > int urlPort = url.getPort();
> > if (urlPort == -1) {
> >-urlPort = 80;
> >+if("http".equalsIgnoreCase(url.getProtocol())) {
> >+urlPort = 80;
> >+} else if ("https".equalsIgnoreCase(url.getProtocol())) {
> >+urlPort = 443;
> >+}
> > }
> >if (request.getServerPort() != urlPort)
> >return (false);
>
> That code need to be commited in 3.2.2b4
>
> >I have made this with TC3.2.2b2 and TC3.2.2b3, and this works.
> >Then it doesn't matter if you use the ajp12 or ajp13 Protocol
> >(I have read that this is important to use ajp13)
>
> You need ajp13 to get some SSL web-server vars.
>
> >so please help,
>
> You provide a patch which may be included in tomcat and must be
> reviewed by Marc for approval but It seems ok to me and Costin use
> the same (cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade
> HttpServletResponseFacade.java)






Linux Startscript

2001-05-06 Thread Wolle

Hello,
why is there no startscipt integrated in TC ?
The server should normals run when the server is on.
If you don't use the mod_jk.conf-auto, it doesn't matter if apache start
bevor or after tomcat.

Here is a simple Linux start/stop script to insert in /etc/rc.d/init.d
#!/bin/sh
# description: Start Tomcat 3.2.2b4 for Apache


case "$1" in
'start')
 /usr/local/jakarta-tomcat-3.2.2b4/bin/startup.sh
 touch /var/lock/subsys/tomcat
 ;;
'stop')
 /usr/local/jakarta-tomcat-3.2.2b4/bin/shutdown.sh
 rm -f /var/lock/subsys/tomcat
 ;;
*)
 echo "Usage: $0 { start | stop }"
 ;;
esac
exit 0

--


Greetings,
Michael




My growing memory problem resolved

2001-05-06 Thread Wolle

Hello ,
i have posted for a few day's a problem thats the Memory usage will
extremly grow up when I refresh a page very often
The Problem was, that I creat a "heavy memory" Object on each refresh.
Normally I have 81 processes run at all, when execute the "stress-test"
the processcount will rise till ~ 230. And each new Prcoesses will creat
a new Object.
When I stop the stress-test, the processcount becomes normal (~ 100) ,
but the memory usage won't fall.
But the new created Object have now refernces that points to them.
But why they don't becomes free  My code is somthing like this:

public class servlet1 extends HttpServlet{
..
...
..
..
  public void doPost(HttpServletRequest request,HttpServletResponse
response)
  throws IOException{
try{
   HeavyObject ho = new HeavyObject();
}
finally{
   ho = null; // for testing implementet, but this gives the
memory not free, also
}

  }
}

Is this a Bug in Tomcat ? Or is it a Bug from me ? Or som Java
misunderstood ?
Why will the Object not becomes free, when some of the Threads will be
closed ,
and the only reference is in the closed Thread ?


Greetings,
Michael




Re: mod_ssl breaks response.encodeURL()? !SOLUTION!

2001-05-06 Thread Wolle

Hello,
in the TC3.2.2b4 version you don't have to patch the
HttpServletResponseFacade.java, it's already implemented
you must only do this:
1. copy  jnet.jar and jsse.jar in your TC/lib dir
2. set
TOMCAT_OPTS=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

Greetings,
Michael

Jeff Kilbride wrote:

> Has this fix been added to 3.2.2? I seem to remember seeing that it had
> been.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Mark Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 3:50 PM
> Subject: Re: mod_ssl breaks response.encodeURL()? !SOLUTION!
>
> > Thanks to a tip from [EMAIL PROTECTED], I've got this working on
> Tomcat
> > 3.2.1 with gnu/linux+apache+mod_ssl.
> >
> > Here's HOWTO:
> > 1. Get jsse-1.0.2-do.zip and unpack. In lib/ are three jars. Put 'em in
> your
> > CLASSPATH.
> > 2. Patch:
> >
> $JAKARTA_HOME/jakarta-tomcat/src/share/org/apache/tomcat/facade/HttpServletR
> esponseFacade.java
> >
> > with:
> >
> > return (false);
> > if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> > return (false);
> > -// Set the URL port to HTTP default if not available before
> > comparing
> > +// Set the URL port to protocol default if not available before
> > comparing
> >  int urlPort = url.getPort();
> >  if (urlPort == -1) {
> > -urlPort = 80;
> > +if("http".equalsIgnoreCase(url.getProtocol())) {
> > +urlPort = 80;
> > +} else if ("https".equalsIgnoreCase(url.getProtocol())) {
> > +urlPort = 443;
> > +}
> >  }
> >
> > 3. compile the class file to
> >
> $TOMCAT_HOME/classes/org/apache/tomcat/facade/HttpServletResponseFacade.clas
> s
> >
> > 4. Done!
> >
> > Mark Johnson wrote:
> >
> > > My app uses the HttpSession interface. In order to handle client
> > > browsers which don't accept cookies, I used the
> > > response.encodeURL("myURL") method.
> > >
> > > Using apache without mod_ssl, and using a browser set to deny cookies, I
> > > detect the method in action when the jsessionid is appended to the
> > > URL's. Everything is dandy!
> > >
> > > However, when I run apache with mod_ssl, it is as if the method has not
> > > been invoked.
> > >
> > > I speculate that this effect is related to mod_ssl's use of another
> > > port, 443. Perhaps response.encodeURL("myURL") only works on the port
> > > number in httpd.conf's Port directive.
> > >
> > > Can anyone explain what's going on? Better yet, how do I solve the
> > > problem?
> > >
> > > TIA
> >

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: My growing memory problem resolved

2001-05-07 Thread Wolle

Hei Eric,
thank you for your reply,
i will answer your questions below:

eric chacon wrote:

> Wolle,
>
> I think the problem may lie in your JVM: Setting a reference to the object
> to null does not automatically free the memory--it just allows the garbage
> collector to clear it whenever it runs.
>
> In many (most?) JVMs, garbage collection is single-threaded.  It may run at
> a fairly low priority.

this was tested with JDK1.3.0_02 (Hotspot Server/client) and IBMJava2_1.3

>
>
> Therefore, under stress testing, it is possible for you to eat up a lot of
> memory before the garbage collector has a chance to pool it.

Yes, of course, I gave it a half day an nothing becomes free.
I had also see, that all process was cloesd (tool top under Linux).

>
>
> One way to test this would be to let your process run under high load, and
> then stop your load and watch over time to see if the memory is released.
>
> If, in fact, it is a garbage collection problem, you have a couple of
> choices: 1) upgrade your JVM and see if that helps.  2) pool your Heavy
> Objects:  create a store of them, and re-use them.
>

I have done something else,
I have synchronize the Object and use create only on Object:

class Servlet extends HttpServlet{
 HeavyObject  ho = null;

  public doPost(request,response) throws IOException{
   if (ho != null){
 ho = new HeavyObject();
   }
  }
}

that works,
so the Object will only created once, but I have to synchronize the Object.


>
> If you're doing load balancing/workload management, this might cause some
> problems (you'll need to persist your objects to a common database), but if
> everything's running on one machine, pooling might be an easy, convenient
> solution.
>
> Cheers,
> Eric
>

thanks and Greetings,
Michael

>
> >From: Wolle <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: tomcatUser <[EMAIL PROTECTED]>
> >Subject: My growing memory problem resolved
> >Date: Mon, 07 May 2001 03:45:55 +0200
> >
> >Hello ,
> >i have posted for a few day's a problem thats the Memory usage will
> >extremly grow up when I refresh a page very often
> >The Problem was, that I creat a "heavy memory" Object on each refresh.
> >Normally I have 81 processes run at all, when execute the "stress-test"
> >the processcount will rise till ~ 230. And each new Prcoesses will creat
> >a new Object.
> >When I stop the stress-test, the processcount becomes normal (~ 100) ,
> >but the memory usage won't fall.
> >But the new created Object have now refernces that points to them.
> >But why they don't becomes free  My code is somthing like this:
> >
> >public class servlet1 extends HttpServlet{
> > ..
> >...
> >..
> >..
> >   public void doPost(HttpServletRequest request,HttpServletResponse
> >response)
> >   throws IOException{
> > try{
> >HeavyObject ho = new HeavyObject();
> > }
> > finally{
> >ho = null; // for testing implementet, but this gives the
> >memory not free, also
> > }
> >
> >   }
> >}
> >
> >Is this a Bug in Tomcat ? Or is it a Bug from me ? Or som Java
> >misunderstood ?
> >Why will the Object not becomes free, when some of the Threads will be
> >closed ,
> >and the only reference is in the closed Thread ?
> >
> >
> >Greetings,
> >Michael
> >
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com






Re: hotspot jvm crashes in production

2001-05-08 Thread Wolle

Hello Jin,

You could set the client /server option in your /JDK/jre/lib/jvm.cfg.
There are some lines, which stats with -.
The first of this line is your default VM startoption.
But you can't set here other options like -verbose:gc or so ,
this could you set with the TOMCAT_OPT environment variable befor you start
Tomcat. You could set the -client or -server option here also, when you don't
want to change it permanent.
You could check your default startoption with java -version (the client is
default).

Greetings,
Wolle

Byung Jin Chun wrote:

> it is an argument to the jvm which you can set in the tomcat startup script
>
> > -Original Message-
> > From: Java Poop [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 07, 2001 8:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: hotspot jvm crashes in production
> >
> >
> > Where do I set the -client option?
> >
> > JP
> >
> > - Original Message -
> > From: "Thomas Bezdicek" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, May 04, 2001 1:20 AM
> > Subject: AW: hotspot jvm crashes in production
> >
> >
> > > it is a known bug in the hotspot-engine, there are numerous articles
> > > about that in the bugparade.
> > > Workaround: use -client
> > >
> > > regards, tom
> > >
> > > > -Ursprüngliche Nachricht-
> > > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
> > von Peter
> > > > Mutsaers
> > > > Gesendet: Donnerstag, 3. Mai 2001 23:39
> > > > An: [EMAIL PROTECTED]
> > > > Betreff: Re: hotspot jvm crashes in production
> > > >
> > > >
> > > > >> "Ludovic" == Ludovic Maitre
> > <[EMAIL PROTECTED]> writes:
> > > >
> > > > Ludovic> I have the same problem with exactly the
> > same software
> > > > Ludovic> configuration and i have no answer.
> > > >
> > > > Ludovic> PS : Are you using the Hotspot JVM with the -server
> > > > Ludovic> switch ?
> > > >
> > > > I have the same problem too, but only with the -server option.
> > > >
> > > >
> > > > Ludovic> Java Poop wrote:
> > > > >>
> > > > >> Hi -
> > > > >>
> > > > >> We have recently moved our production site to use JSPs with
> > > > >> Tomcat 3.2.1/Apache 1.3.17/Sun JDK 1.3.0/Solaris 2.6. After
> > > > >> running for a couple of hours, our JVM crashes with the
> > > > >> following error:
> > > > >>
> > > >
> > > > --
> > > > Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
> > > > [EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.3-stable
> > >
> > >
> >




Re: Servlets & threads

2001-05-08 Thread Wolle



eric chacon wrote:

> It is my understanding that each user has a thread, and unless you
> synchonize your servlet methods, each user who is in your servlet will use
> the same JDBC connection.
>
> If you created a connection inside you doGet() method, then you would have 1
> connection per thread.

But this could cause a memory problem, when some user calls this Servlet very
often, and you had no limit for your connections to the Database.
So better use a ConnectionPool.

Greetings,
Michael


>
>
> Whether this works correctly, depends on your JDBC driver, database, etc,
> but I wouldn't suggest you rely on that (and no matter what, it's going to
> be slow).
>
> Typically, a pool of connections is used. Tomcat does not have connection
> pooling built in, but you can download several open-source solutions.
>
> If you're running Tomcat with a J2EE EJB server such as JBoss, then
> connection pooling is part of *that* package.
>
> Hope this helps,
>
> E.
>
> >From: "Gerry Duhig" Reply-To: [EMAIL PROTECTED] To: Subject:
> >Servlets & threads Date: Tue, 8 May 2001 20:55:23 +0100
> >
> >I have written a Java servlet that seems to work quite well but I am
> >confused about the exact context in which it runs.
> >
> >At initialisation it creates a JDBC connection and uses that to connect to
> >a remote Oracle Database on each activation of the servlet. The connection
> >remains open until the servlet closes down.
> >
> >I can see that JServ and Tomcat (I am experimenting with both) create
> >multiple threads, so presumably my servlet can handle multiple simultaneous
> >requests? But what about that one JDBC connection.
> >
> >Is there one per thread?
> >
> >Is there protection so that only one thread can use the connection at a
> >time?
> >
> >Or should I have created some protection to prevent clashes?
> >
> >Its very unclear and I'd appreciate a few clues as to the real situation.
> >
> >Regards
> >
> >Gerry
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com

--
__




Apache and Tomcat on different Servers

2001-05-13 Thread Wolle

Hello ,
could  Apache and  Tomcat with mod_jk run on different Servers ?
It seems to be possible, but how ?
How do I have to configure the httpd.conf ?
something like this :


--
__
Greetings,
Wolle





Tomcat and Apache on diffenet machines

2001-05-15 Thread Wolle

Hello all,
Is it possible to use Apache with mod_jk to a extrenal Tomcat ?
I have found something like this for the mod_jserv (to insert in the
httpd.conf)
 ApJServMount /examples ajpv12://hostname:port/root

Is it also with mod_jk ?

JkMount /test/* ajp12://test.domain.com:8007/root
and
JkMount /test/* ajp13://test.domain.com:8009/root

?

Has someone tested this behavior ?

Greetings,
Michael




AW: Virus Waring

2001-05-15 Thread Wolle

Hello all,

i have a question about the Virus,
is the Virus the real Virus, or will all the waring messages be the
virus ? ;-))
or what is the more dangerous virus ?

Greetings,
Michael




Re: TR: Undelivered Mail Returned to Sender

2001-05-16 Thread Wolle

To me, too.Ervery time I post something.

Greetings,
Wolle

[EMAIL PROTECTED] wrote:

> yeah, as expected, it's happening to me too.
>
> Bruno Crapart <[EMAIL PROTECTED]> wrote ..
> > Why ?
> > Each time I sent a message i receive this mail, I informed postmaster =
> > of
> > this but no change ...
> > Is anybody have the same problem ?
> >
> > -Message d'origine-
> > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Envoy=E9 : mercredi 16 mai 2001 13:58
> > =C0 : [EMAIL PROTECTED]
> > Objet : Undelivered Mail Returned to Sender
> >
> >
> > This is the Postfix program at host mail-in.namezero.com.
> >
> > I'm sorry to have to inform you that the message returned
> > below could not be delivered to one or more destinations.
> >
> > For further assistance, please send mail to 
> >
> > If you do so, please include this problem report. You can
> > delete your own text from the message returned below.
> >
> >   The Postfix program
> >
> > <[EMAIL PROTECTED]>: host
> > inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User
> > unknown




Re: Creating WAP sites

2001-05-16 Thread Wolle

Hello,

Laurence Mayer wrote:

> Can someone please tell me how to unsubscribe.
>
> I have emailed : [EMAIL PROTECTED] 3 x !!

from where, you must do this from the email adress that you have subscribe
from

Greetings,
Wolle

>
>
> Thanks
> Laurence
>
> -Original Message-
> From: tomcat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 4:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Creating WAP sites
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>  executed
> 
> Not necessarily true - you can use wml script to do simple client
> side scripting - very handy to reduce connecting to sites to a
> minimum.
>
> Cheers,
>
> Tom
>
> Tom Raftery
> Zenith Solutions Ltd
> Unit 6, 4 Dean Street, Cork, Ireland.
> phone: +353-21-4318300
> mobile: +353-87-2506527
> web: www.zenith.ie <http://www.zenith.ie>
> WAP: www.zenith.ie/wap <http://www.zenith.ie/wap>
> email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> - -Original Message-
> From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]]
> Sent: 16 May 2001 14:29
> To: [EMAIL PROTECTED]; Daniel de Almeida Alvares
> Subject: Re: Creating WAP sites
>
> Sure, i've done it
>
> Instead of having your servlets or jsp outputting html or xml in
> out.println(""); have it output wml and don't forget to change the
> content-type to text/wml
> About forms, they're really simple, but I forgot the syntax, wml is
> very
> basic, you won't have trouble making them.
> I recommend you get a wap browser (download.com is a good start) to
> test
> your servlets/jsp
>
> cheers, AD
>
> - - Original Message -
> From: "Daniel de Almeida Alvares" <[EMAIL PROTECTED]>
> To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet
> APITechnology." <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 3:08 PM
> Subject: Creating WAP sites
>
> > Hi,
> > My name is Daniel and I live in Brazil.
> > I have a web site using JSP and Servlets. It runs on Apache with
> > Tomcat
> and
> > mySQL database.
> > I am planning to create an extension of this site using WML (Wap
> > Technology). I would like to how can I deploy the WML pages using
> > the technology above ?
> > Is it possible to create "forms" with WML that acesses my Servlets
> > 
> >
> > Regards and thanks.
> >
> > Daniel
> > ___
> > Daniel de Almeida Alvares
> > Santos - SP - Brasil
> > [EMAIL PROTECTED]
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBOwKJrWy/uj7eqtwJEQLN2QCgme9vtLLmNsG4LFxFrCINIIc1kAYAoLFG
> fHFBuPlOhSrK4T+L8P7d821m
> =3QFP
> -END PGP SIGNATURE-
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify [EMAIL PROTECTED]






Re: Use Apache htpasswd generated password file in Tomcat's servlets

2001-05-21 Thread Wolle

Hello Henry,
To decode the password is the wrong way,
You have to build the passwort with the given login.
Then you have to compare it with the htpasswd file.
You could simple build a crypt(3) encrypted passsword with the external class
from www.cryptix.com.
There is a methode called crypt.
You have the give it the salt from your allready encrypted password out of the
htpasswd file (the first 2 Chars).

Greetings,
Wolle

Henry DU wrote:

> I want to use password file ( generated by htpasswd program ) in my
> form-based servlets. I can process the user login information
> (user/password) from web page. But how can I use the htpassword since it was
> encrypted?
> Is it possible to decode the htpassword file for APACHE web server and use
> it in servlets?
>
> Thanks a lot for any suggestions
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com






Re: Connector

2001-05-28 Thread Wolle

hello Andrea,
yes you could do this,
it's only neccesary when you use tomcat as stand alone web server,
when you use it with apache or so, it communicates over ajp12 or ajp13 (Port
8007 /Port 8009)
the only thing you don't do disable is the ajp12, when you use the ajp13,
because it is needed to shutdown tomcat.

Greetings,
Michael

Andrea Mari wrote:

> Hi,
>
> I've a simple question. If I use Tomcat 3.2.1 with Apache, can I disable the
> http connector on port 8080 without any problems?
>
> I'm not sure.
>
> Thanks
> Andrea

--
__




Re: a newbie question...

2001-06-02 Thread Wolle



Hello,
try it with your first URL but without the 's' on servlet, like below:
http://server:8080/mycontext/servlet/HelloWorldServlet2
I
think that's is..
greetings;
Wolle
"Gilson do N. D'Elrei" wrote:

hello
all,I have made a simple
servlet (HelloWorldServlet2) and added it on my WEB-INF/Classes context.
When I try to execute it using the url below: http://server:8080/mycontext/servlets/HelloWorldServlet2 i
received "not found (404)" error. I tried also: http://server:8080/mycontext/HelloWorldServlet2http://server:8080/mycontext/WEB-INF/Classes/HelloWorldServlet2but
I continue to receiving the same error.My
tomcat installation is ok, cos i get to execute the examples servlet files
and others.  I
have added these lines in the server.xml file
docBase="webapps/mycontext"
debug="0"
reloadable="true" >

and updated these lines in the tomcat.conf 
(only more a trying... )
## Context mapping - you need
to "deploy"
# ( copy or ln -s ) the context into htdocs
##
ApJservMount /mycontext/servlet /root

AllowOverride None
deny from all

thanks in advance. 

--





Re: Tomcat 3.2.1 : Session timeout bug ??

2001-06-05 Thread Wolle

Hello,
try to set the MySession.setMaxInteracticeInterval(sec), for me it works so.

Greetings,
Wolle

Hervé Guidetti wrote:

> Hi all,
>
> I'm using tomcat 3.2.1. In the tomcat/conf/web.xml file, I changed the
> session-timeout to 60 (meaning 60 minutes).
> If, in my servlet, I write : mySession.getMaxInactiveInterval() it returns
> 1800 (meaning 30 minutes).
>
> Is that a bug ?
> Do I miss something ?
> Is there a workaround ?
>
> Thanks for your help.
> Hervé

--





Re: How smart...

2001-06-05 Thread Wolle

Hey,
what do you mean, please don't send so stupid mesage to me and of course not
to the mailing list.
When you can't get out of the list, any reason i don't know,
it will bring nothing to spam the mailing list (which email you will get
also).
So when you are still in the list, you are also after a couple of "TAKE ME
OFF" emails
in the list, nothing will change...

in that way,
Michael

Jan Labanowski wrote:

> Do you think you are smart?
>
> On Tue, 5 Jun 2001, Johnathan Smith wrote:
>
> > PLEASE TAKE ME OFF THIS LIST!!!
> >
> >
> >
> > --- Wolle <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > > try to set the
> > > MySession.setMaxInteracticeInterval(sec), for me it
> > > works so.
> > >
> > > Greetings,
> > > Wolle
> > >
> > > Hervé Guidetti wrote:
> > >
> > > > Hi all,
> > > >
> > > > I'm using tomcat 3.2.1. In the tomcat/conf/web.xml
> > > file, I changed the
> > > > session-timeout to 60 (meaning 60 minutes).
> > > > If, in my servlet, I write :
> > > mySession.getMaxInactiveInterval() it returns
> > > > 1800 (meaning 30 minutes).
> > > >
> > > > Is that a bug ?
> > > > Do I miss something ?
> > > > Is there a workaround ?
> > > >
> > > > Thanks for your help.
> > > > Hervé
> > >
> > > --
> > >
> > >
> >
> >
> > =
> > If your into Body For Life, check out
> > http://clubs.yahoo.com/clubs/bodyforlifestatenislandny
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
>
> Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
> Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
> 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
> Columbus, OH 43212-1163  |http://www.osc.edu/

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]





Re: Should we do moderation on this mailinglist??

2001-06-07 Thread Wolle


Hello,
what's with an Forum, like phpBB http://www.phpBB.com ,
it could be moderated from a couple of persons, and a seach engine
is also included and it's Free. It uses the MySQL Database.
Greetings,
Wolle
"Williamson, James" wrote:
 
Please help!!
Time to add my two cents, my thoughts are this list needs
to be moderated as the pollution of utter ignorance/laziness/repeat posters/"please
helps" is way out of control (strictly IMHO).
So what about a moderated list with multiple moderators
operating in a round robin fashion, if it's not dealt with it in say 2
hours, it gets forwarded to another moderator. As for getting people to
do it, I'm sure there's a few power hungry people out there who would enjoy
playing judge and jury (myself obviously excluded). Rejection could be
for all the above reasons.
The alternative is to got for the elitist approach, a
tomcat-users super group, 5 stupid postings and you're out... Then again
I think I'm getting a bit too tongue in cheek.
Regards,
James
-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 00:19
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??
On Wed, 6 Jun 2001, Gary Dale wrote:
> I'd prefer to see a news group rather than this mailing
list.
> Something like comp.infosystems.www.servers.apache.jakarta
or just
> comp.infosystems.www.servers.jakarta would be appropriate.
For that
> matter, there should be comp.infosystems.www.servers.apache
group
> too.  The ms-windows and unix subgroups of www.servers
aren't very
> appropriate since many of the issues relating to Apache
are common
> to multiple OSs.
[ ... ]
Seems to me, having a newsgroup is fine, but I don't see
why it needs
to be an either/or thing.  There is a procedure
for creating
newsgroups, and if anyone wants to get the process started
for a
tomcat/jakarta/apache newsgroup (or newsgroups), they're
certainly
welcome to.  But regardless of whether that happens
(and/or succeeds,
which is certainly not a sure thing), there's no reason
the mailing
list can't go on.
Regarding moderating the mailing list, I don't think that
is feasible.
For one thing, as some have suggested, it would take
a lot of work, so
it would be hard to find people to do it.  Plus
philosophically, I'm
not sure we really want to go that route.  And of
course, there is a
list owner (that exists as an entity, if not a person
or persons, even
if they don't show themselves around here much :-), and
they'd get
final say it what happens with this list.  That
may be the biggest
point, because there has been no input from any "owner"
on this list
for a while on any of these issues (although they are
on record as
saying a newsgroup is a bad idea, mostly because many
people don't
have access to newsgroups because of firewalls, proxies,
and such).
Also, no disrespect intended, but I'm not sure it's such
a good idea
to try to come up with sweeping ideas to "improve" a
mailing list
after having only been subscribed a few weeks. 
That's not very long
to get to know the ins and outs of a mailing list, how
things ebb and
flow, what's been suggested/tried or not, etc.
Anyway, of the recent ideas suggested, I think the one
that has the
best combination of merit/feasibility is dividing up
the list into
sub-lists.  This would have to be done carefully,
of course, to
actually improve the situation.  I'd be willing
to give this a go
(although it might be the kind of thing where it would
be good to have
more than one person involved).  The first step
though, would be to
try to get in contact with the list owner and see if
they would go for
it.  I'll try doing that.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
 
**
This e-mail (including any documents which may accompany
it) contains
information which is confidential and may also be
privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note
that any form of
distribution, copying or use of this e-mail or the
information in it
or attached to it is strictly prohibited and may
be unlawful.
If you have received this e-mail in error please
notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44
(0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer
do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not
relate to the
business of Windsor plc and/or subsidiary and/or
associated companies
shall be treated as neither given or endorsed by
it.
**

--
__
Gruss,
Wolle
---
 
[EMAIL PROTECTED]
 



web.xml (same config for more classes)

2001-02-08 Thread Wolle

Hello,

i'm a newbie and i think it's not such a difficultly question.
I have some servelet, all in one Package.
But, of course other class names.
How could I give them the same init Paramter out of the web.xml File ?
Could I use wildcarts or so ?
Or could I wrote more Filenames in the  and
 tag ?




File looks like :

  

verwaltungsservlet.StartUp


verwaltungsservlet.StartUp


..
.


 
..




Thank you for inconvenience,
Michael


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




One context in web.xml for a lot servlets

2001-02-10 Thread Wolle

Hello,

i have some question about the Context of  a Servlet.
I've build a package with lot of servlets.
Now i want to share the context in the web.xml File.
Is it possible, and hoq could i make this.
Perhaps when I only use the Packagename w/o the explizit class name ???
When I have to set the same parameter for each class, it blows up the
web.xml and the error probability will be grow up..

Thank you for inconvenience,
Michael



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




URI Rewrtigning with mod_SSL

2001-03-28 Thread Wolle

Hello ,
I have wrote some Java Servlets, that works with Session Tracking.
I use the response.encodeURL Methode for it.
 when the client has disabled cookies, the jsessionID is suffixed. Thats

fine ;-)
 this will work with Tomcat , and Tomcat over Apache. Now, when I User
mod_ssl for the connection,  the jsessionID is gone, an no session
traking is possible without cookies.
My System is : Apache 1.3.17-10, jdk 1.3.0 ,mod_ssl-2.7.1-0,
jakarta-tomcat 3.2.1 and I've tried jakarta-Tomcat3.2.2b2

Has someone the same experience, some workaround or so ??

plz write brack, it's urgently and very important,

thank you for inconvenience,
Michael
[EMAIL PROTECTED]






SSL and URI-Rewriting

2001-03-29 Thread Wolle


Hello ,
I have wrote some Java Servlets, that works with Session Tracking.
I use the response.encodeURL Methode for it.
 when the client has disabled cookies, the jsessionID is suffixed. Thats

fine ;-)
 this will work with Tomcat , and Tomcat over Apache. Now, when I User
mod_ssl for the connection,  the jsessionID is gone, an no session
traking is possible without cookies.
My System is : Apache 1.3.17-10, jdk 1.3.0 ,mod_ssl-2.7.1-0,
jakarta-tomcat 3.2.1 and I've tried jakarta-Tomcat3.2.2b2 (with mod_jk
and ajp13)

Has someone the same experience, some workaround or so ??

plz write brack, it's urgently and very important,

thank you for inconvenience,
Michael
[EMAIL PROTECTED]




Re: Bugs or what ???

2001-03-29 Thread Wolle

Hei,
try a simple return;
greetings wolle

Daniel K wrote:

> >What do you expect System.exit(0) to do?
>
> First I thought  I could  exit directly from that line. (Like syntax "exit"
> in PHP)
> So what shoud I do to exit from jsp ?
>
> >It tells the current VM to end. So it ends
> >and the tomcat inside the VM dies to.
>
> So It's normal right ?
>
> > -Ursprüngliche Nachricht-
> > Von: Daniel K [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 29. März 2001 05:37
> > An: [EMAIL PROTECTED]
> > Betreff: Bugs or what ???
> >
> >
> > Hi,
> >
> > I put "<% System.exit(0); %> in my jsp file and my tomcat
> > stop working ( I
> > have to start it again ). Is this bugs or ??
> >
> > spec :
> > - Tomcat 3.2.1
> > -RH 7
> > -jdk 1.3 (Sun)
> >
> >






Servlets and mod_jk problem II

2001-03-29 Thread Wolle

Hello everyone,
How could I proof, which Protokoll is been used on a connection `?

Greetings
Wolle

"John P. Dodge" wrote:

> Shouldn't this line be:
>
> JkMount /apo/servlet/* ajp13
>
> On Thu, 29 Mar 2001, Kyle Tippetts wrote:
>
> >
> > * I'm using mod_jk, so I include a customized mod_jk.conf file in apache's
> > httpd.conf. Inside the mod_jk.conf file, my context information is set up as
> > follows:
> >   Alias /apo "/opt/jakarta-tomcat-3.2.1/webapps/apo"
> >
> >   JkMount /apo/servlet* ajp13
> >   JkMount /apo/*.jsp ajp13
> >
> >
>
> ----
> "Mon aeroglisseur est plein d'anguilles"
>
> John P. Dodge
> Boeing Shared Services Group

--
Gruss,
Wolle

---
Auf dem Vorst 73Eckertweg 20 (112)
50171 Kerpen 52072 Aachen
Tel.: 02237-55897   Tel.:0241-89499950
  Tel.:0177-8403863
  E-Mail: [EMAIL PROTECTED]
  E-Mail: [EMAIL PROTECTED]
  http://www.get.to/wolle
ICQ: 23605031
---





manual init Call from Servlets

2001-03-30 Thread Wolle

Hello all,
I have a question about the Servelet Methode init call.
Whenn I call a website e.g. http://bla/servlet/bla.MyServlet.
It will first run the init Methode of this Servlet and then the doPost
od doGet.
But how could I do this manual ?
I have servlets, that need a other Servervlet to be run first (in
background, otherwise i had done is with sendRedirect).
I must do somthing like

public class ServletB {
  public void init(ServletConfig config){
  if (ServletA isn't init){ <- i will test it with a varibale is set or
null
ServletA test = new ServletA();
test.init()
}

that won't work , but gives also no error back ?!

have someone an Idee ?

Plz wrote back,
thanks for inconvenience,
Michael





Re: manual init Call from Servlets

2001-03-30 Thread Wolle

jep, thx
i have tried Servletname.
That's wrong it must be in the servlet-Context , with the startnumber.

Thank you Bo Xu

Bo Xu wrote:

> Wolle wrote:
>
> > Hello all,
> > I have a question about the Servelet Methode init call.
> > Whenn I call a website e.g. http://bla/servlet/bla.MyServlet.
> > It will first run the init Methode of this Servlet and then the doPost
> > od doGet.
> > But how could I do this manual ?
> > I have servlets, that need a other Servervlet to be run first (in
> > background, otherwise i had done is with sendRedirect).
> > I must do somthing like
> >
> > public class ServletB {
> >   public void init(ServletConfig config){
> >   if (ServletA isn't init){ <- i will test it with a varibale is set or
> > null
> > ServletA test = new ServletA();
> > test.init()
> > }
> >
> > that won't work , but gives also no error back ?!
> >
> > have someone an Idee ?
> >
> > Plz wrote back,
> > thanks for inconvenience,
> > Michael
>
> Hi :-) I am not sure, is the following possible?
> - in ServletB, use URLConnection to access
>   ServletA. because ServletA needs to be "run"
>   by Servlet container himself.
>
> - make ServletA "load-on-startup", in WEB-INF/web.xml,
>add the following:
>   ...
>   1
>   ...
>
> Bo
> Mar.30, 2001




BUG in encodeURL Mehtode ?

2001-04-01 Thread Wolle

Hello,
it seems that I have found a Bug in the response.encodeURL Methode,
and perhaps in the response.encodeRedirectURL.
System: Suse7.1, Tomcat 3.2.2b2 and
Win2k , Jbuilder4 (Tomcat3.2.1).
When I use the encode Methode in a valid session , it will extends the
ending of the URL with the Session.
http://www.bla.blub.com -> http://www.bla.blub.com;jsessionID=gdxcvrtw
Thats fine.

when I use the Methode on a link with GET parameters:
http://www.bla.blub.com?param1=bla¶2=bla ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla
that's also fine.

when I use the Methode  on a link with GET parameters an a anchor
http://www.bla.blub.com?param1=bla¶2=bla#anchor1 ->
http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla#anchor1

thats also fine, too

BUT when I have a Link only with a anchor, it won't be work:
http://www.bla.blub.com#anchor1 ->
http://www.bla.blub.com#anchor1;jsessionID=gdxcvrtw

and this i thing will be pasred wrong, so tomcat think there is no
session.

Some workaround is that you manual set the anchor later:
encURL = response.encodeURL("www.test.com#anchor");
TO
encURL = response.encodeURL("www.test.com") + "#anchor";
--