Hi,
I copied the jndi.properties into TOMCAT_HOME/classes and the lookup now
works. This presumably means that JBOSS is now the default naming context
for all webapps on Tomcat (unless they explicitly define one or manage to
get their webapps to read the jndi.properties in WEB-INF/classes). This
isn't ideal, but it will definitely do for now.
Thanks for the help,
jim
[EMAIL PROTECTED]
----- Original Message -----
From: "Christophe GARCIA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 9:52 AM
Subject: wm=noRe: [JBoss-user] Stand alone tomcat
> Hi,
>
> To use other libs that were not in Tomcat default lib directory, I changed
> the TOMCAT.BAT file that runs TOMCAT standalone in the section where it
sets
> the automatic CLASSPATH adding line that would add in the classpath my own
> libs :
>
> BEFORE :
>
> :dynClasspath
> set _LIBJARS=
> for %%i in (%TOMCAT_HOME%\lib\*.jar) do call
%TOMCAT_HOME%\bin\cpappend.bat
> %%i
> if not "%_LIBJARS%" == "" goto gotLibJars
>
> AFTER :
>
> :dynClasspath
> set _LIBJARS=
> for %%i in (%TOMCAT_HOME%\lib\*.jar) do call
%TOMCAT_HOME%\bin\cpappend.bat
> %%i
>
> rem *******************************
> rem * Added to set my own libs in classpath *
> rem *******************************
> for %%i in (%TOMCAT_HOME%\webapps\*.war) do call
> %TOMCAT_HOME%\bin\cpappend.bat %%i
>
> if not "%_LIBJARS%" == "" goto gotLibJars
>
>
> I also is the following method to get my InitialCantext (if it can help) :
>
> private InitialContext getInitialContext() throws NamingException
> {
> Hashtable props = new Hashtable();
> props.put("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> props.put("java.naming.provider.url", "myMachine:1099");
> props.put("java.naming.security.principal", "");
> props.put("java.naming.security.credentials", "");
>
> InitialContext jndiContext = new InitialContext(props);
>
> return(jndiContext);
> }
>
>
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user