On Mon, Jun 2, 2008 at 4:44 PM, Jeff Sexton <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
> wrote:
> > >
> > > > On Thu, May 29, 2008 at 9:21 AM, Chris Custine <[EMAIL PROTECTED]>
> > > > 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

Reply via email to