helloBean not bound ,no xml found
s_k_tripathi Jul 12, 2004 4:28 AMhi friends Please help me I am very helpless.
i have the ejb-jar.xml file as follows-
<?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_.dtd">
<ejb-jar>
<enterprise-beans>
<ejb-name>TestEjb</ejb-name>
hello.Test.HelloHomeBean
hello.Test.HelloBean
<ejb-class>hello.Test.HelloEjb</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</enterprise-beans>
<assembly-descriptor>
<ejb-name>TestEjb</ejb-name>
<method-name>*</method-name>
<container-transaction>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I have jboss.xml file as follows-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<enterprise-beans>
<ejb-name>TestEjb</ejb-name>
<jndi-name>hello.Test.HelloBean</jndi-name>
</enterprise-beans>
when i make the jars and deploy in jboss the server log file show no xml file found & when i run the client it show the follows exception=
java -classpath d:\sktejb;d:\sktejb;c:\jboss\client\jboss-common-clien
t.jar;c:\jboss\client\jnp-client.jar;c:\jboss\client\log4j.jar hello.Test.HelloC
lient
javax.naming.NameNotFoundException: hello.Test.HelloBean 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.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
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:530)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at hello.Test.HelloClient.main(HelloClient.java:23)
please any body help me