Jaikiran,
Yes, as you suspected, jndi.properties was not in the jar. I added that. Now 
the jar contents are

META-INF
META-INF/MANIFEST.MF
jndi.properties
ejb
ejb/hello
ejb/hello/HelloBean.class
ejb/hello/HelloLocal.class
ejb/hello/HelloRemote.class


jndi.properties has contents
--------------------------------
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1099


Am I right with jndi.properties location? Am I missing any other descriptors? 


When I deploy the jar file, I see logs as   ( Is that first warning 
suspicious?? )

-----------------------------------------------
20:02:15,234 WARN  [JmxKernelAbstraction] 
jboss.j2ee:jar=EHello.jar,name=HelloBean,service=EJB3 is not registered
20:02:25,437 INFO  [JmxKernelAbstraction] creating wrapper delegate for: 
org.jboss.ejb3.stateless.StatelessContainer
20:02:25,437 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:jar=EHello.jar,name=HelloBean,service=EJB3 with dependencies:
20:02:25,453 INFO  [EJBContainer] STARTED EJB: ejb.hello.HelloBean ejbName: 
HelloBean
20:02:25,484 INFO  [EJB3Deployer] Deployed: 
file:/C:/jboss-4.2.0.GA/server/default/deploy/EHello.jar
-



The errors now I am getting are still the same
------------------------------------------------------
Error in main
java.lang.reflect.UndeclaredThrowableException
        at $Proxy0.hello(Unknown Source)
        at ejb.web.HelloTestRemote.main(HelloTestRemote.java:20)
Caused by: java.lang.Exception: Can not make remoting client invocation due to 
not being connected to server.
        at org.jboss.remoting.Client.invoke(Client.java:1555)
        at org.jboss.remoting.Client.invoke(Client.java:530)
        at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
        at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
        at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
        at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
        at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
        ... 2 more



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067634#4067634

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067634
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to