[jboss-user] [Beginners Corner] - Re: comp not bound

2006-08-01 Thread raysonliu
You are right Peter, it's my mistake. Thank you all for your help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962273#3962273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962273

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-08-01 Thread PeterJ
You apparently compiled some of your code with the 5.0 JVM and are now trying to run it with the 1.4.2 JVM. Either recompile (and redeploy) using 1.4.2, or run using 5.0. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962264#3962264 Reply to the post : htt

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-08-01 Thread raysonliu
Thanks, but it's becoming worse, the JVM launcher crashed and I got the following error: | java.lang.UnsupportedClassVersionError: converter/ConverterHome (Unsupported major.minor version 49.0) | at java.lang.ClassLoader.defineClass0(Native Method) | at java.lang.ClassLoader.defin

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-08-01 Thread jaikiran
anonymous wrote : +- ConverterBean (proxy: $Proxy52 implements interface converter.ConverterHome,interface javax.ejb | .Handle) So your lookup should be: Context ctx = new InitialContext(); | Object objref = ctx.lookup("ConverterBean"); This should work. However, i am surprised as to why yo

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-08-01 Thread raysonliu
Thanks Peter. The following is what I got: | Ejb Module: ConverterAppEJB.jar | java:comp namespace of the ConverterBean bean: | +- env (class: org.jnp.interfaces.NamingContext) | | java: Namespace | +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) | +- Defa

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-07-31 Thread PeterJ
Try this. With the EJB deployed, bring up the jmx-console. In the "jboss" namespace click on the link named service=JNDIView. On the reuslting page, scroll down to the list() operation and click on the Invoke button. Search for your EJB on the resulting page and then use that name to look it

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-07-31 Thread raysonliu
I tried this, everything is same except this time it's complaining that ejb not bound, as following: | Caught an unexpected exception! | javax.naming.NameNotFoundException: ejb not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.Naming

[jboss-user] [Beginners Corner] - Re: comp not bound

2006-07-28 Thread PeterJ
Try remove the line that reads: Context myEnv = (Context) initial.lookup("java:comp/env"); and change the following line to: Object objref = initial.lookup("ejb/ConverterBean"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961653#3961653 Reply to the post