[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread mailmustu
I think my JNDI lookup is wrong, I tried all of the following: | hw = (HelloWorldLocal) ctx.lookup(HelloWorldLocal.class.getName()); | hw = (HelloWorldLocal) ctx.lookup("HelloWorldLocal/local"); | hw = (HelloWorldLocal) ctx.lookup("MyEjb3/HelloWorldLocal/local"); | | hw = (HelloWorldLo

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread fhh
Use the JNDIViewer in the jmx-console. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050141#4050141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050141 ___

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread mailmustu
I have to say JBoss has worst console compared to any other application server. I can nowhere find a list of "deployed applications", even tomcat has this basic but damn important feature in its admin console. About the JNDI viewer, i guess you are referring to "service=JNDIView" ?? When I clic

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread andydale
Have you tried binding it to a specific name using the following annotations: | @LocalBinding(jndiBinding = "") | @RemoteBinding(jndiBinding="") | then you could look up the name as defined in "" Cheers, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread mailmustu
Thank you for your inputs I made following changes | package com.mustafa.ejb30; | | import javax.ejb.Local; | import javax.ejb.Remote; | import javax.ejb.Stateless; | import org.jboss.annotation.ejb.LocalBinding; | import org.jboss.annotation.ejb.RemoteBinding; | | @Stateless

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread ruchi123456
I am new to this topic, but have been looking for the same stuff. I am not sure but as i have read There are a lot of questions about injection not working in AS 4.0 and 4.2. Most of the problems boil down to injection not working the web layer. jboss AS 4.0 and 4.2 are J2EE 1.4 servers with an

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread vri_97
Hi Ruchi, I also has the same problem with Mustafa, so in this case are you suggesting that EJB3.0 is not run properly in JBoss yet ? esp in 4.0 an 4.2? Which JBoss AS version do you suggest for running EJB3.0 ? Thank you Regards, Ferry View the original post : http://www.jboss.com/index.html?m

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread jaikiran
anonymous wrote : Thats itnothing specific to my project in "java: Namespace" or "Global JNDI Namespace" | Nothing anywhere about HelloWorldbean or HelloWorldLocal . | If thats the case then i dont think your bean has been deployed. See if you can find anything in the server.log file i

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-05-31 Thread andydale
It could also be helpful if you could post the exact structure of the ear archive and what is contained within it e.g. (application.xml contents) Cheers, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050394#4050394 Reply to the post : http://www.jbos

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-01 Thread mailmustu
Thank you guys for your inputs. Jaikiran, the server.log is miles long, but I guess this could be a culprit. I think I am missing some jar somewhere... | ObjectName: jboss.j2ee:service=EJB3,module=MyEjb3.jar | State: FAILED | Reason: java.lang.NoClassDefFoundError: org/hibernate/util/

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-01 Thread mailmustu
after a bit of googling I realized.. I was missing "hibernate3.jar" in the lib folder. I added it and Voila...it worked! | Message is Hello Mustafa! from your first EJB 3.0 component ... | 2 weeks of torture for one damn missing jar file! :) Thank you all for your help. - Mustafa http:

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-01 Thread mailmustu
Hi Andy, I am still not sure if the way I package and deploy EJB 3 ear file is correct. EJB 3 has done away with ejb-jar.xml, but there are other xml files like application.xml, jboss.xml, jboss-app.xml, jboss-web.xmland so on. here is the exploded structure of my EAR file: | tmp6074

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-01 Thread ruchi123456
Hi Ferry, >From what i have read so far, EJB 3.0 is not yet fully supported in AS 4.0.5 >or 4.2. In 4.2 , we may still use it as: @EJB(name="java:comp/env/ejb/MyBeanLocal") private MyBeanLocal myBean; This i have got from other forms posted in here only. But AS 5.00 Beta version shou

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-03 Thread vri_97
Hi Ruchika, Thank you for your reply. Sorry, I don't understand where should I put the following suggested statement to ? @EJB(name="java:comp/env/ejb/MyBeanLocal") Should I put it in interface, the bean itself or at the client side ? As I'm new to J2EE, and the condition that there is still a f

[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: MyEjb3 not bound :(

2007-06-03 Thread vri_97
Hi Ruchika, Sorry, forget about my previous post, I just checked in other forum. I'm still struggling with my JBoss 4.2, it's still not working, even if I call the bean using : MyLocalIfc bean = (new InitialContext()).lookup("myEAR/MyremoteBean/remote"); Thank you. Regards, Ferry View the origi