Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smackx dependencies #5

Open
sort3d opened this issue Mar 8, 2013 · 2 comments
Open

smackx dependencies #5

sort3d opened this issue Mar 8, 2013 · 2 comments

Comments

@sort3d
Copy link

sort3d commented Mar 8, 2013

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!!

@sort3d
Copy link
Author

sort3d commented Mar 9, 2013

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.

@sort3d sort3d closed this as completed Mar 9, 2013
@sort3d sort3d reopened this Mar 9, 2013
@gibbonsd1
Copy link

I got rid of errors similar to this by adding the following dependency to my project.clj: [org.clojars.amit/smackx "3.1.0"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants