[sip-comm-dev] Problem with web services integration in SIPComm


#1

Hi!
I'm doing a programm using SIP Communicator. The program has to communicate
with web services for get some services implemented in that. So, I
integrated the jar files of an API (aimed to communicate with enablers from
my code) and jar files of Axis engine (which it allows to API to connect
with the web services). But, it doesn't work, and I dont know why!!. This is
my output when I try to connect to three of web services
(VirtualWaitingRoom, twice try; StarMulticonference;
startImageSynchronization) :

···

***************
[java] actionPerformed:activeVirtualWaitingRoomButton
     [java] www.as.com
     [java] VirtualWaitingRoom.createGroup
     [java] 10:15:19.078 GRAVE: util.UtilActivator.uncaughtException().81 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and
message was: null
     [java] java.lang.ExceptionInInitializerError
     [java] at
es.upm.dit.ims.virtualwaitingroom.CreateGroupRequest.<clinit>(CreateGroupRequest.java:102)
     [java] at
com.hyc.esb.enablers.VirtualWaitingRoom.createGroup(VirtualWaitingRoom.java:85)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.activeVirtualWaitingRoom(MainFrameDoctor.java:1267)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.actionPerformed(MainFrameDoctor.java:823)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     [java] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     [java] at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     [java] at java.awt.Component.processMouseEvent(Component.java:6134)
     [java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     [java] at java.awt.Component.processEvent(Component.java:5899)
     [java] at java.awt.Container.processEvent(Container.java:2023)
     [java] at java.awt.Component.dispatchEventImpl(Component.java:4501)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2081)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
     [java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
     [java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2067)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:2458)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     [java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
     [java] Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.))
     [java] at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
     [java] at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
     [java] at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
     [java] at
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
     [java] at
org.apache.axis.description.TypeDesc.<clinit>(TypeDesc.java:61)
     [java] ... 29 more
     [java] Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
org.apache.commons.logging.LogConfigurationException: Invalid class loader
hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)
     [java] at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
     [java] at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
     [java] ... 33 more
     [java] Caused by: org.apache.commons.logging.LogConfigurationException:
Invalid class loader hierarchy. You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.
     [java] at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
     [java] ... 34 more
     [java]
     [java] actionPerformed:activeVirtualWaitingRoomButton
     [java] www.as.com
     [java] VirtualWaitingRoom.createGroup
     [java] 10:24:37.171 GRAVE: util.UtilActivator.uncaughtException().81 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and
message was: Could not initialize class
es.upm.dit.ims.virtualwaitingroom.CreateGroupRequest
     [java] java.lang.NoClassDefFoundError: Could not initialize class
es.upm.dit.ims.virtualwaitingroom.CreateGroupRequest
     [java] at
com.hyc.esb.enablers.VirtualWaitingRoom.createGroup(VirtualWaitingRoom.java:85)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.activeVirtualWaitingRoom(MainFrameDoctor.java:1267)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.actionPerformed(MainFrameDoctor.java:823)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     [java] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     [java] at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     [java] at java.awt.Component.processMouseEvent(Component.java:6134)
     [java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     [java] at java.awt.Component.processEvent(Component.java:5899)
     [java] at java.awt.Container.processEvent(Container.java:2023)
     [java] at java.awt.Component.dispatchEventImpl(Component.java:4501)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2081)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
     [java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
     [java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2067)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:2458)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     [java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@7b870d15
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@a3bd23c
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@ee0489c4
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@f0ce63aa
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@54000c0b
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@f6391f2a
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@e63702e5
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@60dc3b22
     [java] actionPerformed:selectContactPatientList
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@307324ec
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@b217b4ed
     [java] actionPerformed:startMulticonference
     [java]
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl@148bd9d
     [java] pmoreno@ekiga.net (SIP)
     [java] 10:26:19.921 GRAVE: util.UtilActivator.uncaughtException().81 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and
message was: Could not initialize class org.apache.axis.description.TypeDesc
     [java] java.lang.NoClassDefFoundError: Could not initialize class
org.apache.axis.description.TypeDesc
     [java] at
es.upm.dit.ims.videoconference.CreateGroupRequest.<clinit>(CreateGroupRequest.java:102)
     [java] at
com.hyc.esb.enablers.Videoconference.createGroup(Videoconference.java:90)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.startMultiConference(MainFrameDoctor.java:1562)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.actionPerformed(MainFrameDoctor.java:874)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     [java] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     [java] at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     [java] at java.awt.Component.processMouseEvent(Component.java:6134)
     [java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     [java] at java.awt.Component.processEvent(Component.java:5899)
     [java] at java.awt.Container.processEvent(Container.java:2023)
     [java] at java.awt.Component.dispatchEventImpl(Component.java:4501)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2081)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
     [java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
     [java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2067)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:2458)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     [java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@528d0785
     [java] gov.nist.javax.sip.stack.SIPClientTransaction@ab0ef09
     [java] actionPerformed:startImageSynchronization
     [java]
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl@148bd9d
     [java] pmoreno@ekiga.net (SIP)
     [java] 10:27:01.359 GRAVE: util.UtilActivator.uncaughtException().81 An
uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and
message was: Could not initialize class org.apache.axis.description.TypeDesc
     [java] java.lang.NoClassDefFoundError: Could not initialize class
org.apache.axis.description.TypeDesc
     [java] at
es.upm.dit.ims.synchronizedimagesharing.CreateGroupRequest.<clinit>(CreateGroupRequest.java:102)
     [java] at
com.hyc.esb.enablers.SynchronizedImageSharing.createGroup(SynchronizedImageSharing.java:113)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.startImageSyn(MainFrameDoctor.java:1446)
     [java] at
net.java.sip.communicator.impl.gui.mainDoctor.MainFrameDoctor.actionPerformed(MainFrameDoctor.java:868)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
     [java] at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     [java] at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     [java] at java.awt.Component.processMouseEvent(Component.java:6134)
     [java] at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     [java] at java.awt.Component.processEvent(Component.java:5899)
     [java] at java.awt.Container.processEvent(Container.java:2023)
     [java] at java.awt.Component.dispatchEventImpl(Component.java:4501)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2081)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
     [java] at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
     [java] at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
     [java] at java.awt.Container.dispatchEventImpl(Container.java:2067)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:2458)
     [java] at java.awt.Component.dispatchEvent(Component.java:4331)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
     [java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
*******

I have some hypothesis:

   - It could be the OSGI integration, but I have integrated the jar files
   (Axis, and API) in Swing GUI bundle. Should it work in that way?? or maybe
   should I build a bundle for both Axis and API??
   - But I have some doubts, because in the output messages I can read the
   messages related to apache issue. Could it be that there is a
   incompatibility with two versions of apache, the felix apache and the axis
   apache (I guess axis has an apache method).

Please can anyone help me?? I need??