You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2007/07/15 03:39:14 UTC

RE: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

> From: Ken Bowen [mailto:kbowen@als.com] 
> Subject: DataSources and Tomcat (continue thread: Re: How to 
> use connectionpool with tomcat 1.2.9)
> 
> I also want to get the Tomcat DataSource machinery working.
> I'm using Tomcat 5.5.9.
> 
> I've slavishly followed the mySQL example in
>
http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h
tml

If you're using 5.5, why are you spending any time looking at the 4.1
documentation?  Try using the correct doc for the level you have:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
tml

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

Posted by Lyallex <ly...@gmail.com>.
You left this bit out

... it's not a criticism before anyone gets upset

I'd be glad to contribute to the documentation, just gotta figure out
how, guess I'll have to RTFM.

Rgds
Duncan

On 7/15/07, Mark Thomas <ma...@apache.org> wrote:
> Lyallex wrote:
> > One thing that constantly frustrates me is the apparent ambiguities in
> > the documentation
>
> Then do something constructive about it. You are part of the Tomcat
> community and the documentation is as much your responsibility as
> anyone else here. If you find a problem, report it. Better yet,
> suggest an alternative wording that improves the documentation or
> ideally, provide a patch.
>
> > 'Add this in between the </Context> tag of the examples context and
> > the </Host> tag closing the localhost definition'
> > Well there isn't a Context tag in my distro so I just invented one and
> > it works, of course we are always being advised to put our <Context>
> > thing in our web apps these days so that's what I'm going to try next.
>
> This has been now fixed in the docs 5.5.x and 6.0.x and will be in the
> next release of each.
>
> Mark
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

Posted by Mark Thomas <ma...@apache.org>.
Lyallex wrote:
> One thing that constantly frustrates me is the apparent ambiguities in
> the documentation

Then do something constructive about it. You are part of the Tomcat
community and the documentation is as much your responsibility as
anyone else here. If you find a problem, report it. Better yet,
suggest an alternative wording that improves the documentation or
ideally, provide a patch.

> 'Add this in between the </Context> tag of the examples context and
> the </Host> tag closing the localhost definition'
> Well there isn't a Context tag in my distro so I just invented one and
> it works, of course we are always being advised to put our <Context>
> thing in our web apps these days so that's what I'm going to try next.

This has been now fixed in the docs 5.5.x and 6.0.x and will be in the
next release of each.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

Posted by Ken Bowen <kb...@als.com>.
Indeed.  Simply swapping the Context given in

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html,

in for the Context given in

http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html

makes the 4.1 example work.   This way makes it clear what has changed.

Thanks very much.

Ken

Lyallex wrote:
> Hi
>
> How confused do you want to be ....
>
> I started looking at the 4.1 docs as well ... it'll never work
> I do object to having to download taglibs just to get a simple example
> working so you can keep all the code from the 4.1 example including
> the web.xml entry
> All you really need to change is the server.xml configuration as 
> described in
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html, 
>
> at least this is what I did and the example seems to work OK.
>
> One thing that constantly frustrates me is the apparent ambiguities in
> the documentation (it's not a criticism before anyone gets upset) the
> docs state
> 'Add this in between the </Context> tag of the examples context and
> the </Host> tag closing the localhost definition'
> Well there isn't a Context tag in my distro so I just invented one and
> it works, of course we are always being advised to put our <Context>
> thing in our web apps these days so that's what I'm going to try next.
>
> Good Luck
>
> Chers
> Duncan
>
> On 7/15/07, Caldarale, Charles R <Ch...@unisys.com> wrote:
>> > From: Ken Bowen [mailto:kbowen@als.com]
>> > Subject: DataSources and Tomcat (continue thread: Re: How to
>> > use connectionpool with tomcat 1.2.9)
>> >
>> > I also want to get the Tomcat DataSource machinery working.
>> > I'm using Tomcat 5.5.9.
>> >
>> > I've slavishly followed the mySQL example in
>> >
>> http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h
>> tml
>>
>> If you're using 5.5, why are you spending any time looking at the 4.1
>> documentation?  Try using the correct doc for the level you have:
>> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
>> tml
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the e-mail
>> and its attachments from all computers.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: DataSources and Tomcat (continue thread: Re: How to use connectionpool with tomcat 1.2.9)

Posted by Lyallex <ly...@gmail.com>.
Hi

How confused do you want to be ....

I started looking at the 4.1 docs as well ... it'll never work
I do object to having to download taglibs just to get a simple example
working so you can keep all the code from the 4.1 example including
the web.xml entry
All you really need to change is the server.xml configuration as described in
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html,
at least this is what I did and the example seems to work OK.

One thing that constantly frustrates me is the apparent ambiguities in
the documentation (it's not a criticism before anyone gets upset) the
docs state
'Add this in between the </Context> tag of the examples context and
the </Host> tag closing the localhost definition'
Well there isn't a Context tag in my distro so I just invented one and
it works, of course we are always being advised to put our <Context>
thing in our web apps these days so that's what I'm going to try next.

Good Luck

Chers
Duncan

On 7/15/07, Caldarale, Charles R <Ch...@unisys.com> wrote:
> > From: Ken Bowen [mailto:kbowen@als.com]
> > Subject: DataSources and Tomcat (continue thread: Re: How to
> > use connectionpool with tomcat 1.2.9)
> >
> > I also want to get the Tomcat DataSource machinery working.
> > I'm using Tomcat 5.5.9.
> >
> > I've slavishly followed the mySQL example in
> >
> http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h
> tml
>
> If you're using 5.5, why are you spending any time looking at the 4.1
> documentation?  Try using the correct doc for the level you have:
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
> tml
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org