The APR libraries for native jbossweb should be packaged in the "lib" directory of the module under the platform specific name, e.g.
For the case where you need to vary the library based on the Solaris version, you have two options:
- (best solution) rework the library to use weak symbols and/or libc probes and/or system call error detection, to detect features which are present and absent and adjust at runtime
- Introduce more than one library in each of the solaris-xxx directories with the version suffix, e.g. libnative-2.8.so or similar and check for solaris at load time, and if solaris, choose the library with the version encoded in the name