4 Replies Latest reply on Jun 21, 2012 2:22 AM by eve fang

    install apache tomcat native library for jboss 5.0

    eve fang Newbie

      Hi,

       

      Is there any guide in how to install the Apache Tomcat native library for jboss5.0? I have tried some methods found on the web, but still cant it right. Could someone point me to the correct direction. Thanks.

        • 1. Re: install apache tomcat native library for jboss 5.0
          Peter Johnson Master

          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 Newbie

            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
              Peter Johnson Master

              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 Newbie

                Hi,

                Thanks for your help. I have manage to add the native library.. Thanks once again.