Siddharth Purandare

Ranch Hand
+ Follow
since Nov 13, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Siddharth Purandare

Hi Authors,

Thanks for answering my queries. Please dont misunderstood that I have any doubts about the capabilities but I was just curious to know how authors take care of writing the new book and that too for a new technology for the people like me who are new to EJB's.

Thanks again for answering my queries. Good luck with the release of new book.

Thanks and Regards,
Hi Authors,

I would like to ask authors that how you have taken care of concepts of new EJB 3.0 technology as its still in its initial phase. What I think is that just by understanding the specs specified from SUN Microsystems does not solves the BIG purpose like writing a book.

What I think is that ideally there should be some hands on experience/lifecycle of projects in new EJB's specification should be there then it will have an ideal platform for writing any book.

I may be wrong by asking such questions to authors but I was just curious to know the state of mind of authors before writing a book for such a new technologies.

I hope I am eligible to get a copy of this book so that I can understand the EJB from the fresh perspective from the authors of this book.

Thanks and Sorry If I would have asked the wrong question.

All the best for your book.
Hi All,

Thanks for all your help. I got the solution now. The web.xml of my web project and EJB deployment of my EJB project were not in sync with each other. I studied both the files and the related entries for <ejb-ref> in both the files was corrected by me to Run my First EJB application.

Thanks again.
14 years ago
Hi All,

Thanks for all your help. I got the solution now. The web.xml of my web project and EJB deployment of my EJB project were not on sync with each other. I studied both the files and the related entries for <ejb-ref> in both the files was corrected by me to Run my First EJB application.

Thanks again.
Hi Cameron ,

Thanks for the help. YES I am able to run it via JNDI explorer but when I write the below code in servlet its throwing the exception.

************Code*************

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

try{
Context ic=new InitialContext();
Object o=ic.lookup("ejb/com/HelloBeanHome");
HelloBeanHome home=(HelloBeanHome) PortableRemoteObject.narrow(o,HelloBeanHome.class);
HelloBean rem=home.create();
rem.myMethod();
}catch(Exception e){
e.printStackTrace();
}

}


***************Error*******************

[2/28/07 16:10:36:196 IST] 698fa86a WebGroup I SRVE0180I: [HelloWeb] [/HelloWeb] [Servlet.LOG]: Test: init
[2/28/07 16:10:36:586 IST] 698fa86a WebGroup E SRVE0026E: [Servlet Error]-[com.HelloBeanHome]: java.lang.NoClassDefFoundError: com.HelloBeanHome
at Test.doGet(Test.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
14 years ago
Hi, Thanks for showing interest in my thread. I am using the below code in my servlet. I also tried the same code in JSP as well as plain java class. The same JNDI name is appearing in my EJB deployment descriptor.



*************Code*************

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

try{
Context ic=new InitialContext();
Object o=ic.lookup("ejb/com/HelloBeanHome");
HelloBeanHome home=(HelloBeanHome) PortableRemoteObject.narrow(o,HelloBeanHome.class);
HelloBean rem=home.create();
rem.myMethod();
}catch(Exception e){
e.printStackTrace();
}

}



**************** Error is as below**************

Test is my Servlet.....

[2/28/07 16:10:36:196 IST] 698fa86a WebGroup I SRVE0180I: [HelloWeb] [/HelloWeb] [Servlet.LOG]: Test: init
[2/28/07 16:10:36:586 IST] 698fa86a WebGroup E SRVE0026E: [Servlet Error]-[com.HelloBeanHome]: java.lang.NoClassDefFoundError: com.HelloBeanHome
at Test.doGet(Test.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[ February 28, 2007: Message edited by: Siddharth Purandare ]
Hi all,

I am new to EJB's and First time creating EJB's in Websphere Version: 5.1.2. I have created the bean project in the Websphere and written a method myMethod() in which I have written "Hello Bean".

This is running absolutely fine when I test the Bean with the websphere's own JNDI explorer and its giving me the message what I have written in myMethod().

The same thing when I tried to Run using 1. Servlet OR 2. JSP OR 3. Plain Java class with main() (I created the new dynamic web project)I am not getting the desired output and getting the error.

There are no compilation error in the code also the packaging and placing of Beans is not an issue because the websphere is itself creating everything.


***********Error in Running servlet is ************

[2/27/07 16:01:46:950 IST] 7b388473 WebGroup I SRVE0180I: [HelloWeb] [/HelloWeb] [Servlet.LOG]: Test: init
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: jndiname: First component in name jndiname not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1399)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)



Let me know if you need any further help from my side I can provide the code of my Home/Remore/Implementation class But as I said everything is created by Websphere and there is no problem with the code as its running fine with its own JNDI explorer.

**************My EJB deployment descriptor is as below (This is created by Websphere)**********

<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">;
<ejb-jar id="ejb-jar_ID">
<display-name>FirstEJB</display-name>
<enterprise-beans>
<session id="HelloBean">
<ejb-name>HelloBean</ejb-name>
<home>com.HelloBeanHome</home>
<remote>com.HelloBean</remote>
<ejb-class>com.HelloBeanBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>


Thanks in advance for any help.

PS: I have also added the class path entry in my dynamic project where my servlet/jsp is located.
14 years ago
Hi all,

I am new to EJB's and First time creating EJB's in Websphere Version: 5.1.2. I have created the bean project in the Websphere and written a method myMethod() in which I have written "Hello Bean".

This is running absolutely fine when I test the Bean with the websphere's own JNDI explorer and its giving me the message what I have written in myMethod().

The same thing when I tried to Run using 1. Servlet OR 2. JSP OR 3. Plain Java class with main() (I created the new dynamic web project)I am not getting the desired output and getting the error.

There are no compilation error in the code also the packaging and placing of Beans is not an issue because the websphere is itself creating everything.


***********Error in Running servlet is ************

[2/27/07 16:01:46:950 IST] 7b388473 WebGroup I SRVE0180I: [HelloWeb] [/HelloWeb] [Servlet.LOG]: Test: init
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: jndiname: First component in name jndiname not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1399)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
[2/27/07 16:01:47:294 IST] 7b388473 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)



Let me know if you need any further help from my side I can provide the code of my Home/Remore/Implementation class But as I said everything is created by Websphere and there is no problem with the code as its running fine with its own JNDI explorer.

**************My EJB deployment descriptor is as below (This is created by Websphere)**********

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="ejb-jar_ID">
<display-name>FirstEJB</display-name>
<enterprise-beans>
<session id="HelloBean">
<ejb-name>HelloBean</ejb-name>
<home>com.HelloBeanHome</home>
<remote>com.HelloBean</remote>
<ejb-class>com.HelloBeanBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>


Thanks in advance for any help.

PS: I have also added the class path entry in my dynamic project where my servlet/jsp is located.
[ March 01, 2007: Message edited by: Mark Spritzler ]
Yes nick it was my typo mistake I corrected it. I know that the date has expired but Whom should I complaint thats the question??
Hi All,

I have cleared SCJP and SCWCD exams and wanted to enroll for free SCBCD5.0 Beta exam. I contacted prometric centre here in Mumbai,India. They told me that I have to provide the information like SCJP Id., exam id. etc to Centre Head at Prometric. They told me that they will schedule the exam for me and let me know the details but I never received any mails from them.

To whom should I contact of this incident? Is this happens with many people or I am the only exception?

Any help would be appreciated.
[ January 08, 2007: Message edited by: Siddharth Purandare ]
Hey Gowher!!!

CONGRATULATIONS my dear friend for the fantastic Score that you achieved. Your hard work really paid well. I can understand this much awaited success of yours. All the very best for the future endeavours.


CONGRATULATIONS Sayak...You got a terrific score!!! I was with you in this forum during the preparation so I can understand the importance of fellow ranchers....3 cheers for Java Ranch...
You got a WONDERFUL score!!! Hearty CONGRATULATIONS!!!
Thanks Vikas for posting this information but could you please explain that what else I can do into that website in the certification status it only says that the certification is achieved on a particular date.

Do you mean that we can track the certification pragress like when we will receive the certification? Please explain in detail.

What else we get apart from the certification I have heard that we get a medal also from SUN. Correct me if I am wrong.