omldapsync and FC4

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

abnormaliti
Posts: 57
Joined: Mon Jun 06, 2005 2:26 am

omldapsync and FC4

Postby abnormaliti » Tue Aug 16, 2005 3:08 am

I am attempting to setup a directory sync on FC4 and i have run into the java IPv6 stack problem. "cannot assign requested address"
This problem was solved in tomcat by adding "-Djava.net.preferIPv4Stack=true" to the JAVA_OPTS in setclasspath.sh
but when i attempt the same fix with omldapsync i get a warning.
'Exception in thread "main" java.lang.NoClassDefFoundError: "-Djava/net/preferIPv4Stack=true"'

Patch below outlines what i did to try and get around it. Any suggestions how to fix this?

Patch ===========================
--- /opt/scalix/bin/omldapsync.orig 2005-08-16 16:16:25.000000000 +1000
+++ /opt/scalix/bin/omldapsync 2005-08-16 16:38:35.000000000 +1000
@@ -15,6 +15,7 @@
# specific vars for the Java stuffs
OMJAVA=$OMBIN/../server/java
OMCLASSPATH=$OMJAVA/lib/j2ee.jar:$OMJAVA/lib/saaj-api.jar:$OMJAVA/lib/saaj-impl.jar:$OMJAVA/lib/xercesImpl.jar
+JAVA_OPTS="-Djava.net.preferIPv4Stack=true"
#------ END -- set up Scalix shell variables --------------#

# LDAP dir sync global variables
@@ -792,7 +793,7 @@
fn_debug 1 "$FnName.xml" $FnName.xml
fn_debug 1 "OMCLASSPATH=$OMCLASSPATH"
fn_empty_to_prev agent.log
-$JAVA_HOME/bin/java -Xbootclasspath/a:$OMCLASSPATH -jar $OMJAVA/bin/omldapagent.jar \
+$JAVA_HOME/bin/java -Xbootclasspath/a:$OMCLASSPATH $JAVA_OPTS -jar $OMJAVA/bin/omldapagent.jar \
--debug "$DEBUG" --method $FnNumb --url "$IM_CAA_URL" --dir . $OMLDAPAGENT_KEYSTORE $OMLDAPAGENT_OPTIONS \
>agent.log 2>&1
Result=$?
@@ -1396,7 +1397,7 @@
# NOTE: the external ENV OMLDAPAGENT_OPTIONS is used for testing only
fn_debug 1 "OMCLASSPATH=$OMCLASSPATH"
fn_empty_to_prev agent.log
- $JAVA_HOME/bin/java -Xbootclasspath/a:$OMCLASSPATH -jar $OMJAVA/bin/omldapagent.jar \
+ $JAVA_HOME/bin/java -Xbootclasspath/a:$OMCLASSPATH $JAVA_OPTS -jar $OMJAVA/bin/omldapagent.jar \
--debug "$DEBUG" --method $Method --url "$IM_CAA_URL" --id "$IM_CAA_ID" --name "$IM_CAA_NAME" --passwd "$IM_CAA_PASS" \
--file "$EntryFile" --host "$IM_HOST" --node "$IM_OMADDRESS" --sync "$SYNC_ID" $OMLDAPAGENT_KEYSTORE $OMLDAPAGENT_OPTIONS \
>agent.log 2>&1

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Aug 16, 2005 10:52 am

As this is all related to the presence of IPv6 in FC4, can you add the following to /etc/modprobe.conf and post the results ?


alias net-pf-10 off
alias ipv6 off

This should disable IPv6. You may need to reboot for this change to take place.

Cheers

Dave

abnormaliti
Posts: 57
Joined: Mon Jun 06, 2005 2:26 am

Postby abnormaliti » Tue Aug 16, 2005 9:37 pm

i had the net-pf-10 but not the ipv6.

appears to be right now after adding it.

Thanks.

PS. Appears NETWORKING_IPV6=no in /etc/sysconfig/network is completely ignored in FC4.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 34 guests

cron