Troubles with Connection Manager

Hi frinds,

I’‘m new in Wildfire. I’‘ve a running Wildfire Server and now i’'d like to install a Connection Manager, so i downloaded the tar.gz files to another pc, followed all the steps of the installation guide, but when i tried to execute this error message is displayed:

daviar@kepler:~/Desktop/project/connection_manager/bin$ ./cmanager.sh

Exception in thread “main” java.lang.NoClassDefFoundError: while resolving class: org.jivesoftware.multiplexer.starter.ServerStarter

at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)

at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)

at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/daviar/Desktop/project/conne ction_manager/lib/startup.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)

at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)

at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)

…4 more

Can anybodu help me? This should run on a Ubunutu Breezy. I’'ve just installed the jre 1.5. and lincgj6 is installed and working too.

Hi,

it may help a lot to use Sun’'s JRE or JDK and not the GNU gij.

LG

I think you are true. I installed the jre 1.5 that i downloaded from sun’'s website, but when i type java --version i get the following:

daviar@kepler:/opt/connection_manager/lib$ java --version

java version “1.4.2”

gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

Copyright © 2005 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How can i change this so when i call java, it will execute the re 1.5 version?

I’'ve now installed jre 1.4 with synaptic:

This is now the error message that i get when i run

Exception in thread “main” java.lang.UnsupportedClassVersionError: org/jivesoftware/multiplexer/starter/ServerStarter (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Hi,

You should use JRE 1.5, not JRE 1.4. Try to start your connection manager this way:

JAVA_HOME=/usr/java/jre1.5.0_07 ./cmanager.sh

If you install JRE in different location, then change JAVA_HOME accordingly.

Ok, i did something by the way and it worked. You were right. It’'s because of the jre version. I have to upgrade my ubuntu, becuse in my reposiroties there is not a jre 1.5. I downloaded it from sun, but by default, shell runs the one ubuntu installed (1.4 gcj).

So what i do is to call the java vm using its absolute directory location (/usr/lib/j2re1.5-sun/bin/java). It worked.

Now i’'ve made my customized cmanager.sh with the locations vars of my system:

#!/bin/sh

  1. $RCSfile$

  2. $Revision: 1194 $

  3. $Date: 2005-03-30 13:39:54 -0300 (Wed, 30 Mar 2005) $

  1. tries to determine arguments to launch Connection Manager

  2. Set JVM extra Setting

  3. JVM_SETTINGS="-Xms512m -Xmx1024m"

JVM_SETTINGS=""

JAVA_HOME="/usr/lib/j2re1.5-sun/"

CMANAGER_HOME="/opt/connection_manager"

JAVACMD="$JAVA_HOME/bin/java"

  1. OS specific support. $var must be set to either true or false.

cygwin=false;

darwin=false;

case “uname” in

CYGWIN*) cygwin=true ;;

Darwin*) darwin=true

esac

CMANAGER_OPTS="$ -DmanagerHome=$" #set the CMANAGER_LIB location
CMANAGER_LIB="$/lib"
CMANAGER_OPTS="$ -Dcmanager.lib.dir=$"

LOCALCLASSPATH=$CMANAGER_LIB/startup.jar

cmanager_exec_command=“exec “$JAVACMD” -server $JVM_SETTINGS $CMANAGER_OPTS -classpath “$LOCALCLASSPATH” -jar “$CMANAGER_LIB”/startup.jar”

eval $cmanager_exec_command

Thank you very much because of your help. (A Spanish Friend)