You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com> on 2009/12/09 14:24:21 UTC

db jars in common/lib and shared/lib

Hi,

 

I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target to
run the tomcat, server started up properly.

 

Now I have removed these jar from common/lib and put under shared/lib,
server throws an error saying couldnot load the driver. 

 

Can you please let me know why it is working when it is in common/lib
and why it is not working when it is in shared/lib directory?

 

 

many thanks

Kasim

 



"Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
Yes, finally it worked,

Thanks for all who supported this.

thanks
Kasim

-----Original Message-----
From: Hadole, Nishant IN BOM SISL [mailto:Nishant.Hadole@siemens.com] 
Sent: 10 December 2009 13:25
To: 'Tomcat Users List'; Mohammad, Hammad Kasim Bekur
Subject: RE: db jars in common/lib and shared/lib

Try following changes in catalina.properties (Avoid spaces)

common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar,${catalina.home}/test/lib,${catalina.home}/test/lib/*.jar

With best regards,
Nishant Hadole
-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Thursday, 10 December, 2009 12:39 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo
it says that:

How do I add JARs or classes to the common classloader without adding
them to $CATALINA_HOME/common/lib?

Edit the file catalina.properties under $CATALINA_BASE/conf; there is a
property called common.loader to which you can add additional paths to
find JARs or classes for the common classloader.

Now I have added another property as: 
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar, ${catalina.home}/test/lib/*.jar

and created a directory called apache-tomcat-5.5.27\test\lib, I have
restarted tomcat server, still I get the same error. Any reason why?

many thanks
Kasim

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 12:14
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Hi,

My application is having a restriction that I cannot change or add jars
to common/lib, is there anyway I can create a new directory which is
equalent  to common/lib? What additional changes I need to make for
adding another directory?

Since If I open I can find tomcat/common/lib, server/lib, shared/lib.
All are having its own libraries, I need to add another directory called
test/lib and put my db jars, so that when server startup it should
identify the db jars from test/lib instead of common lib.

many thanks
Kasim
ext: 34632
Mobile: 9663763720
Skype: kasim.bekur

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 10:04
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib


Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


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


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


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


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


RE: db jars in common/lib and shared/lib

Posted by "Hadole, Nishant IN BOM SISL" <Ni...@siemens.com>.
Try following changes in catalina.properties (Avoid spaces)

common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar,${catalina.home}/test/lib,${catalina.home}/test/lib/*.jar

With best regards,
Nishant Hadole
-----Original Message-----
From: Mohammad, Hammad Kasim Bekur [mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Thursday, 10 December, 2009 12:39 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo
it says that:

How do I add JARs or classes to the common classloader without adding
them to $CATALINA_HOME/common/lib?

Edit the file catalina.properties under $CATALINA_BASE/conf; there is a
property called common.loader to which you can add additional paths to
find JARs or classes for the common classloader.

Now I have added another property as: 
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar, ${catalina.home}/test/lib/*.jar

and created a directory called apache-tomcat-5.5.27\test\lib, I have
restarted tomcat server, still I get the same error. Any reason why?

many thanks
Kasim

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 12:14
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Hi,

My application is having a restriction that I cannot change or add jars
to common/lib, is there anyway I can create a new directory which is
equalent  to common/lib? What additional changes I need to make for
adding another directory?

Since If I open I can find tomcat/common/lib, server/lib, shared/lib.
All are having its own libraries, I need to add another directory called
test/lib and put my db jars, so that when server startup it should
identify the db jars from test/lib instead of common lib.

many thanks
Kasim
ext: 34632
Mobile: 9663763720
Skype: kasim.bekur

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 10:04
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib


Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


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


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


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


RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo
it says that:

How do I add JARs or classes to the common classloader without adding
them to $CATALINA_HOME/common/lib?

Edit the file catalina.properties under $CATALINA_BASE/conf; there is a
property called common.loader to which you can add additional paths to
find JARs or classes for the common classloader.

Now I have added another property as: 
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar, ${catalina.home}/test/lib/*.jar

and created a directory called apache-tomcat-5.5.27\test\lib, I have
restarted tomcat server, still I get the same error. Any reason why?

many thanks
Kasim

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 12:14
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Hi,

My application is having a restriction that I cannot change or add jars
to common/lib, is there anyway I can create a new directory which is
equalent  to common/lib? What additional changes I need to make for
adding another directory?

Since If I open I can find tomcat/common/lib, server/lib, shared/lib.
All are having its own libraries, I need to add another directory called
test/lib and put my db jars, so that when server startup it should
identify the db jars from test/lib instead of common lib.

many thanks
Kasim
ext: 34632
Mobile: 9663763720
Skype: kasim.bekur

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 10:04
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib


Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


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


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


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


RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
Hi,

My application is having a restriction that I cannot change or add jars
to common/lib, is there anyway I can create a new directory which is
equalent  to common/lib? What additional changes I need to make for
adding another directory?

Since If I open I can find tomcat/common/lib, server/lib, shared/lib.
All are having its own libraries, I need to add another directory called
test/lib and put my db jars, so that when server startup it should
identify the db jars from test/lib instead of common lib.

many thanks
Kasim
ext: 34632
Mobile: 9663763720
Skype: kasim.bekur

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: 10 December 2009 10:04
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib


Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


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


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


RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


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


RE: db jars in common/lib and shared/lib

Posted by Joseph Morgan <jo...@ignitesales.com>.
Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-----Original Message-----
From: Joseph Morgan [mailto:joseph.morgan@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


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


RE: db jars in common/lib and shared/lib

Posted by Joseph Morgan <jo...@ignitesales.com>.
Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


RE: db jars in common/lib and shared/lib

Posted by Joseph Morgan <jo...@ignitesales.com>.
That doesn't mean someone didn't ax it.

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Wednesday, December 09, 2009 8:09 AM
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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


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


RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

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


Re: db jars in common/lib and shared/lib

Posted by Mark Thomas <ma...@apache.org>.
Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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


RE: db jars in common/lib and shared/lib

Posted by Joseph Morgan <jo...@ignitesales.com>.
Mohammad,

Look in your Tomcat/conf/catalina.properties file.  Within there you'll
find a "shared.loader=" line, and I suspect it is empty.  You'll likely
want to enter a value there, such as
"shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

-----Original Message-----
From: Mohammad, Hammad Kasim Bekur
[mailto:HammadKasimBekur.Mohammad@misys.com] 
Sent: Wednesday, December 09, 2009 8:01 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Tomcat: apache-tomcat-5.5.27
OS: Windows NT.
Ant: 1.7

Not from OS, downloaded version. 

many thanks
Kasim

-----Original Message-----
From: peter.crowther3@googlemail.com
[mailto:peter.crowther3@googlemail.com] On Behalf Of Peter Crowther
Sent: 09 December 2009 19:07
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

2009/12/9 Mohammad, Hammad Kasim Bekur
<Ha...@misys.com>

> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target
to
> run the tomcat, server started up properly.
>
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver.
>
> Can you please let me know why it is working when it is in common/lib
> and why it is not working when it is in shared/lib directory?
>
> It would help to have a few more details about your setup:

Operating system?

Tomcat version?  The locations to put files have changed over the years.

Is this Tomcat installed from http://tomcat.apache.org or is it a
repackaged
version that came with your operating system?

- Peter


"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys group for the
identity of the contracting party with which you are dealing. 

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


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


RE: db jars in common/lib and shared/lib

Posted by "Mohammad, Hammad Kasim Bekur" <Ha...@misys.com>.
Tomcat: apache-tomcat-5.5.27
OS: Windows NT.
Ant: 1.7

Not from OS, downloaded version. 

many thanks
Kasim

-----Original Message-----
From: peter.crowther3@googlemail.com
[mailto:peter.crowther3@googlemail.com] On Behalf Of Peter Crowther
Sent: 09 December 2009 19:07
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

2009/12/9 Mohammad, Hammad Kasim Bekur
<Ha...@misys.com>

> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target
to
> run the tomcat, server started up properly.
>
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver.
>
> Can you please let me know why it is working when it is in common/lib
> and why it is not working when it is in shared/lib directory?
>
> It would help to have a few more details about your setup:

Operating system?

Tomcat version?  The locations to put files have changed over the years.

Is this Tomcat installed from http://tomcat.apache.org or is it a
repackaged
version that came with your operating system?

- Peter


"Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

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


Re: db jars in common/lib and shared/lib

Posted by Peter Crowther <pe...@melandra.com>.
2009/12/9 Mohammad, Hammad Kasim Bekur <Ha...@misys.com>

> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target to
> run the tomcat, server started up properly.
>
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver.
>
> Can you please let me know why it is working when it is in common/lib
> and why it is not working when it is in shared/lib directory?
>
> It would help to have a few more details about your setup:

Operating system?

Tomcat version?  The locations to put files have changed over the years.

Is this Tomcat installed from http://tomcat.apache.org or is it a repackaged
version that came with your operating system?

- Peter

RE: db jars in common/lib and shared/lib

Posted by Joseph Morgan <jo...@ignitesales.com>.
Not required for the web app unless you are using connection pooling
within tomcat.  The DB drivers can be in shared.

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Wednesday, December 09, 2009 8:10 AM
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Mohammad, Hammad Kasim Bekur wrote:
> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target
to
> run the tomcat, server started up properly.
> 
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver. 

Entirely as expected. Database drivers have always had to be located in
common/lib so they are visible to both Tomcat internals (for connection
pooling) and the web app (so it can use them).

Mark




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


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


Re: db jars in common/lib and shared/lib

Posted by Mark Thomas <ma...@apache.org>.
Mohammad, Hammad Kasim Bekur wrote:
> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target to
> run the tomcat, server started up properly.
> 
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver. 

Entirely as expected. Database drivers have always had to be located in
common/lib so they are visible to both Tomcat internals (for connection
pooling) and the web app (so it can use them).

Mark




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