Win a copy of Terraform in Action this week in the Cloud forum!

Hitesh Ankolekar

+ Follow
since Aug 22, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hitesh Ankolekar

consider code:
(this code is from K&b Guide Book)

class Animal

class Dog extends Animal{}
class DogTest
public static void main(String args[])
Animal animal =new Animal();
Dog d=(Dog)animal;

Why code gives a Runtime Error
Can anyone please explain the statement below (with example)

Reference variable can only of one type and once declared that type can never changed although the object it reference changes.

Also Reference variable can be reassigned to other objects except declared as final.
Thanks Shailesh.
The previous problem is solved .But now I'm getting new problem as

Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: The TCP/IP connection to the host has failed. Connection refused: no further information

please reply what should I do further???
I have pasted the sqljdbc jar file in lib directory of AppServer
but still I'm getting the same error of Classpath not found
So please Tell me what should I do to solve this error.

Also what is RESOURCE TYPE (Admin Console)which we mention while Connection pooling??

I have downloaded jar file for SQLServer 2005 and I'm working with SqlServer2000
Can you please tell me in which folder I'll get sqljdbc jar file
and in which folder exactly I need to dump the file .In lib folder of "domain" folder or lib folder under AppServer folder.
Actually I searched for sqljdbc jar file but unable to get it.I am using MICROSOFT SQLSERVER 2000 ENTERPRISE EDITION

thank you
Can you Please explain the steps as I have no idea about it
thank you
While creating connection with database I am getting error as

'pingConnectionPool' failed in 'resources' Config Mbean
Class name is wrong or classpath is not set for :

I am using Sun Microsystems Application Server PE 8 and Microsoft SQL Server 2000 as database

Please Help