maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From balu001 <jaish...@gmail.com>
Subject Exception while testing with maven
Date Tue, 14 Jul 2009 12:13:23 GMT

   Hello,

      I am using maven to build a multimodule webapplication project.

      For that i am moduling the totla project as four part.

     First the core classes,compiling them and building it as a jar file.

    LIKE
   
   In the pom file by saying like this
 
     <modelVersion>4.0.0</modelVersion>
  <groupId>org.scivas.books</groupId>
  <artifactId>PROJCORE</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name> core</name>
  <url>http://maven.apache.org</url>


   After compiling it builds the jar successfully in the repostory.

After that i am using the same jar by including the dependency  for the test
module to run test.


   <dependency>
      <groupId>org.scivas.books</groupId>
      <artifactId>PROJCORE</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>

 Even though i am adding this dependency,the class files are not available
when testing is done.

 while the spring application context file is trying to build one bean for a
specific class,it resluts an exception like 


  "
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.transaction.config.internalTransactionAdvisor': Cannot
create inner bean '(inner bean)' of type
[org.springframework.transaction.interceptor.TransactionInterceptor] 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 file
[configPath\applicationContext.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 file
[configPath\applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.IllegalStateException: "


Is the issue arising due to the failure in adding the dependency for the jar
file?

Thanks in advance


  
 
-- 
View this message in context: http://www.nabble.com/Exception-while-testing-with-maven-tp24478265p24478265.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message