-
1. Re: JBOSS 4.0.2 and EJB 2.1 - simple application - not worki
jaikiran Sep 10, 2008 3:30 AM (in response to lingareddy)From the web.xml, remove this:
<ejb-link>HelloBean</ejb-link>
-
2. Re: JBOSS 4.0.2 and EJB 2.1 - simple application - not worki
lingareddy Sep 10, 2008 7:18 AM (in response to lingareddy)nested throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/alr', no ejb-link in web.xml and no local-jndi-name in jboss-web.xml)
If i remove ejb-link i am getting above error. could you tell jndi configuration for local bean and remote bean. Advaced Thanks! -
3. Re: JBOSS 4.0.2 and EJB 2.1 - simple application - not worki
jaikiran Sep 10, 2008 9:28 AM (in response to lingareddy)Just looked at your post again. Your jboss-web.xml contents is incorrect:
<ejb-ref> <ejb-ref-name>ejb/alr</ejb-ref-name> <local-jndi-name>jndi</local-jndi-name> </ejb-ref>
This should be a ejb-local-ref and not ejb-ref. Change it to:<ejb-local-ref> <ejb-ref-name>ejb/alr</ejb-ref-name> <local-jndi-name>jndi</local-jndi-name> </ejb-local-ref>
-
4. Re: JBOSS 4.0.2 and EJB 2.1 - simple application - not worki
lingareddy Sep 10, 2008 12:24 PM (in response to lingareddy)Thanks for your reply. nope. same error.
can you tell jndi configuration settings for jboss 4.0.2.
i am trying to call local ejb. jndi properties are required or not?
I am getting same error-Reason? -
5. Re: JBOSS 4.0.2 and EJB 2.1 - simple application - not worki
lincoln__a Sep 16, 2008 3:19 PM (in response to lingareddy)
Hi Friends,
Still i have beeen strugging to find solution.
I am running the local ejb from command prompt in same JVM. For this no need jndi.properties file and jboss.xml. Pleae cinfirm it. Direct i am looking home interface in look up.
setting following jar files at command prompt.
set path=path%; c:...
set classpath=%classpath;
C:\jboss-4.0.2\jboss-4.0.2\server\default\lib\jboss-j2ee.jar;
C:\jboss-4.0.2\jboss-4.0.2\server\default\lib\jboss.jar;
C:\jboss-4.0.2\jboss-4.0.2\server\default\lib\jboss-transaction.jar;
C:\jboss-4.0.2\jboss-4.0.2\server\default\lib\jnpserver.jar;
C:\jboss-4.0.2\jboss-4.0.2\server\default\lib\jboss-common.jar;
Confirm these jars are enough or any jar is missed?
But it is not working.
Please kindly provide client jndi looku up code for local bean calling at command prompt and jar file required for jnoss 4.0.2 to rin ejb 2.1 at clinet?