JSPs forcing session ID to be created?

2006-06-25 Thread Michael Rimov
Environment: Tomcat 5.5.17 using http connector, Servlet API 2.4. Hi All, I'm not sure where to go from here, so I'm going to assume it's a Catalina issue and go from there. I was working on a front controller that wouldn't instantiate a session unless absolutely necessary - (for scalability

Re: JSPs forcing session ID to be created?

2006-06-25 Thread Markus Schönhaber
Michael Rimov wrote: I was working on a front controller that wouldn't instantiate a session unless absolutely necessary - (for scalability reasons) -- To my dismay, I was seeing a session created anyway. After some debugging, I came across the source of my problem: The following JSP

RE: JSPs forcing session ID to be created?

2006-06-25 Thread Michael Rimov
Try adding something like %@ page session=false % to your JSP. Ugh, yup! That did it -- Been programming Servlets/JSP since about '98 and never knew that. :) Thank you very much! -Mike

Re: JSPs forcing session ID to be created?

2006-06-25 Thread Martin Gainty
In your jsp %@ page session=false Is this what you're looking for?? Martin -- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please

Re: log4j warning: Please initialize the log4j system properly

2006-06-25 Thread Velpi
Can anyone point me to a direction? I have no clue what is wrong, and all the posts I have found all suggest to place the log4j.properties in the common/classes dir. I have done this and it is not working. It seems log4j is working, but the log4j config isn't working properly for some reason. I

in tomca 5 .0.* my security constraint is not working why

2006-06-25 Thread sarma
hi even i put jsp page in protected folder i am able to access them directly in tomcat 5.0. i am able to access these resticted pages directly http://localhost:8080/protected/*.jsp what i have to do to restrict this this is my web.xml page ?xml version=1.0 encoding=UTF-8? web-app

Tomcat multiple init(), no init param

2006-06-25 Thread Garret Wilson
Tomcat 5.5.16 seems to call a servlet's init() method several times, and the specific init parameter is missing in all but the first. I have a simple server.xml that includes: Host name=www.example.com appBase=/var/web/apps unpackWARs=false autoDeploy=false xmlValidation=false

Re: Tomcat multiple init(), no init param

2006-06-25 Thread Garret Wilson
Everyone, I found the answer to my second question, Why isn't myServlet2.init() called before the second call to myServlet1.init()? It turns out it was being called, but my debug trace statements had been redirected because my init() method had successfully redirected debug output. So the

Re: Tomcat multiple init(), no init param

2006-06-25 Thread Garret Wilson
Garret Wilson wrote: It's as if two instances of Tomcat are being run in two separate JVMS: one using the server.xml configuration, and another attempting to deploy the .war files using some default configuration. The first set of initialized servlets continue to run and accept connections.

Re: query

2006-06-25 Thread Sameer Acharya
Oracle also installs its own jdk and may have changed the environment settings have you checked the java version at command prompt. Notmally Oracle jdk is 1.3 and installed inside Oracle home dir. Also you may want to try running tomcat from command prompt, it may show some errors. -Sameer

Using Datasource for cloudscape

2006-06-25 Thread Jitendra Kharche
Hi there, can anybody help me on this. Hi Dilan have you any more clue on this. Problem: I am using Tomcat 5.5.17 and tried running a sample datasource application having a jsp page (see contents below) using the Cloudscape database. I have added the driver jar into CATALINA_HOME/common/lib