HIi, Thank you very much for responding to my query! I'm convinced that bug exists, but I'm not able to follow one thing,
I have around 10 jar which i'm locally creating installing to the local repository! But Only one jar is creating a problem to me! so my question is does this problem exists for any specific jar file name r jar contents (though it may not sound logical)? All the users with windows XP would have have a "space" in the directory name leading to their local repository! is the a fix or work around Maven offers?
Maybe try to move your repo to some location without spaces?
is there a way I could configure my local repository to a different folder then the default folder structure? can you throw some light on how could i do it? Thanks and Regards, Ravi On 1/9/07, berndq <[EMAIL PROTECTED]> wrote:
Hi, maybe related to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4466485 Path to your maven repo (and therefore to your jar) has spaces included, this might brake some things. Maybe try to move your repo to some location without spaces? Bernd > Hey, > Im finding a stange problem with maven when running the junits > > I get the following exception, on googling found a bug already reported > > http://issues.apache.org/jira/browse/TUSCANY-574?page=all > > Is there a work around for this problem? > to make the things bad, this happens only for one the artifact! > > Im on windows XP, Java(TM) 2 Runtime Environment, Standard Edition (build > 1.5.0_09-b03) > > Any points would be appreciated! > > Thanks, > Ravi > > > testHARI(com.dpwn.newops.server.adapter.tms.impl.TmsAdapterImplTest ) Time > elapsed: 0.172 sec <<< ERROR! > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name ' > org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor ': > > Cannot create inner bean '(inner bean)' while setting bean property > 'transactionInterceptor'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name '(inner bean)': Cannot resolve reference to bean > 'transactionManager' while setting bean property 'transactionManager'; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'transactionManager' defined in class path > resource [config/spring/applicationContextPersistenceOracle.xml]: Cannot > resolve reference to bean 'entityManagerFactory' while setting bean > property > 'entityManagerFactory'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'entityManagerFactory' defined in class path resource > [config/spring/applicationContextPersistenceOracle.xml]: Invocation of init > method failed; nested exception is java.lang.RuntimeException: error trying > to scan <jar-file>: file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name '(inner bean)': Cannot resolve reference to bean > 'transactionManager' while setting bean property 'transactionManager'; > nested exception is > org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'transactionManager' defined in class path > resource [config/spring/applicationContextPersistenceOracle.xml]: Cannot > resolve reference to bean 'entityManagerFactory' while setting bean > property > 'entityManagerFactory'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'entityManagerFactory' defined in class path resource > [config/spring/applicationContextPersistenceOracle.xml]: Invocation of init > method failed; nested exception is java.lang.RuntimeException: error trying > to scan <jar-file>: file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'transactionManager' defined in class path resource > [config/spring/applicationContextPersistenceOracle.xml]: Cannot resolve > reference to bean 'entityManagerFactory' while setting bean property > 'entityManagerFactory'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'entityManagerFactory' defined in class path resource > [config/spring/applicationContextPersistenceOracle.xml]: Invocation of init > method failed; nested exception is java.lang.RuntimeException: error trying > to scan <jar-file>: file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'entityManagerFactory' defined in class path > resource [config/spring/applicationContextPersistenceOracle.xml]: > Invocation > of init method failed; nested exception is java.lang.RuntimeException: > error > trying to scan <jar-file>: file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: > file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > at org.hibernate.ejb.Ejb3Configuration.scanForClasses( > Ejb3Configuration.java:597) > at org.hibernate.ejb.Ejb3Configuration.configure( Ejb3Configuration.java > :341) > at > org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory ( > HibernatePersistence.java:126) > at > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory > > (LocalContainerEntityManagerFactoryBean.java:199) > at > org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet > > (AbstractEntityManagerFactoryBean.java:237) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods > > (AbstractAutowireCapableBeanFactory.java:1062) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean > > (AbstractAutowireCapableBeanFactory.java:1029) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > (AbstractAutowireCapableBeanFactory.java:420) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > AbstractBeanFactory.java:245) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > > (DefaultSingletonBeanRegistry.java:141) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:242) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:156) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference > > (BeanDefinitionValueResolver.java:246) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary > > (BeanDefinitionValueResolver.java:128) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues > > (AbstractAutowireCapableBeanFactory.java:955) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean > > (AbstractAutowireCapableBeanFactory.java:729) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > (AbstractAutowireCapableBeanFactory.java:416) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > AbstractBeanFactory.java:245) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > > (DefaultSingletonBeanRegistry.java:141) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:242) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:156) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference > > (BeanDefinitionValueResolver.java:246) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary > > (BeanDefinitionValueResolver.java:128) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues > > (AbstractAutowireCapableBeanFactory.java:955) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean > > (AbstractAutowireCapableBeanFactory.java:729) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > (AbstractAutowireCapableBeanFactory.java:416) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition > > (BeanDefinitionValueResolver.java:198) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary > > (BeanDefinitionValueResolver.java:116) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues > > (AbstractAutowireCapableBeanFactory.java:955) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean > > (AbstractAutowireCapableBeanFactory.java:729) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > (AbstractAutowireCapableBeanFactory.java:416) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > AbstractBeanFactory.java:245) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > > (DefaultSingletonBeanRegistry.java:141) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:242) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:156) > at > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors > > (AbstractAdvisorAutoProxyCreator.java:102) > at > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors > > (AbstractAdvisorAutoProxyCreator.java:68) > at > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean > > (AbstractAdvisorAutoProxyCreator.java:54) > at > org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization > > (AbstractAutoProxyCreator.java:247) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization > > (AbstractAutowireCapableBeanFactory.java:311) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean > > (AbstractAutowireCapableBeanFactory.java:1038) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > (AbstractAutowireCapableBeanFactory.java:420) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > AbstractBeanFactory.java:245) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > > (DefaultSingletonBeanRegistry.java:141) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:242) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean > (AbstractBeanFactory.java:156) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons > > (DefaultListableBeanFactory.java:290) > at > org.springframework.context.support.AbstractApplicationContext.refresh( > AbstractApplicationContext.java:348) > at org.springframework.context.support.ClassPathXmlApplicationContext > .<init>(ClassPathXmlApplicationContext.java:92) > at org.springframework.context.support.ClassPathXmlApplicationContext > .<init>(ClassPathXmlApplicationContext.java:77) > at > org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations > > (AbstractSingleSpringContextTests.java:138) > at org.springframework.test.AbstractSingleSpringContextTests.loadContext > (AbstractSingleSpringContextTests.java:125) > at org.springframework.test.AbstractSpringContextTests.getContext( > AbstractSpringContextTests.java:104) > at org.springframework.test.AbstractSingleSpringContextTests.setUp( > AbstractSingleSpringContextTests.java:75) > at junit.framework.TestCase.runBare(TestCase.java:128) > at org.springframework.test.ConditionalTestCase.runBare( > ConditionalTestCase.java:69) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:120) > at junit.framework.TestSuite.runTest(TestSuite.java:228) > at junit.framework.TestSuite.run(TestSuite.java:223) > 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) > Caused by: java.lang.RuntimeException: Not a valid URL: file:/C:/Documents > and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > at org.jboss.util.file.ArchiveBrowser.getBrowser(Unknown Source) > at org.hibernate.ejb.Ejb3Configuration.scanForClasses( > Ejb3Configuration.java:588) > ... 75 more > Caused by: java.net.URISyntaxException: Illegal character in path at index > 18: file:/C:/Documents and > Settings/rnallakukkala/.m2/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model- > > 1.0-SNAPSHOT.jar > at java.net.URI$Parser.fail(URI.java:2816) > at java.net.URI$Parser.checkChars(URI.java:2989) > at java.net.URI$Parser.parseHierarchical(URI.java:3073) > at java.net.URI$Parser.parse(URI.java:3021) > at java.net.URI.<init>(URI.java:578) > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
