You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mykola A. Nickishov" <mn...@mn.com.ua> on 2001/10/14 19:20:57 UTC

Re: Tomcat 4 and JNDI Question

And what about the solution?

"Andrew" <as...@ezan.ac.ru> writes:

> I have the same problem:
> how I can configure JNDI?
> 
> 
> ----- Original Message -----
> From: "G.C. Miller" <gc...@triforcetech.com>
> To: <to...@jakarta.apache.org>
> Sent: Sunday, September 02, 2001 8:20 AM
> Subject: Tomcat 4 and JNDI Question
> 
> 
> > How can I set
> > java.naming.factory.initial
> > java.naming.provider.url
> > java.naming.factory.url.pkgs
> >
> > I have tried putting a jndi.properties file in common/classes, common/lib,
> > WEB-INF/classes, and WEB-INF/lib  - didn't work.
> > I have also tried modifing catalina.sh as below
> >
> >  else
> >     $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
> >      -Dcatalina.home=$CATALINA_HOME \
> >      -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> > \
> >      -Djava.naming.provider.url=jnp://localhost:1099 \
> >      -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces \
> >      org.apache.catalina.startup.Bootstrap "$@" start \
> >      >> $CATALINA_HOME/logs/catalina.out 2>&1 &
> >   fi
> >
> > Still didn't work.
> >
> > Any Ideas?
> >
> > THanks,
> >
> > G.C. Miller
> >
> >
> >
> >

-- 
JUG Kiev @ http://www.jug.kiev.ua/
ICQ #83060237
MAN-UANIC