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
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
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
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.
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:
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
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
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
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
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
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
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
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
looking at the bash scripts it's: catalina.sh debug
any tips or suggestions?
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
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 --
Well, I found a solution:
String path = C:\\Program Files\\tomcat6;
Embedded embedded = new Embedded();
embedded.setCatalinaBase(path);
embedded.setCatalinaHome(C:\\Program
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
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
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
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:
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
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
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
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);
--
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,
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
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
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
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
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,
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
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
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
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
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
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
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
(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
39 matches
Mail list logo