[
https://jira.jboss.org/jira/browse/JBAS-7239?page=com.atlassian.jira.plug...
]
Dimitris Andreadis reopened JBAS-7239:
--------------------------------------
Re-open to apply some bureaucracy:
a) The change is needed in Brach_5_x for AS 5.2.Beta, too. I had put that in the original
fix version. Nevertheless, I see run.sh in that branch is a bit out-of-sync with trunk, or
the other way round, so it's a good opportunity to sync them.
b) It's good you've fixed it for EAP. In that case you need to create an EAP JIRA
with the appropriate fix version (EAP 5.0 GA?) and link it to the current JIRA, so they
have a record of the change for their release notes.
Thanks :-)
JBoss overwiting java.library.path when native libs available
-------------------------------------------------------------
Key: JBAS-7239
URL:
https://jira.jboss.org/jira/browse/JBAS-7239
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossAS-5.1.0.GA
Environment: Windows x86/x64 (XP SP3), Linux x86/x64 (Ubuntu 9.04, Centos 5)
Reporter: Ross Nicholson
Assignee: Mladen Turk
Fix For: JBossAS-5.2.0.Beta1, JBossAS-6.0.0.Alpha1
When using JBM1.4 my java.library.path was as follows:
/opt/jdk1.6.0_16/jre/lib/i386/server:/opt/jdk1.6.0_16/jre/lib/i386:/opt/jdk1.6.0_16/jre/../lib/i386:/opt/berkeleydb/lib:/usr/java/packages/lib/i386:/lib:/usr/lib
But now that I've changed to HornetQ it is this:
/opt/jboss/bin/META-INF/lib/linux2/x86
So I can't load my berkeley database anymore. The bug is due to behaviour when there
are native libraries available for JBoss to load.
The problem lies in the run.sh script:
JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/META-INF/lib/$JBOSS_NATIVE_SYS/$JBOSS_NATIVE_CPU"
if [ -d "$JBOSS_NATIVE_DIR" ]; then
if $cygwin ; then
export PATH="$JBOSS_NATIVE_DIR:$PATH"
JBOSS_NATIVE_DIR=`cygpath --path --windows "$JBOSS_NATIVE_DIR"`
else
if [ "x$LD_LIBRARY_PATH" = "x" ]; then
LD_LIBRARY_PATH="$JBOSS_NATIVE_DIR"
else
LD_LIBRARY_PATH="$JBOSS_NATIVE_DIR:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH
fi
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Djava.library.path=$JBOSS_NATIVE_DIR"
else
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$JBOSS_NATIVE_DIR"
fi
fi
Where the JAVA_OPTS section should actually look like this:
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Djava.library.path=$LD_LIBRARY_PATH"
else
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$LD_LIBRARY_PATH"
fi
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira