Ok, so I changed the pom in geronimo-kernel-1.1.pom to this:
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-qname_1.1_spec</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
Since I think the <type> tag was a typo for scope? Anyhow, that now gets me
back to where I was Friday where my test is failing in the created service
engine project because of the missing jar, I'm also still not sure of how
the parent POM should be configured for the 3 components to build and
package properly:
"Also, in the hello world example:
http://goopen.org/confluence/display/SM/Hello+World+-+SE
I don't understand the relationship between the service unit, service
assembly and service engine. It shows making the service unit dependant on
the parent POM and indicates that means it will be included in the service
assembly. From my Maven2 experience, that makes no sense since it should be
in the service assembly POM as a dependency? Also, there is no mention of
how the service engine POM fits into that packaging....
I tried looking at the source examples but so far haven't quite pieced it
all together."
Here is the error from the unit test:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in class path resource [spring.xml]: Invocation of
init method failed; nested exception is java.lang.NoClassDefFoundError:
org/apache/activeio/util/FactoryFinder
Caused by: java.lang.NoClassDefFoundError:
org/apache/activeio/util/FactoryFinder
at org.apache.servicemix.jbi.nmr.flow.FlowProvider.<clinit>(
FlowProvider.java:36)
at org.apache.servicemix.jbi.nmr.DefaultBroker.init(DefaultBroker.java
:134)
at org.apache.servicemix.jbi.container.JBIContainer.init(
JBIContainer.java:556)
at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
SpringJBIContainer.java:55)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
(AbstractAutowireCapableBeanFactory.java:1062)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1029)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:420)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:156)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:290)
at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:348)
at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
.<init>(ClassPathXmlApplicationContext.java:161)
at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
.<init>(ClassPathXmlApplicationContext.java:51)
at com.bae.gse.flare.MySpringComponentTest.createBeanFactory(
MySpringComponentTest.java:53)
at org.apache.servicemix.tck.SpringTestSupport.setUp(
SpringTestSupport.java:58)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:210)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:747)
On 11/6/06, Ryan Moquin <[EMAIL PROTECTED]> wrote:
BTW - The problem with the jbi-maven-plugin not being able to be found was
a result of me putting a reference to it in my parent POM to turn off
dependencies as the Hello World tutorial told me to.
But now I'm getting this error, this jar doesn't need downloaded manually
does it?:
[WARNING] Unable to get resource from repository apache.incubating (
http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://www.ibiblio.org/maven2/geronimo/geronimo-security/1.1/geronimo-security-1.1.jar
186K downloaded
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \
-Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating
3) geronimo:geronimo-connector:jar:1.1
4) geronimo:geronimo-kernel:jar:1.1
5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
----------
1 required artifact is missing.
for artifact:
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
from the specified remote repositories:
central ( http://www.ibiblio.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
apache.snapshots ( http://people.apache.org/repo/m2-snapshot-repository
),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache.incubating (
http://people.apache.org/repo/m2-incubating-repository),
apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository
),
activemq-tmp-repo (
http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2<http://people.apache.org/%7Echirino/incubator-activemq-4.0.2-RC5/maven2>
)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \
-Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating
3) geronimo:geronimo-connector:jar: 1.1
4) geronimo:geronimo-kernel:jar:1.1
5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
----------
1 required artifact is missing.
for artifact:
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
from the specified remote repositories:
central (http://www.ibiblio.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo ),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache-snapshots ( http://people.apache.org/repo/m2-snapshot-repository
),
apache.incubating (
http://people.apache.org/repo/m2-incubating-repository),
apache-releases (
http://people.apache.org/repo/m2-ibiblio-rsync-repository),
activemq-tmp-repo
(http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2<http://people.apache.org/%7Echirino/incubator-activemq-4.0.2-RC5/maven2>
)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:551)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
DefaultLifecycleExecutor.java:30
)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(
Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException :
Missing:
----------
1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=
org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \
-Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating
3) geronimo:geronimo-connector:jar:1.1
4) geronimo:geronimo-kernel:jar:1.1
5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1
----------
1 required artifact is missing.
for artifact:
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating
from the specified remote repositories:
central ( http://www.ibiblio.org/maven2),
servicemix-m2-repo (http://servicemix.org/m2-repo),
apache.snapshots ( http://people.apache.org/repo/m2-snapshot-repository
),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
apache.incubating (
http://people.apache.org/repo/m2-incubating-repository),
apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository
),
activemq-tmp-repo (
http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2<http://people.apache.org/%7Echirino/incubator-activemq-4.0.2-RC5/maven2>
)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(
DefaultArtifactResolver.java:244)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:211)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(
DefaultArtifactResolver.java:182)
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:608)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:519)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:390)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java :534)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 44 seconds
[INFO] Finished at: Mon Nov 06 13:12:44 EST 2006
[INFO] Final Memory: 11M/21M
[INFO]
------------------------------------------------------------------------
On 11/6/06, Ryan Moquin < [EMAIL PROTECTED]> wrote:
>
> I'm hoping someone can give me a hand with some questions I have
> regarding getting started with ServiceMix. I've spent many hours searching
> and trying to get a first example up and running but I'm a little stuck.
> I'm using the ServiceMix 3.0.1 libraries on JDK 1.5.
>
> I had to add these repos to a parent pom (it doesn't seem to work if I
> put it in a profile in my settings.xml for some reason):
>
> http://people.apache.org/repo/m2-incubating-repository
>
> I created a JBI service engine project with Maven2 using:
>
> mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling-DarchetypeArtifactId=servicemix-service-engine
-DarchetypeVersion=
> 3.0.1-incubating -DgroupId=firstSEgroup -DartifactId=MySE
>
> It seems to create my project fine, though there were few warning about
> certain version properties not being set, does it matter?:
>
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line
> 85,column 16] : ${servicemix-version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException :
> reference : template = archetype-resources/pom.xml [line
> 90,column 16] : ${servicemix-version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line
> 105,column 18] : ${servicemix-version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/pom.xml [line
> 116,column 18] : ${xbean-version} is not a valid reference.
>
> Next when I do mvn install, I get:
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:jbi-maven-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
>
>
> Now what's funny, is on Thursday and Friday, I was playing around for
> hours trying to get a project created properly. I didn't get the above
> error then, I just kept getting a failed unit test when I did "mvn install"
> because of a missing activeio jar (the FactoryFinder class couldn't be
> found) . That error has been described before, though I now can't find the
> link for your reference.
>
> Also, in the hello world example:
http://goopen.org/confluence/display/SM/Hello+World+-+SE
>
>
> I don't understand the relationship between the service unit, service
> assembly and service engine. It shows making the service unit dependant on
> the parent POM and indicates that means it will be included in the service
> assembly. From my Maven2 experience, that makes no sense since it should be
> in the service assembly POM as a dependency? Also, there is no mention of
> how the service engine POM fits into that packaging....
>
> I tried looking at the source examples but so far haven't quite pieced
> it all together.
>
> Can someone give me a hand getting started?
>
> Thanks,
> Ryan
>