You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bruce Snyder <br...@gmail.com> on 2007/12/02 17:21:12 UTC

Re: Build Dependencies

On Nov 28, 2007 7:31 AM, Gordon Dickens <gd...@anexinet.com> wrote:
> I am having trouble locating dependencies for my repository when building ServiceMix 3.2.
>
>
>
> Can someone point me to the preferred repositories that I can setup for my Maven builds?

All the repositories necessary to build the ServiceMix source are
specified in the root pom.xml for the entire ServiceMix project. What
kind of issue are you experiencing?

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 ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Re: Build Dependencies

Posted by clymbon <cl...@gmail.com>.

bsnyder wrote:
> 
> On Dec 19, 2007 2:34 PM, clymbon <cl...@gmail.com> wrote:
>>....[your previous posting] suggests making changes to the "root pom.xml
>> for the entire ServiceMix project", replacing the line containing
>> http://svn.apache.org/repos/asf/incubator/servicemix/m2-repo
> 
> ... I hazard a guess that you may only be looking at
> the POMs for the examples, so let's back up a bit. Did you download
> the source code from the Subversion repo or via zip/tarball? Also,
> which version are you using?
> 
> ....What I'm referring to is the ServiceMix root pom.xml
> for the entire ServiceMix project.
> 

Yes, I understand.  But where is this?  I downloaded the tarball,
apache-servicemix-3.2.tar.gz to be precise.  Running:

    tar tzf apache-servicemix-3.2.tar.gz | grep pom.xml

shows that the ONLY pom.xml files are in the examples subdirectory tree. 
That's it!  I have zero experience with Maven, so perhaps I'm missing
something that would be obvious to others...  If we can figure out what it
is, I'll update the user manual wiki for the benefit of others like me.


bsnyder wrote:
> 
> Are you trying to build all of ServiceMix or just some examples? If
> you're just trying to build the examples, there's no need to do
> anything other than changing the incorrect URL in the root POM.
> 

I'm not trying to build it, I'm just trying to use it.  My idea was to start
by running the examples in order to learn how it works. 

By the way, I dowloaded the 3.2.1 tarball and ran the "basic" example,
following the instructions in the users manual.  Got further than before,
but doesn't run.  Got an exception as shown below.

Thanks for the help.

Duncan

[duncant@shag basic]$ mvn jbi:embeddedServicemix
....
.... lots of download messages snipped
....
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 45 seconds
[INFO] Finished at: Wed Dec 19 22:33:23 EST 2007
[INFO] Final Memory: 16M/30M
[INFO]
------------------------------------------------------------------------
2007-12-19 22:33:23,319 [MQ ShutdownHook] INFO  BrokerService                 
- ActiveMQ Message Broker (localhost,
ID:shag.mitre.org-43721-1198121602135-0:0) is shutting down
2007-12-19 22:33:23,319 [ix ShutdownHook] INFO 
ileSystemXmlApplicationContext - Closing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@8d5a91:
display name
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@8d5a91];
startup date [Wed Dec 19 22:33:20 EST 2007]; root of context hierarchy
2007-12-19 22:33:23,320 [ix ShutdownHook] INFO  DefaultListableBeanFactory    
- Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1263b07:
defining beans
[jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
root of factory hierarchy
2007-12-19 22:33:23,320 [ix ShutdownHook] INFO  JBIContainer                  
- Shutting down ServiceMix JBI Container (ServiceMix) stopped
2007-12-19 22:33:23,325 [ix ShutdownHook] INFO  JBIContainer                  
- Deactivating component #SubscriptionManager#
2007-12-19 22:33:23,347 [eduler_Worker-6] ERROR JobRunShell                   
- Job ServiceMix.My Example Job threw an unhandled Exception: 
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue.enqueue(SedaQueue.java:128)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.enqueuePacket(SedaFlow.java:182)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doSend(SedaFlow.java:162)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.send(AbstractFlow.java:123)
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:283)
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:830)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:395)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:431)
        at
org.apache.servicemix.components.util.PojoSupport.send(PojoSupport.java:204)
        at
org.apache.servicemix.components.quartz.QuartzComponent.onJobExecute(QuartzComponent.java:125)
        at
org.apache.servicemix.components.quartz.ServiceMixJob.execute(ServiceMixJob.java:34)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
2007-12-19 22:33:23,349 [eduler_Worker-6] ERROR ErrorLogger                   
- Job (ServiceMix.My Example Job threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested
exception: java.lang.NullPointerException]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
java.lang.NullPointerException
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue.enqueue(SedaQueue.java:128)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.enqueuePacket(SedaFlow.java:182)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doSend(SedaFlow.java:162)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.send(AbstractFlow.java:123)
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:283)
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:830)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:395)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:431)
        at
org.apache.servicemix.components.util.PojoSupport.send(PojoSupport.java:204)
        at
org.apache.servicemix.components.quartz.QuartzComponent.onJobExecute(QuartzComponent.java:125)
        at
org.apache.servicemix.components.quartz.ServiceMixJob.execute(ServiceMixJob.java:34)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

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


Re: Build Dependencies

Posted by Bruce Snyder <br...@gmail.com>.
On Dec 19, 2007 2:34 PM, clymbon <cl...@gmail.com> wrote:

> > These missing dependencies are due to the ServiceMix project
> > graduating from the Incubator and having its Maven repo moved in the
> > Apache Subversion tree as noted previously on this mailing list:
> >
> > http://www.nabble.com/ServiceMix-Dependencies-not-found-to13798573s12049.html#a13808955
> >
>
> Yes, I read that posting.  It suggests making changes to the "root pom.xml
> for the entire ServiceMix project", replacing the line containing
> http://svn.apache.org/repos/asf/incubator/servicemix/m2-repo
>
> However, you assume that people know where to find this file.  As I said,
> there a lots of different pom.xml files within the directory structure, and
> none of them contain the above line.

OK, fair enough. The root pom is the pom.xml file inside the base
directory from which every other POM in the ServiceMix project
inherits in some way. I hazard a guess that you may only be looking at
the POMs for the examples, so let's back up a bit. Did you download
the source code from the Subversion repo or via zip/tarball? Also,
which version are you using?

> So, the question still hasn't been
> answered.  Within the examples subdirectories there are files that point to
> url's like: http://people.apache.org/repo/m2-incubating-repository   I would
> assume that, if the project is no longer in incubation, perhaps these lines
> need to be changed?  (Guesswork...)

Those URLs do not need to be changed because they do not point to the
Incubator section of the ASF Subversion repo. And those URLs are only
in the examples. What I'm referring to is the ServiceMix root pom.xml
for the entire ServiceMix project.

> I see that 3.2.1 is now available for downloading.  I'll start again with a
> fresh download.  However, as someone unfamiliar with maven, trying to deduce
> the structure and packaging of this project, it would be still be nice to
> have an answer in order to understand what the "root pom.xml" file is.

Are you trying to build all of ServiceMix or just some examples? If
you're just trying to build the examples, there's no need to do
anything other than changing the incorrect URL in the root POM.

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: Build Dependencies

Posted by clymbon <cl...@gmail.com>.

bsnyder wrote:
> 
> On Dec 14, 2007 9:56 AM, clymbon <cl...@gmail.com> wrote:
>> Question:  What and where is the "root pom.xml for the entire ServiceMix
>> project".  .... I did a "find" on \*pom.xml".  There are
>> pom.xml files all over the place -
>> which one do I need to edit?  And what changes do I need to make?
>>
> 
> These missing dependencies are due to the ServiceMix project
> graduating from the Incubator and having its Maven repo moved in the
> Apache Subversion tree as noted previously on this mailing list:
> 
> http://www.nabble.com/ServiceMix-Dependencies-not-found-to13798573s12049.html#a13808955
> 

Yes, I read that posting.  It suggests making changes to the "root pom.xml
for the entire ServiceMix project", replacing the line containing
http://svn.apache.org/repos/asf/incubator/servicemix/m2-repo

However, you assume that people know where to find this file.  As I said,
there a lots of different pom.xml files within the directory structure, and
none of them contain the above line.  So, the question still hasn't been
answered.  Within the examples subdirectories there are files that point to
url's like: http://people.apache.org/repo/m2-incubating-repository   I would
assume that, if the project is no longer in incubation, perhaps these lines
need to be changed?  (Guesswork...)

I see that 3.2.1 is now available for downloading.  I'll start again with a
fresh download.  However, as someone unfamiliar with maven, trying to deduce
the structure and packaging of this project, it would be still be nice to
have an answer in order to understand what the "root pom.xml" file is.

Thanks,

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


Re: Build Dependencies

Posted by Bruce Snyder <br...@gmail.com>.
On Dec 14, 2007 9:56 AM, clymbon <cl...@gmail.com> wrote:
>
>
> bsnyder wrote:
> >
> > On Nov 28, 2007 7:31 AM, Gordon Dickens <gd...@anexinet.com> wrote:
> >> I am having trouble locating dependencies for my repository when building
> >> ServiceMix 3.2.
> >>
> >>
> >>
> >> Can someone point me to the preferred repositories that I can setup for
> >> my Maven builds?
> >
> > All the repositories necessary to build the ServiceMix source are
> > specified in the root pom.xml for the entire ServiceMix project.
> >
> >
>
> I am having similar problems with "woden" just trying to build the "basic"
> example.  (See error below.)
>
> Question:  What and where is the "root pom.xml for the entire ServiceMix
> project".  I'm just trying to
> get going with Service Mix.  I did a "find" on \*pom.xml".  There are
> pom.xml files all over the place -
> which one do I need to edit?  And what changes do I need to make?
>
> (This is maybe a dumb question, but I'm an ant and make user, I'm a total
> newbie with maven.)
>
> Suggestion:  Make the examples, or at least a "basic" example,
> "self-contained", so a newbie like me
> doesn't have to download anything further to get started with a working
> example.
>
> Note: Users like me that just installed maven to get these examples to work
> need to know that they probably have to
> edit ~/.m2/settings.xml to specify an http proxy server location before the
> examples will build.  An example is:
>
> <settings>
>    <proxies>
>       <proxy>
>         <active>true</active>
>         <protocol>http</protocol>
>         <host>myproxyserver.foo.com</host>
>         <port>80</port>
>         <nonProxyHosts>*.mitre.org</nonProxyHosts>
>       </proxy>
>    </proxies>
> </settings>
>
> Here are the specific errors I'm getting:
>
> Downloading:
> http://repo1.maven.org/maven2/org/apache/woden/woden/1.0.0M6/woden-1.0.0M6.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.opensaml:opensaml:jar:1.1

These missing dependencies are due to the ServiceMix project
graduating from the Incubator and having its Maven repo moved in the
Apache Subversion tree as noted previously on this mailing list:

http://www.nabble.com/ServiceMix-Dependencies-not-found-to13798573s12049.html#a13808955

This has been fixed in the ServiceMix 3.2.1 release.

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: Build Dependencies

Posted by clymbon <cl...@gmail.com>.

bsnyder wrote:
> 
> On Nov 28, 2007 7:31 AM, Gordon Dickens <gd...@anexinet.com> wrote:
>> I am having trouble locating dependencies for my repository when building
>> ServiceMix 3.2.
>>
>>
>>
>> Can someone point me to the preferred repositories that I can setup for
>> my Maven builds?
> 
> All the repositories necessary to build the ServiceMix source are
> specified in the root pom.xml for the entire ServiceMix project. 
> 
> 

I am having similar problems with "woden" just trying to build the "basic"
example.  (See error below.)

Question:  What and where is the "root pom.xml for the entire ServiceMix
project".  I'm just trying to
get going with Service Mix.  I did a "find" on \*pom.xml".  There are
pom.xml files all over the place -
which one do I need to edit?  And what changes do I need to make?  

(This is maybe a dumb question, but I'm an ant and make user, I'm a total
newbie with maven.)

Suggestion:  Make the examples, or at least a "basic" example,
"self-contained", so a newbie like me
doesn't have to download anything further to get started with a working
example.

Note: Users like me that just installed maven to get these examples to work
need to know that they probably have to
edit ~/.m2/settings.xml to specify an http proxy server location before the
examples will build.  An example is:

<settings>
   <proxies>
      <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <host>myproxyserver.foo.com</host>
        <port>80</port>
        <nonProxyHosts>*.mitre.org</nonProxyHosts>
      </proxy>
   </proxies>
</settings>

Here are the specific errors I'm getting:

Downloading:
http://repo1.maven.org/maven2/org/apache/woden/woden/1.0.0M6/woden-1.0.0M6.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
Missing:
----------
1) org.opensaml:opensaml:jar:1.1
 
  Try downloading the file manually from the project website.
 

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


Re: Build Dependencies

Posted by Bruce Snyder <br...@gmail.com>.
On Dec 3, 2007 7:49 AM, Gordon Dickens <gd...@anexinet.com> wrote:
> Thanks Bruce,
>
> That is exactly what we ended up doing.  We usually ran into issues with items from Woden or net.sf.* dependencies.

Yeah, woden and a few others were in the ServiceMix SVN repo that was
moved. This is why ServiceMix 3.2.1 is being released very soon.

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 ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

http://bruceblog.org/

RE: Build Dependencies

Posted by Gordon Dickens <gd...@anexinet.com>.
Thanks Bruce,

That is exactly what we ended up doing.  We usually ran into issues with items from Woden or net.sf.* dependencies.

Regards,
Gordon Dickens

-----Original Message-----
From: Bruce Snyder [mailto:bruce.snyder@gmail.com]
Sent: Sunday, December 02, 2007 11:21 AM
To: users@servicemix.apache.org
Subject: Re: Build Dependencies

On Nov 28, 2007 7:31 AM, Gordon Dickens <gd...@anexinet.com> wrote:
> I am having trouble locating dependencies for my repository when building ServiceMix 3.2.
>
>
>
> Can someone point me to the preferred repositories that I can setup for my Maven builds?

All the repositories necessary to build the ServiceMix source are
specified in the root pom.xml for the entire ServiceMix project. What
kind of issue are you experiencing?

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 ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.13/1167 - Release Date: 12/3/2007 12:20 PM


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.13/1167 - Release Date: 12/3/2007 12:20 PM