tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hookom, Jacob" <Jacob.Hoo...@redline.mckhboc.com>
Subject RE: Which is the best way to install an application with connecti on p ooling
Date Wed, 03 Sep 2003 19:11:29 GMT
I'm trying to accomplish a similar thing with an AS/400 db over JNDI.

I have my context setup in my meta-inf and from stack traces; I see that
DBCP is the one launching the error, so I know that the context binding is
loading successfully.

The problem is that DBCP is throwing and exception that the driver specified
is null, I have the jar located in the webapp's lib, the shared/lib and the
server/lib... which lib directory should contain the driver so that the
context can see it?

Note:  I'm deploying via Ant by pointing at a war file in my project.

Many Thanks!

Jacob Hookom
McKesson Medical-Surgical

-----Original Message-----
From: John Turner [mailto:tomcat-user@johnturner.com] 
Sent: Wednesday, September 03, 2003 10:32 AM
To: Tomcat Users List
Subject: Re: Which is the best way to install an application with connecti
on p ooling


If you are using a WAR file, put your entire Context block into a file 
called (your-webapp).xml and stick it in META-INF.  Whatever is legal in 
a Context block in server.xml is also legal there.  Then you can deploy 
the WAR file using the manager app froma  remote system.

The admin and manager apps themselves do the same thing, check out 
admin.xml etc in the default distribution.

John

Kevin Passey wrote:

> John,
> 
> I can easily deploy a basic app using the manager. But when it comes to
> deploying something that needs additional "Context" information I come
> un-stuck.
> 
> I basically have an app that I want to connect to an AS/400 database using
> connection pooling.
> 
> The only way I can get it to work is to manually insert the entries in the
> server XML file and then re-start.
> 
> Any other pointer greatly appreciated.
> 
> Regards
> 
> Kevin
> 
> 
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: 02 September 2003 13:45
> To: Tomcat Users List
> Subject: Re: Which is the best way to install an application with
> connection p ooling
> 
> 
> 
> There are a number of ways.
> 
> If autoDeploy = "true" then you can just drop the WAR file in the Host's 
> appBase directory.
> 
> You can also use the manager app's various tasks (install, deploy, etc):
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
> 
> This is easily accomplished with ant.
> 
> John
> 
> Kevin Passey wrote:
> 
> 
>>I have normally stopped the server - edited the server XML file, put my
> 
> war
> 
>>file in the webapps folder and re-started tomcat.
>>
>>Using the manager app - is there a way I can do this 1)from a remote
> 
> system
> 
>>and 2)without manually editing the server XML file.
>>
>>I've have tried putting the jndi info using the admin console but I keep
>>getting NULL driver exceptions.
>>
>>Thanks
>>
>>Kevin
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
View raw message