RE: Connection Pooling - additions to server.xml crashes 4.1.12

2002-12-17 Thread Kevin Passey
Hi all, especially Jake

Thanks for that - I had worked that out the hard way - but the alternative
you give will be my way ahead (assuming it works in my env).

Thanks for that Jake.

Cheers 

Kevin

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 14:08
To: Tomcat Users List
Subject: Re: Connection Pooling - additions to server.xml crashes 4.1.12



If you name a context in server.xml, your .war file will *not* be expanded 
automatically.  What you will need to do is stop Tomcat, manually expand 
the .war file to a directory named "shilton" and then 
restart.  alternatively, you can avoid editing the server.xml and put this 
in a context configuration file.  See the admin.xml and manager.xml files 
in "webapps" for examples.  Basically, you just copy your entire  entry to a separate .xml file.  I'd name it the same thing as your 
webapp to make it clear what that file if for, but I don't think that is a 
requirement.  Either way, you need to manually expand your .war file 
*before* tomcat is restarted.

Alternatively, you can start Tomcat (making sure to have removed the 
 entry from server.xml), create your context configuration 
file and name it "context.xml".  Put that in META-INF of your .war file, 
and then use the Tomcat manager app's "deploy" command to deploy your .war 
file.  Modify your context to have a docbase with the name of the .war file 
(I believe).  The easiest way to do this is to use the catalina ant manager 
tasks.

Jake

At 11:46 AM 12/17/2002 +, you wrote:
>Can anybody shed any light on this.
>
>If I add this to my server XML file :-
>
>- crossContext="true">
>   type="javax.sql.DataSource" />
>- 
>- 
>   factory
>   org.apache.commons.dbcp.BasicDataSourceFactory
>   
>- 
>   maxActive
>   100
>   
>- 
>   maxIdle
>   5
>   
>- 
>   maxWait
>   100
>   
>- 
>   username
>   INTERNET
>   
>- 
>   password
>   INTERNET
>   
>- 
>   driverClassName
>   com.ibm.as400.access.AS400JDBCDriver
>   
>- 
>   url
>   jdbc:as400://NORBERT
>   
>   
>   
>
>When I try to publish via a war file Tomcat will not start. If I delete the
>war file and publish the folder manually Tomcat starts - have I done
>something wrong.
>
>Some notes - I have my test server installed on a WIN2K box and it works ok
>- I am using IBM's WSAD 4.0.3 so I presume the files are not published via
a
>war.
>
>My production box is Linux RH7.2.
>
>Thanks for any input.
>
>Kevin
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Connection Pooling - additions to server.xml crashes 4.1.12

2002-12-17 Thread Jacob Kjome

If you name a context in server.xml, your .war file will *not* be expanded 
automatically.  What you will need to do is stop Tomcat, manually expand 
the .war file to a directory named "shilton" and then 
restart.  alternatively, you can avoid editing the server.xml and put this 
in a context configuration file.  See the admin.xml and manager.xml files 
in "webapps" for examples.  Basically, you just copy your entire  entry to a separate .xml file.  I'd name it the same thing as your 
webapp to make it clear what that file if for, but I don't think that is a 
requirement.  Either way, you need to manually expand your .war file 
*before* tomcat is restarted.

Alternatively, you can start Tomcat (making sure to have removed the 
 entry from server.xml), create your context configuration 
file and name it "context.xml".  Put that in META-INF of your .war file, 
and then use the Tomcat manager app's "deploy" command to deploy your .war 
file.  Modify your context to have a docbase with the name of the .war file 
(I believe).  The easiest way to do this is to use the catalina ant manager 
tasks.

Jake

At 11:46 AM 12/17/2002 +, you wrote:
Can anybody shed any light on this.

If I add this to my server XML file :-

- 
  
- 
- 
  factory
  org.apache.commons.dbcp.BasicDataSourceFactory
  
- 
  maxActive
  100
  
- 
  maxIdle
  5
  
- 
  maxWait
  100
  
- 
  username
  INTERNET
  
- 
  password
  INTERNET
  
- 
  driverClassName
  com.ibm.as400.access.AS400JDBCDriver
  
- 
  url
  jdbc:as400://NORBERT
  
  
  

When I try to publish via a war file Tomcat will not start. If I delete the
war file and publish the folder manually Tomcat starts - have I done
something wrong.

Some notes - I have my test server installed on a WIN2K box and it works ok
- I am using IBM's WSAD 4.0.3 so I presume the files are not published via a
war.

My production box is Linux RH7.2.

Thanks for any input.

Kevin

--
To unsubscribe, e-mail:   
For additional commands, e-mail: