[JBoss-user] [JNDI/Naming/Network] - Trouble looking up EJB local home interface in Jboss 4.0.3
Hello, I'm just learning EJB and towards that end I got the Dukes Bank App up and running in JBOSS and then added a jsp and a few of my own EJBs. The first bean I added was a remote stateful session bean which I accessed from the jsp I added; this worked fine. I then wrote another bean this time Extending EJBLocalObject and EJBLocalHome rather than their remote counterparts. I made what I think are the appropriate additions to the various deployment descriptors and copied the new ear file to the deploy directory. There were no deployment issues and the jboss output indicates that both beans were deployed. At runtime though when I try to access the LocalHome interface of the second bean, I get this error: 23:15:29,263 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception javax.naming.NameNotFoundException: exitsLocalBean not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) at org.jnp.server.NamingServer.getObject(NamingServer.java:528) at org.jnp.server.NamingServer.lookup(NamingServer.java:281) at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source) When I look at the JNDI list through the jmx-console I can see both beans listed. I did notice that the local bean is listed in the tree under a 'local' node like this: +- local (class: org.jnp.interfaces.NamingContext) | +- [EMAIL PROTECTED] (proxy: $Proxy103 implements interface com.exits.ejb.stateful.exitsLocalBeanHome) Does this imply that I need to have included 'local' somewhere in jndi binding in the jboss specific deployment descriptors? I'm stuck. Help! Thanks in advance. -exits View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933255#3933255 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933255 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - Nevermind, solved.
I solved it two minutes after (of course) I posted. The problem was that in jboss.xml I was using a jndi-name element rather than a local-jndi-name element. Thanks anyway. -exits View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3933259#3933259 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933259 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Looking for some sample SessionBean EJB code for jboss
Hello, I'm new to Jboss and EJB and I was wondering if anyone could point me towards some simple EJB application sample code. I've worked through the Jboss introductory doc and got the DukesBank application up and running and my strategy had been to try to pare down the Bank application to just a minimal example of a web app making calls on a SessionBean but I'm finding the bank app so complicated that figuring out what to pare off is not so easy. So, can anyone point me towards a simple app which includes maybe just a jsp and/or servlet and some session beans? Thanks in advance for any thoughts anyone may have! -exits View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931055#3931055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931055 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Getting Started Documentation] - Re: JBoss 4.0.0 Bank example compile error
I'm also hitting this error. Google yields a few similar cases but there don't seem to be any solutions posted. It does seem to always occur on Linux. I guess it's either a Linux, JDK, or Ant. I'm going to try to upgrade ANT and my JDK and see if that helps. From which jar file do you expect JTextField to be loaded? It seems it's not in any of the jars jboss installs so I guess it should be coming out of rt.jar. Anyone have any thoughts on this issue? -exits View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3857905#3857905 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857905 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user