[s~mighty-app/0-58.369479717923256319].<stderr>: Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.LastActivityManager
[s~mighty-app/0-58.369479717923256319].<stderr>: Error! A startup class specified in smack-config.xml could not be loaded: org.jivesoftware.smackx.commands.AdHocCommandManager
Error for /client java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.runtime.Request.process-0046d50b9de5cb22(Request.java) at javax.naming.InitialContext.<clinit>(InitialContext.java) at org.jivesoftware.smack.util.dns.JavaxResolver.<clinit>(JavaxResolver.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:111) at org.jivesoftware.smack.SmackConfiguration.parseClassToLoad(SmackConfiguration.java:335) at org.jivesoftware.smack.SmackConfiguration.<clinit>(SmackConfiguration.java:95) at org.jivesoftware.smack.Connection.<clinit>(Connection.java:125) at org.jivesoftware.smack.ConnectionConfiguration.<init>(ConnectionConfiguration.java:78) at com.xmpp.test.GcmXmppSender.connect(GcmXmppSender.java:243)
...
On further investigation, I found that XMMP client implementation on GAE server requires a socket to be opened. There is a way to open a socket from GAE using Open Socket API - https://developers.google.com/appengine/docs/python/sockets/overview
However my question is, do we need to implement XMPP client library from scratch? Or has anybody used a XMPP client library on GAE server successfully?I am sure lot of developers are interested in this answer.
I took the first shot at implementing the new GCM CCS server on GAE using the Smack library for XMPP. Here is more documentation - https://developer.android.com/google/gcm/ccs.html
However my question is, do we need to implement XMPP client library from scratch? Or has anybody used a XMPP client library on GAE server successfully?
However my question is, do we need to implement XMPP client library from scratch? Or has anybody used a XMPP client library on GAE server successfully?
I took the first shot at implementing the new GCM CCS server on GAE using the Smack library for XMPP. Here is more documentation - https://developer.android.com/google/gcm/ccs.htmlHowever my question is, do we need to implement XMPP client library from scratch? Or has anybody used a XMPP client library on GAE server successfully?Are you trying to implement a server or a client? A client is easy, but you can't implement a XMPP server on GAE since the Sockets API only does outgoing sockets, not inbound.Smack is not intended to be used in servers, it's an XMPP client.
Thanks Vinny for your reply.I want to implement a XMPP client on GAE which connects to Google's Cloud Connection Server (CCS) based on this documentation - https://developer.android.com/google/gcm/ccs.html (see the Java Sample using the Smack library). This client needs to maintain a bi-directional, asynchronous persistent connection with CCS server.I am unable to execute a smack xmpp client because of GAE's sandbox restrictions.
So is it that the suggested Smack is just using unnecessary features which conflicts with GAE restrictions, or is it not possible at all to deploy a XMPP client on GAE?
Still Google app Engine dont support java smack library now ?
Can I connect to a GCM Cloud Connection Server with that client? Will the connection be bidirectional?