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

Reply via email to