Re: Gotta Be Something Simple

2001-08-29 Thread Matt Barre

the default location for servlets should be /WEB-INF/classes/ within the apps folder. 
Have
you tried this? Also have you added and mapped them in your deployment descriptor?

Matt
- Original Message -
From: Charles Webber [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 12:26 PM
Subject: Gotta Be Something Simple


 Got a problem that I either don't understand, or something isn't configured
 properly.
 I have a couple of servlets that after I corrected the CLASSPATH, compiled
 without any problems.  However, the page that attempts to invoke the
 servlets returns a 404 (not found).  I've tried putting the servlets in
 various directories under my tomcat directory tree, but still same result.
 Both servlets are part of the same package.  The page that tries to invoke
 the main servlet uses a form action=servlets/servletname.
 This is my first attempt in writing something like this, and even though I
 think I understand where things are supposed to go and why they are supposed
 to go there, I am baffled at why the servlet can't be found.  Any help would
 be appreciated.
 Thanks.




Re: Solaris Problem

2001-08-22 Thread Matt Barre

Tomcat 3.2.3 and Tomcat4b7 on Solaris 8 with jdk 1.3.1


- Original Message - 
From: Roy K. Mayr R. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 9:11 AM
Subject: Solaris Problem 


 Hi,
 
 I would like to know if anyone out there is successfully using Tomcat with 
 Solaris and if so what version of Solaris and what jdk version.
 
 Thanks
 
 Roy




page not loading on first request [tomcat4]

2001-08-16 Thread Matt Barre

I do not recall this being discussed, and I didn't see anything in the archives. I am
using tomcat4b7 in standalone mode. When I go to a jsp page many times it delivers a 
blank
document or timesout. If I hit refresh the page loads without any problem. Where do I
start?

Matt




Re: page not loading on first request [tomcat4]

2001-08-16 Thread Matt Barre

If I go to http://localhost/missions/main.jsp?sheet=yellow then the page is black or 
times
out. Now if I press refresh the page loads fine. This happens on the initial lookup of 
the
page and subsequent returns to the page.

Matt
- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 10:41 AM
Subject: Re: page not loading on first request [tomcat4]


 Hi Matt,

 Do you mean that, over time, your page is either blank or times out?  Or do you mean
that hitting refresh very quickly in succession causes this to happen?  How many times 
do
you go to it?

 - r

 On Thu, 16 Aug 2001 11:34:14 -0600 [EMAIL PROTECTED] wrote:
  I do not recall this being discussed, and I didn't see anything in the
  archives. I am using tomcat4b7 in standalone mode. When I go to a jsp page
  many times it delivers a blank document or timesout. If I hit refresh the
  page loads without any problem. Where do I start?
 
  Matt






Re: page not loading on first request [tomcat4]

2001-08-16 Thread Matt Barre

Sorry the black was a typowas supposed to be blank. There are no errors in my 
Catalina
log. This has me baffled, it didn't happen with 4b6.

Matt
- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 10:57 AM
Subject: Re: page not loading on first request [tomcat4]


 I'm not sure about TC4, but the first time you hit any page after starting 3.2.x,
there's a slight pause, but no timeouts or black.  If the page is black, then your 
code is
probably taking a long time to complete execution since it appears that some output it
making it to the client.

 - r

 On Thu, 16 Aug 2001 11:48:12 -0600 [EMAIL PROTECTED] wrote:
  If I go to http://localhost/missions/main.jsp?sheet=yellow then the page is
  black or times out. Now if I press refresh the page loads fine. This
  happens on the initial lookup of the page and subsequent returns to the
  page.
 
  Matt
  - Original Message -
  From: Rob S. [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 16, 2001 10:41 AM
  Subject: Re: page not loading on first request [tomcat4]
 
 
   Hi Matt,
  
   Do you mean that, over time, your page is either blank or times out? Or
  do you mean that hitting refresh very quickly in succession causes this to
  happen? How many times do you go to it?
  
   - r
  
   On Thu, 16 Aug 2001 11:34:14 -0600 [EMAIL PROTECTED] wrote:
I do not recall this being discussed, and I didn't see anything in the
archives. I am using tomcat4b7 in standalone mode. When I go to a jsp
  page   many times it delivers a blank document or timesout. If I hit
  refresh the   page loads without any problem. Where do I start?
   
Matt
  
  






Re: page not loading on first request [tomcat4]

2001-08-16 Thread Matt Barre

This jsp has nothing at all trickyand it also happens with plain html filesI
suspect that there is something I am missing involving the http connector.

Matt
- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:09 AM
Subject: Re: page not loading on first request [tomcat4]


  Sorry the black was a typowas supposed to be blank. There are no errors
  in my Catalina log. This has me baffled, it didn't happen with 4b6.

 Doh, wish it wasn't a typo =)

 Hmmm...  is this with even a simple JSP?  Using any custom tags?  Maybe you could 
check
the TC4 changlog (in the root) to see if anything changed that might affect your page?

 - r




Re: Version

2001-08-16 Thread Matt Barre

If you want you can probably send the ip address/web address to the list and someone 
who
may be more familiar with the procedure could do it rather quicklyassuming it is
accessible from the internet

Matt
- Original Message -
From: Saritha Pula [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 2:40 PM
Subject: RE: Version


hi Barnabas
   You can find version of tomcat in $tomcat_home\doc\readme file
--Saritha

-Original Message-
From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Version


Rob,
Obviously, you and I need to learn a little more before we can open our
own
little yahoo shop.  I found out that in tomcat, it is named LICENSE.
lol!

I'm just kidding dude!  That help was very useful and more than $10
worth
even though the name was LICENSE.  Now in the LICENSE of my tomcat, it
is
displayed:

 * $Header: /home/cvs/jakarta-tomcat/LICENSE,v 1.1.1.1 1999/10/09
00:19:57
duncan Exp $
 * $Revision: 1.1.1.1 $
 * $Date: 1999/10/09 00:19:57 $

I suppose it is very old one, namely, Circa 1999.  And I think that is
why
it is giving us all kinds of all kinds of errors.

Moreover, what I am really concerned is the following message displayed
bellow of the above message:


 * 
 *
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999 The Apache Software Foundation.  All rights
 * reserved.
 *

Now, my question is:  Is this an Apache's License README file or
tomcat's?




- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 3:02 PM
Subject: Re: Version


 Oh.  My.  God.  I should start a Yahoo! Shop answering questions for
$10k
=)

 You obviously have access to the server...  cd to $TOMCAT_HOME and
read
the README file.

 - r

 On Thu, 16 Aug 2001 14:38:21 -0500 [EMAIL PROTECTED]
wrote:
  Folks,
  How do I know what version of tomcat I have on my apache server?
This
dude
  who installed tomcat for us, I think, he installed only the beta
release
of
  tomcat.  Now, he is asking $10,000 to fix it.  Oh holly cow! was
my
bosses
  reaction.:)
 
  I used the command:
 
  openssl version -a
 
  But it only gave me the ssl version.
 
  Any help will be appreciated!








Re: how to deploy Out-of-process servlet containers

2001-08-16 Thread Matt Barre

mok_jk for Tomcat 3.x
mod_webapp for Tomcat 4.x

Out of process means that the servlet container and the web server run in different
processes and a mod is used to relay information between the two. Stand-alone means 
that
Tomcat servers both the static (html, images, etc) AND processes the serverside java of
servlets and jsp. In process is when the workers for Tomcat actually reside within the
webserver's process.

There may be someone who can make more sense than  me or correct me if I'm wrong, but
that's the way I understand it. If you read the doc's they explain it quite well.

Matt
- Original Message -
From: Yoom Nguyen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 3:19 PM
Subject: how to deploy Out-of-process servlet containers


 Does anyone know how to deploy
 Out-of-process servlet containers  for 3.2.3 run on Solaris  Netscape
 Any hints or advices will be appreciate

 There are three type of containers

 1.Stand-alone servlet containers
 2.In-process servlet containers
 3.Out-of-process servlet containers


 Yoom




Re: Tomcat v4.0 and virtual hosts

2001-08-06 Thread Matt Barre

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-StandaloneServer port=8005 shutdown=SHUTDOWN debug=0
Engine name=Standalone defaultHost=localhost debug=0
Host name=localhost debug=0 appBase=C:\apache\htdocs\ unpackWARs=false
  Context path= docBase=C:\apache\htdocs\ debug=0 reloadable=false
  /Context
  Context path=/manager docBase=C:\tomcat4b6\webapps\manager debug=0
reloadable=false
  /Context
  Context path=/poolman docBase=C:\tomcat\webapps\poolman debug=0
reloadable=false
  /Context
  /Host
   Host name=whatever.org debug=0 appBase=webapps unpackWARs=false
Context path= docBase=C:\tomcat\webapps\whatever debug=0 reloadable=false
  /Context
  Context path=/manager docBase=manager debug=0 reloadable=false
  /Context
   /Host
   Host name=whatelse.com debug=0 appBase=webapps unpackWARs=false
Context path= docBase=C:\tomcat\webapps\whatelse debug=0 reloadable=true
  /Context
  Context path=/manager docBase=manager debug=0 reloadable=false
  /Context
   /Host
/Engine

  /Service

/Server
- Original Message -
From: Mark Muffett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 06, 2001 10:14 AM
Subject: Tomcat v4.0 and virtual hosts


 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




tomcat 4 datasources

2001-08-03 Thread Matt Barre

I know there is a way to configure DataSources using tomcat 4's server.xml file. I've
tried using the default examples to create my own, but so far I haven't had any luck. 
The
docs for this portion of the project appear to not have been written yet. Can anyone 
point
me toward a resource where I can learn more about them?

Matt




fault tolerance tomcat4

2001-07-31 Thread Matt Barre

I am hosting several sites on a Solaris 8 SPARC box. I would like to use tomcat4 b6+ to
take care of all my serving. I've load tested it using JMeter and it performs more than
admirably for my uses. My question is how to replicate the fault tolerance I used to 
have
with apache + tomcat where I had a loadbalanced worker. Will I have to use apache to do
this or is there another way?

Matt




How to alias 8080

2001-07-31 Thread Matt Barre

I could be wrong on this, but I think you could use the Listen and Bind directives in
apache's httpd.conf to bind it to individual ip addresses, and in tomcat 4 you can use 
the
address parameter in the service decriptor. Basically they would be on the same port, 
but
different ip addresses.

Matt




load balanced workers

2001-07-27 Thread Matt Barre

I'm trying to implement load balanced workers in the form of 2 different jvm instances 
on
a single physical server. I have 3 workers in my workers.properties file :

workers.list = ajp12, ajp13, backup
ajp13 = first instance
ajp12 = first instance
backup = second instance
lb.loadbalancer.balanced_workers = ajp13, ajp12, backup


in my httpd.conf file I have tried two different things...
if I set JkMount to ajp13, and then stop the instance that worker is in, then the site
fails, I would think it should switch over to the backup worker. Should I instead be
putting lb in my httpd.conf? If that is the case wouldn't I need to include lb in the
workers.list property?

Matt




tomcat4b6 classpath for poolman.xml

2001-07-26 Thread Matt Barre

I am moving a few of my applications from tomcat 3.2 to tomcat4-b6. I have them up and
running except for some trouble with poolman. From the trace before it kills tomcat, it
looks like it can't find the poolman.xml file. With tomcat 3.2 I simply have this file 
in
my jdkhome/jre/lib/ext/ folder. Anyone have a tip for where I should place a copy for
tomcat 4 to access? I'm on win2k with 2.0.4 of poolman.

Thanks,
Matt




Re: tomcat4b6 classpath for poolman.xml

2001-07-26 Thread Matt Barre

I guess it might help to include the trace from the out screen. :)

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b6
Starting service Tomcat-Apache
Apache Tomcat/4.0-b6
null
java.lang.NullPointerException
java.lang.NullPointerException
at com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfig
uration.java:121)
at com.codestudio.management.PoolManConfiguration.loadConfiguration(Pool
ManConfiguration.java:75)
at com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.ja
va:61)


Matt


- Original Message -
From: Matt Barre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 9:32 AM
Subject: tomcat4b6 classpath for poolman.xml


 I am moving a few of my applications from tomcat 3.2 to tomcat4-b6. I have them up 
and
 running except for some trouble with poolman. From the trace before it kills tomcat, 
it
 looks like it can't find the poolman.xml file. With tomcat 3.2 I simply have this 
file
in
 my jdkhome/jre/lib/ext/ folder. Anyone have a tip for where I should place a copy for
 tomcat 4 to access? I'm on win2k with 2.0.4 of poolman.

 Thanks,
 Matt




Re: tomcat4b6 classpath for poolman.xml

2001-07-26 Thread Matt Barre

PoolMan.jar is located inside my /tomcat/common/lib/ folder

Matt
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 11:07 AM
Subject: Re: tomcat4b6 classpath for poolman.xml




 On Thu, 26 Jul 2001, Matt Barre wrote:

  I guess it might help to include the trace from the out screen. :)
 
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0-b6
  Starting service Tomcat-Apache
  Apache Tomcat/4.0-b6
  null
  java.lang.NullPointerException
  java.lang.NullPointerException
  at com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfig
  uration.java:121)
  at com.codestudio.management.PoolManConfiguration.loadConfiguration(Pool
  ManConfiguration.java:75)
  at com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.ja
  va:61)
 

 Well, the bug is inside the parseXML() method of PoolMan, so it's pretty
 hard to tell what's going on.  Where do you have the JAR file containing
 PoolMan itself?

 
  Matt
 

 Craig McClanahan

 
  - Original Message -
  From: Matt Barre [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, July 26, 2001 9:32 AM
  Subject: tomcat4b6 classpath for poolman.xml
 
 
   I am moving a few of my applications from tomcat 3.2 to tomcat4-b6. I have them 
up
and
   running except for some trouble with poolman. From the trace before it kills 
tomcat,
it
   looks like it can't find the poolman.xml file. With tomcat 3.2 I simply have this
file
  in
   my jdkhome/jre/lib/ext/ folder. Anyone have a tip for where I should place a copy
for
   tomcat 4 to access? I'm on win2k with 2.0.4 of poolman.
  
   Thanks,
   Matt
 
 




Re: how to let two user stop and start tomcat

2001-07-23 Thread Matt Barre

This is because when you are trying to load the second instance of Tomcat it is using 
the
same server.xml file. As a result when the second instance starts it has an error 
because
the first one has already bound the ports it uses (8080, 8007, 8009, etc) so they are
unavaible to the second instance. You need a second server.xml file for the second
instance and refer to it as an argument when starting the second instance.

Matt
- Original Message -
From: Peter Choe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 23, 2001 2:25 PM
Subject: how to let two user stop and start tomcat


 i am trying to set up tomcat so that two user (two accounts on an unix
 system) start and stop tomcat.

 both users are able to stop tomcat when it is running.  but only one can
 properly start it.  so, if i have two users, foo and bar, user foo can
 start tomcat using ./startup.sh and bar can stop it using ./shutdown.sh.

 but if bar tries to start it using ./startup.sh it throws the following:

 FATAL:java.net.BindException: Address already in use

 can anyone help?

 peter choe




Re: exhausting connections under load

2001-07-18 Thread Matt Barre

Taking a stab in the dark this is probably for a few reasons. The first that comes to 
mind
is that Tomcat 3.2.x is not HTTP 1.1 compatible, so for each object in a web page it
creates a new connection...not very efficient.

Its really meant to be put behind Apache I think. The http serving abilities are 
usually
used just for quick/easy development purposes, not production delivery.

Matt
- Original Message -
From: Frank Morton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 8:16 AM
Subject: exhausting connections under load


 Intel (4 processors) Solaris 8 with up-to-date patches
 Tomcat 3.2.2
 JDK 1.3.1-b24
 Apache not running during testing
 Tomcat on port 8080

 Under load directly to port 8080, netstat shows thousands
 of ports open and eventually just exhausts connections to
 the point that the system can't do anything. Even after
 stopping connections to the port, thousands of connections
 stay alive for around 2 minutes, then they close and things
 go back to normal. I am sure that connections are staying
 around longer than they need to.

 I have looked everywhere I know and have not discovered
 what to do about this. I don't see any max connections/stay
 alive time period/etc that can be configured with tomcat.

 Hopefully I'm missing something and one of you can get
 me pointed because this problem is serious for us.

 Thanks.

 Frank







Re: PoolMan woes

2001-07-05 Thread Matt Barre

Thank you for the help. I upgraded to jdk1.3.1 which got PoolMan running. I can now 
setup
the config file and tomcat presents me with a list of available pools when I use the
packaged poolman application. I ran queries against the pool and had no problems. I
shutdown Tomcat, and changed the poolman.xml. Next time I ran PoolMan it gave me the 
error
listed below. I restored a backup copy of poolman.xml that had worked before, but the
error persists. What's the trick I'm still missing? My problem now is that I get a 
weird
error:

java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
at com.codestudio.util.JDBCPool.create(JDBCPool.java:328)
at com.codestudio.util.ObjectPool.checkOut(ObjectPool.java:214)
at com.codestudio.util.JDBCPool.requestConnection(JDBCPool.java:407)
at com.codestudio.util.SQLManager.requestConnection(SQLManager.java:193)
at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:234)
at com.codestudio.util.PoolManBean.getResults(PoolManBean.java:62)

I have PoolMan.jar in tomcat/lib as well as in /jdk1.3.1/jre/lib/ext. I would appear 
that
it finds the .jar. Thanks for the help from everyone! Sometimes I wonder if I'm ever 
going
to get this working. :)

- Original Message -
From: Eoin Woods [EMAIL PROTECTED]
To: 'Matt Barre' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 3:20 PM
Subject: RE: PoolMan woes


  Method getDataSource(java.lang.String) not found in class
 com.codestudio.sql.PoolMan

 I use findDataSource(java.lang.String) - although both are documented in the
 JavaDoc.

 Is poolman.jar in your CLASSPATH when you compile?  I've just tested this
 with 2.0.1 and both findDataSource() and getDataSource() are found.

 Cheers,

 Eoin.
 -Original Message-
 From: Matt Barre [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 1:47 PM
 To: Eoin Woods; [EMAIL PROTECTED]
 Subject: Re: PoolMan woes


 Thanks for the tip. By taking the two suggestions I now have Tomcat somewhat
 stabilized. I
 am working on a jsp to get all the kinks worked out. I import the PoolMan
 packages but I
 get the following/weird error:

 Method getDataSource(java.lang.String) not found in class
 com.codestudio.sql.PoolMan

 According to the javadocs that is a valid function call
 Any further ideas?

 Thanks,

 Matt
 - Original Message -
 From: Eoin Woods [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 1:18 PM
 Subject: RE: PoolMan woes


  We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.
 
  PoolMan does respond rather violently when it can't find its configuration
  file - which is poolman.xml in version 2.  I put this in
  $TOMCAT_HOME/classes and it appears to be found OK.
 
  If PoolMan doesn't find its configuration file, it ends up throwing a
  NullPointerException however, I've never seen this floor Tomcat - you just
  get an exception in the logs.
 
  How are you using PoolMan from within Tomcat?  We just import it into our
  servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a
 data
  source from it and then call ds.getConnection() to force initialisation.
 
  One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K
  JVM.
 
  Eoin.
  -Original Message-
  From: Matt Barre [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 03, 2001 11:25 AM
  To: [EMAIL PROTECTED]
  Subject: PoolMan woes
 
 
  I am trying to get PoolMan and TomCat to play nicely together.
  I am developing on Win2k, Tomcat 3.2.
 
  My first attempt was to use version 2.0.4 of Poolman with Tomcat
 3.2...upon
  access
  PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal
  window just
  vanishes. I tried increasing the heap size, but that didn't seem to help.
 
  Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but
  mysteriously it can't
  find its poolman.props file. I've tried putting it in directories that I'm
  absolutely
  positive are in my ClassPath without luck.
 
  I've read the docs pretty extensively I think, but can't seem to come up
  with an answer.
  My overall goal is to simply add connection pooling to tomcat. If anyone
 can
  give me some
  pointers, thanks in advance.
 
  Matt




Re: PoolMan woes

2001-07-05 Thread Matt Barre

One more thing to go and I think I'll be there :) My dev system uses SQL Server which
works perfectly with PoolMan currently. My prod system is running MySQL. Currently 
MySQL
gives an error saying user:'web@' not valid. I have made multiple entries in the mysql
user table for the same user...from the hosts: localhost, 127.0.0.1 etcdoesn't 
seem to
help...even have one with a blank host and one with a %.  I did some very primitive 
load
testing this afternoon with PoolMan and was really impressed. It appears to do a better
job of connection pooling than JBoss which is what I was using before this, and simply 
for
its connection pooling. Thanks for all the help so far. Anyone happen to know offhand 
why
PoolMan doesn't work with Tomcat4b5?

Matt


- Original Message -
From: Eoin Woods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: 'Matt Barre ' [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 12:11 PM
Subject: RE: PoolMan woes


 Hi Matt,

 PoolMan comes with a bunch of third party JAR files in the lib
 subdirectory.  PoolMan relies upon these JAR files as well as poolman.jar.

 The one you are missing here is jta.jar.

 According to the PoolMan User Guide the jdbc2_0-stdext.jar, jmxri.jar,
 jta.jar and xerces.jar libraries are REQUIRED.  The jmxtools.jar, ant.jar,
 junit.jar and poolman-testsuite.jar files are OPTIONAL (jmxtools.jar is used
 for the HTML admin agent, the rest are for development and testing).

 Cheers,

 Eoin.
 -Original Message-
 From: Matt Barre [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 05, 2001 10:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: PoolMan woes


 Thank you for the help. I upgraded to jdk1.3.1 which got PoolMan running. I
 can now setup
 the config file and tomcat presents me with a list of available pools when I
 use the
 packaged poolman application. I ran queries against the pool and had no
 problems. I
 shutdown Tomcat, and changed the poolman.xml. Next time I ran PoolMan it
 gave me the error
 listed below. I restored a backup copy of poolman.xml that had worked
 before, but the
 error persists. What's the trick I'm still missing? My problem now is that I
 get a weird
 error:

 java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
 at com.codestudio.util.JDBCPool.create(JDBCPool.java:328)
 at com.codestudio.util.ObjectPool.checkOut(ObjectPool.java:214)
 at com.codestudio.util.JDBCPool.requestConnection(JDBCPool.java:407)
 at
 com.codestudio.util.SQLManager.requestConnection(SQLManager.java:193)
 at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:234)
 at com.codestudio.util.PoolManBean.getResults(PoolManBean.java:62)

 I have PoolMan.jar in tomcat/lib as well as in /jdk1.3.1/jre/lib/ext. I
 would appear that
 it finds the .jar. Thanks for the help from everyone! Sometimes I wonder if
 I'm ever going
 to get this working. :)

 - Original Message -
 From: Eoin Woods [EMAIL PROTECTED]
 To: 'Matt Barre' [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 3:20 PM
 Subject: RE: PoolMan woes


   Method getDataSource(java.lang.String) not found in class
  com.codestudio.sql.PoolMan
 
  I use findDataSource(java.lang.String) - although both are documented in
 the
  JavaDoc.
 
  Is poolman.jar in your CLASSPATH when you compile?  I've just tested this
  with 2.0.1 and both findDataSource() and getDataSource() are found.
 
  Cheers,
 
  Eoin.
  -Original Message-
  From: Matt Barre [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 03, 2001 1:47 PM
  To: Eoin Woods; [EMAIL PROTECTED]
  Subject: Re: PoolMan woes
 
 
  Thanks for the tip. By taking the two suggestions I now have Tomcat
 somewhat
  stabilized. I
  am working on a jsp to get all the kinks worked out. I import the PoolMan
  packages but I
  get the following/weird error:
 
  Method getDataSource(java.lang.String) not found in class
  com.codestudio.sql.PoolMan
 
  According to the javadocs that is a valid function call
  Any further ideas?
 
  Thanks,
 
  Matt
  - Original Message -
  From: Eoin Woods [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Tuesday, July 03, 2001 1:18 PM
  Subject: RE: PoolMan woes
 
 
   We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.
  
   PoolMan does respond rather violently when it can't find its
 configuration
   file - which is poolman.xml in version 2.  I put this in
   $TOMCAT_HOME/classes and it appears to be found OK.
  
   If PoolMan doesn't find its configuration file, it ends up throwing a
   NullPointerException however, I've never seen this floor Tomcat - you
 just
   get an exception in the logs.
  
   How are you using PoolMan from within Tomcat?  We just import it into
 our
   servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a
  data
   source from it and then call ds.getConnection() to force initialisation.
  
   One difference is that we're on Solaris with JDK 1.3.1 and you have a
 W2K
   JVM.
  
   Eoin.
   -Original Message

PoolMan woes

2001-07-03 Thread Matt Barre

I am trying to get PoolMan and TomCat to play nicely together.
I am developing on Win2k, Tomcat 3.2.

My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon access
PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal window just
vanishes. I tried increasing the heap size, but that didn't seem to help.

Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but mysteriously it 
can't
find its poolman.props file. I've tried putting it in directories that I'm absolutely
positive are in my ClassPath without luck.

I've read the docs pretty extensively I think, but can't seem to come up with an 
answer.
My overall goal is to simply add connection pooling to tomcat. If anyone can give me 
some
pointers, thanks in advance.

Matt




Re: PoolMan woes

2001-07-03 Thread Matt Barre

Thanks for the tip. By taking the two suggestions I now have Tomcat somewhat 
stabilized. I
am working on a jsp to get all the kinks worked out. I import the PoolMan packages but 
I
get the following/weird error:

Method getDataSource(java.lang.String) not found in class com.codestudio.sql.PoolMan

According to the javadocs that is a valid function call
Any further ideas?

Thanks,

Matt
- Original Message -
From: Eoin Woods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 1:18 PM
Subject: RE: PoolMan woes


 We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.

 PoolMan does respond rather violently when it can't find its configuration
 file - which is poolman.xml in version 2.  I put this in
 $TOMCAT_HOME/classes and it appears to be found OK.

 If PoolMan doesn't find its configuration file, it ends up throwing a
 NullPointerException however, I've never seen this floor Tomcat - you just
 get an exception in the logs.

 How are you using PoolMan from within Tomcat?  We just import it into our
 servlets and call PoolMan.findDataSource(MyDataSource) to retrieve a data
 source from it and then call ds.getConnection() to force initialisation.

 One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K
 JVM.

 Eoin.
 -Original Message-
 From: Matt Barre [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 03, 2001 11:25 AM
 To: [EMAIL PROTECTED]
 Subject: PoolMan woes


 I am trying to get PoolMan and TomCat to play nicely together.
 I am developing on Win2k, Tomcat 3.2.

 My first attempt was to use version 2.0.4 of Poolman with Tomcat 3.2...upon
 access
 PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal
 window just
 vanishes. I tried increasing the heap size, but that didn't seem to help.

 Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but
 mysteriously it can't
 find its poolman.props file. I've tried putting it in directories that I'm
 absolutely
 positive are in my ClassPath without luck.

 I've read the docs pretty extensively I think, but can't seem to come up
 with an answer.
 My overall goal is to simply add connection pooling to tomcat. If anyone can
 give me some
 pointers, thanks in advance.

 Matt