At 04:38 PM 23/11/99 -0700, Alen Peacock wrote:
>I'm having trouble with using Jonas in conjunction with Apache/Jserv.
>
>I have created a functional EJB.  I have created a regular JavaBean
>which interfaces with the EJB, with a client program that calls the
>JavaBean in order to access the EJB.  The client
>program<->JavaBean<->EJB works correctly.[1]

You'll need to put into your jserv.properties file

wrapper.bin.parameters=-Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
wrapper.bin.parameters=-Djava.naming.provider.url=rmi://localhost:1099/

So the java VM that jserv starts knows which naming system to use.

>However, if I try to drop in a JSP page in place of the working client,
>the reference to the EJB's Home interface is always null, which causes
>Jserv to throw an exception and exit before fully rendering the page
>(NullPointerException appears only in jserv.log, not on the .jsp's
>output html).  No other errors are reported in the logs.
>
>Any ideas?  Anyone run into similar problems?  Anyone at least having
>success with jsp <-> javabean <-> Jonas EJBs (so that I know to continue
>pounding on my own setup)?
>
>Thansk!
>
>
>[1] As outlined in the EJB Developer's guide at sun, the only way to
>access EJBs via a web interface is either through servlets or jsps.
> 
--
Subvert the dominant paradigm
 http://www.cyber4.org/members/grumpy/index.html

Reply via email to