Connection Manager as a Service on Server 2008

I basicly using Conenction Manager as a proxy to allow connections from my DMZ to the internal Openfire server. I had it running perfectly on a server 2003. Now, the server is being replaced with a 2008 server.

If I launch it from C:\ using java -server -jar “c:\connection_manager\lib\startup.jar”

I get the following

java.lang.ClassNotFoundException: org.jivesoftware.multiplexer.ConnectionManager

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

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

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

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

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

at org.jivesoftware.multiplexer.starter.ServerStarter.start(ServerStarte

r.java:93)

at org.jivesoftware.multiplexer.starter.ServerStarter.main(ServerStarter

.java:49)

If I launch it from within c:\connection_manager\lib It will launch just fine.

I’m using svrany to run this as a service, which is why I’m launching it using java -server -jar “c:\connection_manager\lib\startup.jar”

Any thoughts? or does anyone have a better way of doing this?

Thanks

bump!

bumping again. Anyone have any thoughts on this?

use -classpath to reference the lib directory so it knows where to load the required jars from.

java -server -classpath “c:\connection_manager\lib” -jar “c:\connection_manager\lib\startup.jar”

Thanks for the reply, but didn’t work either. Same same message.

bumping again

I recently has to revisit this issue. Here is how I solved it if anyone else is looking to do the same.

https://community.igniterealtime.org/docs/DOC-2743