9 Replies Latest reply on Sep 18, 2012 9:53 AM by Carlos Oliva

    Installing JBOssWeb native in JBoss5.1.0GA

    Carlos Oliva Novice

      Which one is the appropriate version of the native jbossweb for JBoss5.1.0GA?  I found directions for installing the native apr to JBoss in the following link.

      https://community.jboss.org/wiki/HowToAddAprToJBoss

       

      The link for downloading jbossweb native, http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-8.html, has a higher version 2.08 and I am unsure as to what version I should use.

       

      Also, do I need to update JBossWeb before I installed the JBossWeb native into my installed JBoss5.1.0GA?  If so, where could I find information to update the JBossweb?  The directions in the JBossWeb page has directions to install only the stand-alone version of JBossWeb

        • 1. Re: Installing JBOssWeb native in JBoss5.1.0GA
          Peter Johnson Master

          You should be able to use the latest one. JBoss Native basically consists of the APR library and the JBoss AS run scripts already look for the library and add it to the java.library.path if it is there. You might double-check the JBoss AS run script, though to verify that is is looking at the right place for the library and setting java.library.path correctly - there were some issues with that (if it doesn't work for you I could probably find earlier forum posts that dealt with the issue, thogu a forum search for "java.library.path" should yield some hits)

          • 2. Re: Installing JBOssWeb native in JBoss5.1.0GA
            Carlos Oliva Novice

            Should the library path have the META-INF/... added to tit?  The files for the apr are under the native folder in the bin directory.  I found some discussion about problems with the library path and they suggested the following library path:

            LD_LIBRARY_PATH=/jboss/prod/jboss-5.1.0.GA/bin/META-INF/lib/linux2/x86:/usr/local/java/jdk1.6.0_14/jre/lib/i386/server:/usr/local/java/jdk1.6.0_14/jre/lib/i386:/usr/local/java/jdk1.6.0_14/jre/../lib/i386

             

            Does this path imply that I should move the files in th enative folder to a folder named $JBOSS_HOME/bin/META-INF/lib/linux2/x86?  Or should I prepend the path $JBOSS_HOME/bin/native to the library path instead?

             

            • 3. Re: Installing JBOssWeb native in JBoss5.1.0GA
              Peter Johnson Master

              It doesn't matter exactly where the APR library is located (you can move it anywhere you want, in fact). The important thing is that the directory containing the native APR library be in the java.library.path. (I vaguely recall the APR library appearing in a META-INF folder, but it has been a while...)

              • 4. Re: Installing JBOssWeb native in JBoss5.1.0GA
                Carlos Oliva Novice

                The crux of the run script is in the definition of JBOSS_NATIVE_DIR.  The run script has the line, JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/META-INF/lib/$JBOSS_NATIVE_SYS/$JBOSS_NATIVE_CPU".  Why?  The libraries unzip under native.  I thought that the line should read something like:

                JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/native".  Am I missing something?

                 

                 

                • 5. Re: Installing JBOssWeb native in JBoss5.1.0GA
                  Peter Johnson Master

                  As I mentioned the third sentence of my first reply, there were issues with the run scripts using the wrong location for the APR library. I covered what to do about it in my last post. Or is there something I am not understanding about what you are asking?

                  • 6. Re: Installing JBOssWeb native in JBoss5.1.0GA
                    Carlos Oliva Novice

                    The run.sh script of JBoss5.1.0GA sets JBOSS_NATIVE_DIR to "$JBOSS_HOME/bin/META-INF/lib/$JBOSS_NATIVE_SYS/$JBOSS_NATIVE_CPU".  If I were to unzip the tar (jboss-native-2.0.10-linux2-i64-ssl.tar.gz) under the $JBOSS_HOME/bin folder, should JBOSS_NATIVE_DIR be set to "$JBOSS_HOME/bin/native" instead -- like it is in the corresponding script of JBoss4.2.3GA?

                     

                    I have seen the posts in which it is suggested that the run.sh script sets the java.library.path to the LD_LIBRARY_PATH -- the LD_LIBRARY_PATH contains the JBOSS_NATIVE_DIR.  Hence, my questiosn about the setting of JBOSS_NATIVE_DIR.

                     

                    • 7. Re: Installing JBOssWeb native in JBoss5.1.0GA
                      Peter Johnson Master

                      I still think I answered this in post #3. According to that post you have two options:

                       

                      a) Move the APR library to the a directory in java.library.path (in other words, move it to JBOSS_NATIVE_DIR)

                       

                      b) Change JBOSS_NATIVE_DIR (and thus causing java.library.path to change) to the directory where the APR library is located.

                       

                      It does not matter which option you choose.

                      1 of 1 people found this helpful
                      • 8. Re: Installing JBOssWeb native in JBoss5.1.0GA
                        Carlos Oliva Novice

                        Thank you Peter.  I will test these options.  Perhaps you could help me with one other question about SSL certificates in JBossWeb native: Could there be incompatibilities between java https clients and JBossWeb native?  The clients for our JBossWeb native may present thier certificates because I plan to set the SSLVerifyClient=optional.  These clients will probably be java https clients with certificates stored in java keystores.  I understand that these client's certificates will be in formats other than PEM.

                        • 9. Re: Installing JBOssWeb native in JBoss5.1.0GA
                          Carlos Oliva Novice

                          Thanks again Peter.  I got it to work and jbossweb native is much nimbler so far.