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 <[EMAIL PROTECTED]> wrote:
Did you add the jencks dependency to the pom ? On 8/24/06, vikas kumar <[EMAIL PROTECTED]> wrote: > > Guillaume, > > I am still getting the same error.. > > Any ideas.. > > On 8/24/06, vikas kumar <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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