dilan alex

Greenhorn
+ Follow
since Sep 17, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dilan alex

Hi All,

I spot the issue and I still find the reason why this all.

First I removed codes and compile and then run. At one point project compiled and deployed successfully in Jboss.
I could start jboss without any error message(specially above mentioned message).
What I found is in my POM.xml I have dependency for Hibernate like this



When I removed this dependency from POM.xml everything worked fine. No errors in server startup.
But Still Im finding the reason and this details might help to someone.

Regards,
Dilan.
12 years ago
Hi All,

I'm running Spring project in Jboss 5.0. I built the project from Maven and copied .war file to the deploy directory.
When server is starting Following error is printed in server log.



I did lot of things to get rid of this error. But could not solve it.
Do anyone here have any idea ???

Regards,
Dil.
12 years ago
Hi all,

I removed Eclipse and got a new copy of Eclipse. (Jboss tools have been installed in earlier version) and could run jboss server from it.

Regards,
Dil.
12 years ago
Hi All,

I found that same jboss server is starting and running well in Spring Tool Suite(STS) IDE.
And this is running well in Command prompt also.

Its little tricky but still I cannot find the reason that is not running in Eclipse Indigo IDE.

Regards,
Dila.
12 years ago
Hi All,

I'm using jboss 5.0 and I tried start it from Eclipse Indigo.
What I got is an error message saying ''Could not find the main class: G:\program. Program will exit"

In the console there is a error log like this



I'm Using Windows 7 and java 1.6. path and classpath has been set propely. (Im using java 64 bit version).
I have done this before and did not happen like this.

Can any one help.

Regards,
Dila.
12 years ago
Hi all,

I'm cannot understand this situation in abstract methods and interface method.

let say, there is a interface 'Test' and abstract class Info



Following class extends Info and implements Test.
Can anyone explain me which load() method is implemented ??



As code compiled and run, it seems that interface load method is implemented. but how??
What happen to the abstract class method ??

Regards,
Dil.
Hi all,

I have made a mistake with above post. It should be correct like this.



instance variables are assigned values after the call to super() in a constructor, in other words, after all
super-constructors have run.

Regards,
Dil.

Rumesh Eranga wrote:I am not good at this much. I can't figure it out. But if you didn't over ride the method1 at BB class it would print "a".

regards.



I could figure out it.

Instance variables are instantiated after all of its constructors are completed. Here I create new BB object
'BB b = new BB();' It calls BB's default constructor and then AA's no-arg constructor. Within AA constructor it calls another method 'method1' which is in BB class.
At this time AA's constructor completes and assigns values to the 'a' and 'b'(in AA class). Since constructor of AA calls a method in BB, constructor of BB is not completed. So there are no any value for 'a' in class BB.
Since this is a String it has its default value null.

I think I'm correct.

Regards,
Dil.
Hi all,



The result of the above code is 'null'. I cannot understand why it results a null.
Can anyone explain >>

Regards,
Dil.


I got this question from one of book. Explanation about this in the book is

"Taken individually, the equals() and hashCode() methods
are legal, potentially contract-fulfilling overrides. The problem is that they don’t match
each other. In other words, two objects that are equal according to equals(), do not
necessarily return the same result from hashCode()."

Can anyone explain why equals() and hashCode() not matching???

Regards,
Dil

Tommy Delson wrote:I let you decided and tell me what do you think.....



Hi tommy,

Yes yes...
"Static methods are inherited but cannot be overridden".

that is what I got to know by now.

Thank for support,
Dilan.

Narasimham Varanasi wrote:Hello @ALL,

I am planning to take scjp/ocjp 1.6 .
But i have a scjp K&B certification book of version 1.5 .
Can i read 1.5 k&b and clear 1.6 certification.
Am i missing any topics .
What extra should i read apart from the topics of 1.5 to clear 1.6 certification.

Thank you @ALL



If you want you can, but try to get 1.6 book and study it.

Regards,
Dilan.
Hi Rumesh,

"SCJP Sun Certified Programmer for Java 6 Exam 310-065" by By Katherine Sierra, Bert Bates" is the recommended book to study.
Also after going through this book try to find "OCP Java SE 6 Programmer Practice Exams (Exam 310-065)" book to practice the exam.
This book have 4 practice exams.

Regards,
Dilan Alex.
Hi Tommy,

Ok It means All methods are inherited regardless of static, but we cannot override them(only static methods).
We can access these inherited static methods using object reference or by direct.

is it??

Regards,
Dilan.

Chirath Uralagamage wrote:I am using windows 7. I don't know whether it is a problem of the OS or not. But I'm quite sure that my codes are correct. The destinations are also correct. The source file is also in the picture attached.

Thanks in advance mates
Chirath



Hi Chirath,

Set your classpath corectly and try to run it again.

do it like this

.;%JAVA_HOME%\lib;

Regards,
Dilan.