xmpp-clj
xmpp-clj copied to clipboard
smackx dependencies
Hey, first off, thanks so much for your project!
I'm trying to get just a very basic bot going and I'm running into some dependency issues when I require my project.
Here's the errors I'm getting:
user=> (require 'mybot.core) Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.ServiceDiscoveryManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.XHTMLManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.muc.MultiUserChat Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.filetransfer.FileTransferManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.LastActivityManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.commands.AdHocCommandManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.ServiceDiscoveryManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.XHTMLManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.muc.MultiUserChat Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.filetransfer.FileTransferManager Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.LastActivityManagernil user=> Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.commands.AdHocCommandManager
Here's my project.clj:
(defproject mybot "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[xmpp-clj "0.3.1"]])
And my core.clj:
(ns mybot.core (:require [xmpp-clj :as xmpp]))
(defn start [](xmpp/start-bot :username)))
(defn stop )
Thanks again for your help!!
My core.clj code got a bit cut off, here it is:
(ns mybot.core (:require [xmpp-clj :as xmpp]))
(defn start [] (xmpp/start-bot :username "[email protected]" :password "robotswillruletheworld" :host "jabber.example.com" :domain "example.com" :handler (fn [m] "Meep!!")))
(defn stop [] (xmpp/stop-bot))
Also, if I then add [jivesoftware/smackx "3.1.0"] to my project.clj dependencies the require loads, but I get this error:
user=> (mybot.core/start) XMPPException Could not connect to jabber.intexecel.com:5222. org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration (XMPPConnection.java:893)
I'm able to connect with that same info from a jabber client from this same machine.
Thanks again for your help! I'm new to Clojure so I'm expecting I've royally screwed something on my end. :)
-Cheers.
I got rid of errors similar to this by adding the following dependency to my project.clj: [org.clojars.amit/smackx "3.1.0"]