Re: Urgent: works on TC 3.2.2, but not on TC 3.3 !!!

2002-01-17 Thread Mika Goeckel
Hi, You can follow the advice to use a single dispatcher servlet for all requests that keeps track of newly created sessions and replies accordingly: If the session is new and the request asks for a page (or frame content) that would not be requested for new sessions, redirect to a page that

Re: When to switch from tomcat to commercial, if ever...

2002-01-15 Thread Mika Goeckel
Hi! Yes, I think you should carefully monitor response times and system load. The number of users is not a metric on it's own right as its impact heavily relies on the application itself. If you want to improve, the first thing to look at is the application, not the servlet-container. For

Re: NoClassDefFound

2002-01-10 Thread Mika Goeckel
Hi, have you set your CLASSPATH env variable or are you providing a classpath (-classpath directory:directory:directory/file.jar.) with your command line? Additionally you have to provide the fully qualified Classname (package.package.package.ClassName, for example

Re: Tomcat not starting on initialization

2001-12-13 Thread Mika Goeckel
Hi Samarth, yes, tomcat shows up as java process(es). Do you get the SegFault as well when you start? Could be a problem with your jdk. What jdk are you using? Do you have other java applications running without problems? Mika ^X^S - Original Message - From: [EMAIL PROTECTED] To: [EMAIL

Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Mika Goeckel
Hi! What is the putSession() method of a HttpSession? Do you mean putValue? First, this is a deprecated method, but second, StandardSession implements that method anyway. StandardSession is org.apache.catalina.session.StandardSession, and implements HttpSession, which is an interface and as such

Re: Tomcat not starting on initialization

2001-12-13 Thread Mika Goeckel
is started up. At the same time, there is no java process running on doing a ps -ef. I am using JDK 1.3 downloaded from java.sun.com. The JDK installed without any hassles. I don't have any other java applications running so cannot say. Samarth Mika Goeckel [EMAIL PROTECTED] on 12/13

Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Mika Goeckel
Hmmm the difference between these two constructors is, that the one which takes a StandardSession upcasts it to HttpSession before assigning it to it's session attribute, this should not cause this problem, as StandardSession does implement all HttpSession methods (otherwise the compiler

Re: Try a different approach - What's wrong with catalina.session???

2001-12-13 Thread Mika Goeckel
Session in use: From the jsps, NumberGuess, Snoop, ErrorPage (after submitting the form), Carts (after submitting) (I did stop testing here) From the servlets only the session example. Mika - Original Message - From: Richard S. Huntrods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Secure Example

2001-11-28 Thread Mika Goeckel
Hi dirk, what are you looking for? An architecture or a plain jsp that get's a reference to an ejb? Tomcat is not an ejb server, so you will probably have to look at jguru or similar to find jsp examples. Mika - Original Message - From: storck [EMAIL PROTECTED] To: Jboss User (E-Mail)

Re: Tomcat on Linux

2001-11-20 Thread Mika Goeckel
Hi Sergey, you can use sudo -u tomcat /path-to-the-dist-dir/bin/startup.sh to start the instance up as another user. However, this restricts the ports to above 1024, because other than apache, tomcat does not have the feature to start up as root, gain the socket for port 80 and change the user

Re: Using class as an attribute

2001-11-16 Thread Mika Goeckel
Nick, unfortunately I know no straight workaround. The getClass method in java.lang.Object is declared final and you would if you could override that risk that the jre completely screws up. You could of course call it CLASS. From a code purist's point of view that would be blasphemic, but it

Re: ... tomcat and mod_ webapp won't work ...

2001-11-13 Thread Mika Goeckel
Hi! Versuch mal nach dem examples einen slash, also WebAppDeploy examples warpConnection /examples/ und dann auch in der url. Ich glaube mich erinnern zu können, daß das bei mir auch da gehakt hat. Grüße, Mika - Original Message - From: martin eberle [EMAIL PROTECTED] To: Tomcat

Re: Principal caching with authentication

2001-11-13 Thread Mika Goeckel
Chris, sessions are there by default, you can only avoid them by specifying in your %@ page session=false directive to disable them. Sessions are in use once you declare a jsp:usebean id=something scopesession with session as scope. Cheers, Mika :wq - Original Message - From:

Re: Principal caching with authentication

2001-11-13 Thread Mika Goeckel
Yep, Craig, I forgot about servlets :-) - Original Message - From: Mika Goeckel [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 12:23 AM Subject: Re: Principal caching with authentication Chris, sessions are there by default, you can only

Re: MVC in Tomcat is hard

2001-11-03 Thread Mika Goeckel
Hi Dr.Evil, have you had a look on the jakarta-struts project? At a first glance it may look a little bit complicated, but it implements a MVC approach and could possibly deliver a bunch of already written code for your project. Getting started is very easy, it's sufficient to place (one of) the

Re: can you call (include) a servlet from a jsp

2001-11-02 Thread Mika Goeckel
Heya! Try calling the doGet(HttpServletRequest request, HttpServletResponse response) method of your servlet class, it will use out to write to your jsp's stream. Btw, you can compile your jsp into a servlet (i.e. get the java source) if you manually invoke the jspc with the keepgenerated option