Re: automatically detecting if HTTPS is supported

2006-06-25 Thread Sameer Acharya
You should be able to do a isSecure() on the request object to check if the request is thru' secure channel. -Sameer Jason Novotny <[EMAIL PROTECTED]> wrote: Hi, I have a JSP that does a form submission, and I'm wondering if there's any way I can detect if HTTPS is supported so that I can

When we restarted tomcat, we are getting the below error while connecting to MySql database

2006-06-25 Thread rk
Hi, When we restarted tomcat, we are getting the below error while connecting to MySql database: - Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: Access denied for user 'root'@'localhost.localdomain' (using password: YES)

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 dire

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 vee

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. Wha

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

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: example.com value="/var/web/data/www.example.com/"/> In www.example.com.war I have a web.xml f

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 http://java.sun.com/xml/ns/j2ee"; xmlns:xs

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 t

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, plea

Re: JSPs forcing session ID to be created?

2006-06-25 Thread Pid
I think Tomcat creates a session, unless you tell it otherwise. http://wiki.jboss.org/wiki/Wiki.jsp?page=DisableSessionPersistence I repeat the popular refrain "Google is your friend." Michael Rimov wrote: > Environment: Tomcat 5.5.17 using http connector, Servlet API 2.4. > > Hi All, >

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 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 J

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