Arnab Sinha

Ranch Hand
+ Follow
since Jul 23, 2006
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 Arnab Sinha

Thank you for providing that information.
1) Do you know of any plugins or 3rd party that we can use fairly easy with netbeans 6 for code coverage? I didnt see anything obvious on the site

2) Can Netbeans 6 be configured with Rational ClearCase and ClearQuest?

Thanks for your response
Thanks for your response. I will look into it.
Hi All,

I am reading the HF EJB book. At the same time I would like to do the sample examples in the book. The book talks about SUN RI server which i am having a hard time finding.

Can someone please recommend which would be a easy app server to use to develop some quick EJBs and test them using core java classes or servlets and jsps.

I tried using JBOSS and ran into some strange JNDI issues when I use a core class to lookup the bean. Here is the link of my post in JBOSS forum for that problem

I am able to compile my ejb class and interfaces, however i would like to test them as well.

Thanks in advance.
Hi All,

I downloaded JBOSS 4.0.2 app server. I am doing the first program from HF EJB book.

I was able to compile the bean class and interfaces and package them into the jar file.

I believe I was also able to deploy it successfully because I can see my bean in the JMX console:

+- ejb (class: org.jnp.interfaces.NamingContext)
| +- AdviceBean (proxy: $Proxy50 implements interface headfirst.AdviceHome,interface javax.ejb.Handle)

However my problem is when I invoke the bean from a core java class:

import javax.naming.*;
import java.rmi.*;
import javax.rmi.*;
import headfirst.*;
import javax.ejb.*;

public class AdviceClient
public static void main(String[] args)
new AdviceClient().go();

public void go() {
Context ic = new InitialContext();
Object o = ic.lookup("ejb/AdviceBean");

AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);

Advice advisor = home.create();
catch (Exception ex)


It compiles fine but when I try executing the client I get the following run-time error:

java AdviceClient

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.getURLOrDefaultInitCtx(
at javax.naming.InitialContext.lookup(
at AdviceClient.go(
at AdviceClient.main(




<!-- Session Beans -->



Any help would be appreciated.

Thanks in advance.
[ October 16, 2007: Message edited by: Arnab Sinha ]
12 years ago
Congrats!! I know the feeling but its still a great score.
Enjoy it!!
great score. Congratulations!!!
I found it very strange when I logged into On clicking the logo link, it said the following:

Sun Certified Web Component Developer for J2EE 1.4
There are no logos available for this program

Is this accurate?
Excellent score
Thanks for sharing your experience.
Congrats!! we share the same score and coincidently I also cleared it today. Calls for a toast
Thanks to everybody on this forum for helping me with my doubts and concerns.

I prepared seriously for about 6 weeks before exam. Prior to doing that it was just on and off basis. I work full-time but dedicated atleast 2 hours a day and avoided alcahol the last week .

Javaranch - awesome site for all info needed.
HFSJ - is a awesome study guide.
SCWCD Exam study kit - for last minute cramming.

Thanks to Mikalai Zaikin's notes.
Thanks to Marc Peabody's notes on Design Patterns.

I did the SCWCD Mock Exam on this site.
I also did Marcus Green's 3 scwcd quizzes. Avg 88%
Score 68% on HFSJ Mock exam.

Although I wish I touched the 90 percentile I am glad that I cleared SCWCD.
Now its time for lots of alcahol
[ October 11, 2007: Message edited by: Arnab Sinha ]
HFSJ states that base64 encoding is used only by BASIC and not FORM

SCWCD Exam study kit says - base64 encoding is used both by BASIC and FORM.

Which is correct?

Figured out the problem. Both Person and Pet should be public. I had them as default.

Thank you for your response.
This was definitely wrong -
page import="person.arnab.*"

It should be page import="com.arnab.*"

However that didnt help: here is the stack trace:

org.apache.jasper.JasperException: /EL.jsp(6,0) The value for the useBean class attribute com.arnab.Person is invalid.