You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jeff Sexton <js...@gmail.com> on 2008/06/03 00:44:23 UTC

Re: XMPP

I worked on something else for a day, but I'm back at this now.  I seem to
be able to alter source code and build a new XMPP zip file.  I set up a
separate computer to drop the resulting zip file into hotdeployables on, all
built with the new smack dependancy.  Here's a couple problems...

When I rebuild with the command "mvn -Dmaven.test.skip=true -Pnochecks clean
install" I get a lot of output ending with a class-not-found
com/sun/codemodel/JCodeModel
If I rebuild with the two step process, it seems to succeed fine, so I did
that.  It takes longer, but that's not saying much.

When I put my new zip file in hotdeployables and start servicemix, it starts
up fine.  When I then deploy an SA that uses XMPP, I get a class -not-found
on one of the new classes in the new smack.jar file.  Obviously the correct
version of the smack jars are not available to servicemix for some reason.

Ideas?  Thanks

On Thu, May 29, 2008 at 10:55 AM, Chris Custine <cc...@apache.org> wrote:

> Awesome!  Let us know of your progress.  After looking at the source for
> the
> XMPP stuff myself, I agree that it is slightly dated and needs a bit of
> maintenance to bring it inline with best practices and updates in the smack
> API.  I just want to make sure that there are no compatibility problems
> with
> the MUC classes replacing the GroupChat stuff but I guess we can make this
> new class optional with the GroupChat as a fallback so things should be
> fine.
>
> Chris
>
> On Thu, May 29, 2008 at 10:49 AM, Jeff Sexton <js...@gmail.com> wrote:
>
> > You know what, sorry for wasting your time.  These errors are different.
> > They look like the expected issues from exactly what I was after doing -
> > swapping the jar files to the newer versions.  I think I'm on track for
> the
> > moment, thanks!
> >
> > On Thu, May 29, 2008 at 9:36 AM, Jeff Sexton <js...@gmail.com> wrote:
> >
> > > On Thu, May 29, 2008 at 9:21 AM, Chris Custine <cc...@apache.org>
> > > wrote:
> > >
> > >> Earlier you said that the org.jivesoftware package was not found,
> which
> > >> means that maven is resolving the jar files (or else it would have
> > failed
> > >> earlier) and is trying t compile against them.  I am not sure why it
> > would
> > >> not see the jar files though.  Have you checked the jars in the maven
> > repo
> > >> to make sure they have the correct packages?  BTW, I am wondering if
> you
> > >> installed the smackx jar file twice, once as smackx and once as smack?
> > >>
> > >
> > > You caught it, I did exactly that!
> > > So I re-did the jar install and tried it again.  The output is simular.
> >  Is
> > > something else required to replace an incorrectly installed jar?
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Building ServiceMix :: XMPP
> > > [INFO]    task-segment: [clean, install]
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] [clean:clean]
> > > [INFO] Deleting directory
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target
> > > [INFO] [xbean:mapping {execution: default}]
> > > [INFO] Generating META-INF properties file:
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/services/org/apache/xbean/spring/http/
> > > servicemix.apache.org/xmpp/1.0 for namespace:
> > > http://servicemix.apache.org/xmpp/1.0
> > > [INFO] Generating Spring 2.0 handler mapping:
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.handlers
> > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > [INFO] Generating Spring 2.0 schema mapping:
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.schemas
> > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > [INFO] Generating HTML documentation file:
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/servicemix-xmpp.xsd.html
> > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > Warning, could not load class: org.jivesoftware.smack.GroupChat:
> > > java.lang.ClassNotFoundException: org.jivesoftware.smack.GroupChat
> > > Warning, could not load class:
> org.apache.servicemix.xmpp.XMPPComponent:
> > > java.lang.ClassNotFoundException:
> > org.apache.servicemix.xmpp.XMPPComponent
> > > Warning, could not load class:
> org.apache.servicemix.xmpp.XMPPMarshaler:
> > > java.lang.ClassNotFoundException:
> > org.apache.servicemix.xmpp.XMPPMarshaler
> > > Warning, could not load class:
> org.apache.servicemix.xmpp.XMPPComponent:
> > > java.lang.ClassNotFoundException:
> > org.apache.servicemix.xmpp.XMPPComponent
> > > Warning, could not load class:
> org.apache.servicemix.xmpp.XMPPMarshaler:
> > > java.lang.ClassNotFoundException:
> > org.apache.servicemix.xmpp.XMPPMarshaler
> > >
> > >
> >
>
>
>
> --
> Chris Custine
> My Blog :: http://blog.organicelement.com
> Apache ServiceMix :: http://servicemix.apache.org
> Apache Directory Server :: http://directory.apache.org
>

Re: XMPP

Posted by aznmedia <di...@gmail.com>.
I've writed smack chat application on swing.
When I shutdown servicemix my chat application works properly.

When I start servicemix my chat application cannot send receive messages.

Do I have to provide sample code and servicemix xmpp unit that demonstrates
this issue?

Here's the servicemix console:
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-droo
ls
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-eip to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-eip
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-file to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-file

INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-ftp to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-ftp
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-http to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-http

INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-jms to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-jms
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-jsr181 to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-jsr1
81
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-lwcontainer to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-lwco
ntainer
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-osworkflow to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-oswo
rkflow
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-quartz to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-quar
tz
1 name = quartz.properties
INFO  - SimpleThreadPool               - Job execution threads will use
class lo
ader of thread: main
INFO  - QuartzScheduler                - Quartz Scheduler v.1.5.2 created.
INFO  - RAMJobStore                    - RAMJobStore initialized.
INFO  - StdSchedulerFactory            - Quartz scheduler
'DefaultQuartzSchedule
r' initialized from default resource file in Quartz package:
'quartz.properties'

INFO  - StdSchedulerFactory            - Quartz scheduler version: 1.5.2
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_
CLUSTERED started.
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-saxon to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-saxo
n
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-script to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-scri
pt
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-truezip to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-true
zip
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-wsn2005 to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-wsn2
005
INFO  - ComponentMBeanImpl             - Setting running state for
Component: se
rvicemix-xmpp to Started
INFO  - ComponentMBeanImpl             - Initializing component:
servicemix-xmpp

INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
wsdl-first-s
a
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
wsdl-first-j
sr181-su
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
wsdl-first-h
ttp-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
wsdl-first-jsr18
1-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
wsdl-first-http-
su
INFO  - jetty                          - jetty-6.1.6
INFO  - jetty                          - Started
SelectChannelConnector@0.0.0.0:
8192
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: xmpp-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
file-consume
r-su
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
xmpp-consume
r-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
file-consumer-su

INFO  - ServiceUnitLifeCycle           - Starting service unit:
xmpp-consumer-su

INFO  - XMPPComponent                  - Logging in to Jabber as user: admin
on
connection: org.jivesoftware.smack.XMPPConnection@63cd4d
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
bridge-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
bridge-http-
su
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
bridge-eip-s
u
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
bridge-xslt-
su
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
bridge-jms-s
u
INFO  - ServiceUnitLifeCycle           - Starting service unit:
bridge-http-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
bridge-eip-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
bridge-xslt-su
INFO  - ServiceUnitLifeCycle           - Starting service unit:
bridge-jms-su
INFO  - JBIContainer                   - ServiceMix JBI Container
(ServiceMix) s
tarted
INFO  - JDBCAdapterFactory             - Database driver recognized:
[apache_der
by_embedded_jdbc_driver]
INFO  - LogTask                        - Logging system reconfigured using
file:
 file:/C:/Program%20Files/apache-servicemix-3.2.2/conf/log4j.xml
ERROR - XMPPComponent                  - Error processing exchange InOnly[
  id: ID:150.2.216.89-11d33184a47-8:0
  status: Done
  role: provider
  service: {urn:servicemix:tutorial}file
  endpoint: xmpp
  in: Unable to display: java.io.IOException: Stream closed
]
java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(Mes
sageExchangeImpl.java:251)
        at
org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndp
oint.java:77)
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(Provi
derEndpoint.java:101)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
feCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
BaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:619)
ERROR - XMPPComponent                  - Error setting exchange status to
ERROR
java.lang.IllegalStateException: component is not owner when trying to set
error
: java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setError(Mess
ageExchangeImpl.java:264)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:57)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(Mes
sageExchangeImpl.java:251)
        at
org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndp
oint.java:77)
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(Provi
derEndpoint.java:101)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
feCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
BaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:46)
        ... 7 more
ERROR - XMPPComponent                  - Error processing exchange InOnly[
  id: ID:150.2.216.89-11d33184a47-8:1
  status: Done
  role: provider
  service: {urn:servicemix:tutorial}file
  endpoint: xmpp
  in: Unable to display: java.io.IOException: Stream closed
]
java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(Mes
sageExchangeImpl.java:251)
        at
org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndp
oint.java:77)
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(Provi
derEndpoint.java:101)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
feCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
BaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:619)
ERROR - XMPPComponent                  - Error setting exchange status to
ERROR
java.lang.IllegalStateException: component is not owner when trying to set
error
: java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setError(Mess
ageExchangeImpl.java:264)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:57)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
d(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
w.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
ava:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
a:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: component is not owner
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(Mes
sageExchangeImpl.java:251)
        at
org.apache.servicemix.common.endpoints.SimpleEndpoint.done(SimpleEndp
oint.java:77)
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(Provi
derEndpoint.java:101)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
feCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
BaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
Cycle.java:46)
        ... 7 more
INFO  - JBIContainer                   - Shutting down ServiceMix JBI
Container
(ServiceMix) stopped
INFO  - JBIContainer                   - Deactivating component
#SubscriptionMan
ager#
INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly: xmpp-sa
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
file-consumer-su

INFO  - ServiceUnitLifeCycle           - Stopping service unit:
xmpp-consumer-su

INFO  - ServiceAssemblyLifeCycle       - Shutting down service assembly:
xmpp-sa

INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
file-consum
er-su
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
xmpp-consum
er-su
INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly:
bridge-sa
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
bridge-http-su
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
bridge-eip-su
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
bridge-xslt-su
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
bridge-jms-su
INFO  - ServiceAssemblyLifeCycle       - Shutting down service assembly:
bridge-
sa
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
bridge-http
-su
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
bridge-eip-
su
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
bridge-xslt
-su
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
bridge-jms-
su
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_
CLUSTERED paused.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_
CLUSTERED shutting down.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_
CLUSTERED paused.
INFO  - QuartzScheduler                - Scheduler
DefaultQuartzScheduler_$_NON_
CLUSTERED shutdown complete.
INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly:
wsdl-first-s
a
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
wsdl-first-jsr18
1-su
INFO  - ServiceUnitLifeCycle           - Stopping service unit:
wsdl-first-http-
su
INFO  - ServiceAssemblyLifeCycle       - Shutting down service assembly:
wsdl-fi
rst-sa
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
wsdl-first-
jsr181-su
INFO  - ServiceUnitLifeCycle           - Shutting down service unit:
wsdl-first-
http-su
INFO  - JBIContainer                   - ServiceMix JBI Container
(ServiceMix) s
topped

file-consumer-su's xbean.xml
<beans xmlns:file="http://servicemix.apache.org/file/1.0"
       xmlns:tut="urn:servicemix:tutorial">
  <file:sender service="tut:file" endpoint="sender"
             directory="file:///C:/opensrc/test/myOutbox"
             autoCreateDirectory="true">
             <property name="marshaler">
                   <bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
             </property>
  </file:sender>
  <file:poller service="tut:file" endpoint="poller"
             file="file:///C:/opensrc/test/myInbox"
             targetService="tut:file"
             targetEndpoint="xmpp"
             period="60000"
             recursive="true"
             autoCreateDirectory="true"/>
</beans>

xmpp-consumer-su's xbean.xml
<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
       xmlns:tut="urn:servicemix:tutorial">
  <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
    uri="xmpp://admin@eon-developer/Smack" password="secret"
room="discuss@eon-developer"/>
</beans>


Gert Vanthienen wrote:
> 
> L.S.,
> 
> Yeah, you need to add the SU to the SA by adding dependencies to the 
> SA's pom.xml.  Have a look at the 'Adding the SU to the SA' section on 
> the 2.4 tutorial page I mentioned earlier.
> 
> Gert
> 
> aznmedia wrote:
>> It seems SA project which I've created doesn't contain the file SU and
>> xmpp
>> SU.
>>
>> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>>
>> META-INF [folder]
>>     maven [folder]
>>         org.apache.servicemix.examples [folder]
>>             xmpp-sa [folder]
>>                 pom.xml [file]
>>                 pom.properties [file]
>>         dependencies.properties  [file]
>>         
>>     MANIFEST.MF [file]
>>     jbi.xml [file]
>>
>> pom.xml file content:
>>
>> 	<?xml version="1.0" encoding="UTF-8"?><project>
>> 	  <parent>
>> 	    <artifactId>my-xmpp</artifactId>
>> 	    <groupId>org.apache.servicemix.examples</groupId>
>> 	    <version>1.0-SNAPSHOT</version>
>> 	  </parent>
>> 	  <modelVersion>4.0.0</modelVersion>
>> 	  <groupId>org.apache.servicemix.examples</groupId>
>> 	  <artifactId>xmpp-sa</artifactId>
>> 	  <packaging>jbi-service-assembly</packaging>
>> 	  <name>XMPP :: XMPP SA</name>
>> 	  <version>1.0-SNAPSHOT</version>
>> 	  <url>http://www.myorganization.org</url>
>> 	  <build>
>> 	    <plugins>
>> 	      <plugin>
>> 	        <groupId>org.apache.servicemix.tooling</groupId>
>> 	        <artifactId>jbi-maven-plugin</artifactId>
>> 	        <version>${servicemix-version}</version>
>> 	        <extensions>true</extensions>
>> 	        <configuration>
>> 	          <type>service-assembly</type>
>> 	        </configuration>
>> 	      </plugin>
>> 	    </plugins>
>> 	  </build>
>> 	  <repositories>
>> 	    <repository>
>> 	      <releases />
>> 	      <snapshots>
>> 	        <enabled>false</enabled>
>> 	      </snapshots>
>> 	      <id>apache</id>
>> 	      <name>Apache Repository</name>
>> 	     
>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>> 	    </repository>
>> 	    <repository>
>> 	      <releases>
>> 	        <enabled>false</enabled>
>> 	      </releases>
>> 	      <snapshots />
>> 	      <id>apache.snapshots</id>
>> 	      <name>Apache Snapshots Repository</name>
>> 	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>> 	    </repository>
>> 	  </repositories>
>> 	  <pluginRepositories>
>> 	    <pluginRepository>
>> 	      <releases />
>> 	      <snapshots>
>> 	        <enabled>false</enabled>
>> 	      </snapshots>
>> 	      <id>apache</id>
>> 	      <name>Apache Repository</name>
>> 	     
>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>> 	    </pluginRepository>
>> 	    <pluginRepository>
>> 	      <releases>
>> 	        <enabled>false</enabled>
>> 	      </releases>
>> 	      <snapshots />
>> 	      <id>apache.snapshots</id>
>> 	      <name>Apache Snapshots Repository</name>
>> 	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>> 	    </pluginRepository>
>> 	  </pluginRepositories>
>> 	  <dependencies>
>> 	    <dependency>
>> 	      <groupId>junit</groupId>
>> 	      <artifactId>junit</artifactId>
>> 	      <version>3.8.1</version>
>> 	      <scope>test</scope>
>> 	    </dependency>
>> 	  </dependencies>
>> 	  <properties>
>> 	    <servicemix-version>3.2.2</servicemix-version>
>> 	  </properties>
>> 	</project>
>>
>> pom.properties file content:
>>
>> 	#Generated by Maven
>> 	#Mon Oct 20 15:24:07 GMT+08:00 2008
>> 	version=1.0-SNAPSHOT
>> 	groupId=org.apache.servicemix.examples
>> 	artifactId=xmpp-sa
>>
>> dependencies.properties file content:
>>
>> 	# Project dependencies generated by the Apache ServiceMix Maven Plugin
>> 	# Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>>
>> 	groupId = org.apache.servicemix.examples
>> 	artifactId = xmpp-sa
>> 	version = 1.0-SNAPSHOT
>> 	org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>>
>> 	# dependencies
>>
>> 	junit/junit/version = 3.8.1
>> 	junit/junit/type = jar
>> 	junit/junit/scope = test
>>
>> MANIFEST.MF file content:
>>
>> 	Manifest-Version: 1.0
>> 	Archiver-Version: Plexus Archiver
>> 	Created-By: Apache Maven
>> 	Built-By: MethoD
>> 	Build-Jdk: 1.6.0_10-rc
>>
>> jbi.xml file content:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>   <service-assembly>
>>     <identification>
>>       <name>xmpp-sa</name>
>>       <description>XMPP :: XMPP SA</description>
>>     </identification>
>>   </service-assembly>
>> </jbi>
>>
>>
>> Gert Vanthienen wrote:
>>   
>>> L.S.,
>>>
>>> You seem to be going the right way, just until the very end.  After you 
>>> have created your Maven SA project, you should add the xmpp SU and file 
>>> SU there as a dependency.  This way, both SU will get packaged inside 
>>> the same SA.  You only have to deploy the SA.  Have a quick look at 
>>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
>>> and 
>>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> aznmedia wrote:
>>>     
>>>> Hello guys.
>>>>
>>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>>
>>>> My swing test application successfully connected to Openfire server by
>>>> using
>>>> smack API.
>>>> But how can I integrate with servicemix xmpp?
>>>>
>>>> I've created:
>>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>>
>>>> 2. create pom.xml file with following content:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/maven-v4_0_0.xsd"> 
>>>>  <modelVersion>4.0.0</modelVersion>
>>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>>  <artifactId>my-xmpp</artifactId>
>>>>  <version>1.0-SNAPSHOT</version>
>>>>  <packaging>pom</packaging>
>>>>  <name>XMPP demo</name>
>>>>  <url>http://www.servicemix.org</url>
>>>> </project>
>>>>
>>>> 3. mvn clean install
>>>>
>>>> 4. mvn archetype:create
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>>>
>>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>>> following content:
>>>>
>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>        xmlns:tut="urn:servicemix:tutorial">
>>>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>>     uri="xmpp://admin@eon-developer/Smack" password="password"
>>>> room="discuss@eon-developer"/>
>>>> </beans>
>>>>
>>>> 6. mvn archetype:create
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>>>
>>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>>> following content:
>>>>
>>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>>        xmlns:tut="urn:servicemix:tutorial">
>>>>   <file:sender service="tut:file" endpoint="sender"
>>>>              directory="file:///C:/test/myOutbox"
>>>>              autoCreateDirectory="true">
>>>>              <property name="marshaler">
>>>>                    <bean
>>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>>              </property>
>>>>   </file:sender>
>>>>   <file:poller service="tut:file" endpoint="poller"
>>>>              file="file:///C:/test/myInbox"
>>>>              targetService="tut:file"
>>>>              targetEndpoint="xmpp"
>>>>              period="60000"
>>>>              recursive="true"
>>>>              autoCreateDirectory="true"/>
>>>> </beans>
>>>>
>>>> 8. mvn archetype:create
>>>> -DarchetypeArtifactId=servicemix-service-assembly
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>>>
>>>> 9. mvn install
>>>>
>>>> 10. copied following files to servicemix hotdeploy directory.
>>>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>>> Servicemix said successful.
>>>>
>>>> But I don't see any integration with openfire and servicemix?
>>>> Maybe I'm doing wrong with misunderstood.
>>>>
>>>> Help me to integrate please.
>>>>   
>>>>       
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>>
>>>     
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20185127.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by aznmedia <di...@gmail.com>.
I haven't get any response since 2008.10.27.
I'll appreciate any help.

Am I doing wrong?


aznmedia wrote:
> 
> When I start servicemix my chat application works perfect but I cannot
> send message from servicemix to smack.
> 
> Same component not owner errror occured to me.
> 
> I've tried to send message from servicemix by copying following xml to
> C:\opensrc\test\myOutbox directory which I was defined in endpoint.
> 
> <message to='user@eon-developer'
>                      from='admin@eon-developer/Smack'
>                      type='chat'
>                      xml:lang='en'>  
>     <body>Hello from servicemix!</body>
> </message>
> 
> How do I send message from servicemix to smack?
> 
> 
> aznmedia wrote:
>> 
>> 
>> It's working perfectly on Servicemix 3.3.
>> Maybe it was a bug of 3.2.2.
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20297806.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by aznmedia <di...@gmail.com>.
When I start servicemix my chat application works perfect but I cannot send
message from servicemix to smack.

Same component not owner errror occured to me.

I've tried to send message from servicemix by copying following xml to
C:\opensrc\test\myOutbox directory which I was defined in endpoint.

<message to='user@eon-developer'
                     from='admin@eon-developer/Smack'
                     type='chat'
                     xml:lang='en'>  
    <body>Hello from servicemix!</body>
</message>

How do I send message from servicemix to smack?


aznmedia wrote:
> 
> It's working perfectly on Servicemix 3.3.
> Maybe it was a bug of 3.2.2.
> 
> 
> aznmedia wrote:
>> 
>> Oh sure. I've added SU dependancy to SA when you said several days ago.
>> Have you found anything wrong?
>> 
>> Also I'll try to integrate RabbitMQ with servicemix when I successfully
>> integrate smack and servicemix.
>> 
>> On Mon, Oct 27, 2008 at 5:37 AM, Gert Vanthienen
>> <ge...@skynet.be>wrote:
>> 
>>> L.S.,
>>>
>>> Have you tried this suggestion?  You really have to add a dependency for
>>> the SU you want to add to your SA.  As long as the SU archives aren't in
>>> the
>>> SA ZIP file, this won't work.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>>
>>> Gert Vanthienen wrote:
>>>
>>>> L.S.,
>>>>
>>>> Yeah, you need to add the SU to the SA by adding dependencies to the
>>>> SA's
>>>> pom.xml.  Have a look at the 'Adding the SU to the SA' section on the
>>>> 2.4
>>>> tutorial page I mentioned earlier.
>>>>
>>>> Gert
>>>>
>>>> aznmedia wrote:
>>>>
>>>>> It seems SA project which I've created doesn't contain the file SU and
>>>>> xmpp
>>>>> SU.
>>>>>
>>>>> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>>>>>
>>>>> META-INF [folder]
>>>>>    maven [folder]
>>>>>        org.apache.servicemix.examples [folder]
>>>>>            xmpp-sa [folder]
>>>>>                pom.xml [file]
>>>>>                pom.properties [file]
>>>>>        dependencies.properties  [file]
>>>>>            MANIFEST.MF [file]
>>>>>    jbi.xml [file]
>>>>>
>>>>> pom.xml file content:
>>>>>
>>>>>    <?xml version="1.0" encoding="UTF-8"?><project>
>>>>>      <parent>
>>>>>        <artifactId>my-xmpp</artifactId>
>>>>>        <groupId>org.apache.servicemix.examples</groupId>
>>>>>        <version>1.0-SNAPSHOT</version>
>>>>>      </parent>
>>>>>      <modelVersion>4.0.0</modelVersion>
>>>>>      <groupId>org.apache.servicemix.examples</groupId>
>>>>>      <artifactId>xmpp-sa</artifactId>
>>>>>      <packaging>jbi-service-assembly</packaging>
>>>>>      <name>XMPP :: XMPP SA</name>
>>>>>      <version>1.0-SNAPSHOT</version>
>>>>>      <url>http://www.myorganization.org</url>
>>>>>      <build>
>>>>>        <plugins>
>>>>>          <plugin>
>>>>>            <groupId>org.apache.servicemix.tooling</groupId>
>>>>>            <artifactId>jbi-maven-plugin</artifactId>
>>>>>            <version>${servicemix-version}</version>
>>>>>            <extensions>true</extensions>
>>>>>            <configuration>
>>>>>              <type>service-assembly</type>
>>>>>            </configuration>
>>>>>          </plugin>
>>>>>        </plugins>
>>>>>      </build>
>>>>>      <repositories>
>>>>>        <repository>
>>>>>          <releases />
>>>>>          <snapshots>
>>>>>            <enabled>false</enabled>
>>>>>          </snapshots>
>>>>>          <id>apache</id>
>>>>>          <name>Apache Repository</name>
>>>>>         
>>>>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>>>> </url>
>>>>>        </repository>
>>>>>        <repository>
>>>>>          <releases>
>>>>>            <enabled>false</enabled>
>>>>>          </releases>
>>>>>          <snapshots />
>>>>>          <id>apache.snapshots</id>
>>>>>          <name>Apache Snapshots Repository</name>
>>>>>         
>>>>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>>>        </repository>
>>>>>      </repositories>
>>>>>      <pluginRepositories>
>>>>>        <pluginRepository>
>>>>>          <releases />
>>>>>          <snapshots>
>>>>>            <enabled>false</enabled>
>>>>>          </snapshots>
>>>>>          <id>apache</id>
>>>>>          <name>Apache Repository</name>
>>>>>         
>>>>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>>>> </url>
>>>>>        </pluginRepository>
>>>>>        <pluginRepository>
>>>>>          <releases>
>>>>>            <enabled>false</enabled>
>>>>>          </releases>
>>>>>          <snapshots />
>>>>>          <id>apache.snapshots</id>
>>>>>          <name>Apache Snapshots Repository</name>
>>>>>         
>>>>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>>>        </pluginRepository>
>>>>>      </pluginRepositories>
>>>>>      <dependencies>
>>>>>        <dependency>
>>>>>          <groupId>junit</groupId>
>>>>>          <artifactId>junit</artifactId>
>>>>>          <version>3.8.1</version>
>>>>>          <scope>test</scope>
>>>>>        </dependency>
>>>>>      </dependencies>
>>>>>      <properties>
>>>>>        <servicemix-version>3.2.2</servicemix-version>
>>>>>      </properties>
>>>>>    </project>
>>>>>
>>>>> pom.properties file content:
>>>>>
>>>>>    #Generated by Maven
>>>>>    #Mon Oct 20 15:24:07 GMT+08:00 2008
>>>>>    version=1.0-SNAPSHOT
>>>>>    groupId=org.apache.servicemix.examples
>>>>>    artifactId=xmpp-sa
>>>>>
>>>>> dependencies.properties file content:
>>>>>
>>>>>    # Project dependencies generated by the Apache ServiceMix Maven
>>>>> Plugin
>>>>>    # Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>>>>>
>>>>>    groupId = org.apache.servicemix.examples
>>>>>    artifactId = xmpp-sa
>>>>>    version = 1.0-SNAPSHOT
>>>>>    org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>>>>>
>>>>>    # dependencies
>>>>>
>>>>>    junit/junit/version = 3.8.1
>>>>>    junit/junit/type = jar
>>>>>    junit/junit/scope = test
>>>>>
>>>>> MANIFEST.MF file content:
>>>>>
>>>>>    Manifest-Version: 1.0
>>>>>    Archiver-Version: Plexus Archiver
>>>>>    Created-By: Apache Maven
>>>>>    Built-By: MethoD
>>>>>    Build-Jdk: 1.6.0_10-rc
>>>>>
>>>>> jbi.xml file content:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>>>>  <service-assembly>
>>>>>    <identification>
>>>>>      <name>xmpp-sa</name>
>>>>>      <description>XMPP :: XMPP SA</description>
>>>>>    </identification>
>>>>>  </service-assembly>
>>>>> </jbi>
>>>>>
>>>>>
>>>>> Gert Vanthienen wrote:
>>>>>
>>>>>
>>>>>> L.S.,
>>>>>>
>>>>>> You seem to be going the right way, just until the very end.  After
>>>>>> you
>>>>>> have created your Maven SA project, you should add the xmpp SU and
>>>>>> file SU
>>>>>> there as a dependency.  This way, both SU will get packaged inside
>>>>>> the same
>>>>>> SA.  You only have to deploy the SA.  Have a quick look at
>>>>>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.htmland
>>>>>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Gert
>>>>>>
>>>>>> aznmedia wrote:
>>>>>>
>>>>>>
>>>>>>> Hello guys.
>>>>>>>
>>>>>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>>>>>
>>>>>>> My swing test application successfully connected to Openfire server
>>>>>>> by
>>>>>>> using
>>>>>>> smack API.
>>>>>>> But how can I integrate with servicemix xmpp?
>>>>>>>
>>>>>>> I've created:
>>>>>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>>>>>
>>>>>>> 2. create pom.xml file with following content:
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>>>>>  <modelVersion>4.0.0</modelVersion>
>>>>>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>>>>>  <artifactId>my-xmpp</artifactId>
>>>>>>>  <version>1.0-SNAPSHOT</version>
>>>>>>>  <packaging>pom</packaging>
>>>>>>>  <name>XMPP demo</name>
>>>>>>>  <url>http://www.servicemix.org</url>
>>>>>>> </project>
>>>>>>>
>>>>>>> 3. mvn clean install
>>>>>>>
>>>>>>> 4. mvn archetype:create
>>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>>>> -DgroupId=org.apache.servicemix.examples
>>>>>>> -DartifactId=xmpp-consumer-su
>>>>>>>
>>>>>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>>>>>> following content:
>>>>>>>
>>>>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>>>  <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>>>>>    uri="xmpp://admin@eon-developer/Smack" password="password"
>>>>>>> room="discuss@eon-developer"/>
>>>>>>> </beans>
>>>>>>>
>>>>>>> 6. mvn archetype:create
>>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>>>> -DgroupId=org.apache.servicemix.examples
>>>>>>> -DartifactId=file-consumer-su
>>>>>>>
>>>>>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>>>>>> following content:
>>>>>>>
>>>>>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>>>  <file:sender service="tut:file" endpoint="sender"
>>>>>>>             directory="file:///C:/test/myOutbox"
>>>>>>>             autoCreateDirectory="true">
>>>>>>>             <property name="marshaler">
>>>>>>>                   <bean
>>>>>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>>>>>             </property>
>>>>>>>  </file:sender>
>>>>>>>  <file:poller service="tut:file" endpoint="poller"
>>>>>>>             file="file:///C:/test/myInbox"
>>>>>>>             targetService="tut:file"
>>>>>>>             targetEndpoint="xmpp"
>>>>>>>             period="60000"
>>>>>>>             recursive="true"
>>>>>>>             autoCreateDirectory="true"/>
>>>>>>> </beans>
>>>>>>>
>>>>>>> 8. mvn archetype:create
>>>>>>> -DarchetypeArtifactId=servicemix-service-assembly
>>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>>>> -DartifactId=xmpp-sa
>>>>>>>
>>>>>>> 9. mvn install
>>>>>>>
>>>>>>> 10. copied following files to servicemix hotdeploy directory.
>>>>>>>    xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>>>>>    xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>>>>>    xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>>>>>> Servicemix said successful.
>>>>>>>
>>>>>>> But I don't see any integration with openfire and servicemix?
>>>>>>> Maybe I'm doing wrong with misunderstood.
>>>>>>>
>>>>>>> Help me to integrate please.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> -----
>>>>>> ---
>>>>>> Gert Vanthienen
>>>>>> http://gertvanthienen.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>> 
>> 
>> -- 
>> Let's care our nature!!!
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20262509.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by aznmedia <di...@gmail.com>.
It's working perfectly on Servicemix 3.3.
Maybe it was a bug of 3.2.2.


aznmedia wrote:
> 
> Oh sure. I've added SU dependancy to SA when you said several days ago.
> Have you found anything wrong?
> 
> Also I'll try to integrate RabbitMQ with servicemix when I successfully
> integrate smack and servicemix.
> 
> On Mon, Oct 27, 2008 at 5:37 AM, Gert Vanthienen
> <ge...@skynet.be>wrote:
> 
>> L.S.,
>>
>> Have you tried this suggestion?  You really have to add a dependency for
>> the SU you want to add to your SA.  As long as the SU archives aren't in
>> the
>> SA ZIP file, this won't work.
>>
>> Regards,
>>
>> Gert
>>
>>
>> Gert Vanthienen wrote:
>>
>>> L.S.,
>>>
>>> Yeah, you need to add the SU to the SA by adding dependencies to the
>>> SA's
>>> pom.xml.  Have a look at the 'Adding the SU to the SA' section on the
>>> 2.4
>>> tutorial page I mentioned earlier.
>>>
>>> Gert
>>>
>>> aznmedia wrote:
>>>
>>>> It seems SA project which I've created doesn't contain the file SU and
>>>> xmpp
>>>> SU.
>>>>
>>>> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>>>>
>>>> META-INF [folder]
>>>>    maven [folder]
>>>>        org.apache.servicemix.examples [folder]
>>>>            xmpp-sa [folder]
>>>>                pom.xml [file]
>>>>                pom.properties [file]
>>>>        dependencies.properties  [file]
>>>>            MANIFEST.MF [file]
>>>>    jbi.xml [file]
>>>>
>>>> pom.xml file content:
>>>>
>>>>    <?xml version="1.0" encoding="UTF-8"?><project>
>>>>      <parent>
>>>>        <artifactId>my-xmpp</artifactId>
>>>>        <groupId>org.apache.servicemix.examples</groupId>
>>>>        <version>1.0-SNAPSHOT</version>
>>>>      </parent>
>>>>      <modelVersion>4.0.0</modelVersion>
>>>>      <groupId>org.apache.servicemix.examples</groupId>
>>>>      <artifactId>xmpp-sa</artifactId>
>>>>      <packaging>jbi-service-assembly</packaging>
>>>>      <name>XMPP :: XMPP SA</name>
>>>>      <version>1.0-SNAPSHOT</version>
>>>>      <url>http://www.myorganization.org</url>
>>>>      <build>
>>>>        <plugins>
>>>>          <plugin>
>>>>            <groupId>org.apache.servicemix.tooling</groupId>
>>>>            <artifactId>jbi-maven-plugin</artifactId>
>>>>            <version>${servicemix-version}</version>
>>>>            <extensions>true</extensions>
>>>>            <configuration>
>>>>              <type>service-assembly</type>
>>>>            </configuration>
>>>>          </plugin>
>>>>        </plugins>
>>>>      </build>
>>>>      <repositories>
>>>>        <repository>
>>>>          <releases />
>>>>          <snapshots>
>>>>            <enabled>false</enabled>
>>>>          </snapshots>
>>>>          <id>apache</id>
>>>>          <name>Apache Repository</name>
>>>>          <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>>> </url>
>>>>        </repository>
>>>>        <repository>
>>>>          <releases>
>>>>            <enabled>false</enabled>
>>>>          </releases>
>>>>          <snapshots />
>>>>          <id>apache.snapshots</id>
>>>>          <name>Apache Snapshots Repository</name>
>>>>         
>>>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>>        </repository>
>>>>      </repositories>
>>>>      <pluginRepositories>
>>>>        <pluginRepository>
>>>>          <releases />
>>>>          <snapshots>
>>>>            <enabled>false</enabled>
>>>>          </snapshots>
>>>>          <id>apache</id>
>>>>          <name>Apache Repository</name>
>>>>          <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>>> </url>
>>>>        </pluginRepository>
>>>>        <pluginRepository>
>>>>          <releases>
>>>>            <enabled>false</enabled>
>>>>          </releases>
>>>>          <snapshots />
>>>>          <id>apache.snapshots</id>
>>>>          <name>Apache Snapshots Repository</name>
>>>>         
>>>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>>        </pluginRepository>
>>>>      </pluginRepositories>
>>>>      <dependencies>
>>>>        <dependency>
>>>>          <groupId>junit</groupId>
>>>>          <artifactId>junit</artifactId>
>>>>          <version>3.8.1</version>
>>>>          <scope>test</scope>
>>>>        </dependency>
>>>>      </dependencies>
>>>>      <properties>
>>>>        <servicemix-version>3.2.2</servicemix-version>
>>>>      </properties>
>>>>    </project>
>>>>
>>>> pom.properties file content:
>>>>
>>>>    #Generated by Maven
>>>>    #Mon Oct 20 15:24:07 GMT+08:00 2008
>>>>    version=1.0-SNAPSHOT
>>>>    groupId=org.apache.servicemix.examples
>>>>    artifactId=xmpp-sa
>>>>
>>>> dependencies.properties file content:
>>>>
>>>>    # Project dependencies generated by the Apache ServiceMix Maven
>>>> Plugin
>>>>    # Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>>>>
>>>>    groupId = org.apache.servicemix.examples
>>>>    artifactId = xmpp-sa
>>>>    version = 1.0-SNAPSHOT
>>>>    org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>>>>
>>>>    # dependencies
>>>>
>>>>    junit/junit/version = 3.8.1
>>>>    junit/junit/type = jar
>>>>    junit/junit/scope = test
>>>>
>>>> MANIFEST.MF file content:
>>>>
>>>>    Manifest-Version: 1.0
>>>>    Archiver-Version: Plexus Archiver
>>>>    Created-By: Apache Maven
>>>>    Built-By: MethoD
>>>>    Build-Jdk: 1.6.0_10-rc
>>>>
>>>> jbi.xml file content:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>>>  <service-assembly>
>>>>    <identification>
>>>>      <name>xmpp-sa</name>
>>>>      <description>XMPP :: XMPP SA</description>
>>>>    </identification>
>>>>  </service-assembly>
>>>> </jbi>
>>>>
>>>>
>>>> Gert Vanthienen wrote:
>>>>
>>>>
>>>>> L.S.,
>>>>>
>>>>> You seem to be going the right way, just until the very end.  After
>>>>> you
>>>>> have created your Maven SA project, you should add the xmpp SU and
>>>>> file SU
>>>>> there as a dependency.  This way, both SU will get packaged inside the
>>>>> same
>>>>> SA.  You only have to deploy the SA.  Have a quick look at
>>>>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.htmland
>>>>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Gert
>>>>>
>>>>> aznmedia wrote:
>>>>>
>>>>>
>>>>>> Hello guys.
>>>>>>
>>>>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>>>>
>>>>>> My swing test application successfully connected to Openfire server
>>>>>> by
>>>>>> using
>>>>>> smack API.
>>>>>> But how can I integrate with servicemix xmpp?
>>>>>>
>>>>>> I've created:
>>>>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>>>>
>>>>>> 2. create pom.xml file with following content:
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>>>>  <modelVersion>4.0.0</modelVersion>
>>>>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>>>>  <artifactId>my-xmpp</artifactId>
>>>>>>  <version>1.0-SNAPSHOT</version>
>>>>>>  <packaging>pom</packaging>
>>>>>>  <name>XMPP demo</name>
>>>>>>  <url>http://www.servicemix.org</url>
>>>>>> </project>
>>>>>>
>>>>>> 3. mvn clean install
>>>>>>
>>>>>> 4. mvn archetype:create
>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>>> -DgroupId=org.apache.servicemix.examples
>>>>>> -DartifactId=xmpp-consumer-su
>>>>>>
>>>>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>>>>> following content:
>>>>>>
>>>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>>  <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>>>>    uri="xmpp://admin@eon-developer/Smack" password="password"
>>>>>> room="discuss@eon-developer"/>
>>>>>> </beans>
>>>>>>
>>>>>> 6. mvn archetype:create
>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>>> -DgroupId=org.apache.servicemix.examples
>>>>>> -DartifactId=file-consumer-su
>>>>>>
>>>>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>>>>> following content:
>>>>>>
>>>>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>>  <file:sender service="tut:file" endpoint="sender"
>>>>>>             directory="file:///C:/test/myOutbox"
>>>>>>             autoCreateDirectory="true">
>>>>>>             <property name="marshaler">
>>>>>>                   <bean
>>>>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>>>>             </property>
>>>>>>  </file:sender>
>>>>>>  <file:poller service="tut:file" endpoint="poller"
>>>>>>             file="file:///C:/test/myInbox"
>>>>>>             targetService="tut:file"
>>>>>>             targetEndpoint="xmpp"
>>>>>>             period="60000"
>>>>>>             recursive="true"
>>>>>>             autoCreateDirectory="true"/>
>>>>>> </beans>
>>>>>>
>>>>>> 8. mvn archetype:create
>>>>>> -DarchetypeArtifactId=servicemix-service-assembly
>>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>>>>>
>>>>>> 9. mvn install
>>>>>>
>>>>>> 10. copied following files to servicemix hotdeploy directory.
>>>>>>    xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>>>>    xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>>>>    xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>>>>> Servicemix said successful.
>>>>>>
>>>>>> But I don't see any integration with openfire and servicemix?
>>>>>> Maybe I'm doing wrong with misunderstood.
>>>>>>
>>>>>> Help me to integrate please.
>>>>>>
>>>>>>
>>>>>
>>>>> -----
>>>>> ---
>>>>> Gert Vanthienen
>>>>> http://gertvanthienen.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
> 
> 
> -- 
> Let's care our nature!!!
> 
> 

-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20262222.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by Batbayar Bazarragchaa <di...@gmail.com>.
Oh sure. I've added SU dependancy to SA when you said several days ago.
Have you found anything wrong?

Also I'll try to integrate RabbitMQ with servicemix when I successfully
integrate smack and servicemix.

On Mon, Oct 27, 2008 at 5:37 AM, Gert Vanthienen
<ge...@skynet.be>wrote:

> L.S.,
>
> Have you tried this suggestion?  You really have to add a dependency for
> the SU you want to add to your SA.  As long as the SU archives aren't in the
> SA ZIP file, this won't work.
>
> Regards,
>
> Gert
>
>
> Gert Vanthienen wrote:
>
>> L.S.,
>>
>> Yeah, you need to add the SU to the SA by adding dependencies to the SA's
>> pom.xml.  Have a look at the 'Adding the SU to the SA' section on the 2.4
>> tutorial page I mentioned earlier.
>>
>> Gert
>>
>> aznmedia wrote:
>>
>>> It seems SA project which I've created doesn't contain the file SU and
>>> xmpp
>>> SU.
>>>
>>> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>>>
>>> META-INF [folder]
>>>    maven [folder]
>>>        org.apache.servicemix.examples [folder]
>>>            xmpp-sa [folder]
>>>                pom.xml [file]
>>>                pom.properties [file]
>>>        dependencies.properties  [file]
>>>            MANIFEST.MF [file]
>>>    jbi.xml [file]
>>>
>>> pom.xml file content:
>>>
>>>    <?xml version="1.0" encoding="UTF-8"?><project>
>>>      <parent>
>>>        <artifactId>my-xmpp</artifactId>
>>>        <groupId>org.apache.servicemix.examples</groupId>
>>>        <version>1.0-SNAPSHOT</version>
>>>      </parent>
>>>      <modelVersion>4.0.0</modelVersion>
>>>      <groupId>org.apache.servicemix.examples</groupId>
>>>      <artifactId>xmpp-sa</artifactId>
>>>      <packaging>jbi-service-assembly</packaging>
>>>      <name>XMPP :: XMPP SA</name>
>>>      <version>1.0-SNAPSHOT</version>
>>>      <url>http://www.myorganization.org</url>
>>>      <build>
>>>        <plugins>
>>>          <plugin>
>>>            <groupId>org.apache.servicemix.tooling</groupId>
>>>            <artifactId>jbi-maven-plugin</artifactId>
>>>            <version>${servicemix-version}</version>
>>>            <extensions>true</extensions>
>>>            <configuration>
>>>              <type>service-assembly</type>
>>>            </configuration>
>>>          </plugin>
>>>        </plugins>
>>>      </build>
>>>      <repositories>
>>>        <repository>
>>>          <releases />
>>>          <snapshots>
>>>            <enabled>false</enabled>
>>>          </snapshots>
>>>          <id>apache</id>
>>>          <name>Apache Repository</name>
>>>          <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>> </url>
>>>        </repository>
>>>        <repository>
>>>          <releases>
>>>            <enabled>false</enabled>
>>>          </releases>
>>>          <snapshots />
>>>          <id>apache.snapshots</id>
>>>          <name>Apache Snapshots Repository</name>
>>>          <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>        </repository>
>>>      </repositories>
>>>      <pluginRepositories>
>>>        <pluginRepository>
>>>          <releases />
>>>          <snapshots>
>>>            <enabled>false</enabled>
>>>          </snapshots>
>>>          <id>apache</id>
>>>          <name>Apache Repository</name>
>>>          <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository
>>> </url>
>>>        </pluginRepository>
>>>        <pluginRepository>
>>>          <releases>
>>>            <enabled>false</enabled>
>>>          </releases>
>>>          <snapshots />
>>>          <id>apache.snapshots</id>
>>>          <name>Apache Snapshots Repository</name>
>>>          <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>>        </pluginRepository>
>>>      </pluginRepositories>
>>>      <dependencies>
>>>        <dependency>
>>>          <groupId>junit</groupId>
>>>          <artifactId>junit</artifactId>
>>>          <version>3.8.1</version>
>>>          <scope>test</scope>
>>>        </dependency>
>>>      </dependencies>
>>>      <properties>
>>>        <servicemix-version>3.2.2</servicemix-version>
>>>      </properties>
>>>    </project>
>>>
>>> pom.properties file content:
>>>
>>>    #Generated by Maven
>>>    #Mon Oct 20 15:24:07 GMT+08:00 2008
>>>    version=1.0-SNAPSHOT
>>>    groupId=org.apache.servicemix.examples
>>>    artifactId=xmpp-sa
>>>
>>> dependencies.properties file content:
>>>
>>>    # Project dependencies generated by the Apache ServiceMix Maven Plugin
>>>    # Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>>>
>>>    groupId = org.apache.servicemix.examples
>>>    artifactId = xmpp-sa
>>>    version = 1.0-SNAPSHOT
>>>    org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>>>
>>>    # dependencies
>>>
>>>    junit/junit/version = 3.8.1
>>>    junit/junit/type = jar
>>>    junit/junit/scope = test
>>>
>>> MANIFEST.MF file content:
>>>
>>>    Manifest-Version: 1.0
>>>    Archiver-Version: Plexus Archiver
>>>    Created-By: Apache Maven
>>>    Built-By: MethoD
>>>    Build-Jdk: 1.6.0_10-rc
>>>
>>> jbi.xml file content:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>>  <service-assembly>
>>>    <identification>
>>>      <name>xmpp-sa</name>
>>>      <description>XMPP :: XMPP SA</description>
>>>    </identification>
>>>  </service-assembly>
>>> </jbi>
>>>
>>>
>>> Gert Vanthienen wrote:
>>>
>>>
>>>> L.S.,
>>>>
>>>> You seem to be going the right way, just until the very end.  After you
>>>> have created your Maven SA project, you should add the xmpp SU and file SU
>>>> there as a dependency.  This way, both SU will get packaged inside the same
>>>> SA.  You only have to deploy the SA.  Have a quick look at
>>>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.htmland
>>>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Gert
>>>>
>>>> aznmedia wrote:
>>>>
>>>>
>>>>> Hello guys.
>>>>>
>>>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>>>
>>>>> My swing test application successfully connected to Openfire server by
>>>>> using
>>>>> smack API.
>>>>> But how can I integrate with servicemix xmpp?
>>>>>
>>>>> I've created:
>>>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>>>
>>>>> 2. create pom.xml file with following content:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>>>  <modelVersion>4.0.0</modelVersion>
>>>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>>>  <artifactId>my-xmpp</artifactId>
>>>>>  <version>1.0-SNAPSHOT</version>
>>>>>  <packaging>pom</packaging>
>>>>>  <name>XMPP demo</name>
>>>>>  <url>http://www.servicemix.org</url>
>>>>> </project>
>>>>>
>>>>> 3. mvn clean install
>>>>>
>>>>> 4. mvn archetype:create
>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>>>>
>>>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>>>> following content:
>>>>>
>>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>  <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>>>    uri="xmpp://admin@eon-developer/Smack" password="password"
>>>>> room="discuss@eon-developer"/>
>>>>> </beans>
>>>>>
>>>>> 6. mvn archetype:create
>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>>>>
>>>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>>>> following content:
>>>>>
>>>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>>>       xmlns:tut="urn:servicemix:tutorial">
>>>>>  <file:sender service="tut:file" endpoint="sender"
>>>>>             directory="file:///C:/test/myOutbox"
>>>>>             autoCreateDirectory="true">
>>>>>             <property name="marshaler">
>>>>>                   <bean
>>>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>>>             </property>
>>>>>  </file:sender>
>>>>>  <file:poller service="tut:file" endpoint="poller"
>>>>>             file="file:///C:/test/myInbox"
>>>>>             targetService="tut:file"
>>>>>             targetEndpoint="xmpp"
>>>>>             period="60000"
>>>>>             recursive="true"
>>>>>             autoCreateDirectory="true"/>
>>>>> </beans>
>>>>>
>>>>> 8. mvn archetype:create
>>>>> -DarchetypeArtifactId=servicemix-service-assembly
>>>>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>>>>
>>>>> 9. mvn install
>>>>>
>>>>> 10. copied following files to servicemix hotdeploy directory.
>>>>>    xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>>>    xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>>>    xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>>>> Servicemix said successful.
>>>>>
>>>>> But I don't see any integration with openfire and servicemix?
>>>>> Maybe I'm doing wrong with misunderstood.
>>>>>
>>>>> Help me to integrate please.
>>>>>
>>>>>
>>>>
>>>> -----
>>>> ---
>>>> Gert Vanthienen
>>>> http://gertvanthienen.blogspot.com
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>


-- 
Let's care our nature!!!

Re: XMPP

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

Have you tried this suggestion?  You really have to add a dependency for 
the SU you want to add to your SA.  As long as the SU archives aren't in 
the SA ZIP file, this won't work.

Regards,

Gert

Gert Vanthienen wrote:
> L.S.,
>
> Yeah, you need to add the SU to the SA by adding dependencies to the 
> SA's pom.xml.  Have a look at the 'Adding the SU to the SA' section on 
> the 2.4 tutorial page I mentioned earlier.
>
> Gert
>
> aznmedia wrote:
>> It seems SA project which I've created doesn't contain the file SU 
>> and xmpp
>> SU.
>>
>> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>>
>> META-INF [folder]
>>     maven [folder]
>>         org.apache.servicemix.examples [folder]
>>             xmpp-sa [folder]
>>                 pom.xml [file]
>>                 pom.properties [file]
>>         dependencies.properties  [file]
>>             MANIFEST.MF [file]
>>     jbi.xml [file]
>>
>> pom.xml file content:
>>
>>     <?xml version="1.0" encoding="UTF-8"?><project>
>>       <parent>
>>         <artifactId>my-xmpp</artifactId>
>>         <groupId>org.apache.servicemix.examples</groupId>
>>         <version>1.0-SNAPSHOT</version>
>>       </parent>
>>       <modelVersion>4.0.0</modelVersion>
>>       <groupId>org.apache.servicemix.examples</groupId>
>>       <artifactId>xmpp-sa</artifactId>
>>       <packaging>jbi-service-assembly</packaging>
>>       <name>XMPP :: XMPP SA</name>
>>       <version>1.0-SNAPSHOT</version>
>>       <url>http://www.myorganization.org</url>
>>       <build>
>>         <plugins>
>>           <plugin>
>>             <groupId>org.apache.servicemix.tooling</groupId>
>>             <artifactId>jbi-maven-plugin</artifactId>
>>             <version>${servicemix-version}</version>
>>             <extensions>true</extensions>
>>             <configuration>
>>               <type>service-assembly</type>
>>             </configuration>
>>           </plugin>
>>         </plugins>
>>       </build>
>>       <repositories>
>>         <repository>
>>           <releases />
>>           <snapshots>
>>             <enabled>false</enabled>
>>           </snapshots>
>>           <id>apache</id>
>>           <name>Apache Repository</name>
>>           
>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>>         </repository>
>>         <repository>
>>           <releases>
>>             <enabled>false</enabled>
>>           </releases>
>>           <snapshots />
>>           <id>apache.snapshots</id>
>>           <name>Apache Snapshots Repository</name>
>>           
>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>         </repository>
>>       </repositories>
>>       <pluginRepositories>
>>         <pluginRepository>
>>           <releases />
>>           <snapshots>
>>             <enabled>false</enabled>
>>           </snapshots>
>>           <id>apache</id>
>>           <name>Apache Repository</name>
>>           
>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
>>         </pluginRepository>
>>         <pluginRepository>
>>           <releases>
>>             <enabled>false</enabled>
>>           </releases>
>>           <snapshots />
>>           <id>apache.snapshots</id>
>>           <name>Apache Snapshots Repository</name>
>>           
>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>         </pluginRepository>
>>       </pluginRepositories>
>>       <dependencies>
>>         <dependency>
>>           <groupId>junit</groupId>
>>           <artifactId>junit</artifactId>
>>           <version>3.8.1</version>
>>           <scope>test</scope>
>>         </dependency>
>>       </dependencies>
>>       <properties>
>>         <servicemix-version>3.2.2</servicemix-version>
>>       </properties>
>>     </project>
>>
>> pom.properties file content:
>>
>>     #Generated by Maven
>>     #Mon Oct 20 15:24:07 GMT+08:00 2008
>>     version=1.0-SNAPSHOT
>>     groupId=org.apache.servicemix.examples
>>     artifactId=xmpp-sa
>>
>> dependencies.properties file content:
>>
>>     # Project dependencies generated by the Apache ServiceMix Maven 
>> Plugin
>>     # Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>>
>>     groupId = org.apache.servicemix.examples
>>     artifactId = xmpp-sa
>>     version = 1.0-SNAPSHOT
>>     org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>>
>>     # dependencies
>>
>>     junit/junit/version = 3.8.1
>>     junit/junit/type = jar
>>     junit/junit/scope = test
>>
>> MANIFEST.MF file content:
>>
>>     Manifest-Version: 1.0
>>     Archiver-Version: Plexus Archiver
>>     Created-By: Apache Maven
>>     Built-By: MethoD
>>     Build-Jdk: 1.6.0_10-rc
>>
>> jbi.xml file content:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>>   <service-assembly>
>>     <identification>
>>       <name>xmpp-sa</name>
>>       <description>XMPP :: XMPP SA</description>
>>     </identification>
>>   </service-assembly>
>> </jbi>
>>
>>
>> Gert Vanthienen wrote:
>>  
>>> L.S.,
>>>
>>> You seem to be going the right way, just until the very end.  After 
>>> you have created your Maven SA project, you should add the xmpp SU 
>>> and file SU there as a dependency.  This way, both SU will get 
>>> packaged inside the same SA.  You only have to deploy the SA.  Have 
>>> a quick look at 
>>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
>>> and 
>>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html. 
>>>
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> aznmedia wrote:
>>>    
>>>> Hello guys.
>>>>
>>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>>
>>>> My swing test application successfully connected to Openfire server by
>>>> using
>>>> smack API.
>>>> But how can I integrate with servicemix xmpp?
>>>>
>>>> I've created:
>>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>>
>>>> 2. create pom.xml file with following content:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>> http://maven.apache.org/maven-v4_0_0.xsd"> 
>>>>  <modelVersion>4.0.0</modelVersion>
>>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>>  <artifactId>my-xmpp</artifactId>
>>>>  <version>1.0-SNAPSHOT</version>
>>>>  <packaging>pom</packaging>
>>>>  <name>XMPP demo</name>
>>>>  <url>http://www.servicemix.org</url>
>>>> </project>
>>>>
>>>> 3. mvn clean install
>>>>
>>>> 4. mvn archetype:create 
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>>>
>>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>>> following content:
>>>>
>>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>>        xmlns:tut="urn:servicemix:tutorial">
>>>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>>     uri="xmpp://admin@eon-developer/Smack" password="password"
>>>> room="discuss@eon-developer"/>
>>>> </beans>
>>>>
>>>> 6. mvn archetype:create 
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling
>>>> -DarchetypeArtifactId=servicemix-service-unit
>>>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>>>
>>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>>> following content:
>>>>
>>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>>        xmlns:tut="urn:servicemix:tutorial">
>>>>   <file:sender service="tut:file" endpoint="sender"
>>>>              directory="file:///C:/test/myOutbox"
>>>>              autoCreateDirectory="true">
>>>>              <property name="marshaler">
>>>>                    <bean
>>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>>              </property>
>>>>   </file:sender>
>>>>   <file:poller service="tut:file" endpoint="poller"
>>>>              file="file:///C:/test/myInbox"
>>>>              targetService="tut:file"
>>>>              targetEndpoint="xmpp"
>>>>              period="60000"
>>>>              recursive="true"
>>>>              autoCreateDirectory="true"/>
>>>> </beans>
>>>>
>>>> 8. mvn archetype:create 
>>>> -DarchetypeArtifactId=servicemix-service-assembly
>>>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>>>
>>>> 9. mvn install
>>>>
>>>> 10. copied following files to servicemix hotdeploy directory.
>>>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>>> Servicemix said successful.
>>>>
>>>> But I don't see any integration with openfire and servicemix?
>>>> Maybe I'm doing wrong with misunderstood.
>>>>
>>>> Help me to integrate please.
>>>>         
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>>
>>>     
>>
>>   
>
>


Re: XMPP

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

Yeah, you need to add the SU to the SA by adding dependencies to the 
SA's pom.xml.  Have a look at the 'Adding the SU to the SA' section on 
the 2.4 tutorial page I mentioned earlier.

Gert

aznmedia wrote:
> It seems SA project which I've created doesn't contain the file SU and xmpp
> SU.
>
> Inside xmpp-sa-1.0-SNAPSHOT.jar:
>
> META-INF [folder]
>     maven [folder]
>         org.apache.servicemix.examples [folder]
>             xmpp-sa [folder]
>                 pom.xml [file]
>                 pom.properties [file]
>         dependencies.properties  [file]
>         
>     MANIFEST.MF [file]
>     jbi.xml [file]
>
> pom.xml file content:
>
> 	<?xml version="1.0" encoding="UTF-8"?><project>
> 	  <parent>
> 	    <artifactId>my-xmpp</artifactId>
> 	    <groupId>org.apache.servicemix.examples</groupId>
> 	    <version>1.0-SNAPSHOT</version>
> 	  </parent>
> 	  <modelVersion>4.0.0</modelVersion>
> 	  <groupId>org.apache.servicemix.examples</groupId>
> 	  <artifactId>xmpp-sa</artifactId>
> 	  <packaging>jbi-service-assembly</packaging>
> 	  <name>XMPP :: XMPP SA</name>
> 	  <version>1.0-SNAPSHOT</version>
> 	  <url>http://www.myorganization.org</url>
> 	  <build>
> 	    <plugins>
> 	      <plugin>
> 	        <groupId>org.apache.servicemix.tooling</groupId>
> 	        <artifactId>jbi-maven-plugin</artifactId>
> 	        <version>${servicemix-version}</version>
> 	        <extensions>true</extensions>
> 	        <configuration>
> 	          <type>service-assembly</type>
> 	        </configuration>
> 	      </plugin>
> 	    </plugins>
> 	  </build>
> 	  <repositories>
> 	    <repository>
> 	      <releases />
> 	      <snapshots>
> 	        <enabled>false</enabled>
> 	      </snapshots>
> 	      <id>apache</id>
> 	      <name>Apache Repository</name>
> 	      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
> 	    </repository>
> 	    <repository>
> 	      <releases>
> 	        <enabled>false</enabled>
> 	      </releases>
> 	      <snapshots />
> 	      <id>apache.snapshots</id>
> 	      <name>Apache Snapshots Repository</name>
> 	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
> 	    </repository>
> 	  </repositories>
> 	  <pluginRepositories>
> 	    <pluginRepository>
> 	      <releases />
> 	      <snapshots>
> 	        <enabled>false</enabled>
> 	      </snapshots>
> 	      <id>apache</id>
> 	      <name>Apache Repository</name>
> 	      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
> 	    </pluginRepository>
> 	    <pluginRepository>
> 	      <releases>
> 	        <enabled>false</enabled>
> 	      </releases>
> 	      <snapshots />
> 	      <id>apache.snapshots</id>
> 	      <name>Apache Snapshots Repository</name>
> 	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
> 	    </pluginRepository>
> 	  </pluginRepositories>
> 	  <dependencies>
> 	    <dependency>
> 	      <groupId>junit</groupId>
> 	      <artifactId>junit</artifactId>
> 	      <version>3.8.1</version>
> 	      <scope>test</scope>
> 	    </dependency>
> 	  </dependencies>
> 	  <properties>
> 	    <servicemix-version>3.2.2</servicemix-version>
> 	  </properties>
> 	</project>
>
> pom.properties file content:
>
> 	#Generated by Maven
> 	#Mon Oct 20 15:24:07 GMT+08:00 2008
> 	version=1.0-SNAPSHOT
> 	groupId=org.apache.servicemix.examples
> 	artifactId=xmpp-sa
>
> dependencies.properties file content:
>
> 	# Project dependencies generated by the Apache ServiceMix Maven Plugin
> 	# Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008
>
> 	groupId = org.apache.servicemix.examples
> 	artifactId = xmpp-sa
> 	version = 1.0-SNAPSHOT
> 	org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT
>
> 	# dependencies
>
> 	junit/junit/version = 3.8.1
> 	junit/junit/type = jar
> 	junit/junit/scope = test
>
> MANIFEST.MF file content:
>
> 	Manifest-Version: 1.0
> 	Archiver-Version: Plexus Archiver
> 	Created-By: Apache Maven
> 	Built-By: MethoD
> 	Build-Jdk: 1.6.0_10-rc
>
> jbi.xml file content:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
>   <service-assembly>
>     <identification>
>       <name>xmpp-sa</name>
>       <description>XMPP :: XMPP SA</description>
>     </identification>
>   </service-assembly>
> </jbi>
>
>
> Gert Vanthienen wrote:
>   
>> L.S.,
>>
>> You seem to be going the right way, just until the very end.  After you 
>> have created your Maven SA project, you should add the xmpp SU and file 
>> SU there as a dependency.  This way, both SU will get packaged inside 
>> the same SA.  You only have to deploy the SA.  Have a quick look at 
>> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
>> and 
>> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
>>
>> Regards,
>>
>> Gert
>>
>> aznmedia wrote:
>>     
>>> Hello guys.
>>>
>>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>>
>>> My swing test application successfully connected to Openfire server by
>>> using
>>> smack API.
>>> But how can I integrate with servicemix xmpp?
>>>
>>> I've created:
>>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>>
>>> 2. create pom.xml file with following content:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd"> 
>>>  <modelVersion>4.0.0</modelVersion>
>>>  <groupId>org.apache.servicemix.examples</groupId>
>>>  <artifactId>my-xmpp</artifactId>
>>>  <version>1.0-SNAPSHOT</version>
>>>  <packaging>pom</packaging>
>>>  <name>XMPP demo</name>
>>>  <url>http://www.servicemix.org</url>
>>> </project>
>>>
>>> 3. mvn clean install
>>>
>>> 4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>>> -DarchetypeArtifactId=servicemix-service-unit
>>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>>
>>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>>> following content:
>>>
>>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>>        xmlns:tut="urn:servicemix:tutorial">
>>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>>     uri="xmpp://admin@eon-developer/Smack" password="password"
>>> room="discuss@eon-developer"/>
>>> </beans>
>>>
>>> 6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>>> -DarchetypeArtifactId=servicemix-service-unit
>>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>>
>>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>>> following content:
>>>
>>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>>        xmlns:tut="urn:servicemix:tutorial">
>>>   <file:sender service="tut:file" endpoint="sender"
>>>              directory="file:///C:/test/myOutbox"
>>>              autoCreateDirectory="true">
>>>              <property name="marshaler">
>>>                    <bean
>>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>>              </property>
>>>   </file:sender>
>>>   <file:poller service="tut:file" endpoint="poller"
>>>              file="file:///C:/test/myInbox"
>>>              targetService="tut:file"
>>>              targetEndpoint="xmpp"
>>>              period="60000"
>>>              recursive="true"
>>>              autoCreateDirectory="true"/>
>>> </beans>
>>>
>>> 8. mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
>>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>>
>>> 9. mvn install
>>>
>>> 10. copied following files to servicemix hotdeploy directory.
>>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>>> Servicemix said successful.
>>>
>>> But I don't see any integration with openfire and servicemix?
>>> Maybe I'm doing wrong with misunderstood.
>>>
>>> Help me to integrate please.
>>>   
>>>       
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://gertvanthienen.blogspot.com
>>
>>     
>
>   


Re: XMPP

Posted by aznmedia <di...@gmail.com>.
It seems SA project which I've created doesn't contain the file SU and xmpp
SU.

Inside xmpp-sa-1.0-SNAPSHOT.jar:

META-INF [folder]
    maven [folder]
        org.apache.servicemix.examples [folder]
            xmpp-sa [folder]
                pom.xml [file]
                pom.properties [file]
        dependencies.properties  [file]
        
    MANIFEST.MF [file]
    jbi.xml [file]

pom.xml file content:

	<?xml version="1.0" encoding="UTF-8"?><project>
	  <parent>
	    <artifactId>my-xmpp</artifactId>
	    <groupId>org.apache.servicemix.examples</groupId>
	    <version>1.0-SNAPSHOT</version>
	  </parent>
	  <modelVersion>4.0.0</modelVersion>
	  <groupId>org.apache.servicemix.examples</groupId>
	  <artifactId>xmpp-sa</artifactId>
	  <packaging>jbi-service-assembly</packaging>
	  <name>XMPP :: XMPP SA</name>
	  <version>1.0-SNAPSHOT</version>
	  <url>http://www.myorganization.org</url>
	  <build>
	    <plugins>
	      <plugin>
	        <groupId>org.apache.servicemix.tooling</groupId>
	        <artifactId>jbi-maven-plugin</artifactId>
	        <version>${servicemix-version}</version>
	        <extensions>true</extensions>
	        <configuration>
	          <type>service-assembly</type>
	        </configuration>
	      </plugin>
	    </plugins>
	  </build>
	  <repositories>
	    <repository>
	      <releases />
	      <snapshots>
	        <enabled>false</enabled>
	      </snapshots>
	      <id>apache</id>
	      <name>Apache Repository</name>
	      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
	    </repository>
	    <repository>
	      <releases>
	        <enabled>false</enabled>
	      </releases>
	      <snapshots />
	      <id>apache.snapshots</id>
	      <name>Apache Snapshots Repository</name>
	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
	    </repository>
	  </repositories>
	  <pluginRepositories>
	    <pluginRepository>
	      <releases />
	      <snapshots>
	        <enabled>false</enabled>
	      </snapshots>
	      <id>apache</id>
	      <name>Apache Repository</name>
	      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
	    </pluginRepository>
	    <pluginRepository>
	      <releases>
	        <enabled>false</enabled>
	      </releases>
	      <snapshots />
	      <id>apache.snapshots</id>
	      <name>Apache Snapshots Repository</name>
	      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
	    </pluginRepository>
	  </pluginRepositories>
	  <dependencies>
	    <dependency>
	      <groupId>junit</groupId>
	      <artifactId>junit</artifactId>
	      <version>3.8.1</version>
	      <scope>test</scope>
	    </dependency>
	  </dependencies>
	  <properties>
	    <servicemix-version>3.2.2</servicemix-version>
	  </properties>
	</project>

pom.properties file content:

	#Generated by Maven
	#Mon Oct 20 15:24:07 GMT+08:00 2008
	version=1.0-SNAPSHOT
	groupId=org.apache.servicemix.examples
	artifactId=xmpp-sa

dependencies.properties file content:

	# Project dependencies generated by the Apache ServiceMix Maven Plugin
	# Generated at: Wed Oct 22 14:33:57 GMT+08:00 2008

	groupId = org.apache.servicemix.examples
	artifactId = xmpp-sa
	version = 1.0-SNAPSHOT
	org.apache.servicemix.examples/xmpp-sa/version = 1.0-SNAPSHOT

	# dependencies

	junit/junit/version = 3.8.1
	junit/junit/type = jar
	junit/junit/scope = test

MANIFEST.MF file content:

	Manifest-Version: 1.0
	Archiver-Version: Plexus Archiver
	Created-By: Apache Maven
	Built-By: MethoD
	Build-Jdk: 1.6.0_10-rc

jbi.xml file content:

<?xml version="1.0" encoding="UTF-8"?>
<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
  <service-assembly>
    <identification>
      <name>xmpp-sa</name>
      <description>XMPP :: XMPP SA</description>
    </identification>
  </service-assembly>
</jbi>


Gert Vanthienen wrote:
> 
> L.S.,
> 
> You seem to be going the right way, just until the very end.  After you 
> have created your Maven SA project, you should add the xmpp SU and file 
> SU there as a dependency.  This way, both SU will get packaged inside 
> the same SA.  You only have to deploy the SA.  Have a quick look at 
> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
> and 
> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.
> 
> Regards,
> 
> Gert
> 
> aznmedia wrote:
>> Hello guys.
>>
>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>
>> My swing test application successfully connected to Openfire server by
>> using
>> smack API.
>> But how can I integrate with servicemix xmpp?
>>
>> I've created:
>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>
>> 2. create pom.xml file with following content:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd"> 
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>org.apache.servicemix.examples</groupId>
>>  <artifactId>my-xmpp</artifactId>
>>  <version>1.0-SNAPSHOT</version>
>>  <packaging>pom</packaging>
>>  <name>XMPP demo</name>
>>  <url>http://www.servicemix.org</url>
>> </project>
>>
>> 3. mvn clean install
>>
>> 4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>
>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>     uri="xmpp://admin@eon-developer/Smack" password="password"
>> room="discuss@eon-developer"/>
>> </beans>
>>
>> 6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>
>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <file:sender service="tut:file" endpoint="sender"
>>              directory="file:///C:/test/myOutbox"
>>              autoCreateDirectory="true">
>>              <property name="marshaler">
>>                    <bean
>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>              </property>
>>   </file:sender>
>>   <file:poller service="tut:file" endpoint="poller"
>>              file="file:///C:/test/myInbox"
>>              targetService="tut:file"
>>              targetEndpoint="xmpp"
>>              period="60000"
>>              recursive="true"
>>              autoCreateDirectory="true"/>
>> </beans>
>>
>> 8. mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>
>> 9. mvn install
>>
>> 10. copied following files to servicemix hotdeploy directory.
>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>> Servicemix said successful.
>>
>> But I don't see any integration with openfire and servicemix?
>> Maybe I'm doing wrong with misunderstood.
>>
>> Help me to integrate please.
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20126600.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by Gert Vanthienen <ge...@skynet.be>.
... I just noticed the second page use the Maven JBI plugin to deploy 
the SA.  Copying it to the hotdeploy folder as you are doing is just as 
easy (and most of the times it's easier to do it that way)

Gert

Gert Vanthienen wrote:
> L.S.,
>
> You seem to be going the right way, just until the very end.  After 
> you have created your Maven SA project, you should add the xmpp SU and 
> file SU there as a dependency.  This way, both SU will get packaged 
> inside the same SA.  You only have to deploy the SA.  Have a quick 
> look at 
> http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
> and 
> http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html. 
>
>
> Regards,
>
> Gert
>
> aznmedia wrote:
>> Hello guys.
>>
>> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>>
>> My swing test application successfully connected to Openfire server 
>> by using
>> smack API.
>> But how can I integrate with servicemix xmpp?
>>
>> I've created:
>> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>>
>> 2. create pom.xml file with following content:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd"> 
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>org.apache.servicemix.examples</groupId>
>>  <artifactId>my-xmpp</artifactId>
>>  <version>1.0-SNAPSHOT</version>
>>  <packaging>pom</packaging>
>>  <name>XMPP demo</name>
>>  <url>http://www.servicemix.org</url>
>> </project>
>>
>> 3. mvn clean install
>>
>> 4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>>
>> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>>     uri="xmpp://admin@eon-developer/Smack" password="password"
>> room="discuss@eon-developer"/>
>> </beans>
>>
>> 6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DarchetypeArtifactId=servicemix-service-unit
>> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>>
>> 7. create xbean.xml file in file-consumer-su\src\main\resources with
>> following content:
>>
>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>>        xmlns:tut="urn:servicemix:tutorial">
>>   <file:sender service="tut:file" endpoint="sender"
>>              directory="file:///C:/test/myOutbox"
>>              autoCreateDirectory="true">
>>              <property name="marshaler">
>>                    <bean
>> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>>              </property>
>>   </file:sender>
>>   <file:poller service="tut:file" endpoint="poller"
>>              file="file:///C:/test/myInbox"
>>              targetService="tut:file"
>>              targetEndpoint="xmpp"
>>              period="60000"
>>              recursive="true"
>>              autoCreateDirectory="true"/>
>> </beans>
>>
>> 8. mvn archetype:create 
>> -DarchetypeArtifactId=servicemix-service-assembly
>> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>>
>> 9. mvn install
>>
>> 10. copied following files to servicemix hotdeploy directory.
>>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
>> Servicemix said successful.
>>
>> But I don't see any integration with openfire and servicemix?
>> Maybe I'm doing wrong with misunderstood.
>>
>> Help me to integrate please.
>>   
>
>


Re: XMPP

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

You seem to be going the right way, just until the very end.  After you 
have created your Maven SA project, you should add the xmpp SU and file 
SU there as a dependency.  This way, both SU will get packaged inside 
the same SA.  You only have to deploy the SA.  Have a quick look at 
http://servicemix.apache.org/24-beginner-creating-the-service-assembly.html 
and 
http://servicemix.apache.org/25-beginner-deploying-the-service-assembly.html.

Regards,

Gert

aznmedia wrote:
> Hello guys.
>
> I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.
>
> My swing test application successfully connected to Openfire server by using
> smack API.
> But how can I integrate with servicemix xmpp?
>
> I've created:
> 1. I've created my-xmpp folder in %servicemix-home%/examples/ folder
>
> 2. create pom.xml file with following content:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd"> 
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>org.apache.servicemix.examples</groupId>
>  <artifactId>my-xmpp</artifactId>
>  <version>1.0-SNAPSHOT</version>
>  <packaging>pom</packaging>
>  <name>XMPP demo</name>
>  <url>http://www.servicemix.org</url>
> </project>
>
> 3. mvn clean install
>
> 4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
> -DarchetypeArtifactId=servicemix-service-unit
> -DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su
>
> 5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
> following content:
>
> <beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
>        xmlns:tut="urn:servicemix:tutorial">
>   <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
>     uri="xmpp://admin@eon-developer/Smack" password="password"
> room="discuss@eon-developer"/>
> </beans>
>
> 6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
> -DarchetypeArtifactId=servicemix-service-unit
> -DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su
>
> 7. create xbean.xml file in file-consumer-su\src\main\resources with
> following content:
>
> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>        xmlns:tut="urn:servicemix:tutorial">
>   <file:sender service="tut:file" endpoint="sender"
>              directory="file:///C:/test/myOutbox"
>              autoCreateDirectory="true">
>              <property name="marshaler">
>                    <bean
> class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
>              </property>
>   </file:sender>
>   <file:poller service="tut:file" endpoint="poller"
>              file="file:///C:/test/myInbox"
>              targetService="tut:file"
>              targetEndpoint="xmpp"
>              period="60000"
>              recursive="true"
>              autoCreateDirectory="true"/>
> </beans>
>
> 8. mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
> -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa
>
> 9. mvn install
>
> 10. copied following files to servicemix hotdeploy directory.
>     xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
>     xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
>     xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
> Servicemix said successful.
>
> But I don't see any integration with openfire and servicemix?
> Maybe I'm doing wrong with misunderstood.
>
> Help me to integrate please.
>   


Re: XMPP

Posted by aznmedia <di...@gmail.com>.
Hello guys.

I'm using Openfire 3.6.0, Smack 3.0.4 and Servicemix 3.2.2.

My swing test application successfully connected to Openfire server by using
smack API.
But how can I integrate with servicemix xmpp?

I've created:
1. I've created my-xmpp folder in %servicemix-home%/examples/ folder

2. create pom.xml file with following content:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"> 
 <modelVersion>4.0.0</modelVersion>
 <groupId>org.apache.servicemix.examples</groupId>
 <artifactId>my-xmpp</artifactId>
 <version>1.0-SNAPSHOT</version>
 <packaging>pom</packaging>
 <name>XMPP demo</name>
 <url>http://www.servicemix.org</url>
</project>

3. mvn clean install

4. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-service-unit
-DgroupId=org.apache.servicemix.examples -DartifactId=xmpp-consumer-su

5. create xbean.xml file in xmpp-consumer-su\src\main\resources with
following content:

<beans xmlns:xmpp="http://servicemix.apache.org/xmpp/1.0"
       xmlns:tut="urn:servicemix:tutorial">
  <xmpp:groupChatEndpoint service="tut:file" endpoint="xmpp"
    uri="xmpp://admin@eon-developer/Smack" password="password"
room="discuss@eon-developer"/>
</beans>

6. mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-service-unit
-DgroupId=org.apache.servicemix.examples -DartifactId=file-consumer-su

7. create xbean.xml file in file-consumer-su\src\main\resources with
following content:

<beans xmlns:file="http://servicemix.apache.org/file/1.0"
       xmlns:tut="urn:servicemix:tutorial">
  <file:sender service="tut:file" endpoint="sender"
             directory="file:///C:/test/myOutbox"
             autoCreateDirectory="true">
             <property name="marshaler">
                   <bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
             </property>
  </file:sender>
  <file:poller service="tut:file" endpoint="poller"
             file="file:///C:/test/myInbox"
             targetService="tut:file"
             targetEndpoint="xmpp"
             period="60000"
             recursive="true"
             autoCreateDirectory="true"/>
</beans>

8. mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
-DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=xmpp-sa

9. mvn install

10. copied following files to servicemix hotdeploy directory.
    xmpp-sa\target\xmpp-sa-1.0-SNAPSHOT.jar
    xmpp-consumer-su\target\xmpp-consumer-su-1.0-SNAPSHOT.jar
    xmpp-consumer-su\target\file-consumer-su-1.0-SNAPSHOT.jar
Servicemix said successful.

But I don't see any integration with openfire and servicemix?
Maybe I'm doing wrong with misunderstood.

Help me to integrate please.
-- 
View this message in context: http://www.nabble.com/XMPP-tp17412424p20126062.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: XMPP

Posted by Jeff Sexton <js...@gmail.com>.
No, I should do that.  I have connected my app to activeMQ before though.  I
also sent XML mssages from my app to a servicemix instance I coded it to
create right in the same JVM.  That worked fine.  Ultimately, getting
messages to and from an Openfire chat room is the goal...  But there's
several ways to do it.  My app can already connect to a chat room all on
it's own, so if servicemix was connected to the same room, that would work
too.

On Tue, Jun 3, 2008 at 11:26 AM, Bruce Snyder <br...@gmail.com>
wrote:

> On Tue, Jun 3, 2008 at 11:55 AM, Jeff Sexton <js...@gmail.com> wrote:
> > I understand completely, really.  I don't mean to be critical.  I think
> this
> > is an amazing project that I really want to work with.  It's more a
> matter
> > of practicality in the relatively short term.  I want to make something
> work
> > end-to-end this week if I can.  I think if I just use something a little
> > less optimal for my needs, like maybe even a trivial HTTP request, which
> I
> > know works fine, I'll be in good shape for the short term.
>
> Have you looked at Camel?
>
> http://activemq.apache.org/camel/
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
>
> Blog: http://bruceblog.org/
>

Re: XMPP

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Jun 3, 2008 at 11:55 AM, Jeff Sexton <js...@gmail.com> wrote:
> I understand completely, really.  I don't mean to be critical.  I think this
> is an amazing project that I really want to work with.  It's more a matter
> of practicality in the relatively short term.  I want to make something work
> end-to-end this week if I can.  I think if I just use something a little
> less optimal for my needs, like maybe even a trivial HTTP request, which I
> know works fine, I'll be in good shape for the short term.

Have you looked at Camel?

http://activemq.apache.org/camel/

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: XMPP

Posted by Jeff Sexton <js...@gmail.com>.
I understand completely, really.  I don't mean to be critical.  I think this
is an amazing project that I really want to work with.  It's more a matter
of practicality in the relatively short term.  I want to make something work
end-to-end this week if I can.  I think if I just use something a little
less optimal for my needs, like maybe even a trivial HTTP request, which I
know works fine, I'll be in good shape for the short term.

On Tue, Jun 3, 2008 at 10:49 AM, Bruce Snyder <br...@gmail.com>
wrote:

> On Tue, Jun 3, 2008 at 11:33 AM, Jeff Sexton <js...@gmail.com> wrote:
> > I downloaded the very latest Servicemix src and wiped out my maven
> > repository to have a fresh start.  The step 2 build fails.  New reason I
> > have not seen before regarding an incompatible jaxb...
>
> Use Java 1.5 instead of Java 1.6. There are issues with Java 1.6 that
> need to be resolved.
>
> > I think I need to give this up, building from source is just not fully
> > cooked (yes, I'm sure it works fine in some specific environments).  I
> can
> > hook up my application with a web service or something instead of XMPP as
> a
> > proof of the ESB concept.  Other parts of Servicemix seem to work fine as
> > far as I can tell.  It's been way too much work just to update the smack
> > jars and change a couple of java files with code I've already written and
> > know works.
>
> Well the first part of the problem really is that we need to get those
> newer jars into a public Maven repo. Beyond that, we can help you get
> past all of the build silliness. It's more an issue of familiarity and
> us not stepping outside of our environments that often.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
>
> Blog: http://bruceblog.org/
>

Re: XMPP

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Jun 3, 2008 at 11:33 AM, Jeff Sexton <js...@gmail.com> wrote:
> I downloaded the very latest Servicemix src and wiped out my maven
> repository to have a fresh start.  The step 2 build fails.  New reason I
> have not seen before regarding an incompatible jaxb...

Use Java 1.5 instead of Java 1.6. There are issues with Java 1.6 that
need to be resolved.

> I think I need to give this up, building from source is just not fully
> cooked (yes, I'm sure it works fine in some specific environments).  I can
> hook up my application with a web service or something instead of XMPP as a
> proof of the ESB concept.  Other parts of Servicemix seem to work fine as
> far as I can tell.  It's been way too much work just to update the smack
> jars and change a couple of java files with code I've already written and
> know works.

Well the first part of the problem really is that we need to get those
newer jars into a public Maven repo. Beyond that, we can help you get
past all of the build silliness. It's more an issue of familiarity and
us not stepping outside of our environments that often.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: XMPP

Posted by Jeff Sexton <js...@gmail.com>.
I downloaded the very latest Servicemix src and wiped out my maven
repository to have a fresh start.  The step 2 build fails.  New reason I
have not seen before regarding an incompatible jaxb...

I think I need to give this up, building from source is just not fully
cooked (yes, I'm sure it works fine in some specific environments).  I can
hook up my application with a web service or something instead of XMPP as a
proof of the ESB concept.  Other parts of Servicemix seem to work fine as
far as I can tell.  It's been way too much work just to update the smack
jars and change a couple of java files with code I've already written and
know works.

I'll try again at a later time.

Thanks all.


On Tue, Jun 3, 2008 at 8:24 AM, Jeff Sexton <js...@gmail.com> wrote:

> On Mon, Jun 2, 2008 at 11:53 PM, Chris Custine <cc...@apache.org>
> wrote:
>
>> On Mon, Jun 2, 2008 at 4:44 PM, Jeff Sexton <js...@gmail.com> wrote:
>> > I worked on something else for a day, but I'm back at this now.  I seem
>> to
>> > be able to alter source code and build a new XMPP zip file.  I set up a
>> > separate computer to drop the resulting zip file into hotdeployables on,
>> > all
>> > built with the new smack dependancy.  Here's a couple problems...
>> >
>> > When I rebuild with the command "mvn -Dmaven.test.skip=true -Pnochecks
>> > clean
>> > install" I get a lot of output ending with a class-not-found
>> > com/sun/codemodel/JCodeModel
>> > If I rebuild with the two step process, it seems to succeed fine, so I
>> did
>> > that.  It takes longer, but that's not saying much.
>>
>>
>> You should definitely be able to run "mvn -Pnochecks clean install" from
>> the
>> servicemix-xmpp directory itself and the build should run fine.  I am not
>> sure what this error is about so if you keep getting it let us know.
>>
>
> I can in fact build what seems to be a valid zip file just fine.  I get
> issues when a) trying to deploy that zip file, and b) running "clean
> install" from the src root.  This is interesting - this morning I started
> from scratch.  I unpacked a new src directory from the original download of
> last week and tried the two step build process.  In step two it now fails
> with JCodeModel not found.  This build worked fine last week.  I suppose the
> local maven repository must have changed.  Should I wipe that out too?
>
>
>>
>> >
>> >
>> > When I put my new zip file in hotdeployables and start servicemix, it
>> > starts
>> > up fine.  When I then deploy an SA that uses XMPP, I get a class
>> -not-found
>> > on one of the new classes in the new smack.jar file.  Obviously the
>> correct
>> > version of the smack jars are not available to servicemix for some
>> reason.
>>
>>
>> These dependencies are managed with a dependencyManagement section it he
>> top
>> level pom.xml file.  If you open the top level pom you will find the two
>> entries with <groupId>jivesoftware</groupId> and you will need to make
>> sure
>> you update the versions there.  After you do that make sure that you build
>> the top level once to install the pom.
>>
>
>
> I did that, yes.  This isn't completely making sense, which is why I wanted
> to start fresh from the src distribution to make sure I got everything done
> correctly.  This is what I think Ishould do,as I understand it.
>
> 1) unpack src
> 2) remove the old jabber light-weight components
> 3) build with the two step process
> 4) edit the root pom.xml and change the version of the smack jars
> 5) mvn install the new jars (if I need to wipe out the maven repository at
> ~/.m2)
> 6) replace the servicemix-xmpp java files, and edit the smack version in
> the xmpp pom.xml
> 7) do "clean install" in the servicemix-xmpp directory to build a new zip
> (this has worked for me, last week)
> 8) deploy the new zip to hotdeploy (replace the old one)
> 9) start
> 10) deploy the SA I already made
>
> Q1 - Are these steps correct and is step 7 all that is required to make
> this change or do I need to do a "clean install" in servicemix/src first?
> Q2 - What's this JCodeModel problem all about?
>
> Thanks!
>
>
>

Re: XMPP

Posted by Jeff Sexton <js...@gmail.com>.
On Mon, Jun 2, 2008 at 11:53 PM, Chris Custine <cc...@apache.org> wrote:

> On Mon, Jun 2, 2008 at 4:44 PM, Jeff Sexton <js...@gmail.com> wrote:
> > I worked on something else for a day, but I'm back at this now.  I seem
> to
> > be able to alter source code and build a new XMPP zip file.  I set up a
> > separate computer to drop the resulting zip file into hotdeployables on,
> > all
> > built with the new smack dependancy.  Here's a couple problems...
> >
> > When I rebuild with the command "mvn -Dmaven.test.skip=true -Pnochecks
> > clean
> > install" I get a lot of output ending with a class-not-found
> > com/sun/codemodel/JCodeModel
> > If I rebuild with the two step process, it seems to succeed fine, so I
> did
> > that.  It takes longer, but that's not saying much.
>
>
> You should definitely be able to run "mvn -Pnochecks clean install" from
> the
> servicemix-xmpp directory itself and the build should run fine.  I am not
> sure what this error is about so if you keep getting it let us know.
>

I can in fact build what seems to be a valid zip file just fine.  I get
issues when a) trying to deploy that zip file, and b) running "clean
install" from the src root.  This is interesting - this morning I started
from scratch.  I unpacked a new src directory from the original download of
last week and tried the two step build process.  In step two it now fails
with JCodeModel not found.  This build worked fine last week.  I suppose the
local maven repository must have changed.  Should I wipe that out too?


>
> >
> >
> > When I put my new zip file in hotdeployables and start servicemix, it
> > starts
> > up fine.  When I then deploy an SA that uses XMPP, I get a class
> -not-found
> > on one of the new classes in the new smack.jar file.  Obviously the
> correct
> > version of the smack jars are not available to servicemix for some
> reason.
>
>
> These dependencies are managed with a dependencyManagement section it he
> top
> level pom.xml file.  If you open the top level pom you will find the two
> entries with <groupId>jivesoftware</groupId> and you will need to make sure
> you update the versions there.  After you do that make sure that you build
> the top level once to install the pom.
>


I did that, yes.  This isn't completely making sense, which is why I wanted
to start fresh from the src distribution to make sure I got everything done
correctly.  This is what I think Ishould do,as I understand it.

1) unpack src
2) remove the old jabber light-weight components
3) build with the two step process
4) edit the root pom.xml and change the version of the smack jars
5) mvn install the new jars (if I need to wipe out the maven repository at
~/.m2)
6) replace the servicemix-xmpp java files, and edit the smack version in the
xmpp pom.xml
7) do "clean install" in the servicemix-xmpp directory to build a new zip
(this has worked for me, last week)
8) deploy the new zip to hotdeploy (replace the old one)
9) start
10) deploy the SA I already made

Q1 - Are these steps correct and is step 7 all that is required to make this
change or do I need to do a "clean install" in servicemix/src first?
Q2 - What's this JCodeModel problem all about?

Thanks!

Re: XMPP

Posted by Chris Custine <cc...@apache.org>.
On Mon, Jun 2, 2008 at 4:44 PM, Jeff Sexton <js...@gmail.com> wrote:

> I worked on something else for a day, but I'm back at this now.  I seem to
> be able to alter source code and build a new XMPP zip file.  I set up a
> separate computer to drop the resulting zip file into hotdeployables on,
> all
> built with the new smack dependancy.  Here's a couple problems...
>
> When I rebuild with the command "mvn -Dmaven.test.skip=true -Pnochecks
> clean
> install" I get a lot of output ending with a class-not-found
> com/sun/codemodel/JCodeModel
> If I rebuild with the two step process, it seems to succeed fine, so I did
> that.  It takes longer, but that's not saying much.


You should definitely be able to run "mvn -Pnochecks clean install" from the
servicemix-xmpp directory itself and the build should run fine.  I am not
sure what this error is about so if you keep getting it let us know.

>
>
> When I put my new zip file in hotdeployables and start servicemix, it
> starts
> up fine.  When I then deploy an SA that uses XMPP, I get a class -not-found
> on one of the new classes in the new smack.jar file.  Obviously the correct
> version of the smack jars are not available to servicemix for some reason.


These dependencies are managed with a dependencyManagement section it he top
level pom.xml file.  If you open the top level pom you will find the two
entries with <groupId>jivesoftware</groupId> and you will need to make sure
you update the versions there.  After you do that make sure that you build
the top level once to install the pom.

>
>
> Ideas?  Thanks
>
> On Thu, May 29, 2008 at 10:55 AM, Chris Custine <cc...@apache.org>
> wrote:
>
> > Awesome!  Let us know of your progress.  After looking at the source for
> > the
> > XMPP stuff myself, I agree that it is slightly dated and needs a bit of
> > maintenance to bring it inline with best practices and updates in the
> smack
> > API.  I just want to make sure that there are no compatibility problems
> > with
> > the MUC classes replacing the GroupChat stuff but I guess we can make
> this
> > new class optional with the GroupChat as a fallback so things should be
> > fine.
> >
> > Chris
> >
> > On Thu, May 29, 2008 at 10:49 AM, Jeff Sexton <js...@gmail.com>
> wrote:
> >
> > > You know what, sorry for wasting your time.  These errors are
> different.
> > > They look like the expected issues from exactly what I was after doing
> -
> > > swapping the jar files to the newer versions.  I think I'm on track for
> > the
> > > moment, thanks!
> > >
> > > On Thu, May 29, 2008 at 9:36 AM, Jeff Sexton <js...@gmail.com>
> wrote:
> > >
> > > > On Thu, May 29, 2008 at 9:21 AM, Chris Custine <cc...@apache.org>
> > > > wrote:
> > > >
> > > >> Earlier you said that the org.jivesoftware package was not found,
> > which
> > > >> means that maven is resolving the jar files (or else it would have
> > > failed
> > > >> earlier) and is trying t compile against them.  I am not sure why it
> > > would
> > > >> not see the jar files though.  Have you checked the jars in the
> maven
> > > repo
> > > >> to make sure they have the correct packages?  BTW, I am wondering if
> > you
> > > >> installed the smackx jar file twice, once as smackx and once as
> smack?
> > > >>
> > > >
> > > > You caught it, I did exactly that!
> > > > So I re-did the jar install and tried it again.  The output is
> simular.
> > >  Is
> > > > something else required to replace an incorrectly installed jar?
> > > >
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Building ServiceMix :: XMPP
> > > > [INFO]    task-segment: [clean, install]
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] [clean:clean]
> > > > [INFO] Deleting directory
> > > >
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target
> > > > [INFO] [xbean:mapping {execution: default}]
> > > > [INFO] Generating META-INF properties file:
> > > >
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/services/org/apache/xbean/spring/http/
> > > > servicemix.apache.org/xmpp/1.0 for namespace:
> > > > http://servicemix.apache.org/xmpp/1.0
> > > > [INFO] Generating Spring 2.0 handler mapping:
> > > >
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.handlers
> > > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > > [INFO] Generating Spring 2.0 schema mapping:
> > > >
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.schemas
> > > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > > [INFO] Generating HTML documentation file:
> > > >
> > >
> >
> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/servicemix-xmpp.xsd.html
> > > > for namespace: http://servicemix.apache.org/xmpp/1.0
> > > > Warning, could not load class: org.jivesoftware.smack.GroupChat:
> > > > java.lang.ClassNotFoundException: org.jivesoftware.smack.GroupChat
> > > > Warning, could not load class:
> > org.apache.servicemix.xmpp.XMPPComponent:
> > > > java.lang.ClassNotFoundException:
> > > org.apache.servicemix.xmpp.XMPPComponent
> > > > Warning, could not load class:
> > org.apache.servicemix.xmpp.XMPPMarshaler:
> > > > java.lang.ClassNotFoundException:
> > > org.apache.servicemix.xmpp.XMPPMarshaler
> > > > Warning, could not load class:
> > org.apache.servicemix.xmpp.XMPPComponent:
> > > > java.lang.ClassNotFoundException:
> > > org.apache.servicemix.xmpp.XMPPComponent
> > > > Warning, could not load class:
> > org.apache.servicemix.xmpp.XMPPMarshaler:
> > > > java.lang.ClassNotFoundException:
> > > org.apache.servicemix.xmpp.XMPPMarshaler
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Chris Custine
> > My Blog :: http://blog.organicelement.com
> > Apache ServiceMix :: http://servicemix.apache.org
> > Apache Directory Server :: http://directory.apache.org
> >
>



-- 
Chris Custine
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Directory Server :: http://directory.apache.org

Re: XMPP

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

Could you check if the zip file you created contains the correct JAR 
files?  Could you try restarting ServiceMix after you removed the old 
version of the XMPP component and/or use JMX to check if it really gone 
before dropping the new zip file in the hotdeploy folder?

Gert

Jeff Sexton wrote:
> I worked on something else for a day, but I'm back at this now.  I seem to
> be able to alter source code and build a new XMPP zip file.  I set up a
> separate computer to drop the resulting zip file into hotdeployables on, all
> built with the new smack dependancy.  Here's a couple problems...
>
> When I rebuild with the command "mvn -Dmaven.test.skip=true -Pnochecks clean
> install" I get a lot of output ending with a class-not-found
> com/sun/codemodel/JCodeModel
> If I rebuild with the two step process, it seems to succeed fine, so I did
> that.  It takes longer, but that's not saying much.
>
> When I put my new zip file in hotdeployables and start servicemix, it starts
> up fine.  When I then deploy an SA that uses XMPP, I get a class -not-found
> on one of the new classes in the new smack.jar file.  Obviously the correct
> version of the smack jars are not available to servicemix for some reason.
>
> Ideas?  Thanks
>
> On Thu, May 29, 2008 at 10:55 AM, Chris Custine <cc...@apache.org> wrote:
>
>   
>> Awesome!  Let us know of your progress.  After looking at the source for
>> the
>> XMPP stuff myself, I agree that it is slightly dated and needs a bit of
>> maintenance to bring it inline with best practices and updates in the smack
>> API.  I just want to make sure that there are no compatibility problems
>> with
>> the MUC classes replacing the GroupChat stuff but I guess we can make this
>> new class optional with the GroupChat as a fallback so things should be
>> fine.
>>
>> Chris
>>
>> On Thu, May 29, 2008 at 10:49 AM, Jeff Sexton <js...@gmail.com> wrote:
>>
>>     
>>> You know what, sorry for wasting your time.  These errors are different.
>>> They look like the expected issues from exactly what I was after doing -
>>> swapping the jar files to the newer versions.  I think I'm on track for
>>>       
>> the
>>     
>>> moment, thanks!
>>>
>>> On Thu, May 29, 2008 at 9:36 AM, Jeff Sexton <js...@gmail.com> wrote:
>>>
>>>       
>>>> On Thu, May 29, 2008 at 9:21 AM, Chris Custine <cc...@apache.org>
>>>> wrote:
>>>>
>>>>         
>>>>> Earlier you said that the org.jivesoftware package was not found,
>>>>>           
>> which
>>     
>>>>> means that maven is resolving the jar files (or else it would have
>>>>>           
>>> failed
>>>       
>>>>> earlier) and is trying t compile against them.  I am not sure why it
>>>>>           
>>> would
>>>       
>>>>> not see the jar files though.  Have you checked the jars in the maven
>>>>>           
>>> repo
>>>       
>>>>> to make sure they have the correct packages?  BTW, I am wondering if
>>>>>           
>> you
>>     
>>>>> installed the smackx jar file twice, once as smackx and once as smack?
>>>>>
>>>>>           
>>>> You caught it, I did exactly that!
>>>> So I re-did the jar install and tried it again.  The output is simular.
>>>>         
>>>  Is
>>>       
>>>> something else required to replace an incorrectly installed jar?
>>>>
>>>> [INFO]
>>>>
>>>>         
>> ------------------------------------------------------------------------
>>     
>>>> [INFO] Building ServiceMix :: XMPP
>>>> [INFO]    task-segment: [clean, install]
>>>> [INFO]
>>>>
>>>>         
>> ------------------------------------------------------------------------
>>     
>>>> [INFO] [clean:clean]
>>>> [INFO] Deleting directory
>>>>
>>>>         
>> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target
>>     
>>>> [INFO] [xbean:mapping {execution: default}]
>>>> [INFO] Generating META-INF properties file:
>>>>
>>>>         
>> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/services/org/apache/xbean/spring/http/
>>     
>>>> servicemix.apache.org/xmpp/1.0 for namespace:
>>>> http://servicemix.apache.org/xmpp/1.0
>>>> [INFO] Generating Spring 2.0 handler mapping:
>>>>
>>>>         
>> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.handlers
>>     
>>>> for namespace: http://servicemix.apache.org/xmpp/1.0
>>>> [INFO] Generating Spring 2.0 schema mapping:
>>>>
>>>>         
>> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/META-INF/spring.schemas
>>     
>>>> for namespace: http://servicemix.apache.org/xmpp/1.0
>>>> [INFO] Generating HTML documentation file:
>>>>
>>>>         
>> /home/jsexton/apache-servicemix-3.2.1/src/deployables/bindingcomponents/servicemix-xmpp/target/xbean/servicemix-xmpp.xsd.html
>>     
>>>> for namespace: http://servicemix.apache.org/xmpp/1.0
>>>> Warning, could not load class: org.jivesoftware.smack.GroupChat:
>>>> java.lang.ClassNotFoundException: org.jivesoftware.smack.GroupChat
>>>> Warning, could not load class:
>>>>         
>> org.apache.servicemix.xmpp.XMPPComponent:
>>     
>>>> java.lang.ClassNotFoundException:
>>>>         
>>> org.apache.servicemix.xmpp.XMPPComponent
>>>       
>>>> Warning, could not load class:
>>>>         
>> org.apache.servicemix.xmpp.XMPPMarshaler:
>>     
>>>> java.lang.ClassNotFoundException:
>>>>         
>>> org.apache.servicemix.xmpp.XMPPMarshaler
>>>       
>>>> Warning, could not load class:
>>>>         
>> org.apache.servicemix.xmpp.XMPPComponent:
>>     
>>>> java.lang.ClassNotFoundException:
>>>>         
>>> org.apache.servicemix.xmpp.XMPPComponent
>>>       
>>>> Warning, could not load class:
>>>>         
>> org.apache.servicemix.xmpp.XMPPMarshaler:
>>     
>>>> java.lang.ClassNotFoundException:
>>>>         
>>> org.apache.servicemix.xmpp.XMPPMarshaler
>>>       
>>>>         
>>
>> --
>> Chris Custine
>> My Blog :: http://blog.organicelement.com
>> Apache ServiceMix :: http://servicemix.apache.org
>> Apache Directory Server :: http://directory.apache.org
>>
>>     
>
>