I want to use the JNDI facilties for DataSources. I have Tomcat 4.0.1 and
I'm using tyrex-0.9.7.jar (which comes with Tomcat).
I can't get it to work. It compiles, but when I run the page and try to get
a database connection, it gives the error:
java.lang.NoClassDefFoundError:
Does anyone on this list know who is maintaining Tyrex at the moment?
The official Tyrex website looks out of date, the list doesn't seem to work and there
is a version 0.9.8 of the jar file around (later than the one used in Tomcat), but I
can't find who has made it. (The Tyrex site only has
Has anyone successfully got JNDI Connection pooling to work with Tomcat
(vers 4.0.2) and Postgres?
I think my server.xml must be wrong. It's got:
Resource name=jdbc/LiveDb auth=Container
type=tyrex.jdbc.ServerDataSource /
ResourceParams name=jdbc/LiveDb
Done that, but it still doesn't work (I'm also trying JNDI + postgresql).
Could you point us to a sample server.xml entry for postgres? (or anything
else needed)
Thanks
Mark Muffett
- Original Message -
From: King-On Yeung [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent
There's a lot to configure to get it to work.
The coding side seems to be well documented, and there have been several
instances posted here, but (as far as I can see) we're all working in the
dark with server.xml. I've spent a lot of time trying to get database
pooling to work with Postgresql,
to:
Subject:Re: jndi versus database connection pooling
Mark Muffett [EMAIL PROTECTED] on 03/14/2002 04:18:13 AM
The coding side seems to be well documented, and there have been
several instances posted here, but (as far as I can see) we're all
working in the dark with server.xml. I've spent
Can I run Tomcat v3.3 v4.0 concurrently on the same box? (Linux OS)? It
would be useful for testing, but I'd like to know if there's something
obvious that will make it go wrong before I start.
If so, could I use them both in conjunction with Apache (with mod-webapp for
v4.)?
Thanks for any
Mark Muffett
help.
Mark Muffett
- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 06, 2001 2:37 PM
Subject: RE: Tomcat 3.3b2 and mod_jk
Hi Mark,
I think things are misconfigured. For the URL http://sota/index0.jsp,
note that sota is all
help.
Mark Muffett
- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 06, 2001 2:37 PM
Subject: RE: Tomcat 3.3b2 and mod_jk
Hi Mark,
I think things are misconfigured. For the URL http://sota/index0.jsp,
note that sota is all
/* ajp13
DocumentRoot /opt/jakarta-tomcat-3.3-b2/webapps/Sota
/VirtualHost
(which was much more like what I expected) and it worked completely with no
further changes.
Many thanks
Mark Muffett
PS One bug I have found: running startup.sh jkconf while tomcat is running
removes the ajp12.id
/* ajp13
DocumentRoot /opt/jakarta-tomcat-3.3-b2/webapps/Sota
/VirtualHost
(which was much more like what I expected) and it worked completely with no
further changes.
Many thanks
Mark Muffett
PS One bug I have found: running startup.sh jkconf while tomcat is running
removes the ajp12.id
Larry
Having got yesterday's setup to work, I thought I'd try to go one step
further (having browsed some of the previous correspondence about mod_jk).
Since sota and sota.silly.domain.net are the same site, I tried making
apps-sota.xml as follows:
Server
Host name=sota
alias
the 'a' in alias ...
and try again.
The Alias approach does have the effect of mapping sota and
sota.silly.domain.net to the same context. This could be seen as
an advantage or disadvantage depending on your requirements.
Cheers,
Larry
-Original Message-
From: Mark Muffett [mailto
might
try putting postgresql.jar in the lib/container
directory. If that doesn't work, try lib/common.
Larry
-Original Message-
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 8:14 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat v3.3b2 and mod_jk
Larry
I'm trying something a little more complicated now - I have two different
sites: sota and vp. I have apps-sota.xml like:
Server
Host name=sota
Alias name=sota.silly.domain.net /
Context path= docBase=webapps/Sota /
/Host
/Server
and apps-vp.xml like:
Server
in the
ServerAlias. It is likely a bug in ApacheConfig.java.
I'll take a look. Having your test case should make
that easy.
In the meantime, rename your config and remove the
sota.silly.domain.net and you should get the behavior
you desire.
Thanks,
Larry
-Original Message-
From: Mark Muffett
to
be portable from 3.3 to the next 3.x version). I don't suppose it's of
sufficient interest to try to incorporate within Tomcat proper, but if
anyone else is working on similar extensions I'd be happy to share code.
Mark Muffett
://sota.silly.domain.net goes to the default domain
(not to sota).
2. I find that I have to stop and start Tomcat twice after every change I
make to server.xml. Has anyone else seen this?
Thanks for any help
Mark Muffett
I have to save some data in files from a servlet (can't get blobs to work
with JDBC) - is there any good (portable) way to express the directory path?
I'm just worried that an absolute path is going to cause problems if the
site is moved.
Thanks for any help
Mark Muffett
-Original Message-
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 1:13 PM
To: [EMAIL PROTECTED]
Subject: Saving files from Tomcat
I have to save some data in files from a servlet (can't get
blobs to work
with JDBC) - is there any good
I'm using Tomcat v4.0.1 on port 80 (ie without Apache)
Since I have a few legacy sites, I've had to enable the cgi facility. I've
done this, and the .pl files get called, but it seems that no parameters are
being passed - any ideas?
Thanks for any help
Mark Muffett
I've just managed to it to work using GET, but still can't get any
parameters with POST - any ideas? - it must be something to do with the read
from stdin...
Mark
- Original Message -
From: Mark Muffett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 9:48 AM
I have the same problem and I can't solve it either.
Mark
- Original Message -
From: Miao, Franco CAWS:EX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 5:15 PM
Subject: getRemoteHost()
Modified my code many times with getRemoteHost(), still only remote
It could be that your servlets are not releasing connections, or just that
too many of them are trying to open them - are you using connection pooling?
Have a look at the number of connections (ps aux | grep postgres will work
on Unix / Linux, I don't know about Windows).
The default limit on
For a relatively simple project, where you just need source code control
(with branches,etc), how about RCS? - I've used it for the last 5 years,
even for code I've developed on my own (I looked at CVS but, at the time,
anyway, RCS was a lot easier to use).
I believe CVS is just an interface on
t;br
Password: input type="password"
name="j_password"bretc
in my login.jsp.
I've put
JkMount /VP/j_security_check * ajp13
in my mod_jk.conf (in $TOMCAT_HOME/conf/ - but I don't know whether Tomcat
is reading it).
Any ideas?
Many thanks
Mark Muffett
JkMount /VP/j_security_check * ajp13
in my mod_jk.conf (in $TOMCAT_HOME/conf/ - but I don't know whether
Tomcat is reading it).
Any ideas?
Many thanks
Mark Muffett
Peter
Can I check what version of Tomcat you're using? Mine still doesn't work.
Thanks
Mark
- Original Message -
From: P.Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 11, 2001 1:58 PM
Subject: Re: j_security_check
Hi Mark,
I send you attached the parts of
I'm trying to work through the examples (still
trying to get FORM authentication working).
One thing I can't understand is where all the .txt
files come from (and what they do). There seems to be a txt counterpart
for each jsp file. I'm sure I've just missed something very simple, but
can
Yes - I've just done it - look at (and adapt) the examples, it's the easiest
way.
Regards
Mark Muffett
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 5:58 PM
Subject: JDBC Realm
Is it possible to have JDBC Realms on a TOMCAT
Anyone know if it's possible to use JSP / Tomcat to
get user IP addresses (for logging)? - or any other user info that might go to
the server (like referrer)?
Ideas and sample code would be very
welcome...
Thanks
Mark
Should be able to query the HTTPServletRequest object to get this
information, try looking there
-Original Message-
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 9:50 AM
To: [EMAIL PROTECTED]
Subject: User IP Address
Anyone know if it's possible to use
to sensibly integrate this with
JSP.
Any ideas???
Many thanks
Mark Muffett
I've done something similar to get tomcat starting / stopping automatically
under SuSE Linux.
The basics work, but I think I have a CLASSPATH problem that stops me using
JDBC authentication if I start tomcat this way (stopping then re-starting
manually fixes it). I haven't had time to look much
Any ideas how best to log succesful (or
unsuccesful) logins via JDBC authentication. The big problem is that the
user may have bookmarked any one of a number of protected pages, and it isn't
practical to put code on each of them.
Any help would be appreciated
Mark Muffett
Bowesman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 28, 2001 4:58 PM
Subject: Re: User login logging (JDBC authentication)
Mark Muffett wrote:
Any ideas how best to log succesful (or unsuccesful) logins via
JDBC authentication. The big problem is that the user may have
Sorry! - found it now (in tomcat_modules.jar).
Mark
- Original Message -
From: Mark Muffett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Antony Bowesman [EMAIL PROTECTED]
Sent: Wednesday, July 04, 2001 8:37 AM
Subject: Re: User login logging (JDBC authentication)
Antony
Many thanks
the user
please do help...
-raj-
-Original Message-
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: User login logging (JDBC authentication)
Sorry! - found it now (in tomcat_modules.jar).
Mark
- Original
, or is it a bug
Many thanks
Mark Muffett
I have a web site to which a lot of cross-links
have been built up over time. Inevitably the links are to pages with names
like index.htm. I would like to change these to jsp pages, but of course I
can't change the name without breaking the link (and losing traffic).
Any ideas how I can
Thanks, but I don't think it will work for my purposes - I want to log the
refering site and I think I'll lose the info if I do that.
Regards
Mark
- Original Message -
From: César Martínez Cabanas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 30, 2001
a new site
there for your content and let Dreamweaver examine links and change
filenames.
Of course world is full of different kind of sed/awk/vi- tricks, but in
serious website maintenance you really should use an editor.
-Harry
Mark
Muffett
use an editor.
-Harry
Mark
Muffett To:
markm@its-ax
[EMAIL PROTECTED]
iom.com cc:
Subject: Re: .htm problem
I've just moved from Tomcat v3.3m4 to v3.3b1. It's clear that there are some (a lot)
changes in the auto-generated mod-jk.conf.
The setup before worked fine, but I can't get Apache to redirect to Tomcat for the new
release, regardless of whether I use the old or new autogenerated files.
Any
I wonder if anyone else has come across this.
I'm happily using JDBC Realms with Tomcat v3.3.
I would like to let my users change their passwords - of course I can put up
a screen that lets them alter the value of their password on the database,
but then they have to log in again with the new
Has anyone succesfully got 4.0 running with virtual hosts? and would they be
prepared to show us a sample working server.xml file (and anything else
that's needed, if anything).
Many thanks
Mark
47 matches
Mail list logo