[JBoss-user] [EJB/JBoss] - jndi look up problem

2004-07-08 Thread s_k_tripathi
hi friends Please help me I could not show my ejb in jmx-console i have deplyed it 
under the following naming context my jboss.xml is as  follows
my os is Windows XP


 enterprise-beans
 
ejb-nameTestEjb/ejb-name
jndi-namejava:comp/env/ejb/HelloHomeBean/jndi-name

   /enterprise-beans
it is a session bean- if i dont give java:comp and deploy the bean with the simple 
name client says Bean not found.While in the server log file it is showing that bean 
has bean deployed.So please help me any body.Becuase if i deploy the bean with the 
above name the exception in running the client is comp not found.Then what should i  do

my ejb-jar.xml file is as follows-

ejb-jar
enterprise-beans

ejb-nameTestEjb/ejb-name
hello.Test.HelloHomeBean
hello.Test.HelloBean
ejb-classhello.Test.HelloEjb/ejb-class
session-typeStateless/session-type
   transaction-typeContainer/transaction-type
 
/enterprise-beans

assembly-descriptor
 
   ejb-nameTestEjb/ejb-name
   method-name*/method-name
 
  container-transaction
  trans-attributeRequired/trans-attribute
   /container-transaction
 /assembly-descriptor
/ejb-jar

If my jboss.xml is as follows

enterprise-beans
 
ejb-nameTestEjb/ejb-name
jndi-nameHelloHomeBean/jndi-name

   /enterprise-beans
then it also show while running client that HelloHomeBean not found.
How to lookup in jmx-console about this bean and under which namespace should i see 
it.jmx-console shows nothing about the bean.

[/url]

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3841450#3841450

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841450


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - jndi look up problem

2004-07-06 Thread s_k_tripathi
hi 
my operating system is windows XP
please help me when i run the client the following errors comes--


D:\SKTEJBjava -classpath c:\jboss\client;d:\sktejb;c:\jboss\server\default\lib;
d:\sktejb;c:\jboss\client\jboss-common-client.jar;c:\jboss\client\jnp-client.jar
;c:\jboss\client\log4j.jar hello.HelloClient
javax.naming.NameNotFoundException: HelloHome not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at hello.HelloClient.main(HelloClient.java:21)

my ejb-jar.xml file is as follows--

?xml version=1.0?
!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
enterprise-beans

ejb-nameTestEjb/ejb-name
hello.HelloHome
hello.HelloBean
ejb-classhello.HelloEjb/ejb-class
session-typeStateless/session-type
   transaction-typeContainer/transaction-type
 
/enterprise-beans
/ejb-jar

my jboss.xml is as

?xml version='1.0' ?

   enterprise-beans
 
ejb-nameTestEjb/ejb-name
jndi-nameHelloHome/jndi-name

   /enterprise-beans



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3841048#3841048

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3841048


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user