RE: Counter gives naming exception
Dear All, Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. You will probably want to move the ejb-ref from web.xml to ejb-jar.xml (into the entity/session element for the bean in whose ejbCreate method you try to lookup CounterHome). Hmm? Ok, it makes sense. I'll try that. Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/ Ah, a fellow FreeBSD user. :-) Just curious, what are your experiences with Orion on FreeBSD? What JDK do you use? Kees Jan You are only young once, but you can stay immature all your life.
Re: Counter gives naming exception
On Tue, May 29, 2001 at 03:15:07PM +0100, Koster, K.J. wrote: Ah, a fellow FreeBSD user. :-) Just curious, what are your experiences with Orion on FreeBSD? What JDK do you use? Yes :). My experiences (out of developing J2EE applications on FreeBSD + Orion, for quite some time now) are that FreeBSD is a satisfactory platform for running Orion. I mainly use linux-sun-jdk-1.3.0 (classic vm), but have also used freebsd-sun-jdk-1.2.2 (beta) and linux-sun-jdk-1.2.2, without any trouble. Used Tya for JIT on freebsd-sun-jdk-1.2.2. Markus -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
Counter gives naming exception
Dear All, I'm sure I must be doing something dumb, but I've banging my head into this stupid wall for two days now. I should have stayed in school and learned something, but nooo, I had to do Computer Science. *argh!* :-) I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. What is so obvious that I missed it? Kees Jan You are only young once, but you can stay immature all your life.
RE: Counter gives naming exception
To look at the JNDI directory use the Orion Console tool: java -jar orionconsole.jar -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Koster, K.J. Sent: Monday, May 28, 2001 1:35 PM To: Orion-Interest Subject: Counter gives naming exception Dear All, I'm sure I must be doing something dumb, but I've banging my head into this stupid wall for two days now. I should have stayed in school and learned something, but nooo, I had to do Computer Science. *argh!* :-) I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. What is so obvious that I missed it? Kees Jan You are only young once, but you can stay immature all your life.
Re: Counter gives naming exception
On Mon, May 28, 2001 at 06:34:49PM +0100, Koster, K.J. wrote: I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. You will probably want to move the ejb-ref from web.xml to ejb-jar.xml (into the entity/session element for the bean in whose ejbCreate method you try to lookup CounterHome). How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. java -jar orionconsole.jar might be to some help, otherwise there are methods in javax.naming.Context to discover bound objects, for example: javax.naming.Context: NamingEnumeration list(String name) Markus -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
Re: Counter gives naming exception
if you are using NetBeans it comes with a JNDI explorer on the runtime tab of the explorer. --- Koster, K.J. [EMAIL PROTECTED] wrote: Dear All, I'm sure I must be doing something dumb, but I've banging my head into this stupid wall for two days now. I should have stayed in school and learned something, but nooo, I had to do Computer Science. *argh!* :-) I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. What is so obvious that I missed it? Kees Jan You are only young once, but you can stay immature all your life. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Counter gives naming exception
I am not sure if I understand you completely but it sounds like you forgot you counter ref in your ejb-jar.xml. Here is an example, I use the counter.jar in my user bean: enterprise-beans entity display-namenl.unwired.sgs.um.User/display-name ejb-namenl.unwired.sgs.um.User/ejb-name homenl.unwired.sgs.um.UserHome/home remotenl.unwired.sgs.um.User/remote ejb-classnl.unwired.sgs.um.UserEJB/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.Integer/prim-key-class reentrantFalse/reentrant cmp-fieldfield-nameid/field-name/cmp-field cmp-fieldfield-nameaccId/field-name/cmp-field ... ... cmp-fieldfield-namedatTimUpd/field-name/cmp-field primkey-fieldid/primkey-field ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref /entity And don't forget to include the counter as an ejb module in your application.xml! Good luck, Eddie - Original Message - From: Koster, K.J. [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 28, 2001 7:34 PM Subject: Counter gives naming exception Dear All, I'm sure I must be doing something dumb, but I've banging my head into this stupid wall for two days now. I should have stayed in school and learned something, but nooo, I had to do Computer Science. *argh!* :-) I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. What is so obvious that I missed it? Kees Jan You are only young once, but you can stay immature all your life.