-
1. Re: install apache tomcat native library for jboss 5.0
peterj Jun 19, 2012 10:14 AM (in response to eve_fang)The native library must appear in the LD_LIBRARY_PATH. You can accomplish that by either setting LD_LIBRARY_PATH to include all the necessary directories for all of the required native libraries, or you can not set LD_LIBRARY_PATH and add the native library to your PATH.
I could be a little more specific but you never said which OS you are using. Also, you did not state the exact version of JBoss AS - there were issues with how the run scripts set up LD_LIBRARY_PATH in some of the 5.x.x versions which prevented the Apache native library from being loaded. Pointing to directions would not help because the directions are wrong because of the issues with setting LD_LIBRARY_PATH.
-
2. Re: install apache tomcat native library for jboss 5.0
eve_fang Jun 19, 2012 9:42 PM (in response to peterj)Im using Jboss 5.0.1, and native web connector 2.0.8 on Windows 2003 server (32 bit).. How do i set the LD_LIBRARY_PATH, is it from envirnonment variable?
-
3. Re: install apache tomcat native library for jboss 5.0
peterj Jun 20, 2012 3:10 PM (in response to eve_fang)I don't have a copy of 5.0.1 handy, but in 5.1.0 I see this in bin/run.bat:
rem Add native to the PATH if present set JBOSS_NATIVE_LOC= if exist "%JBOSS_HOME%\bin\META-INF\lib\windows-%JAVA_PLATFORM%" ( set "JBOSS_NATIVE_HOME=%JBOSS_HOME%\bin\META-INF\lib\windows-%JAVA_PLATFORM%" ) else if exist "%JBOSS_HOME%\bin\native" ( set "JBOSS_NATIVE_HOME=%JBOSS_HOME%\bin\native" ) if not "x%JBOSS_NATIVE_HOME%" == "x" ( set "PATH=%JBOSS_NATIVE_HOME%;%PATH%;%JBOSS_HOME%\bin" set JAVA_OPTS=%JAVA_OPTS% "-Djava.library.path=%JBOSS_NATIVE_HOME%;%PATH%;%JBOSS_HOME%\bin" )
This tells me that bin/native is added to the library path. So I would place the native DLL there. That works for 5.1.0. But for 5.0.1, you'll have to look into run.bat to see how it is setting the library path.
If you still have problems, let me know. I might have 5.0.1 on my PC at home and I'll be working from home tomorrow.
-
4. Re: install apache tomcat native library for jboss 5.0
eve_fang Jun 21, 2012 2:22 AM (in response to peterj)Hi,
Thanks for your help. I have manage to add the native library.. Thanks once again.