Skip to main content

Problem with XMPP on Opencloud

4 replies [Last post]
gauravg
Offline
Joined: 2007-08-07
Points: 0

Hi, Based on the XMPP RA for mobicents I wrote an RA for Opencloud. And in order to test the functionality of this, I took the example of XMPP-Component from mobicents. But, I cannot get past an error mentioned below:

I installed the XMPP RA on Opencloud (which is currently active); entity xmppra and bound a link name "xmpp_ra". In the SBB-jar.xml of XMPP-Component I added the following:

XMPPResourceAdaptorType org.mobicents
2.0

slee/resources/xmpp/2.0/factoryprovider

slee/resources/xmpp/2.0/xmppinterface
xmpp_ra

My XMPPComponentSBB.java compiles without any errors. But when I deploy I get following messages (with exceptions):

2007-09-18 15:49:38.002 INFO [rhino.security.auth.file] authentication succeeded for user admin
2007-09-18 15:49:38.314 INFO [rhino.management.deployment] Installing deployable unit from URL file:/home/s3server/rhino/examples/xmpp-component/jars/XMPPComponent-DU.jar
2007-09-18 15:49:38.387 INFO [rhino.management.deployment] Installing: XMPPComponent-DU.jar
2007-09-18 15:49:38.459 INFO [rhino.management.deployment] Parsing sbb deployment descriptor in jars/XMPPComponent-sbb.jar
2007-09-18 15:49:38.460 INFO [rhino.management.deployment] Parsing service deployment descriptor in src/org/mobicents/slee/service/xmppcomponent/XMPPComponent-service.xml
2007-09-18 15:49:38.460 INFO [rhino.management.deployment] Verifying sbb component definitions in jars/XMPPComponent-sbb.jar
2007-09-18 15:49:38.483 INFO [rhino.management.deployment] Verifying service definitions in src/org/mobicents/slee/service/xmppcomponent/XMPPComponent-service.xml
2007-09-18 15:49:38.487 INFO [rhino.state.deployment] Installing deployable unit: file:///home/s3server/rhino/examples/xmpp-component/jars/XMPPComponent-D...
2007-09-18 15:49:38.537 INFO [rhino.management.deployment] Installing SBB XMPP Component SBB 1.0, PT Inovacao
2007-09-18 15:49:38.539 INFO [rhino.management.deployment.builder] Generating XMPP Component SBB 1.0, PT Inovacao SBB implementation
2007-09-18 15:49:38.541 INFO [rhino.management.deployment.builder] Building jar: /home/s3server/rhino/node-101/work/deployments/unit1190148578314/unit1190148578314.jars.XMPPComponent-sbb.jar.XMPP_Component_SBB_PT_Inovacao_1_0.src.jar
2007-09-18 15:49:38.777 INFO [rhino.management.deployment] Installing service XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:38.783 INFO [rhino.management.deployment] Compiling generated SBB code
2007-09-18 15:49:38.783 INFO [rhino.management.deployment.builder] Compiling generated SBB classes
2007-09-18 15:49:40.054 INFO [rhino.management.deployment.builder] Building OCBB jar: /home/s3server/rhino/node-101/work/deployments/unit1190148578314/unit1190148578314.src.org.mobicents.slee.service.xmppcomponent.XMPPComponent-service.xml.XMPP_Component_Service_PT_Inovacao_1_0.service.jar
2007-09-18 15:49:40.219 INFO [rhino.management.deployment.builder] Building service application jar: /home/s3server/rhino/node-101/work/deployments/unit1190148578314/unit1190148578314.src.org.mobicents.slee.service.xmppcomponent.XMPPComponent-service.xml.XMPP_Component_Service_PT_Inovacao_1_0.service.deploy.jar
2007-09-18 15:49:40.562 INFO [rhino.management.deployment] Generating OCBB code for service
2007-09-18 15:49:43.134 INFO [rhino.config.objectpools.util] Creating new object pool configuration for ObjectPools/Service_XMPP_Component_Service_1_0__PT_Inovacao
2007-09-18 15:49:43.153 INFO [rhino.config.objectpools.util] Creating new object pool configuration for ObjectPools/Service_XMPP_Component_Service_1_0__PT_Inovacao
2007-09-18 15:49:43.186 INFO [rhino.state.deployment] Installing service: XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:43.307 INFO [ocbb.application] Instantiating container: com.opencloud.deployed.Service_XMPP_Component_Service_1_0__PT_Inovacao.SBBEventMask_XMPP_Component_SBB_PT_Inovacao_1_0OCBB_Container
2007-09-18 15:49:43.334 INFO [ocbb.application] Instantiating container: com.opencloud.deployed.Service_XMPP_Component_Service_1_0__PT_Inovacao.SBB_XMPP_Component_SBB_PT_Inovacao_1_0OCBB_Container
2007-09-18 15:49:43.367 INFO [rhino.appcontainer] Deployed Service XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:43.367 INFO [rhino.state.deployment] Binding xmppra to name slee/resources/xmpp/2.0/xmppinterface in sbb XMPP Component SBB 1.0, PT Inovacao
2007-09-18 15:49:43.459 INFO [rhino.management.deployment] Installation of deployable unit successful
2007-09-18 15:49:43.535 INFO [rhino.management.service] Activating service XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:43.556 INFO [memdb.sql.storer] [ManagementDatabase/rhino_management] Committed 6 updates to the disk-based database, 1 updates remaining
2007-09-18 15:49:43.567 INFO [rhino.servicestate] Received request from cluster to activate service XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:43.568 INFO [rhino.state.service.listener] Activating service: XMPP Component Service 1.0, PT Inovacao
2007-09-18 15:49:43.572 INFO [memdb.sql.storer] [ManagementDatabase/rhino_management] Committed 1 updates to the disk-based database, 0 updates remaining
2007-09-18 15:49:43.667 INFO [rhino.servicestate] Service XMPP Component Service 1.0, PT Inovacao activation complete, service state is now ACTIVE
2007-09-18 15:49:43.699 WARN [ocbb.container.SBB_XMPP_Component_SBB_PT_Inovacao_1_0OCBB] Bean failure: com.opencloud.deployed.Service_XMPP_Component_Service_1_0__PT_Inovacao.SBB_XMPP_Component_SBB_PT_Inovacao_1_0OCBB_Bean@113da7a
java.lang.NoClassDefFoundError: org/mobicents/slee/resource/xmpp/XmppResourceAdaptor$XmppRASbbInterfaceImpl
at org.mobicents.slee.service.xmppcomponent.XMPPComponentSbb.setSbbContext(Unknown Source)

at com.opencloud.rhino.deployed.sbb.PT_Inovacao.XMPP_Component_SBB_1_0.SbbEJBBean.setEntityContext(SbbEJBBean.java:30)
at com.opencloud.deployed.Service_XMPP_Component_Service_1_0__PT_Inovacao.SBB_XMPP_Component_SBB_PT_Inovacao_1_0OCBB_Bean.ejbRhinoSetEntityContext(SBB_XMPP_Component_SBB_PT_Inovacao_1_0OCBB_Bean.java:182)
at com.opencloud.ob.Rhino.runtime.abb.j(2176)
at com.opencloud.ob.Rhino.runtime.abb.a(2176)
at com.opencloud.ob.Rhino.runtime.y4.initializeObjectPools(2176)
at com.opencloud.ob.Rhino.runtime.aab.afterCompletion(2176)
at com.opencloud.ob.Rhino.runtime.p3.a(2176)
at com.opencloud.ob.Rhino.runtime.p3.b(2176)
at com.opencloud.rhino.node.state.ServiceStateImpl__OCSkel.b(2176)
at com.opencloud.rhino.node.state.ServiceStateImpl__OCSkel.a(2176)
at com.opencloud.ob.Rhino.runtime.uf.a(2176)
at com.opencloud.ob.Rhino.runtime.uf.a(2176)
at com.opencloud.ob.Rhino.runtime.yb.run(2176)
at com.opencloud.ob.Rhino.runtime.ajf.a(2176)
at com.opencloud.ob.Rhino.runtime.t1.a(2176)
at com.opencloud.ob.Rhino.runtime.t0.a(2176)
at com.opencloud.ob.Rhino.runtime.aci.run(2176)
at java.lang.Thread.run(Thread.java:595)

Why is XMPP-Component not able to find the XmppResourceAdaptor$XmppRASbbInterfaceImpl when deployed ? I checked my classpath and its compiling without any errors.

Is there anything obvious I am missing ?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10
Points: 0

You should check OC support for this, from what I know their class loading imposes some restrictions not found on mobicents, but I'm not sure. By the way, the ActivityContextInterface factory shouldn't pass deploy, since it has a getActivityContextInterface(String) and there is no activity of type String, did you fixed this?

I know PT Inovação has a version of this RA modified for Rhino, maybe someone from their team can see this and give you some help, but as I said, noone better to give support of Rhino than OpenCloud.

Regards,

Eduardo

gauravg
Offline
Joined: 2007-08-07
Points: 0

Hi Eduardo,

Thanks for your quick response.

I did modify the ActivityContextInterface factory interface with the following:

public interface XmppActivityContextInterfaceFactory {

public ActivityContextInterface getActivityContextInterface(
org.mobicents.slee.resource.xmpp.XmppConnection connection) throws NullPointerException,
UnrecognizedActivityException, FactoryException;

}

Also, I didnt write a XmppActivityContextInterfaceFactoryImpl.java as Opencloud SLEE doesnt have a SleeContainer class which allows registerWithJndi() functions. Also, in the examples provided for Development-RA Opencloud didnt write any class that implements the ActivityContextInterface Factory interface.
Anyhow, I was able to compile and deploy XMPP RA on opencloud (not sure if functions as it supposed to).

I would really appreciate a working version of XMPP on Opencloud. Do you have any contact of PT Inovação ?

I am writing an email to support @ opencloud DOT com. But, other than that are you aware of any active forums for Opencloud ?

Thanks

brunoduarte
Offline
Joined: 2006-09-07
Points: 0

Hi,

I sent you a mail.

Bruno Duarte

david_ferry
Offline
Joined: 2006-05-07
Points: 0

Please send support requests for OpenCloud to support@opencloud.com

Best Regards,
-David