-
1. Re: javax.naming.NameNotFoundException: TraderEJB not bound
raja05 Apr 22, 2003 10:17 AM (in response to seeteshh)TraderHome home = (TraderHome)ctx.lookup("TraderJNDI");
should work. Your JNDI name is
<jndi-name>TraderJNDI</jndi-name>
-Raj -
2. Re: javax.naming.NameNotFoundException: TraderEJB not bound
seeteshh Apr 23, 2003 1:12 AM (in response to seeteshh)Hi Raj,
Thanks for pointout out the error. Its working fine.
Seetesh -
3. Re: javax.naming.NameNotFoundException: TraderEJB not bound
samirny Apr 25, 2003 12:23 PM (in response to seeteshh)Hi..
I am new to JBOSS.My ejb is working fine..What is the CLASSPATH to set to run the client?
Rightnow I am setting
CLIENT_CLASSPATH=$(JBOSS_HOME)/client
JBOSS_CLASSPATH=$(CLIENT_CLASSPATH)/concurrent.jar:$(CLIENT_CLASSPATH)/jboss-common-client.jar:$(CLIENT_CLASSPATH)/jboss-client.jar:$(CLIENT_C
LASSPATH)/jboss-system-client.jar:$(CLIENT_CLASSPATH)/jboss-j2ee.jar:$(CLIENT_LASSPATH)/jbosssx-client.jar:$(CLIENT_CLASSPATH)/jnp-client.jar:
$(CLIENT_CLASSPATH)/log4j.jar:$(CLIENT_CLASSPATH)/jsse.jar:$(CLIENT_CLASSPATH)/jcert.jar:$(CLIENT_CLASSPATH)/jnet.jar:$(CLIENT_CLASSPATH)/jmx-
rmi-connector-client.jar:$(CLIENT_CLASSPATH)/jbossha-client.jar:$(CLIENT_CLASSPATH)/jboss-jsr77.jar:$(CLIENT_CLASSPATH)/crimson.jar:$(CLIENT_C
LASSPATH)/jboss-jaas.jar:.
But getting exceptions
as Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/tm/TransactionPropagationContextFactory
I know i don;t need to have all the above jars.
CAN U PLEASE tell me what r the exact jars needed to run the client.
Thanks. -
4. Re: javax.naming.NameNotFoundException: TraderEJB not bound
daseinw May 3, 2003 8:43 PM (in response to seeteshh)Hi,
I'm by no means a JBOSS expert, but I thought I'd share my CLASSPATH since I most recently had the same issue. You probably want to ignore everything except the JBoss jars, but I thought I'd include the path for my client in its entirety:
C:\jdk1.3.1_07\jre\lib\i18n.jar;
C:\jdk1.3.1_07\jre\lib\jaws.jar;
C:\jdk1.3.1_07\jre\lib\rt.jar;
C:\jdk1.3.1_07\jre\lib\sunrsasign.jar;
C:\j2sdkee1.3.1\lib\j2ee.jar;
C:\j2sdkee1.3.1\lib\ejb10deployment.jar;
C:\j2sdkee1.3.1\lib\j2ee-ri-svc.jar;
C:\j2sdkee1.3.1\lib\j2eetools.jar;
C:\j2sdkee1.3.1\lib\jhall.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jboss-client.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jboss-common-client.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jboss-jaas.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jnp-client.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jbosssx-client.jar;
D:\applications\jboss-3.2.0_tomcat-4.1.24\client\jboss-transaction-client.jar
Hope that helps.
By the way, not sure if you're doing this by manually, but I'm using IntelliJ's idea to create specific JBoss libraries that I can include when necessary.
Good luck!