javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2008-04-15 Thread Roger Keays
The following configuration gives me a javax.naming.NameNotFoundException: Context path=/ !-- connection pool for database -- Resource name=jdbc/data auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost/test

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Ronald Klop
Reverse DNS lookup which always fails? Ronald. On Mon Apr 14 23:46:23 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Am running a Tomcat 6.0 server that is distributing a client program using Java WebStart. The client program communicates to the server using an RMI HTTP

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Tim Lavers
Thanks Ronald, I've got enableLookups=false in the server.xml file and Wireshark shows no signs of DNS lookups. Also, all of the Webstart stuff (downloading jars etc) is pretty responsive. So I don't think that is the problem ... but is there any way that Tomcat would do reverse DNS lookups if

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2008-04-15 Thread Mark Thomas
Roger Keays wrote: Is that the intended behaviour? Yes. If you want a realm to use a context defined datasource rather than a global one you need to set: localDataSource=true on the realm It is documented in the howto but not the realm docs. I'll fix that now.

How to redirect a URL to another URL in Tomcat 5.5?

2008-04-15 Thread Benz
Hi, I need help with Tomcat 5.5. Here is the situation, I have a servlet application with URL http://serverip:8080/name. How can i make a tomcat to redirect all request sent to http://servername.org go to http://serverip:8080/appname ? Thank you. ~benz~ -- View this message in context:

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Ronald Klop
Do you have a firewall which does DNS lookups? Ronald. On Tue Apr 15 08:58:18 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Thanks Ronald, I've got enableLookups=false in the server.xml file and Wireshark shows no signs of DNS lookups. Also, all of the Webstart stuff

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Tim Lavers
Hi Ronald, I think we do have such a firewall. I will find out the exact configuration and get back to you. Tim - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Cc: Tim Lavers [EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 8:58

that old problem - Invalid direct reference to form login page

2008-04-15 Thread Michael Teter
Howdy. I've just spent two hours Googling, Yahooing, and searching the Tomcat list for a fix for this problem: PROBLEM (with steps leading to) I attempt to access a private page (myview.jsp) Tomcat 5.5 properly sends me to login.jsp I enter my username/password, submit, and my JNDIRealm LDAP

RE: that old problem - Invalid direct reference to form login page

2008-04-15 Thread Caldarale, Charles R
From: Michael Teter [mailto:[EMAIL PROTECTED] Subject: that old problem - Invalid direct reference to form login page This is a pretty simple case. Everything I've seen on forums related to this problem focus on the idea that the user has directly requested the login page. I

RE: javax.naming.NameNotFoundException: Name jdbc is not bound in thisContext

2008-04-15 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Roger Keays Subject: javax.naming.NameNotFoundException: Name jdbc is not bound in thisContext The following configuration gives me a javax.naming.NameNotFoundException: Context path=/ That path specification is incorrect, regardless

RE: How to redirect a URL to another URL in Tomcat 5.5?

2008-04-15 Thread Caldarale, Charles R
From: Benz [mailto:[EMAIL PROTECTED] Subject: How to redirect a URL to another URL in Tomcat 5.5? Here is the situation, I have a servlet application with URL http://serverip:8080/name. How can i make a tomcat to redirect all request sent to http://servername.org go to

Re: that old problem - Invalid direct reference to form login page

2008-04-15 Thread Michael Teter
Here's the login.jsp html head titleRealm Login/title /head body h2JNDIRealm (LDAP) Login/h2 pCurrent User: %= request.getUserPrincipal() %/p form method=POST action=j_security_check input type=text name=j_username br input type=password name=j_passwordbr input type=submit /form /body

Tomcat and SSL Certifcates

2008-04-15 Thread John Gardner
For one of our projects, we have created our own CA for Tomcat using the methods laid out here; http://users.skynet.be/pascalbotte/art/ca.htm http://marc.info/?l=tomcat-userm=106293430225790w=2 Now, Tomcat is up and running and serving the site over HTTPS using our certificates and browsers

Ahh ...

2008-04-15 Thread Thompson,Roger
looking at the bash scripts it's: catalina.sh debug any tips or suggestions?

RE: that old problem - Invalid direct reference to form login page

2008-04-15 Thread Propes, Barry L
you'd be surprised. I've got about 130 users on an app here, and we require them to change their password every 90 days. There's about 9-10 people who ALWAYS get flagged, but from THEIR machine! One girl cleared out her cache and it worked. The rest of them? We had them clear out their disk

Using JDB on tomcat

2008-04-15 Thread Thompson,Roger
WHat is the best way to do this? 1) substitute jdb for java in the command shell 2) try to attach to a running instance any pointers to experience in the email archive would be useful. I'm looking at http://mail-archives.apache.org/mod_mbox/tomcat-users/ but I don't see a way to search them --

RE: API for running JSP

2008-04-15 Thread Yair Ben-Meir
Well, I found a solution: String path = C:\\Program Files\\tomcat6; Embedded embedded = new Embedded(); embedded.setCatalinaBase(path); embedded.setCatalinaHome(C:\\Program

Re: Ahh ...

2008-04-15 Thread Martin Gainty
Sorry to junp in in the middle of this thread.. Suggestions for ? M-- - Original Message - From: Thompson,Roger [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, April 15, 2008 10:42 AM Subject: Ahh ... looking at the bash scripts it's: catalina.sh debug

Webapps and supporting multiple sites

2008-04-15 Thread Townsley, Charlotte
We are in the process of re-designing our web applications. Our new design uses Tomcat/Apache and must support 100+ separate websites. I am new to Tomcat and have some basic, early project questions. Can a Tomcat Webapp effectively support 100+ websites? I've seen cases where a Webapp can be

sticky sessions without cookies?

2008-04-15 Thread Gunnar Schmid
Hi, I'm looking for a way to have sticky sessions without cookies. But let me explain our scenario first, maybe there's another approach I currently can't think of. We are running a JSF based application on two Tomcat 5.5 servers, both behind a load balancer with sticky sessions enabled

Syslog error message

2008-04-15 Thread Susan Richards
For a few days, our /var/adm/syslog/syslog.log on our HP-UX box where Tomcat is running has been filling up with messages like this: Apr 15 14:14:18 cosmoweb vmunix: function == 0xE04F3960, arg == 0xE00129FA2800, ticks == 0xFD69D7AC, flags == 0x0 Apr 15 14:14:18 cosmoweb vmunix:

PHP on Tomcat 5.5 on Windows XP keeps dying

2008-04-15 Thread Jonathan Mast
Is there anyway that I can prevent Tomcat 5.5 on Windows XP from dying when I execute the following code in an PHP page: $db_link = mysql_connect($db_host, $db_user, $db_pass, $new_link) or die (Unable to connect to database); This version of PHP does work with other mysql stuff, although

tomcat embedded

2008-04-15 Thread Steffen Heil
Hi I am searching for some documentation about tomcat embedded. I am trying to convert a very simple setup (configuration below) to java code, not using any xml file. Any link, hint, etc. would be helpful. Could someone give me a hint? Regards, Steffen === server.xml

test all nodes in cluster

2008-04-15 Thread Li Ma
We setup a Tomcat cluster with 3 nodes running behind Apache with mod_jk module. Everytime we deploy something to the cluster, we would like to make sure every single nodes is working. And from time to time, we would like to test each node to make sure they are healthy too. However, besides of

Re: PHP on Tomcat 5.5 on Windows XP keeps dying

2008-04-15 Thread Max Sevenfold
What do you have in your log files? Jonathan Mast wrote: Is there anyway that I can prevent Tomcat 5.5 on Windows XP from dying when I execute the following code in an PHP page: $db_link = mysql_connect($db_host, $db_user, $db_pass, $new_link) or die (Unable to connect to database);

Java application getting tomcat's home directory.

2008-04-15 Thread Ar5eNiC
-- View this message in context: http://www.nabble.com/Java-application-getting-tomcat%27s-home-directory.-tp16711061p16711061.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic,

Java application getting tomcat's home directory.

2008-04-15 Thread Ar5eNiC
Hello, I am currently on a team developing a web interface that allows the user to click drop downs to change content in an html page. We are calling our java methods using a JSP page. One of our java methods needs to access a file that is in our projects folder under webapps. We cannot use

Re: PHP on Tomcat 5.5 on Windows XP keeps dying

2008-04-15 Thread Jonathan Mast
I found that cause was that my dev machine (Windows XP) wasn't in the db privileges. I found this by testing the page in Internet Explorer where the error was outputted to the page. I typically use FireFox which was causing Tomcat to fail. This is a VERY CURIOUS error, I believed Tomcat to be

Re: Java application getting tomcat's home directory.

2008-04-15 Thread Mark Shifman
You could try http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletContext.html#getResource(java.lang.String) or http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletContext.html#getResourceAsStream(java.lang.String) mas Ar5eNiC

Re: Java application getting tomcat's home directory.

2008-04-15 Thread Mark Shifman
Actually you asked for the home directory so you could use http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletContext.html#getContextPath() Mark Shifman wrote: You could try

Re: sticky sessions without cookies?

2008-04-15 Thread sharrissf
Quick question... Are you asking to run with no sticky load balancer or do you just want to make sure that when the stickiness is wrong the session is safe? Gunnar Schmid wrote: Hi, I'm looking for a way to have sticky sessions without cookies. But let me explain our scenario first,

How to set max memory for Tomcat 4.1.37 when running as windows services?

2008-04-15 Thread Joe Chitrady
Hi all, I was using Tomcat 4.1.24 as windows services. To set the max heap memory for the JVM we can modify the registry setting using 'regedit. In the registry we can add JVM Option to add something like -Xmx512m to set the JVM max memory to 512MB. In Tomcat 4.1.37 registry I couldn't find the

Re: Java application getting tomcat's home directory.

2008-04-15 Thread Bill Barker
Actually, this doesn't work either. getContextPath returns the part of the URL that corresponds to the Context. Assuming that you are using a file-based context, and you can control how the app is deployed (i.e. it is always deployed under webapps), then this might be one of the few real uses

Re: Tomcat and SSL Certifcates

2008-04-15 Thread Bill Barker
If you really did follow the links, then the easiest is to continue to use OpenSSL. Assuming that you have already set up an OpenSSL CA, then just sign the CRS as normal, and send the resulting cert file back to the client. They will need to import it into their keystore file (which should be

Textarea Horizontal Scroll Bar Problems

2008-04-15 Thread Ryan Fleming
I am having difficulties getting the horizontal scroll bar to work in a inputTextarea control in a java web applicaton. I have posted several questions on a few groups, and everybody seems to think the code should work. I am new to web apps. Tomcat 6.0 is the first server I have used with

Starting Tomcat from bootstrap.jar

2008-04-15 Thread sandeep_khurana
I want to start Tomcat 4.1 with bootstrap.jar and calling the main function from my simple java program. How can I do it and what all parameters are required by the main function so that it can start the Tomcat? Can I supply the catalina.policy file while starting it up? -- View this message in

Re: that old problem - Invalid direct reference to form login page

2008-04-15 Thread Michael Teter
Problem solved I don't know what the cause of the problem was, but when I created a new, ultra-simple webapp and defined the same security and realm stuff, it worked. So something is peculiar about the app I was using (that I inherited). So at least it's clear that the server.xml and web.xml

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Tim Lavers
Just checked: our firewall does not do DNS lookups. Tim - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Cc: Tim Lavers [EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 8:58 PM Subject: Re: Delay between TCP handshake and POST

Tomcat JSP source code disclosure

2008-04-15 Thread Sameer Naik
(Sorry if this message is posted multiple times. I posted same message couple of times before subscribing to the list, but not sure if it went through) Hi, Our Tomcat 5.0.28 running on RHEL (2.4.21-32.0.1.ELsmp) is showing source code of JSP if characters %c0%80 are appended to the URL. I