-
1. Re: Problem with JNDI lookup
jwkaltz Aug 8, 2002 5:53 AM (in response to morgan)> My application (including the ejb code) is packaged
> together in a "war" file. In "./web-inf" is
> "web.xml", and in "./meta-inf" are the files,
> "jboss.xml" and "ejb-jar.xml" (I've listed these two
> at the end of this message). I've also done nothing
> with "jndi.properties".
My understanding (but I'm not 100% sure on this), is that if you package servlet/jsps together with ejbs, then you have to package the whole thing as an .ear, not a .war. A war archive would contain only the frontend stuff, not the ejb's.
(Like I said, not 100% sure, but it's worth trying it out with an .ear (Enterprise Archive) package) -
2. Re: Problem with JNDI lookup
morgan Aug 10, 2002 10:27 AM (in response to morgan)Thanks Frank, you nailed it. That's the problem when you try to learn too many new things at once (e.g., J2EE and JBoss) you're never sure exactly which piece of knowledge you're missing or where the clue to the solution lies.
So I refactored the jar/war files, put everything into an ear file, added the appropriate deployment descriptors, and now it seems to be working.
Once again, thanks!
:Paul