You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by vikas kumar <pv...@gmail.com> on 2006/08/24 09:45:36 UTC

Jencks error!

I am trying out the BAM component from
<https://issues.apache.org/activemq/browse/SM-534>
uploaded by Soumadeep..

I get the following error, though it works for Soumadeep..

-------------------------------------------------------------------------------
Test set: org.apache.servicemix.bam.BAMSpringComponentTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.672
sec <<< FAILURE!
test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
1.625 sec  <<< ERROR!
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/jencks/factory/WorkManagerFactoryBean
Caused by: java.lang.NoClassDefFoundError:
org/jencks/factory/WorkManagerFactoryBean
	at org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(SpringJBIContainer.java:173)
	at org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:501)
	at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:132)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:237)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:153)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:254)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
	at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:162)
	at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:52)
	at org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(BAMSpringComponentTest.java:37)
	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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)

Re: Jencks error!

Posted by James Strachan <ja...@gmail.com>.
Use the pom.xml that Guillaume has attached to the issue

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> James/Guillaume,
>
> Thanks for your hlp.. I really appreciate it..
>
> But I can't seem to get it working..
> Looked in the pom.xml and also the pom.xmls in all the three archives
> associated with the jira.. Didn't find 'jencks' mentioned anywhere..
>
> Maybe, I am doing it wrong..
> Am i looking at the wrong places?
> Can someone kindly let me know the steps that are to be followed to
> try out the BAM component..
>
> Will try cleaning up my maven2 repo and try again..
>
>
> On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > I have attached a working pom to the JIRA.
> >
> > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > >
> > > Let me recap..
> > >
> > > 1) Downloaded the BAM sample from
> > > <https://issues.apache.org/activemq/browse/SM-534>
> > >
> > > 2) Did a mvn install
> > >
> > > 3) Got the error
> > >
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Failed to resolve artifact.
> > >
> > > Missing:
> > > ----------
> > > 1) org.jencks:jencks:jar:1.3-SNAPSHOT
> > >
> > >   Try downloading the file manually from the project website.
> > >
> > >   Then, install it using the command:
> > >       mvn install:install-file -DgroupId=org.jencks -DartifactId=jencks \
> > >           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> > >
> > >   Path to dependency:
> > >         1)
> > > org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > >         2)
> > > org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
> > >         3) org.jencks:jencks:jar:1.3-SNAPSHOT
> > >
> > > ----------
> > > 1 required artifact is missing.
> > >
> > > for artifact:
> > >   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > >
> > > from the specified remote repositories:
> > >   central (http://repo1.maven.org/maven2),
> > >   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
> > >
> > > 4) Downloaded Jencks from
> > > <
> > > http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip
> > > >
> > >
> > > 5) Ran the install command that was shown as part of step 3.
> > >
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] BUILD SUCCESSFUL
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time: 1 second
> > > [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> > > [INFO] Final Memory: 2M/4M
> > > [INFO]
> > > ------------------------------------------------------------------------
> > >
> > > 6) Got the following error on doing a mvn install, tests failure..
> > >
> > > -------------------------------------------------------------------------------
> > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > >
> > > -------------------------------------------------------------------------------
> > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> > > sec <<< FAILURE!
> > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > > 1.625 sec  <<< ERROR!
> > > 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/jencks/factory/WorkManagerFactoryBean
> > > Caused by: java.lang.NoClassDefFoundError:
> > > org/jencks/factory/WorkManagerFactoryBean
> > >         at
> > > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > SpringJBIContainer.java:173)
> > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > JBIContainer.java:501)
> > >         at
> > > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > SpringJBIContainer.java:55)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > (AbstractAutowireCapableBeanFactory.java:908)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > (AbstractAutowireCapableBeanFactory.java:875)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > (AbstractAutowireCapableBeanFactory.java:396)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > AbstractBeanFactory.java:240)
> > >
> > > 7) Added the dependency in pom.xml
> > >    <dependency>
> > >          <groupId>org.jencks</groupId>
> > >          <artifactId>jencks</artifactId>
> > >          <version>1.3-SNAPSHOT</version>
> > >          <scope>test</scope>
> > >    </dependency>
> > >
> > > 8) Still getting the above test failure error..
> > >
> > > I am interested in getting the BAM component working and experimenting
> > > with it..
> > > But just can't get there..
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
Thanks James/Guillaume...

I don't know why, but cleaning my m2 rep and building Servicemix from
source after updating it solved the problem..

Thought, mvn would sync my jars..

On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> M2 use transitive dependencies, so if you use the pom i have uploaded,
> the jencks will already be included (because servicemix-core includes it).
> You should try it ;)
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> >
> > James/Guillaume,
> >
> > Thanks for your hlp.. I really appreciate it..
> >
> > But I can't seem to get it working..
> > Looked in the pom.xml and also the pom.xmls in all the three archives
> > associated with the jira.. Didn't find 'jencks' mentioned anywhere..
> >
> > Maybe, I am doing it wrong..
> > Am i looking at the wrong places?
> > Can someone kindly let me know the steps that are to be followed to
> > try out the BAM component..
> >
> > Will try cleaning up my maven2 repo and try again..
> >
> >
> > On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > > I have attached a working pom to the JIRA.
> > >
> > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > >
> > > > Let me recap..
> > > >
> > > > 1) Downloaded the BAM sample from
> > > > <https://issues.apache.org/activemq/browse/SM-534>
> > > >
> > > > 2) Did a mvn install
> > > >
> > > > 3) Got the error
> > > >
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Failed to resolve artifact.
> > > >
> > > > Missing:
> > > > ----------
> > > > 1) org.jencks:jencks:jar:1.3-SNAPSHOT
> > > >
> > > >   Try downloading the file manually from the project website.
> > > >
> > > >   Then, install it using the command:
> > > >       mvn install:install-file -DgroupId=org.jencks-DartifactId=jencks \
> > > >           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> > > >
> > > >   Path to dependency:
> > > >         1)
> > > > org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > > >         2)
> > > > org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
> > > >         3) org.jencks:jencks:jar:1.3-SNAPSHOT
> > > >
> > > > ----------
> > > > 1 required artifact is missing.
> > > >
> > > > for artifact:
> > > >   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > > >
> > > > from the specified remote repositories:
> > > >   central (http://repo1.maven.org/maven2),
> > > >   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
> > > >
> > > > 4) Downloaded Jencks from
> > > > <
> > > >
> > http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip
> > > > >
> > > >
> > > > 5) Ran the install command that was shown as part of step 3.
> > > >
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] BUILD SUCCESSFUL
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 1 second
> > > > [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> > > > [INFO] Final Memory: 2M/4M
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > 6) Got the following error on doing a mvn install, tests failure..
> > > >
> > > >
> > -------------------------------------------------------------------------------
> > > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > > >
> > > >
> > -------------------------------------------------------------------------------
> > > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> > > > sec <<< FAILURE!
> > > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > > > 1.625 sec  <<< ERROR!
> > > > 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/jencks/factory/WorkManagerFactoryBean
> > > > Caused by: java.lang.NoClassDefFoundError:
> > > > org/jencks/factory/WorkManagerFactoryBean
> > > >         at
> > > >
> > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > > SpringJBIContainer.java:173)
> > > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > > JBIContainer.java:501)
> > > >         at
> > > >
> > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > > SpringJBIContainer.java:55)
> > > >         at
> > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > > (AbstractAutowireCapableBeanFactory.java:908)
> > > >         at
> > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > > (AbstractAutowireCapableBeanFactory.java:875)
> > > >         at
> > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > > (AbstractAutowireCapableBeanFactory.java:396)
> > > >         at
> > > >
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > > AbstractBeanFactory.java:240)
> > > >
> > > > 7) Added the dependency in pom.xml
> > > >    <dependency>
> > > >          <groupId>org.jencks</groupId>
> > > >          <artifactId>jencks</artifactId>
> > > >          <version>1.3-SNAPSHOT</version>
> > > >          <scope>test</scope>
> > > >    </dependency>
> > > >
> > > > 8) Still getting the above test failure error..
> > > >
> > > > I am interested in getting the BAM component working and experimenting
> > > > with it..
> > > > But just can't get there..
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > >
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>

Re: Jencks error!

Posted by Guillaume Nodet <gn...@gmail.com>.
M2 use transitive dependencies, so if you use the pom i have uploaded,
the jencks will already be included (because servicemix-core includes it).
You should try it ;)

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>
> James/Guillaume,
>
> Thanks for your hlp.. I really appreciate it..
>
> But I can't seem to get it working..
> Looked in the pom.xml and also the pom.xmls in all the three archives
> associated with the jira.. Didn't find 'jencks' mentioned anywhere..
>
> Maybe, I am doing it wrong..
> Am i looking at the wrong places?
> Can someone kindly let me know the steps that are to be followed to
> try out the BAM component..
>
> Will try cleaning up my maven2 repo and try again..
>
>
> On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > I have attached a working pom to the JIRA.
> >
> > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > >
> > > Let me recap..
> > >
> > > 1) Downloaded the BAM sample from
> > > <https://issues.apache.org/activemq/browse/SM-534>
> > >
> > > 2) Did a mvn install
> > >
> > > 3) Got the error
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Failed to resolve artifact.
> > >
> > > Missing:
> > > ----------
> > > 1) org.jencks:jencks:jar:1.3-SNAPSHOT
> > >
> > >   Try downloading the file manually from the project website.
> > >
> > >   Then, install it using the command:
> > >       mvn install:install-file -DgroupId=org.jencks-DartifactId=jencks \
> > >           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> > >
> > >   Path to dependency:
> > >         1)
> > > org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > >         2)
> > > org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
> > >         3) org.jencks:jencks:jar:1.3-SNAPSHOT
> > >
> > > ----------
> > > 1 required artifact is missing.
> > >
> > > for artifact:
> > >   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> > >
> > > from the specified remote repositories:
> > >   central (http://repo1.maven.org/maven2),
> > >   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
> > >
> > > 4) Downloaded Jencks from
> > > <
> > >
> http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip
> > > >
> > >
> > > 5) Ran the install command that was shown as part of step 3.
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] BUILD SUCCESSFUL
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 1 second
> > > [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> > > [INFO] Final Memory: 2M/4M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > 6) Got the following error on doing a mvn install, tests failure..
> > >
> > >
> -------------------------------------------------------------------------------
> > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > >
> > >
> -------------------------------------------------------------------------------
> > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> > > sec <<< FAILURE!
> > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > > 1.625 sec  <<< ERROR!
> > > 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/jencks/factory/WorkManagerFactoryBean
> > > Caused by: java.lang.NoClassDefFoundError:
> > > org/jencks/factory/WorkManagerFactoryBean
> > >         at
> > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > SpringJBIContainer.java:173)
> > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > JBIContainer.java:501)
> > >         at
> > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > SpringJBIContainer.java:55)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > (AbstractAutowireCapableBeanFactory.java:908)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > (AbstractAutowireCapableBeanFactory.java:875)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > (AbstractAutowireCapableBeanFactory.java:396)
> > >         at
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > AbstractBeanFactory.java:240)
> > >
> > > 7) Added the dependency in pom.xml
> > >    <dependency>
> > >          <groupId>org.jencks</groupId>
> > >          <artifactId>jencks</artifactId>
> > >          <version>1.3-SNAPSHOT</version>
> > >          <scope>test</scope>
> > >    </dependency>
> > >
> > > 8) Still getting the above test failure error..
> > >
> > > I am interested in getting the BAM component working and experimenting
> > > with it..
> > > But just can't get there..
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>



-- 
Cheers,
Guillaume Nodet

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
James/Guillaume,

Thanks for your hlp.. I really appreciate it..

But I can't seem to get it working..
Looked in the pom.xml and also the pom.xmls in all the three archives
associated with the jira.. Didn't find 'jencks' mentioned anywhere..

Maybe, I am doing it wrong..
Am i looking at the wrong places?
Can someone kindly let me know the steps that are to be followed to
try out the BAM component..

Will try cleaning up my maven2 repo and try again..


On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> I have attached a working pom to the JIRA.
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> >
> > Let me recap..
> >
> > 1) Downloaded the BAM sample from
> > <https://issues.apache.org/activemq/browse/SM-534>
> >
> > 2) Did a mvn install
> >
> > 3) Got the error
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > ----------
> > 1) org.jencks:jencks:jar:1.3-SNAPSHOT
> >
> >   Try downloading the file manually from the project website.
> >
> >   Then, install it using the command:
> >       mvn install:install-file -DgroupId=org.jencks -DartifactId=jencks \
> >           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> >
> >   Path to dependency:
> >         1)
> > org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> >         2)
> > org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
> >         3) org.jencks:jencks:jar:1.3-SNAPSHOT
> >
> > ----------
> > 1 required artifact is missing.
> >
> > for artifact:
> >   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2),
> >   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
> >
> > 4) Downloaded Jencks from
> > <
> > http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip
> > >
> >
> > 5) Ran the install command that was shown as part of step 3.
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> > [INFO] Final Memory: 2M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > 6) Got the following error on doing a mvn install, tests failure..
> >
> > -------------------------------------------------------------------------------
> > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> >
> > -------------------------------------------------------------------------------
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> > sec <<< FAILURE!
> > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > 1.625 sec  <<< ERROR!
> > 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/jencks/factory/WorkManagerFactoryBean
> > Caused by: java.lang.NoClassDefFoundError:
> > org/jencks/factory/WorkManagerFactoryBean
> >         at
> > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > SpringJBIContainer.java:173)
> >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > JBIContainer.java:501)
> >         at
> > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > SpringJBIContainer.java:55)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > (AbstractAutowireCapableBeanFactory.java:908)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > (AbstractAutowireCapableBeanFactory.java:875)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > (AbstractAutowireCapableBeanFactory.java:396)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > AbstractBeanFactory.java:240)
> >
> > 7) Added the dependency in pom.xml
> >    <dependency>
> >          <groupId>org.jencks</groupId>
> >          <artifactId>jencks</artifactId>
> >          <version>1.3-SNAPSHOT</version>
> >          <scope>test</scope>
> >    </dependency>
> >
> > 8) Still getting the above test failure error..
> >
> > I am interested in getting the BAM component working and experimenting
> > with it..
> > But just can't get there..
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>

Re: Jencks error!

Posted by Guillaume Nodet <gn...@gmail.com>.
I have attached a working pom to the JIRA.

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>
> Let me recap..
>
> 1) Downloaded the BAM sample from
> <https://issues.apache.org/activemq/browse/SM-534>
>
> 2) Did a mvn install
>
> 3) Got the error
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.jencks:jencks:jar:1.3-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.jencks -DartifactId=jencks \
>           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1)
> org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
>         2)
> org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
>         3) org.jencks:jencks:jar:1.3-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
>
> 4) Downloaded Jencks from
> <
> http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip
> >
>
> 5) Ran the install command that was shown as part of step 3.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> 6) Got the following error on doing a mvn install, tests failure..
>
> -------------------------------------------------------------------------------
> Test set: org.apache.servicemix.bam.BAMSpringComponentTest
>
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> sec <<< FAILURE!
> test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> 1.625 sec  <<< ERROR!
> 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/jencks/factory/WorkManagerFactoryBean
> Caused by: java.lang.NoClassDefFoundError:
> org/jencks/factory/WorkManagerFactoryBean
>         at
> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> SpringJBIContainer.java:173)
>         at org.apache.servicemix.jbi.container.JBIContainer.init(
> JBIContainer.java:501)
>         at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> SpringJBIContainer.java:55)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> (AbstractAutowireCapableBeanFactory.java:908)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> (AbstractAutowireCapableBeanFactory.java:875)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> (AbstractAutowireCapableBeanFactory.java:396)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> AbstractBeanFactory.java:240)
>
> 7) Added the dependency in pom.xml
>    <dependency>
>          <groupId>org.jencks</groupId>
>          <artifactId>jencks</artifactId>
>          <version>1.3-SNAPSHOT</version>
>          <scope>test</scope>
>    </dependency>
>
> 8) Still getting the above test failure error..
>
> I am interested in getting the BAM component working and experimenting
> with it..
> But just can't get there..
>



-- 
Cheers,
Guillaume Nodet

Re: Jencks error!

Posted by James Strachan <ja...@gmail.com>.
On 8/24/06, James Strachan <ja...@gmail.com> wrote:
> I just tried it and it worked fine for me - but only after I made a
> minor change to the pom.xml. I had to add this
>
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
>
> to enable compilation.
>
> Note its a tad confusing which attachment is the latest one. I used
> the attachment number 2 servicemix-bam.zip on the JIRA which was added
> on the 13th Aug. I'm not sure why JIRA isn't sorting them in the order
> in which they were added :)
>
> Note that the pom.xml already had the jencks dependency added.

Sorry I take that back - I'd got my files mixed up for a second there
:). Yes I had to add jencks too.

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Jencks error!

Posted by James Strachan <ja...@gmail.com>.
I just tried it and it worked fine for me - but only after I made a
minor change to the pom.xml. I had to add this

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

to enable compilation.

Note its a tad confusing which attachment is the latest one. I used
the attachment number 2 servicemix-bam.zip on the JIRA which was added
on the 13th Aug. I'm not sure why JIRA isn't sorting them in the order
in which they were added :)

Note that the pom.xml already had the jencks dependency added.

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> Let me recap..
>
> 1) Downloaded the BAM sample from
> <https://issues.apache.org/activemq/browse/SM-534>
>
> 2) Did a mvn install
>
> 3) Got the error
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.jencks:jencks:jar:1.3-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.jencks -DartifactId=jencks \
>           -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
>         2) org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
>         3) org.jencks:jencks:jar:1.3-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>   org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)
>
> 4) Downloaded Jencks from
> <http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip>
>
> 5) Ran the install command that was shown as part of step 3.
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
> [INFO] Final Memory: 2M/4M
> [INFO] ------------------------------------------------------------------------
>
> 6) Got the following error on doing a mvn install, tests failure..
> -------------------------------------------------------------------------------
> Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
> sec <<< FAILURE!
> test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> 1.625 sec  <<< ERROR!
> 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/jencks/factory/WorkManagerFactoryBean
> Caused by: java.lang.NoClassDefFoundError:
> org/jencks/factory/WorkManagerFactoryBean
>         at org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(SpringJBIContainer.java:173)
>         at org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:501)
>         at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)
>
> 7) Added the dependency in pom.xml
>    <dependency>
>          <groupId>org.jencks</groupId>
>          <artifactId>jencks</artifactId>
>          <version>1.3-SNAPSHOT</version>
>          <scope>test</scope>
>    </dependency>
>
> 8) Still getting the above test failure error..
>
> I am interested in getting the BAM component working and experimenting
> with it..
> But just can't get there..
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
Let me recap..

1) Downloaded the BAM sample from
<https://issues.apache.org/activemq/browse/SM-534>

2) Did a mvn install

3) Got the error

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.jencks:jencks:jar:1.3-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.jencks -DartifactId=jencks \
          -Dversion=1.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT
        2) org.apache.servicemix:servicemix-core:jar:3.0-incubating-SNAPSHOT
        3) org.jencks:jencks:jar:1.3-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.apache.servicemix.bam:servicemix-bam:jbi-component:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)

4) Downloaded Jencks from
<http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT/jencks-1.3-20060817.163158-5.zip>

5) Ran the install command that was shown as part of step 3.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Aug 24 16:01:53 IST 2006
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

6) Got the following error on doing a mvn install, tests failure..
-------------------------------------------------------------------------------
Test set: org.apache.servicemix.bam.BAMSpringComponentTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.688
sec <<< FAILURE!
test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
1.625 sec  <<< ERROR!
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/jencks/factory/WorkManagerFactoryBean
Caused by: java.lang.NoClassDefFoundError:
org/jencks/factory/WorkManagerFactoryBean
	at org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(SpringJBIContainer.java:173)
	at org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:501)
	at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:908)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:875)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:240)

7) Added the dependency in pom.xml
   <dependency>
         <groupId>org.jencks</groupId>
         <artifactId>jencks</artifactId>
         <version>1.3-SNAPSHOT</version>
         <scope>test</scope>
   </dependency>

8) Still getting the above test failure error..

I am interested in getting the BAM component working and experimenting
with it..
But just can't get there..

Re: Jencks error!

Posted by Guillaume Nodet <gn...@gmail.com>.
Yes, exactly

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>
> Guess that means adding the following frag in the pom.xml that came
> with servicemix-bam
>
>     <dependency>
>           <groupId>org.jencks</groupId>
>           <artifactId>jencks</artifactId>
>           <version>1.3-SNAPSHOT</version>
>           <scope>test</scope>
>     </dependency>
>
> If thats the case.. I am still stuck..
> Or is it a pom file in someother location that I am supposed to modify?
>
> Please help..
> Am new to the mvn way of things..
>
>
>
> On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > Did you add the jencks dependency to the pom ?
> >
> > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > >
> > > Guillaume,
> > >
> > > I am still getting the same error..
> > >
> > > Any ideas..
> > >
> > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > > Downloaded jencks snapshot from
> > > > <
> http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT
> > > >
> > > > and did
> > > > mvn install:install-file -DgroupId=jencks
> > > >  -DartifactId=jencks -Dversion=1.3-SNAPSHOT
> > > > -Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip
> > > >
> > > > Can see the jenks jar in my m2 repo..
> > > > Did a grep on the jar and the class
> > > > org/jencks/factory/WorkManagerFactoryBean is available in it..
> > > >
> > > >
> > > >
> > > > On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > > > > I haven't tried it under maven.
> > > > > I guess there is some problems in the pom ...
> > > > > I think you have to add the jencks dependency in test scope.
> > > > >
> > > > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > > > >
> > > > > > I am trying out the BAM component from
> > > > > > <https://issues.apache.org/activemq/browse/SM-534>
> > > > > > uploaded by Soumadeep..
> > > > > >
> > > > > > I get the following error, though it works for Soumadeep..
> > > > > >
> > > > > >
> > > > > >
> > >
> -------------------------------------------------------------------------------
> > > > > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > > > > >
> > > > > >
> > >
> -------------------------------------------------------------------------------
> > > > > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > > 1.672
> > > > > > sec <<< FAILURE!
> > > > > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time
> > > elapsed:
> > > > > > 1.625 sec  <<< ERROR!
> > > > > > 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/jencks/factory/WorkManagerFactoryBean
> > > > > > Caused by: java.lang.NoClassDefFoundError:
> > > > > > org/jencks/factory/WorkManagerFactoryBean
> > > > > >         at
> > > > > >
> > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > > > > SpringJBIContainer.java:173)
> > > > > >         at org.apache.servicemix.jbi.container.JBIContainer.init
> (
> > > > > > JBIContainer.java:501)
> > > > > >         at
> > > > > >
> > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > > > > SpringJBIContainer.java:55)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > > > > (AbstractAutowireCapableBeanFactory.java:908)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > > > > (AbstractAutowireCapableBeanFactory.java:875)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > > > > (AbstractAutowireCapableBeanFactory.java:396)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > > > > AbstractBeanFactory.java:240)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > > > > > (DefaultSingletonBeanRegistry.java:132)
> > > > > >         at
> > > > > >
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > > > AbstractBeanFactory.java:237)
> > > > > >         at
> > > > > >
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > > > AbstractBeanFactory.java:153)
> > > > > >         at
> > > > > >
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> > > > > > (DefaultListableBeanFactory.java:254)
> > > > > >         at
> > > > > >
> > > org.springframework.context.support.AbstractApplicationContext.refresh
> (
> > > > > > AbstractApplicationContext.java:337)
> > > > > >         at
> > > org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > > > .<init>(ClassPathXmlApplicationContext.java:162)
> > > > > >         at
> > > org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > > > .<init>(ClassPathXmlApplicationContext.java:52)
> > > > > >         at
> > > > > >
> org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> > > > > > BAMSpringComponentTest.java:37)
> > > > > >         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(
> > > > > > NativeMethodAccessorImpl.java:39)
> > > > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > > > DelegatingMethodAccessorImpl.java:25)
> > > > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > >         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(
> > > > > > NativeMethodAccessorImpl.java:39)
> > > > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > > > DelegatingMethodAccessorImpl.java:25)
> > > > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > >         at
> > > > > >
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > > > > > SurefireBooter.java:225)
> > > > > >         at org.apache.maven.surefire.booter.SurefireBooter.main(
> > > > > > SurefireBooter.java:747)
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cheers,
> > > > > Guillaume Nodet
> > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>



-- 
Cheers,
Guillaume Nodet

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
Guess that means adding the following frag in the pom.xml that came
with servicemix-bam

    <dependency>
          <groupId>org.jencks</groupId>
          <artifactId>jencks</artifactId>
          <version>1.3-SNAPSHOT</version>
          <scope>test</scope>
    </dependency>

If thats the case.. I am still stuck..
Or is it a pom file in someother location that I am supposed to modify?

Please help..
Am new to the mvn way of things..



On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> Did you add the jencks dependency to the pom ?
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> >
> > Guillaume,
> >
> > I am still getting the same error..
> >
> > Any ideas..
> >
> > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > Downloaded jencks snapshot from
> > > <http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT
> > >
> > > and did
> > > mvn install:install-file -DgroupId=jencks
> > >  -DartifactId=jencks -Dversion=1.3-SNAPSHOT
> > > -Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip
> > >
> > > Can see the jenks jar in my m2 repo..
> > > Did a grep on the jar and the class
> > > org/jencks/factory/WorkManagerFactoryBean is available in it..
> > >
> > >
> > >
> > > On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > > > I haven't tried it under maven.
> > > > I guess there is some problems in the pom ...
> > > > I think you have to add the jencks dependency in test scope.
> > > >
> > > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > > >
> > > > > I am trying out the BAM component from
> > > > > <https://issues.apache.org/activemq/browse/SM-534>
> > > > > uploaded by Soumadeep..
> > > > >
> > > > > I get the following error, though it works for Soumadeep..
> > > > >
> > > > >
> > > > >
> > -------------------------------------------------------------------------------
> > > > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > > > >
> > > > >
> > -------------------------------------------------------------------------------
> > > > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 1.672
> > > > > sec <<< FAILURE!
> > > > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time
> > elapsed:
> > > > > 1.625 sec  <<< ERROR!
> > > > > 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/jencks/factory/WorkManagerFactoryBean
> > > > > Caused by: java.lang.NoClassDefFoundError:
> > > > > org/jencks/factory/WorkManagerFactoryBean
> > > > >         at
> > > > >
> > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > > > SpringJBIContainer.java:173)
> > > > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > > > JBIContainer.java:501)
> > > > >         at
> > > > >
> > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > > > SpringJBIContainer.java:55)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > > > (AbstractAutowireCapableBeanFactory.java:908)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > > > (AbstractAutowireCapableBeanFactory.java:875)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > > > (AbstractAutowireCapableBeanFactory.java:396)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > > > AbstractBeanFactory.java:240)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > > > > (DefaultSingletonBeanRegistry.java:132)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > > AbstractBeanFactory.java:237)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > > AbstractBeanFactory.java:153)
> > > > >         at
> > > > >
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> > > > > (DefaultListableBeanFactory.java:254)
> > > > >         at
> > > > >
> > org.springframework.context.support.AbstractApplicationContext.refresh(
> > > > > AbstractApplicationContext.java:337)
> > > > >         at
> > org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > > .<init>(ClassPathXmlApplicationContext.java:162)
> > > > >         at
> > org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > > .<init>(ClassPathXmlApplicationContext.java:52)
> > > > >         at
> > > > > org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> > > > > BAMSpringComponentTest.java:37)
> > > > >         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(
> > > > > NativeMethodAccessorImpl.java:39)
> > > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > > DelegatingMethodAccessorImpl.java:25)
> > > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > > >         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(
> > > > > NativeMethodAccessorImpl.java:39)
> > > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > > DelegatingMethodAccessorImpl.java:25)
> > > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > > >         at
> > > > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > > > > SurefireBooter.java:225)
> > > > >         at org.apache.maven.surefire.booter.SurefireBooter.main(
> > > > > SurefireBooter.java:747)
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Cheers,
> > > > Guillaume Nodet
> > > >
> > > >
> > >
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>

Re: Jencks error!

Posted by Soumadeep-Infravio <so...@infravio.com>.
oops I am getting the same errors too!!


----- Original Message ----- 
From: "Guillaume Nodet" <gn...@gmail.com>
To: <se...@geronimo.apache.org>
Sent: Thursday, August 24, 2006 3:11 PM
Subject: Re: Jencks error!


> Did you add the jencks dependency to the pom ?
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>>
>> Guillaume,
>>
>> I am still getting the same error..
>>
>> Any ideas..
>>
>> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>> > Downloaded jencks snapshot from
>> > <http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT
>> >
>> > and did
>> > mvn install:install-file -DgroupId=jencks
>> >  -DartifactId=jencks -Dversion=1.3-SNAPSHOT
>> > -Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip
>> >
>> > Can see the jenks jar in my m2 repo..
>> > Did a grep on the jar and the class
>> > org/jencks/factory/WorkManagerFactoryBean is available in it..
>> >
>> >
>> >
>> > On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
>> > > I haven't tried it under maven.
>> > > I guess there is some problems in the pom ...
>> > > I think you have to add the jencks dependency in test scope.
>> > >
>> > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>> > > >
>> > > > I am trying out the BAM component from
>> > > > <https://issues.apache.org/activemq/browse/SM-534>
>> > > > uploaded by Soumadeep..
>> > > >
>> > > > I get the following error, though it works for Soumadeep..
>> > > >
>> > > >
>> > > >
>> -------------------------------------------------------------------------------
>> > > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
>> > > >
>> > > >
>> -------------------------------------------------------------------------------
>> > > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 1.672
>> > > > sec <<< FAILURE!
>> > > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time
>> elapsed:
>> > > > 1.625 sec  <<< ERROR!
>> > > > 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/jencks/factory/WorkManagerFactoryBean
>> > > > Caused by: java.lang.NoClassDefFoundError:
>> > > > org/jencks/factory/WorkManagerFactoryBean
>> > > >         at
>> > > >
>> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
>> > > > SpringJBIContainer.java:173)
>> > > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
>> > > > JBIContainer.java:501)
>> > > >         at
>> > > >
>> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
>> > > > SpringJBIContainer.java:55)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
>> > > > (AbstractAutowireCapableBeanFactory.java:908)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
>> > > > (AbstractAutowireCapableBeanFactory.java:875)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
>> > > > (AbstractAutowireCapableBeanFactory.java:396)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
>> > > > AbstractBeanFactory.java:240)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
>> > > > (DefaultSingletonBeanRegistry.java:132)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
>> > > > AbstractBeanFactory.java:237)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
>> > > > AbstractBeanFactory.java:153)
>> > > >         at
>> > > >
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
>> > > > (DefaultListableBeanFactory.java:254)
>> > > >         at
>> > > >
>> org.springframework.context.support.AbstractApplicationContext.refresh(
>> > > > AbstractApplicationContext.java:337)
>> > > >         at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext
>> > > > .<init>(ClassPathXmlApplicationContext.java:162)
>> > > >         at
>> org.apache.xbean.spring.context.ClassPathXmlApplicationContext
>> > > > .<init>(ClassPathXmlApplicationContext.java:52)
>> > > >         at
>> > > > org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
>> > > > BAMSpringComponentTest.java:37)
>> > > >         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(
>> > > > NativeMethodAccessorImpl.java:39)
>> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > > > DelegatingMethodAccessorImpl.java:25)
>> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
>> > > >         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(
>> > > > NativeMethodAccessorImpl.java:39)
>> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > > > DelegatingMethodAccessorImpl.java:25)
>> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
>> > > >         at
>> > > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
>> > > > SurefireBooter.java:225)
>> > > >         at org.apache.maven.surefire.booter.SurefireBooter.main(
>> > > > SurefireBooter.java:747)
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Cheers,
>> > > Guillaume Nodet
>> > >
>> > >
>> >
>>
>
>
>
> -- 
> Cheers,
> Guillaume Nodet
> 



Re: Jencks error!

Posted by Guillaume Nodet <gn...@gmail.com>.
Did you add the jencks dependency to the pom ?

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>
> Guillaume,
>
> I am still getting the same error..
>
> Any ideas..
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > Downloaded jencks snapshot from
> > <http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT
> >
> > and did
> > mvn install:install-file -DgroupId=jencks
> >  -DartifactId=jencks -Dversion=1.3-SNAPSHOT
> > -Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip
> >
> > Can see the jenks jar in my m2 repo..
> > Did a grep on the jar and the class
> > org/jencks/factory/WorkManagerFactoryBean is available in it..
> >
> >
> >
> > On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > > I haven't tried it under maven.
> > > I guess there is some problems in the pom ...
> > > I think you have to add the jencks dependency in test scope.
> > >
> > > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > > >
> > > > I am trying out the BAM component from
> > > > <https://issues.apache.org/activemq/browse/SM-534>
> > > > uploaded by Soumadeep..
> > > >
> > > > I get the following error, though it works for Soumadeep..
> > > >
> > > >
> > > >
> -------------------------------------------------------------------------------
> > > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > > >
> > > >
> -------------------------------------------------------------------------------
> > > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 1.672
> > > > sec <<< FAILURE!
> > > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time
> elapsed:
> > > > 1.625 sec  <<< ERROR!
> > > > 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/jencks/factory/WorkManagerFactoryBean
> > > > Caused by: java.lang.NoClassDefFoundError:
> > > > org/jencks/factory/WorkManagerFactoryBean
> > > >         at
> > > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > > SpringJBIContainer.java:173)
> > > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > > JBIContainer.java:501)
> > > >         at
> > > >
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > > SpringJBIContainer.java:55)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > > (AbstractAutowireCapableBeanFactory.java:908)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > > (AbstractAutowireCapableBeanFactory.java:875)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > > (AbstractAutowireCapableBeanFactory.java:396)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > > AbstractBeanFactory.java:240)
> > > >         at
> > > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > > > (DefaultSingletonBeanRegistry.java:132)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > AbstractBeanFactory.java:237)
> > > >         at
> > > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > > AbstractBeanFactory.java:153)
> > > >         at
> > > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> > > > (DefaultListableBeanFactory.java:254)
> > > >         at
> > > >
> org.springframework.context.support.AbstractApplicationContext.refresh(
> > > > AbstractApplicationContext.java:337)
> > > >         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > .<init>(ClassPathXmlApplicationContext.java:162)
> > > >         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > > .<init>(ClassPathXmlApplicationContext.java:52)
> > > >         at
> > > > org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> > > > BAMSpringComponentTest.java:37)
> > > >         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(
> > > > NativeMethodAccessorImpl.java:39)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > DelegatingMethodAccessorImpl.java:25)
> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > >         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(
> > > > NativeMethodAccessorImpl.java:39)
> > > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > > DelegatingMethodAccessorImpl.java:25)
> > > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > > >         at
> > > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > > > SurefireBooter.java:225)
> > > >         at org.apache.maven.surefire.booter.SurefireBooter.main(
> > > > SurefireBooter.java:747)
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > >
> > >
> >
>



-- 
Cheers,
Guillaume Nodet

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
Guillaume,

I am still getting the same error..

Any ideas..

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> Downloaded jencks snapshot from
> <http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT>
> and did
> mvn install:install-file -DgroupId=jencks
>  -DartifactId=jencks -Dversion=1.3-SNAPSHOT
> -Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip
>
> Can see the jenks jar in my m2 repo..
> Did a grep on the jar and the class
> org/jencks/factory/WorkManagerFactoryBean is available in it..
>
>
>
> On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> > I haven't tried it under maven.
> > I guess there is some problems in the pom ...
> > I think you have to add the jencks dependency in test scope.
> >
> > On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> > >
> > > I am trying out the BAM component from
> > > <https://issues.apache.org/activemq/browse/SM-534>
> > > uploaded by Soumadeep..
> > >
> > > I get the following error, though it works for Soumadeep..
> > >
> > >
> > > -------------------------------------------------------------------------------
> > > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> > >
> > > -------------------------------------------------------------------------------
> > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.672
> > > sec <<< FAILURE!
> > > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > > 1.625 sec  <<< ERROR!
> > > 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/jencks/factory/WorkManagerFactoryBean
> > > Caused by: java.lang.NoClassDefFoundError:
> > > org/jencks/factory/WorkManagerFactoryBean
> > >         at
> > > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > > SpringJBIContainer.java:173)
> > >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > > JBIContainer.java:501)
> > >         at
> > > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > > SpringJBIContainer.java:55)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > > (AbstractAutowireCapableBeanFactory.java:908)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > > (AbstractAutowireCapableBeanFactory.java:875)
> > >         at
> > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > > (AbstractAutowireCapableBeanFactory.java:396)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > > AbstractBeanFactory.java:240)
> > >         at
> > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > > (DefaultSingletonBeanRegistry.java:132)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > AbstractBeanFactory.java:237)
> > >         at
> > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > > AbstractBeanFactory.java:153)
> > >         at
> > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> > > (DefaultListableBeanFactory.java:254)
> > >         at
> > > org.springframework.context.support.AbstractApplicationContext.refresh(
> > > AbstractApplicationContext.java:337)
> > >         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > .<init>(ClassPathXmlApplicationContext.java:162)
> > >         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > > .<init>(ClassPathXmlApplicationContext.java:52)
> > >         at
> > > org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> > > BAMSpringComponentTest.java:37)
> > >         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(
> > > NativeMethodAccessorImpl.java:39)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > >         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(
> > > NativeMethodAccessorImpl.java:39)
> > >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:585)
> > >         at
> > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > > SurefireBooter.java:225)
> > >         at org.apache.maven.surefire.booter.SurefireBooter.main(
> > > SurefireBooter.java:747)
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> >
> >
>

Re: Jencks error!

Posted by vikas kumar <pv...@gmail.com>.
Downloaded jencks snapshot from
<http://snapshots.repository.codehaus.org/org/jencks/jencks/1.3-SNAPSHOT>
and did
mvn install:install-file -DgroupId=jencks
 -DartifactId=jencks -Dversion=1.3-SNAPSHOT
-Dpackaging=jar -Dfile=jencks-1.3-20060817.163158-5.zip

Can see the jenks jar in my m2 repo..
Did a grep on the jar and the class
org/jencks/factory/WorkManagerFactoryBean is available in it..



On 8/24/06, Guillaume Nodet <gn...@gmail.com> wrote:
> I haven't tried it under maven.
> I guess there is some problems in the pom ...
> I think you have to add the jencks dependency in test scope.
>
> On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
> >
> > I am trying out the BAM component from
> > <https://issues.apache.org/activemq/browse/SM-534>
> > uploaded by Soumadeep..
> >
> > I get the following error, though it works for Soumadeep..
> >
> >
> > -------------------------------------------------------------------------------
> > Test set: org.apache.servicemix.bam.BAMSpringComponentTest
> >
> > -------------------------------------------------------------------------------
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.672
> > sec <<< FAILURE!
> > test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> > 1.625 sec  <<< ERROR!
> > 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/jencks/factory/WorkManagerFactoryBean
> > Caused by: java.lang.NoClassDefFoundError:
> > org/jencks/factory/WorkManagerFactoryBean
> >         at
> > org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> > SpringJBIContainer.java:173)
> >         at org.apache.servicemix.jbi.container.JBIContainer.init(
> > JBIContainer.java:501)
> >         at
> > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> > SpringJBIContainer.java:55)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> > (AbstractAutowireCapableBeanFactory.java:908)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> > (AbstractAutowireCapableBeanFactory.java:875)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> > (AbstractAutowireCapableBeanFactory.java:396)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > AbstractBeanFactory.java:240)
> >         at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> > (DefaultSingletonBeanRegistry.java:132)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > AbstractBeanFactory.java:237)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> > AbstractBeanFactory.java:153)
> >         at
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> > (DefaultListableBeanFactory.java:254)
> >         at
> > org.springframework.context.support.AbstractApplicationContext.refresh(
> > AbstractApplicationContext.java:337)
> >         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > .<init>(ClassPathXmlApplicationContext.java:162)
> >         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> > .<init>(ClassPathXmlApplicationContext.java:52)
> >         at
> > org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> > BAMSpringComponentTest.java:37)
> >         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(
> > NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         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(
> > NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > SurefireBooter.java:225)
> >         at org.apache.maven.surefire.booter.SurefireBooter.main(
> > SurefireBooter.java:747)
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>

Re: Jencks error!

Posted by Guillaume Nodet <gn...@gmail.com>.
I haven't tried it under maven.
I guess there is some problems in the pom ...
I think you have to add the jencks dependency in test scope.

On 8/24/06, vikas kumar <pv...@gmail.com> wrote:
>
> I am trying out the BAM component from
> <https://issues.apache.org/activemq/browse/SM-534>
> uploaded by Soumadeep..
>
> I get the following error, though it works for Soumadeep..
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.servicemix.bam.BAMSpringComponentTest
>
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.672
> sec <<< FAILURE!
> test(org.apache.servicemix.bam.BAMSpringComponentTest)  Time elapsed:
> 1.625 sec  <<< ERROR!
> 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/jencks/factory/WorkManagerFactoryBean
> Caused by: java.lang.NoClassDefFoundError:
> org/jencks/factory/WorkManagerFactoryBean
>         at
> org.apache.servicemix.jbi.container.SpringJBIContainer.createWorkManager(
> SpringJBIContainer.java:173)
>         at org.apache.servicemix.jbi.container.JBIContainer.init(
> JBIContainer.java:501)
>         at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(
> SpringJBIContainer.java:55)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> (AbstractAutowireCapableBeanFactory.java:908)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> (AbstractAutowireCapableBeanFactory.java:875)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> (AbstractAutowireCapableBeanFactory.java:396)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> AbstractBeanFactory.java:240)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> (DefaultSingletonBeanRegistry.java:132)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> AbstractBeanFactory.java:237)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> AbstractBeanFactory.java:153)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> (DefaultListableBeanFactory.java:254)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:337)
>         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> .<init>(ClassPathXmlApplicationContext.java:162)
>         at org.apache.xbean.spring.context.ClassPathXmlApplicationContext
> .<init>(ClassPathXmlApplicationContext.java:52)
>         at
> org.apache.servicemix.bam.BAMSpringComponentTest.createBeanFactory(
> BAMSpringComponentTest.java:37)
>         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(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:225)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:747)
>



-- 
Cheers,
Guillaume Nodet