You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jwy923 <jw...@gmail.com> on 2009/01/12 17:39:02 UTC

Working XMPPMarshaler and Configuration Examples

Would someone share a working example of XMPPMarshaler and its configuration
with me?

I have been struggling with building an XMPP service unit to communicate
with a Jabber client (Instant Messenger) via a Jabber server.

My goal is that the XMPP service unit reply back (or echo) to the Jabber
client after receiving a message from the Jabber client (Instant Messenger),
of course, via the Jabber server.

Unfortunately, I have made any progress for one month.

Please help me.

John
-- 
View this message in context: http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21418143.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Working XMPPMarshaler and Configuration Examples

Posted by jwy923 <jw...@gmail.com>.
I think I am making some progress, but now I need some other help.

The following xbean.xml seems to work well, but I still could not connect to
the Jabber server(Openfire).
Could someone help me out?
Here is my xbean.xml and error message.

Thanks,

John

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
      xmlns:jabberbot="http://myAppURL/jabberbot">
       <xmpp:privateChatEndpoint
               service="jabberbot:LSJabberService"
               endpoint="endpoint"
               user="servicemix-user@johnrail.local"
               password="servicemix-pwd"
               uri="xmpp://johnrail.local/servicemix-user@johnrail.local"
               marshaler="#lionsharemarshaler" >
       </xmpp:privateChatEndpoint>
       <bean id="lionsharemarshaler"
class="org.apache.servicemix.jbi.LSJabberMarshaler" />

</beans>





 ============================================= ERROR MESSAGE
=============================================

INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
lionshare-jabber-bot-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
lionshare-jabber-bot-su
DEBUG - XMPPComponent                  - Initializing service unit
DEBUG - ComponentContextImpl           - Component: servicemix-xmpp
activated endpoint: {http://myAppURL/jabberbot}LSJabberService : endpoint
DEBUG - XMPPComponent                  - Querying service description for
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
DEBUG - XMPPComponent                  - No description found for
{http://myAppURL/jabberbot}LSJabberService:endpoint
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
has no service description
DEBUG - XMPPComponent                  - Querying service description for
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
DEBUG - XMPPComponent                  - No description found for
{http://myAppURL/jabberbot}LSJabberService:endpoint
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
has no service description
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - XMPPComponent                  - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Starting service unit:
lionshare-jabber-bot-su
DEBUG - XMPPComponent                  - Starting service unit
INFO  - XMPPComponent                  - Logging in to Jabber as user:
servicemix-user@johnrail.local on connection:
org.jivesoftware.smack.XMPPConnection@1662a95
java.net.SocketException: Socket closed
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
   at
sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
   at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
   at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
   at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
   at java.io.BufferedWriter.flush(BufferedWriter.java:236)
   at
org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:260)
   at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:39)
   at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:79)
javax.net.ssl.SSLException: Received fatal alert: internal_error
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
   at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
   at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1650)
   at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925)
   at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1089)
   at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1116)
   at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1100)
   at
org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:1121)
   at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:327)
   at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
   at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
java.lang.IllegalStateException: Not connected to server.
   at
org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699)
   at
org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:54)
   at
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:213)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
   at org.apache.servicemix.xmpp.XMPPEndpoint.start(XMPPEndpoint.java:93)
   at
org.apache.servicemix.xmpp.PrivateChatEndpoint.start(PrivateChatEndpoint.java:47)
   at
org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
   at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
   at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
INFO  - DeploymentService              - Error in start
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
   <component-name>servicemix-xmpp</component-name>
   <component-task-result-details>
       <task-result-details>
           <task-id>start</task-id>
           <task-result>FAILED</task-result>
           <message-type>ERROR</message-type>
           <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
           <exception-info>
               <nesting-level>1</nesting-level>
               <msg-loc-info>
                   <loc-token/>
                   <loc-message>Not connected to server.</loc-message>
                   <stack-trace><![CDATA[java.lang.IllegalStateException:
Not connected to server.
   at
org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699)
   at
org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:54)
   at
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:223)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
   at org.apache.servicemix.xmpp.XMPPEndpoint.start(XMPPEndpoint.java:93)
   at
org.apache.servicemix.xmpp.PrivateChatEndpoint.start(PrivateChatEndpoint.java:47)
   at
org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
   at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
   at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
]]></stack-trace>
               </msg-loc-info>
           </exception-info>
       </task-result-details>
   </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:146)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
ERROR - AutoDeploymentService          - Failed to update Service Assembly:
lionshare-jabber-bot-sa
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
   <component-name>servicemix-xmpp</component-name>
   <component-task-result-details>
       <task-result-details>
           <task-id>start</task-id>
           <task-result>FAILED</task-result>
           <message-type>ERROR</message-type>
           <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
           <exception-info>
               <nesting-level>1</nesting-level>
               <msg-loc-info>
                   <loc-token/>
                   <loc-message>Not connected to server.</loc-message>
                   <stack-trace><![CDATA[java.lang.IllegalStateException:
Not connected to server.
   at
org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699)
   at
org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:54)
   at
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:223)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
   at org.apache.servicemix.xmpp.XMPPEndpoint.start(XMPPEndpoint.java:93)
   at
org.apache.servicemix.xmpp.PrivateChatEndpoint.start(PrivateChatEndpoint.java:47)
   at
org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
   at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
   at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
]]></stack-trace>
               </msg-loc-info>
           </exception-info>
       </task-result-details>
   </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:146)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
DEBUG - SedaFlow                       - Called Flow resume
DEBUG - JMSFlow                        - Called Flow resume
DEBUG - JCAFlow                        - Called Flow resume
WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
install of
/home/john/opt/servicemix/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
lionshare-jabber-bot-sa
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
   <component-name>servicemix-xmpp</component-name>
   <component-task-result-details>
       <task-result-details>
           <task-id>start</task-id>
           <task-result>FAILED</task-result>
           <message-type>ERROR</message-type>
           <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
           <exception-info>
               <nesting-level>1</nesting-level>
               <msg-loc-info>
                   <loc-token/>
                   <loc-message>Not connected to server.</loc-message>
                   <stack-trace><![CDATA[java.lang.IllegalStateException:
Not connected to server.
   at
org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699)
   at
org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:54)
   at
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:223)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
   at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389)
   at org.apache.servicemix.xmpp.XMPPEndpoint.start(XMPPEndpoint.java:93)
   at
org.apache.servicemix.xmpp.PrivateChatEndpoint.start(PrivateChatEndpoint.java:47)
   at
org.apache.servicemix.common.DefaultServiceUnit.start(DefaultServiceUnit.java:78)
   at
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:155)
   at
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
]]></stack-trace>
               </msg-loc-info>
           </exception-info>
       </task-result-details>
   </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
   at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
   at
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:146)
   at
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
   at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
   ... 6 more







============================================== END
=============================




















jwy923 wrote:
> 
> 
> I just put the user/password as attributes of privateChatEndpoint, 
> but I don't know whether or not it is valid.
> 
> I have the following error message when I used this xbean.xml.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>        xmlns:jabberbot="http://myAppURL/jabberbot">
>    	<xmpp:privateChatEndpoint 
>    		service="jabberbot:LSJabberService" 
>    		endpoint="endpoint" 
>    		user="servicemix-user@johnrail.local"
>    		password="servicemix-pwd"
>    		uri="xmpp://servicemix-user@johnrail.local/test-user@johnrail.local"
> >
>    	<bean id="lionsharemarshaler"
> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>    	</xmpp:privateChatEndpoint>
> </beans>
> 
> What is the service description?
> 
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-xmpp to Started
> INFO  - ComponentMBeanImpl             - Initializing component:
> servicemix-xmpp
> DEBUG - XMPPComponent                  - Initializing component
> DEBUG - XMPPComponent                  - Component initialized
> DEBUG - XMPPComponent                  - Starting component
> DEBUG - XMPPComponent                  - Component started
> INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly:
> lionshare-jabber-bot-sa
> INFO  - ServiceUnitLifeCycle           - Initializing service unit:
> lionshare-jabber-bot-su
> DEBUG - XMPPComponent                  - Initializing service unit
> DEBUG - XMPPComponent                  - Looking for
> /home/john/opt/servicemix/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_1/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
> true
> DEBUG - ComponentContextImpl           - Component: servicemix-xmpp
> activated endpoint: {http://myAppURL/jabberbot}LSJabberService : endpoint
> DEBUG - XMPPComponent                  - Querying service description for
> ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
> DEBUG - XMPPComponent                  - No description found for
> {http://myAppURL/jabberbot}LSJabberService:endpoint
> DEBUG - WSDL1Processor                 - Endpoint
> ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
> has no service description
> DEBUG - XMPPComponent                  - Querying service description for
> ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
> DEBUG - XMPPComponent                  - No description found for
> {http://myAppURL/jabberbot}LSJabberService:endpoint
> DEBUG - WSDL2Processor                 - Endpoint
> ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
> has no service description
> DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
> DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
> DEBUG - XMPPComponent                  - Service unit initialized
> INFO  - ServiceAssemblyLifeCycle       - Shutting down service assembly:
> lionshare-jabber-bot-sa
> INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
> lionshare-jabber-bot-su
> DEBUG - XMPPComponent                  - Shutting down service unit
> DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
> DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
> DEBUG - XMPPComponent                  - Service unit shut down
> 
> 
> jwy923 wrote:
>> 
>> Hi Gert,
>> 
>> For a few months I was involved in another project.
>> And now I found a small time slot for XMPP.
>> 
>> 
>> Here is my xbean.xml and I want to know where I can put user/pwd
>> information.
>> Could you help me?
>> 
>> Best,
>> John
>> 
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>        xmlns:jabberbot="http://myAppURL/jabberbot">
>>        <xmpp:privateChatEndpoint
>>            service="jabberbot:LSJabberService"
>>            endpoint="endpoint"
>>            uri="xmpp://servicemix-user@john.local/test-user@john.local" >
>>        <bean id="lionsharemarshaler"
>> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>>        </xmpp:privateChatEndpoint>
>> </beans>
>> 
>> 
>> 
>> 
>> 
>> 
>> Gert Vanthienen wrote:
>>> 
>>> John,
>>> 
>>> Since you're using SA deployment, you can simply put the 
>>> <xmpp:privateChatEndpoint/> within the <beans/> tag of your xbean.xml 
>>> file.  You can also configure the user and password on the endpoint
>>> itself.
>>> 
>>> Could you retry after you have removed the <xmpp:component> and 
>>> <xmpp:endpoints> tags? 
>>> 
>>> Regards,
>>> 
>>> Gert
>>> 
>>> jwy923 wrote:
>>>> I see "no endpoint found" errors in the log.
>>>> Does it have something to do with Jabber Server or it is a problem of
>>>> my
>>>> service assembly/unit?
>>>>
>>>> For your information, I am using OpenFire 3.6.3 on Mac OS X 10.4
>>>> machine.
>>>>
>>>> Here is my xbean.xml file contents, for your reference.
>>>>
>>>> =================================================================
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>        xmlns:jabberbot="http://hello.com/jabberbot">
>>>>     <xmpp:component user="servicemix-user@mycomputer.local"
>>>> password="changeit">
>>>>     <xmpp:endpoints>
>>>>         <xmpp:privateChatEndpoint
>>>>                 service="jabberbot:LSJabberService"
>>>>                 endpoint="endpoint"
>>>>                
>>>> uri="xmpp://servicemix-user@mycomputer.local/test-user@mycomputer.local"
>>>> >
>>>>         <bean id="lionsharemarshaler"
>>>> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>>>>         </xmpp:privateChatEndpoint>
>>>>     </xmpp:endpoints>
>>>>     </xmpp:component>
>>>> </beans>
>>>>
>>>> ================================================================
>>>> Logs follow...
>>>>
>>>>
>>>> DEBUG - WSNComponent                   - Starting component
>>>> DEBUG - WSNComponent                   - Component started
>>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>>> Component: servicemix-xmpp to Started
>>>> INFO  - ComponentMBeanImpl             - Initializing component:
>>>> servicemix-xmpp
>>>> DEBUG - XMPPComponent                  - Initializing component
>>>> DEBUG - XMPPComponent                  - Component initialized
>>>> DEBUG - XMPPComponent                  - Starting component
>>>> DEBUG - XMPPComponent                  - Component started
>>>> INFO  - JBIContainer                   - ServiceMix JBI Container
>>>> (ServiceMix) started
>>>> INFO  - JDBCAdapterFactory             - Database driver recognized:
>>>> [apache_derby_embedded_jdbc_driver]
>>>> DEBUG - ManagementContext              - Registering system service:
>>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=JdbcAuditor
>>>> DEBUG - JBIContainer                   - Removing listener: class
>>>> org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
>>>> DEBUG - ManagementContext              - Registering system service:
>>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DotViewService
>>>> DEBUG - JBIContainer                   - Adding listener: class
>>>> org.apache.servicemix.jbi.view.DotViewEndpointListener
>>>> DEBUG - JBIContainer                   - Adding listener: class
>>>> org.apache.servicemix.jbi.view.DotViewFlowListener
>>>> DEBUG - ManagementContext              - Registering system service:
>>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=LogService
>>>> DEBUG - LogService                     - Located logging configuration:
>>>> file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>>>> INFO  - LogTask                        - Logging system reconfigured
>>>> using
>>>> file: file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>>>> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
>>>> changed: processing lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar ...
>>>> DEBUG - AutoDeploymentService          - Unpacked archive
>>>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>>>> to
>>>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>>>> DEBUG - SedaFlow                       - Called Flow suspend
>>>> DEBUG - JMSFlow                        - Called Flow suspend
>>>> DEBUG - JCAFlow                        - Called Flow suspend
>>>> DEBUG - AutoDeploymentService          - SA dependencies:
>>>> [servicemix-xmpp]
>>>> DEBUG - DeploymentService              - Moving
>>>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>>>> to
>>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install
>>>> DEBUG - DeploymentService              - Unpack service unit archive
>>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install/lionshare-jabber-bot-su-1.0-SNAPSHOT.zip
>>>> to
>>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su
>>>> DEBUG - XMPPComponent                  - Deploying service unit
>>>> DEBUG - XMPPComponent                  - Looking for
>>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
>>>> true
>>>> ERROR - XMPPComponent                  -
>>>> javax.jbi.management.DeploymentException: <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>         <component-name>servicemix-xmpp</component-name>
>>>>         <component-task-result-details>
>>>>                 <task-result-details>
>>>>                         <task-id>deploy</task-id>
>>>>                         <task-result>FAILED</task-result>
>>>>                         <message-type>ERROR</message-type>
>>>>                        
>>>> <task-status-msg><msg-loc-info><loc-token/><loc-message>No endpoint
>>>> found</loc-message></msg-loc-info></task-status-msg>
>>>>                 </task-result-details>
>>>>         </component-task-result-details>
>>>> </component-task-result>
>>>> ERROR - AutoDeploymentService          - Failed to update Service
>>>> Assembly:
>>>> lionshare-jabber-bot-sa
>>>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>> version="1.0">
>>>> <jbi-task-result>
>>>> <frmwk-task-result>
>>>> <frmwk-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>FAILED</task-result>
>>>> <message-type>ERROR</message-type>
>>>> </task-result-details>
>>>> </frmwk-task-result-details>
>>>> </frmwk-task-result>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>         <component-name>servicemix-xmpp</component-name>
>>>>         <component-task-result-details>
>>>>                 <task-result-details>
>>>>                         <task-id>deploy</task-id>
>>>>                         <task-result>FAILED</task-result>
>>>>                         <message-type>ERROR</message-type>
>>>>                         <task-status-msg>
>>>> <msg-loc-info>
>>>> <loc-token/>
>>>> <loc-message>No endpoint found</loc-message>
>>>> </msg-loc-info>
>>>> </task-status-msg>
>>>>                 </task-result-details>
>>>>         </component-task-result-details>
>>>> </component-task-result>
>>>> </jbi-task-result>
>>>> </jbi-task>
>>>>
>>>>         at
>>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>> DEBUG - SedaFlow                       - Called Flow resume
>>>> DEBUG - JMSFlow                        - Called Flow resume
>>>> DEBUG - JCAFlow                        - Called Flow resume
>>>> WARN  - AutoDeploymentService          - Directory: hotdeploy:
>>>> Automatic
>>>> install of
>>>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>>>> failed
>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>> Assembly:
>>>> lionshare-jabber-bot-sa
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>> version="1.0">
>>>> <jbi-task-result>
>>>> <frmwk-task-result>
>>>> <frmwk-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>FAILED</task-result>
>>>> <message-type>ERROR</message-type>
>>>> </task-result-details>
>>>> </frmwk-task-result-details>
>>>> </frmwk-task-result>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>         <component-name>servicemix-xmpp</component-name>
>>>>         <component-task-result-details>
>>>>                 <task-result-details>
>>>>                         <task-id>deploy</task-id>
>>>>                         <task-result>FAILED</task-result>
>>>>                         <message-type>ERROR</message-type>
>>>>                         <task-status-msg>
>>>> <msg-loc-info>
>>>> <loc-token/>
>>>> <loc-message>No endpoint found</loc-message>
>>>> </msg-loc-info>
>>>> </task-status-msg>
>>>>                 </task-result-details>
>>>>         </component-task-result-details>
>>>> </component-task-result>
>>>> </jbi-task-result>
>>>> </jbi-task>
>>>>
>>>>         at
>>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>>>         at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>>>         ... 6 more
>>>>
>>>> Gert Vanthienen wrote:
>>>>   
>>>>> John,
>>>>>
>>>>> This component probably hasn't been used very much up to now and I
>>>>> don't 
>>>>> think we have a working example at hand.  What problems are you
>>>>> running 
>>>>> into? 
>>>>> Could you try turning on DEBUG logging and sending that information
>>>>> along?
>>>>>
>>>>> Let's try to work through this together so we do have a good working 
>>>>> example for the next user that comes along.  Btw, if you fancy taking
>>>>> a 
>>>>> look at the code for this component, it's at 
>>>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>>>
>>>>> Regards,
>>>>>
>>>>> Gert
>>>>>
>>>>> jwy923 wrote:
>>>>>     
>>>>>> Would someone share a working example of XMPPMarshaler and its
>>>>>> configuration
>>>>>> with me?
>>>>>>
>>>>>> I have been struggling with building an XMPP service unit to
>>>>>> communicate
>>>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>>>
>>>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>>>> Jabber
>>>>>> client after receiving a message from the Jabber client (Instant
>>>>>> Messenger),
>>>>>> of course, via the Jabber server.
>>>>>>
>>>>>> Unfortunately, I have made any progress for one month.
>>>>>>
>>>>>> Please help me.
>>>>>>
>>>>>> John
>>>>>>   
>>>>>>       
>>>>>
>>>>> -----
>>>>> ---
>>>>> Gert Vanthienen
>>>>> http://gertvanthienen.blogspot.com
>>>>>
>>>>>     
>>>> Quoted from: 
>>>> http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21432170.html
>>>>
>>>>
>>>> Gert Vanthienen wrote:
>>>>   
>>>>> John,
>>>>>
>>>>> This component probably hasn't been used very much up to now and I
>>>>> don't 
>>>>> think we have a working example at hand.  What problems are you
>>>>> running 
>>>>> into? 
>>>>> Could you try turning on DEBUG logging and sending that information
>>>>> along?
>>>>>
>>>>> Let's try to work through this together so we do have a good working 
>>>>> example for the next user that comes along.  Btw, if you fancy taking
>>>>> a 
>>>>> look at the code for this component, it's at 
>>>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>>>
>>>>> Regards,
>>>>>
>>>>> Gert
>>>>>
>>>>> jwy923 wrote:
>>>>>     
>>>>>> Would someone share a working example of XMPPMarshaler and its
>>>>>> configuration
>>>>>> with me?
>>>>>>
>>>>>> I have been struggling with building an XMPP service unit to
>>>>>> communicate
>>>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>>>
>>>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>>>> Jabber
>>>>>> client after receiving a message from the Jabber client (Instant
>>>>>> Messenger),
>>>>>> of course, via the Jabber server.
>>>>>>
>>>>>> Unfortunately, I have made any progress for one month.
>>>>>>
>>>>>> Please help me.
>>>>>>
>>>>>> John
>>>>>>   
>>>>>>       
>>>>>
>>>>> -----
>>>>> ---
>>>>> Gert Vanthienen
>>>>> http://gertvanthienen.blogspot.com
>>>>>
>>>>>     
>>>>
>>>>   
>>> 
>>> 
>>> 
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p22541434.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Working XMPPMarshaler and Configuration Examples

Posted by jwy923 <jw...@gmail.com>.

I just put the user/password as attributes of privateChatEndpoint, 
but I don't know whether or not it is valid.

I have the following error message when I used this xbean.xml.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
       xmlns:jabberbot="http://myAppURL/jabberbot">
   	<xmpp:privateChatEndpoint 
   		service="jabberbot:LSJabberService" 
   		endpoint="endpoint" 
   		user="servicemix-user@johnrail.local"
   		password="servicemix-pwd"
   		uri="xmpp://servicemix-user@johnrail.local/test-user@johnrail.local" >
   	<bean id="lionsharemarshaler"
class="org.apache.servicemix.jbi.LSJabberMarshaler" />
   	</xmpp:privateChatEndpoint>
</beans>

What is the service description?

INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-xmpp to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-xmpp
DEBUG - XMPPComponent                  - Initializing component
DEBUG - XMPPComponent                  - Component initialized
DEBUG - XMPPComponent                  - Starting component
DEBUG - XMPPComponent                  - Component started
INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly:
lionshare-jabber-bot-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
lionshare-jabber-bot-su
DEBUG - XMPPComponent                  - Initializing service unit
DEBUG - XMPPComponent                  - Looking for
/home/john/opt/servicemix/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_1/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
true
DEBUG - ComponentContextImpl           - Component: servicemix-xmpp
activated endpoint: {http://myAppURL/jabberbot}LSJabberService : endpoint
DEBUG - XMPPComponent                  - Querying service description for
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
DEBUG - XMPPComponent                  - No description found for
{http://myAppURL/jabberbot}LSJabberService:endpoint
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
has no service description
DEBUG - XMPPComponent                  - Querying service description for
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
DEBUG - XMPPComponent                  - No description found for
{http://myAppURL/jabberbot}LSJabberService:endpoint
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]
has no service description
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - XMPPComponent                  - Service unit initialized
INFO  - ServiceAssemblyLifeCycle       - Shutting down service assembly:
lionshare-jabber-bot-sa
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
lionshare-jabber-bot-su
DEBUG - XMPPComponent                  - Shutting down service unit
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://myAppURL/jabberbot}LSJabberService,endpoint=endpoint]]
DEBUG - XMPPComponent                  - Service unit shut down


jwy923 wrote:
> 
> Hi Gert,
> 
> For a few months I was involved in another project.
> And now I found a small time slot for XMPP.
> 
> 
> Here is my xbean.xml and I want to know where I can put user/pwd
> information.
> Could you help me?
> 
> Best,
> John
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>        xmlns:jabberbot="http://myAppURL/jabberbot">
>        <xmpp:privateChatEndpoint
>            service="jabberbot:LSJabberService"
>            endpoint="endpoint"
>            uri="xmpp://servicemix-user@john.local/test-user@john.local" >
>        <bean id="lionsharemarshaler"
> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>        </xmpp:privateChatEndpoint>
> </beans>
> 
> 
> 
> 
> 
> 
> Gert Vanthienen wrote:
>> 
>> John,
>> 
>> Since you're using SA deployment, you can simply put the 
>> <xmpp:privateChatEndpoint/> within the <beans/> tag of your xbean.xml 
>> file.  You can also configure the user and password on the endpoint
>> itself.
>> 
>> Could you retry after you have removed the <xmpp:component> and 
>> <xmpp:endpoints> tags? 
>> 
>> Regards,
>> 
>> Gert
>> 
>> jwy923 wrote:
>>> I see "no endpoint found" errors in the log.
>>> Does it have something to do with Jabber Server or it is a problem of my
>>> service assembly/unit?
>>>
>>> For your information, I am using OpenFire 3.6.3 on Mac OS X 10.4
>>> machine.
>>>
>>> Here is my xbean.xml file contents, for your reference.
>>>
>>> =================================================================
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>        xmlns:jabberbot="http://hello.com/jabberbot">
>>>     <xmpp:component user="servicemix-user@mycomputer.local"
>>> password="changeit">
>>>     <xmpp:endpoints>
>>>         <xmpp:privateChatEndpoint
>>>                 service="jabberbot:LSJabberService"
>>>                 endpoint="endpoint"
>>>                
>>> uri="xmpp://servicemix-user@mycomputer.local/test-user@mycomputer.local"
>>> >
>>>         <bean id="lionsharemarshaler"
>>> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>>>         </xmpp:privateChatEndpoint>
>>>     </xmpp:endpoints>
>>>     </xmpp:component>
>>> </beans>
>>>
>>> ================================================================
>>> Logs follow...
>>>
>>>
>>> DEBUG - WSNComponent                   - Starting component
>>> DEBUG - WSNComponent                   - Component started
>>> INFO  - ComponentMBeanImpl             - Setting running state for
>>> Component: servicemix-xmpp to Started
>>> INFO  - ComponentMBeanImpl             - Initializing component:
>>> servicemix-xmpp
>>> DEBUG - XMPPComponent                  - Initializing component
>>> DEBUG - XMPPComponent                  - Component initialized
>>> DEBUG - XMPPComponent                  - Starting component
>>> DEBUG - XMPPComponent                  - Component started
>>> INFO  - JBIContainer                   - ServiceMix JBI Container
>>> (ServiceMix) started
>>> INFO  - JDBCAdapterFactory             - Database driver recognized:
>>> [apache_derby_embedded_jdbc_driver]
>>> DEBUG - ManagementContext              - Registering system service:
>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=JdbcAuditor
>>> DEBUG - JBIContainer                   - Removing listener: class
>>> org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
>>> DEBUG - ManagementContext              - Registering system service:
>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DotViewService
>>> DEBUG - JBIContainer                   - Adding listener: class
>>> org.apache.servicemix.jbi.view.DotViewEndpointListener
>>> DEBUG - JBIContainer                   - Adding listener: class
>>> org.apache.servicemix.jbi.view.DotViewFlowListener
>>> DEBUG - ManagementContext              - Registering system service:
>>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=LogService
>>> DEBUG - LogService                     - Located logging configuration:
>>> file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>>> INFO  - LogTask                        - Logging system reconfigured
>>> using
>>> file: file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>>> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
>>> changed: processing lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar ...
>>> DEBUG - AutoDeploymentService          - Unpacked archive
>>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>>> to
>>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>>> DEBUG - SedaFlow                       - Called Flow suspend
>>> DEBUG - JMSFlow                        - Called Flow suspend
>>> DEBUG - JCAFlow                        - Called Flow suspend
>>> DEBUG - AutoDeploymentService          - SA dependencies:
>>> [servicemix-xmpp]
>>> DEBUG - DeploymentService              - Moving
>>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>>> to
>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install
>>> DEBUG - DeploymentService              - Unpack service unit archive
>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install/lionshare-jabber-bot-su-1.0-SNAPSHOT.zip
>>> to
>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su
>>> DEBUG - XMPPComponent                  - Deploying service unit
>>> DEBUG - XMPPComponent                  - Looking for
>>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
>>> true
>>> ERROR - XMPPComponent                  -
>>> javax.jbi.management.DeploymentException: <component-task-result
>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>         <component-name>servicemix-xmpp</component-name>
>>>         <component-task-result-details>
>>>                 <task-result-details>
>>>                         <task-id>deploy</task-id>
>>>                         <task-result>FAILED</task-result>
>>>                         <message-type>ERROR</message-type>
>>>                        
>>> <task-status-msg><msg-loc-info><loc-token/><loc-message>No endpoint
>>> found</loc-message></msg-loc-info></task-status-msg>
>>>                 </task-result-details>
>>>         </component-task-result-details>
>>> </component-task-result>
>>> ERROR - AutoDeploymentService          - Failed to update Service
>>> Assembly:
>>> lionshare-jabber-bot-sa
>>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>> version="1.0">
>>> <jbi-task-result>
>>> <frmwk-task-result>
>>> <frmwk-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>FAILED</task-result>
>>> <message-type>ERROR</message-type>
>>> </task-result-details>
>>> </frmwk-task-result-details>
>>> </frmwk-task-result>
>>> <component-task-result
>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>         <component-name>servicemix-xmpp</component-name>
>>>         <component-task-result-details>
>>>                 <task-result-details>
>>>                         <task-id>deploy</task-id>
>>>                         <task-result>FAILED</task-result>
>>>                         <message-type>ERROR</message-type>
>>>                         <task-status-msg>
>>> <msg-loc-info>
>>> <loc-token/>
>>> <loc-message>No endpoint found</loc-message>
>>> </msg-loc-info>
>>> </task-status-msg>
>>>                 </task-result-details>
>>>         </component-task-result-details>
>>> </component-task-result>
>>> </jbi-task-result>
>>> </jbi-task>
>>>
>>>         at
>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>>         at
>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>>         at
>>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>         at java.util.TimerThread.run(Timer.java:462)
>>> DEBUG - SedaFlow                       - Called Flow resume
>>> DEBUG - JMSFlow                        - Called Flow resume
>>> DEBUG - JCAFlow                        - Called Flow resume
>>> WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
>>> install of
>>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>>> failed
>>> javax.jbi.management.DeploymentException: Failed to update Service
>>> Assembly:
>>> lionshare-jabber-bot-sa
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>         at java.util.TimerThread.run(Timer.java:462)
>>> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>> version="1.0">
>>> <jbi-task-result>
>>> <frmwk-task-result>
>>> <frmwk-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>FAILED</task-result>
>>> <message-type>ERROR</message-type>
>>> </task-result-details>
>>> </frmwk-task-result-details>
>>> </frmwk-task-result>
>>> <component-task-result
>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>         <component-name>servicemix-xmpp</component-name>
>>>         <component-task-result-details>
>>>                 <task-result-details>
>>>                         <task-id>deploy</task-id>
>>>                         <task-result>FAILED</task-result>
>>>                         <message-type>ERROR</message-type>
>>>                         <task-status-msg>
>>> <msg-loc-info>
>>> <loc-token/>
>>> <loc-message>No endpoint found</loc-message>
>>> </msg-loc-info>
>>> </task-status-msg>
>>>                 </task-result-details>
>>>         </component-task-result-details>
>>> </component-task-result>
>>> </jbi-task-result>
>>> </jbi-task>
>>>
>>>         at
>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>>         at
>>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>>         at
>>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>>         at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>>         ... 6 more
>>>
>>> Gert Vanthienen wrote:
>>>   
>>>> John,
>>>>
>>>> This component probably hasn't been used very much up to now and I
>>>> don't 
>>>> think we have a working example at hand.  What problems are you running 
>>>> into? 
>>>> Could you try turning on DEBUG logging and sending that information
>>>> along?
>>>>
>>>> Let's try to work through this together so we do have a good working 
>>>> example for the next user that comes along.  Btw, if you fancy taking a 
>>>> look at the code for this component, it's at 
>>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>>
>>>> Regards,
>>>>
>>>> Gert
>>>>
>>>> jwy923 wrote:
>>>>     
>>>>> Would someone share a working example of XMPPMarshaler and its
>>>>> configuration
>>>>> with me?
>>>>>
>>>>> I have been struggling with building an XMPP service unit to
>>>>> communicate
>>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>>
>>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>>> Jabber
>>>>> client after receiving a message from the Jabber client (Instant
>>>>> Messenger),
>>>>> of course, via the Jabber server.
>>>>>
>>>>> Unfortunately, I have made any progress for one month.
>>>>>
>>>>> Please help me.
>>>>>
>>>>> John
>>>>>   
>>>>>       
>>>>
>>>> -----
>>>> ---
>>>> Gert Vanthienen
>>>> http://gertvanthienen.blogspot.com
>>>>
>>>>     
>>> Quoted from: 
>>> http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21432170.html
>>>
>>>
>>> Gert Vanthienen wrote:
>>>   
>>>> John,
>>>>
>>>> This component probably hasn't been used very much up to now and I
>>>> don't 
>>>> think we have a working example at hand.  What problems are you running 
>>>> into? 
>>>> Could you try turning on DEBUG logging and sending that information
>>>> along?
>>>>
>>>> Let's try to work through this together so we do have a good working 
>>>> example for the next user that comes along.  Btw, if you fancy taking a 
>>>> look at the code for this component, it's at 
>>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>>
>>>> Regards,
>>>>
>>>> Gert
>>>>
>>>> jwy923 wrote:
>>>>     
>>>>> Would someone share a working example of XMPPMarshaler and its
>>>>> configuration
>>>>> with me?
>>>>>
>>>>> I have been struggling with building an XMPP service unit to
>>>>> communicate
>>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>>
>>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>>> Jabber
>>>>> client after receiving a message from the Jabber client (Instant
>>>>> Messenger),
>>>>> of course, via the Jabber server.
>>>>>
>>>>> Unfortunately, I have made any progress for one month.
>>>>>
>>>>> Please help me.
>>>>>
>>>>> John
>>>>>   
>>>>>       
>>>>
>>>> -----
>>>> ---
>>>> Gert Vanthienen
>>>> http://gertvanthienen.blogspot.com
>>>>
>>>>     
>>>
>>>   
>> 
>> 
>> 
>> -----
>> ---
>> Gert Vanthienen
>> http://gertvanthienen.blogspot.com
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p22376854.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Working XMPPMarshaler and Configuration Examples

Posted by jwy923 <jw...@gmail.com>.
Hi Gert,

For a few months I was involved in another project.
And now I found a small time slot for XMPP.


Here is my xbean.xml and I want to know where I can put user/pwd
information.
Could you help me?

Best,
John


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
       xmlns:jabberbot="http://myAppURL/jabberbot">
       <xmpp:privateChatEndpoint
           service="jabberbot:LSJabberService"
           endpoint="endpoint"
           uri="xmpp://servicemix-user@john.local/test-user@john.local" >
       <bean id="lionsharemarshaler"
class="org.apache.servicemix.jbi.LSJabberMarshaler" />
       </xmpp:privateChatEndpoint>
</beans>






Gert Vanthienen wrote:
> 
> John,
> 
> Since you're using SA deployment, you can simply put the 
> <xmpp:privateChatEndpoint/> within the <beans/> tag of your xbean.xml 
> file.  You can also configure the user and password on the endpoint
> itself.
> 
> Could you retry after you have removed the <xmpp:component> and 
> <xmpp:endpoints> tags? 
> 
> Regards,
> 
> Gert
> 
> jwy923 wrote:
>> I see "no endpoint found" errors in the log.
>> Does it have something to do with Jabber Server or it is a problem of my
>> service assembly/unit?
>>
>> For your information, I am using OpenFire 3.6.3 on Mac OS X 10.4 machine.
>>
>> Here is my xbean.xml file contents, for your reference.
>>
>> =================================================================
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>        xmlns:jabberbot="http://hello.com/jabberbot">
>>     <xmpp:component user="servicemix-user@mycomputer.local"
>> password="changeit">
>>     <xmpp:endpoints>
>>         <xmpp:privateChatEndpoint
>>                 service="jabberbot:LSJabberService"
>>                 endpoint="endpoint"
>>                
>> uri="xmpp://servicemix-user@mycomputer.local/test-user@mycomputer.local"
>> >
>>         <bean id="lionsharemarshaler"
>> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>>         </xmpp:privateChatEndpoint>
>>     </xmpp:endpoints>
>>     </xmpp:component>
>> </beans>
>>
>> ================================================================
>> Logs follow...
>>
>>
>> DEBUG - WSNComponent                   - Starting component
>> DEBUG - WSNComponent                   - Component started
>> INFO  - ComponentMBeanImpl             - Setting running state for
>> Component: servicemix-xmpp to Started
>> INFO  - ComponentMBeanImpl             - Initializing component:
>> servicemix-xmpp
>> DEBUG - XMPPComponent                  - Initializing component
>> DEBUG - XMPPComponent                  - Component initialized
>> DEBUG - XMPPComponent                  - Starting component
>> DEBUG - XMPPComponent                  - Component started
>> INFO  - JBIContainer                   - ServiceMix JBI Container
>> (ServiceMix) started
>> INFO  - JDBCAdapterFactory             - Database driver recognized:
>> [apache_derby_embedded_jdbc_driver]
>> DEBUG - ManagementContext              - Registering system service:
>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=JdbcAuditor
>> DEBUG - JBIContainer                   - Removing listener: class
>> org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
>> DEBUG - ManagementContext              - Registering system service:
>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DotViewService
>> DEBUG - JBIContainer                   - Adding listener: class
>> org.apache.servicemix.jbi.view.DotViewEndpointListener
>> DEBUG - JBIContainer                   - Adding listener: class
>> org.apache.servicemix.jbi.view.DotViewFlowListener
>> DEBUG - ManagementContext              - Registering system service:
>> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=LogService
>> DEBUG - LogService                     - Located logging configuration:
>> file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>> INFO  - LogTask                        - Logging system reconfigured
>> using
>> file: file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
>> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
>> changed: processing lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar ...
>> DEBUG - AutoDeploymentService          - Unpacked archive
>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>> to
>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>> DEBUG - SedaFlow                       - Called Flow suspend
>> DEBUG - JMSFlow                        - Called Flow suspend
>> DEBUG - JCAFlow                        - Called Flow suspend
>> DEBUG - AutoDeploymentService          - SA dependencies:
>> [servicemix-xmpp]
>> DEBUG - DeploymentService              - Moving
>> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
>> to
>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install
>> DEBUG - DeploymentService              - Unpack service unit archive
>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install/lionshare-jabber-bot-su-1.0-SNAPSHOT.zip
>> to
>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su
>> DEBUG - XMPPComponent                  - Deploying service unit
>> DEBUG - XMPPComponent                  - Looking for
>> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
>> true
>> ERROR - XMPPComponent                  -
>> javax.jbi.management.DeploymentException: <component-task-result
>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>         <component-name>servicemix-xmpp</component-name>
>>         <component-task-result-details>
>>                 <task-result-details>
>>                         <task-id>deploy</task-id>
>>                         <task-result>FAILED</task-result>
>>                         <message-type>ERROR</message-type>
>>                        
>> <task-status-msg><msg-loc-info><loc-token/><loc-message>No endpoint
>> found</loc-message></msg-loc-info></task-status-msg>
>>                 </task-result-details>
>>         </component-task-result-details>
>> </component-task-result>
>> ERROR - AutoDeploymentService          - Failed to update Service
>> Assembly:
>> lionshare-jabber-bot-sa
>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> <component-task-result
>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>         <component-name>servicemix-xmpp</component-name>
>>         <component-task-result-details>
>>                 <task-result-details>
>>                         <task-id>deploy</task-id>
>>                         <task-result>FAILED</task-result>
>>                         <message-type>ERROR</message-type>
>>                         <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>No endpoint found</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>>                 </task-result-details>
>>         </component-task-result-details>
>> </component-task-result>
>> </jbi-task-result>
>> </jbi-task>
>>
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> DEBUG - SedaFlow                       - Called Flow resume
>> DEBUG - JMSFlow                        - Called Flow resume
>> DEBUG - JCAFlow                        - Called Flow resume
>> WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
>> install of
>> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
>> failed
>> javax.jbi.management.DeploymentException: Failed to update Service
>> Assembly:
>> lionshare-jabber-bot-sa
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> <component-task-result
>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>         <component-name>servicemix-xmpp</component-name>
>>         <component-task-result-details>
>>                 <task-result-details>
>>                         <task-id>deploy</task-id>
>>                         <task-result>FAILED</task-result>
>>                         <message-type>ERROR</message-type>
>>                         <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>No endpoint found</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>>                 </task-result-details>
>>         </component-task-result-details>
>> </component-task-result>
>> </jbi-task-result>
>> </jbi-task>
>>
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>>         ... 6 more
>>
>> Gert Vanthienen wrote:
>>   
>>> John,
>>>
>>> This component probably hasn't been used very much up to now and I don't 
>>> think we have a working example at hand.  What problems are you running 
>>> into? 
>>> Could you try turning on DEBUG logging and sending that information
>>> along?
>>>
>>> Let's try to work through this together so we do have a good working 
>>> example for the next user that comes along.  Btw, if you fancy taking a 
>>> look at the code for this component, it's at 
>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> jwy923 wrote:
>>>     
>>>> Would someone share a working example of XMPPMarshaler and its
>>>> configuration
>>>> with me?
>>>>
>>>> I have been struggling with building an XMPP service unit to
>>>> communicate
>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>
>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>> Jabber
>>>> client after receiving a message from the Jabber client (Instant
>>>> Messenger),
>>>> of course, via the Jabber server.
>>>>
>>>> Unfortunately, I have made any progress for one month.
>>>>
>>>> Please help me.
>>>>
>>>> John
>>>>   
>>>>       
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>>
>>>     
>> Quoted from: 
>> http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21432170.html
>>
>>
>> Gert Vanthienen wrote:
>>   
>>> John,
>>>
>>> This component probably hasn't been used very much up to now and I don't 
>>> think we have a working example at hand.  What problems are you running 
>>> into? 
>>> Could you try turning on DEBUG logging and sending that information
>>> along?
>>>
>>> Let's try to work through this together so we do have a good working 
>>> example for the next user that comes along.  Btw, if you fancy taking a 
>>> look at the code for this component, it's at 
>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> jwy923 wrote:
>>>     
>>>> Would someone share a working example of XMPPMarshaler and its
>>>> configuration
>>>> with me?
>>>>
>>>> I have been struggling with building an XMPP service unit to
>>>> communicate
>>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>>
>>>> My goal is that the XMPP service unit reply back (or echo) to the
>>>> Jabber
>>>> client after receiving a message from the Jabber client (Instant
>>>> Messenger),
>>>> of course, via the Jabber server.
>>>>
>>>> Unfortunately, I have made any progress for one month.
>>>>
>>>> Please help me.
>>>>
>>>> John
>>>>   
>>>>       
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>>
>>>     
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p22375535.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Working XMPPMarshaler and Configuration Examples

Posted by Gert Vanthienen <ge...@skynet.be>.
John,

Since you're using SA deployment, you can simply put the 
<xmpp:privateChatEndpoint/> within the <beans/> tag of your xbean.xml 
file.  You can also configure the user and password on the endpoint itself.

Could you retry after you have removed the <xmpp:component> and 
<xmpp:endpoints> tags? 

Regards,

Gert

jwy923 wrote:
> I see "no endpoint found" errors in the log.
> Does it have something to do with Jabber Server or it is a problem of my
> service assembly/unit?
>
> For your information, I am using OpenFire 3.6.3 on Mac OS X 10.4 machine.
>
> Here is my xbean.xml file contents, for your reference.
>
> =================================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>        xmlns:jabberbot="http://hello.com/jabberbot">
>     <xmpp:component user="servicemix-user@mycomputer.local"
> password="changeit">
>     <xmpp:endpoints>
>         <xmpp:privateChatEndpoint
>                 service="jabberbot:LSJabberService"
>                 endpoint="endpoint"
>                
> uri="xmpp://servicemix-user@mycomputer.local/test-user@mycomputer.local" >
>         <bean id="lionsharemarshaler"
> class="org.apache.servicemix.jbi.LSJabberMarshaler" />
>         </xmpp:privateChatEndpoint>
>     </xmpp:endpoints>
>     </xmpp:component>
> </beans>
>
> ================================================================
> Logs follow...
>
>
> DEBUG - WSNComponent                   - Starting component
> DEBUG - WSNComponent                   - Component started
> INFO  - ComponentMBeanImpl             - Setting running state for
> Component: servicemix-xmpp to Started
> INFO  - ComponentMBeanImpl             - Initializing component:
> servicemix-xmpp
> DEBUG - XMPPComponent                  - Initializing component
> DEBUG - XMPPComponent                  - Component initialized
> DEBUG - XMPPComponent                  - Starting component
> DEBUG - XMPPComponent                  - Component started
> INFO  - JBIContainer                   - ServiceMix JBI Container
> (ServiceMix) started
> INFO  - JDBCAdapterFactory             - Database driver recognized:
> [apache_derby_embedded_jdbc_driver]
> DEBUG - ManagementContext              - Registering system service:
> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=JdbcAuditor
> DEBUG - JBIContainer                   - Removing listener: class
> org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
> DEBUG - ManagementContext              - Registering system service:
> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DotViewService
> DEBUG - JBIContainer                   - Adding listener: class
> org.apache.servicemix.jbi.view.DotViewEndpointListener
> DEBUG - JBIContainer                   - Adding listener: class
> org.apache.servicemix.jbi.view.DotViewFlowListener
> DEBUG - ManagementContext              - Registering system service:
> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=LogService
> DEBUG - LogService                     - Located logging configuration:
> file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
> INFO  - LogTask                        - Logging system reconfigured using
> file: file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
> changed: processing lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar ...
> DEBUG - AutoDeploymentService          - Unpacked archive
> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
> to
> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
> DEBUG - SedaFlow                       - Called Flow suspend
> DEBUG - JMSFlow                        - Called Flow suspend
> DEBUG - JCAFlow                        - Called Flow suspend
> DEBUG - AutoDeploymentService          - SA dependencies: [servicemix-xmpp]
> DEBUG - DeploymentService              - Moving
> /usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
> to
> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install
> DEBUG - DeploymentService              - Unpack service unit archive
> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install/lionshare-jabber-bot-su-1.0-SNAPSHOT.zip
> to
> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su
> DEBUG - XMPPComponent                  - Deploying service unit
> DEBUG - XMPPComponent                  - Looking for
> /usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
> true
> ERROR - XMPPComponent                  -
> javax.jbi.management.DeploymentException: <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-xmpp</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                         <task-id>deploy</task-id>
>                         <task-result>FAILED</task-result>
>                         <message-type>ERROR</message-type>
>                        
> <task-status-msg><msg-loc-info><loc-token/><loc-message>No endpoint
> found</loc-message></msg-loc-info></task-status-msg>
>                 </task-result-details>
>         </component-task-result-details>
> </component-task-result>
> ERROR - AutoDeploymentService          - Failed to update Service Assembly:
> lionshare-jabber-bot-sa
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-xmpp</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                         <task-id>deploy</task-id>
>                         <task-result>FAILED</task-result>
>                         <message-type>ERROR</message-type>
>                         <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>No endpoint found</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                 </task-result-details>
>         </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> DEBUG - SedaFlow                       - Called Flow resume
> DEBUG - JMSFlow                        - Called Flow resume
> DEBUG - JCAFlow                        - Called Flow resume
> WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
> install of
> /usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
> failed
> javax.jbi.management.DeploymentException: Failed to update Service Assembly:
> lionshare-jabber-bot-sa
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>         <component-name>servicemix-xmpp</component-name>
>         <component-task-result-details>
>                 <task-result-details>
>                         <task-id>deploy</task-id>
>                         <task-result>FAILED</task-result>
>                         <message-type>ERROR</message-type>
>                         <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>No endpoint found</loc-message>
> </msg-loc-info>
> </task-status-msg>
>                 </task-result-details>
>         </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
>         ... 6 more
>
> Gert Vanthienen wrote:
>   
>> John,
>>
>> This component probably hasn't been used very much up to now and I don't 
>> think we have a working example at hand.  What problems are you running 
>> into? 
>> Could you try turning on DEBUG logging and sending that information along?
>>
>> Let's try to work through this together so we do have a good working 
>> example for the next user that comes along.  Btw, if you fancy taking a 
>> look at the code for this component, it's at 
>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>
>> Regards,
>>
>> Gert
>>
>> jwy923 wrote:
>>     
>>> Would someone share a working example of XMPPMarshaler and its
>>> configuration
>>> with me?
>>>
>>> I have been struggling with building an XMPP service unit to communicate
>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>
>>> My goal is that the XMPP service unit reply back (or echo) to the Jabber
>>> client after receiving a message from the Jabber client (Instant
>>> Messenger),
>>> of course, via the Jabber server.
>>>
>>> Unfortunately, I have made any progress for one month.
>>>
>>> Please help me.
>>>
>>> John
>>>   
>>>       
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://gertvanthienen.blogspot.com
>>
>>     
> Quoted from: 
> http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21432170.html
>
>
> Gert Vanthienen wrote:
>   
>> John,
>>
>> This component probably hasn't been used very much up to now and I don't 
>> think we have a working example at hand.  What problems are you running 
>> into? 
>> Could you try turning on DEBUG logging and sending that information along?
>>
>> Let's try to work through this together so we do have a good working 
>> example for the next user that comes along.  Btw, if you fancy taking a 
>> look at the code for this component, it's at 
>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
>>
>> Regards,
>>
>> Gert
>>
>> jwy923 wrote:
>>     
>>> Would someone share a working example of XMPPMarshaler and its
>>> configuration
>>> with me?
>>>
>>> I have been struggling with building an XMPP service unit to communicate
>>> with a Jabber client (Instant Messenger) via a Jabber server.
>>>
>>> My goal is that the XMPP service unit reply back (or echo) to the Jabber
>>> client after receiving a message from the Jabber client (Instant
>>> Messenger),
>>> of course, via the Jabber server.
>>>
>>> Unfortunately, I have made any progress for one month.
>>>
>>> Please help me.
>>>
>>> John
>>>   
>>>       
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://gertvanthienen.blogspot.com
>>
>>     
>
>   


Re: Working XMPPMarshaler and Configuration Examples

Posted by jwy923 <jw...@gmail.com>.
I see "no endpoint found" errors in the log.
Does it have something to do with Jabber Server or it is a problem of my
service assembly/unit?

For your information, I am using OpenFire 3.6.3 on Mac OS X 10.4 machine.

Here is my xbean.xml file contents, for your reference.

=================================================================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
       xmlns:jabberbot="http://hello.com/jabberbot">
    <xmpp:component user="servicemix-user@mycomputer.local"
password="changeit">
    <xmpp:endpoints>
        <xmpp:privateChatEndpoint
                service="jabberbot:LSJabberService"
                endpoint="endpoint"
               
uri="xmpp://servicemix-user@mycomputer.local/test-user@mycomputer.local" >
        <bean id="lionsharemarshaler"
class="org.apache.servicemix.jbi.LSJabberMarshaler" />
        </xmpp:privateChatEndpoint>
    </xmpp:endpoints>
    </xmpp:component>
</beans>

================================================================
Logs follow...


DEBUG - WSNComponent                   - Starting component
DEBUG - WSNComponent                   - Component started
INFO  - ComponentMBeanImpl             - Setting running state for
Component: servicemix-xmpp to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-xmpp
DEBUG - XMPPComponent                  - Initializing component
DEBUG - XMPPComponent                  - Component initialized
DEBUG - XMPPComponent                  - Starting component
DEBUG - XMPPComponent                  - Component started
INFO  - JBIContainer                   - ServiceMix JBI Container
(ServiceMix) started
INFO  - JDBCAdapterFactory             - Database driver recognized:
[apache_derby_embedded_jdbc_driver]
DEBUG - ManagementContext              - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=JdbcAuditor
DEBUG - JBIContainer                   - Removing listener: class
org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
DEBUG - ManagementContext              - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=DotViewService
DEBUG - JBIContainer                   - Adding listener: class
org.apache.servicemix.jbi.view.DotViewEndpointListener
DEBUG - JBIContainer                   - Adding listener: class
org.apache.servicemix.jbi.view.DotViewFlowListener
DEBUG - ManagementContext              - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=LogService
DEBUG - LogService                     - Located logging configuration:
file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
INFO  - LogTask                        - Logging system reconfigured using
file: file:/usr/local/apache-servicemix-3.3/conf/log4j.xml
INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
changed: processing lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar ...
DEBUG - AutoDeploymentService          - Unpacked archive
/usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
to
/usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
DEBUG - SedaFlow                       - Called Flow suspend
DEBUG - JMSFlow                        - Called Flow suspend
DEBUG - JCAFlow                        - Called Flow suspend
DEBUG - AutoDeploymentService          - SA dependencies: [servicemix-xmpp]
DEBUG - DeploymentService              - Moving
/usr/local/apache-servicemix-3.3/data/smx/tmp/lionshare-jabber-bot-sa-1.0-SNAPSHOT.0.tmp
to
/usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install
DEBUG - DeploymentService              - Unpack service unit archive
/usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/install/lionshare-jabber-bot-su-1.0-SNAPSHOT.zip
to
/usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su
DEBUG - XMPPComponent                  - Deploying service unit
DEBUG - XMPPComponent                  - Looking for
/usr/local/apache-servicemix-3.3/data/smx/service-assemblies/lionshare-jabber-bot-sa/version_2/sus/servicemix-xmpp/lionshare-jabber-bot-su/xbean.xml:
true
ERROR - XMPPComponent                  -
javax.jbi.management.DeploymentException: <component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
        <component-name>servicemix-xmpp</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>FAILED</task-result>
                        <message-type>ERROR</message-type>
                       
<task-status-msg><msg-loc-info><loc-token/><loc-message>No endpoint
found</loc-message></msg-loc-info></task-status-msg>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
ERROR - AutoDeploymentService          - Failed to update Service Assembly:
lionshare-jabber-bot-sa
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
        <component-name>servicemix-xmpp</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>FAILED</task-result>
                        <message-type>ERROR</message-type>
                        <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>No endpoint found</loc-message>
</msg-loc-info>
</task-status-msg>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
DEBUG - SedaFlow                       - Called Flow resume
DEBUG - JMSFlow                        - Called Flow resume
DEBUG - JCAFlow                        - Called Flow resume
WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
install of
/usr/local/apache-servicemix-3.3/hotdeploy/lionshare-jabber-bot-sa-1.0-SNAPSHOT.jar
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
lionshare-jabber-bot-sa
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:368)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
        <component-name>servicemix-xmpp</component-name>
        <component-task-result-details>
                <task-result-details>
                        <task-id>deploy</task-id>
                        <task-result>FAILED</task-result>
                        <message-type>ERROR</message-type>
                        <task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>No endpoint found</loc-message>
</msg-loc-info>
</task-status-msg>
                </task-result-details>
        </component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)
        ... 6 more

Gert Vanthienen wrote:
> 
> John,
> 
> This component probably hasn't been used very much up to now and I don't 
> think we have a working example at hand.  What problems are you running 
> into? 
> Could you try turning on DEBUG logging and sending that information along?
> 
> Let's try to work through this together so we do have a good working 
> example for the next user that comes along.  Btw, if you fancy taking a 
> look at the code for this component, it's at 
> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
> 
> Regards,
> 
> Gert
> 
> jwy923 wrote:
>> Would someone share a working example of XMPPMarshaler and its
>> configuration
>> with me?
>>
>> I have been struggling with building an XMPP service unit to communicate
>> with a Jabber client (Instant Messenger) via a Jabber server.
>>
>> My goal is that the XMPP service unit reply back (or echo) to the Jabber
>> client after receiving a message from the Jabber client (Instant
>> Messenger),
>> of course, via the Jabber server.
>>
>> Unfortunately, I have made any progress for one month.
>>
>> Please help me.
>>
>> John
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 
Quoted from: 
http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21432170.html


Gert Vanthienen wrote:
> 
> John,
> 
> This component probably hasn't been used very much up to now and I don't 
> think we have a working example at hand.  What problems are you running 
> into? 
> Could you try turning on DEBUG logging and sending that information along?
> 
> Let's try to work through this together so we do have a good working 
> example for the next user that comes along.  Btw, if you fancy taking a 
> look at the code for this component, it's at 
> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/
> 
> Regards,
> 
> Gert
> 
> jwy923 wrote:
>> Would someone share a working example of XMPPMarshaler and its
>> configuration
>> with me?
>>
>> I have been struggling with building an XMPP service unit to communicate
>> with a Jabber client (Instant Messenger) via a Jabber server.
>>
>> My goal is that the XMPP service unit reply back (or echo) to the Jabber
>> client after receiving a message from the Jabber client (Instant
>> Messenger),
>> of course, via the Jabber server.
>>
>> Unfortunately, I have made any progress for one month.
>>
>> Please help me.
>>
>> John
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: http://www.nabble.com/Working-XMPPMarshaler-and-Configuration-Examples-tp21418143p21463162.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Working XMPPMarshaler and Configuration Examples

Posted by Gert Vanthienen <ge...@skynet.be>.
John,

This component probably hasn't been used very much up to now and I don't 
think we have a working example at hand.  What problems are you running 
into? 
Could you try turning on DEBUG logging and sending that information along?

Let's try to work through this together so we do have a good working 
example for the next user that comes along.  Btw, if you fancy taking a 
look at the code for this component, it's at 
http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-xmpp/trunk/

Regards,

Gert

jwy923 wrote:
> Would someone share a working example of XMPPMarshaler and its configuration
> with me?
>
> I have been struggling with building an XMPP service unit to communicate
> with a Jabber client (Instant Messenger) via a Jabber server.
>
> My goal is that the XMPP service unit reply back (or echo) to the Jabber
> client after receiving a message from the Jabber client (Instant Messenger),
> of course, via the Jabber server.
>
> Unfortunately, I have made any progress for one month.
>
> Please help me.
>
> John
>