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, I got below exceptions. I do have smack.jar, smackx.jar in
WEB-INF/lib directory (although only smack.jar is required).
[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.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.