Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8935759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:04:03+00:00 2026-06-15T10:04:03+00:00

I am new to Java and Spring Framework and using Spring roo in STS

  • 0

I am new to Java and Spring Framework and using Spring roo in STS 3.1.0.RELEASE and Tomcat 7.

Following is log.roo:

 // Spring Roo 1.2.2.RELEASE [rev 7d75659] log opened at 2012-11-30 20:15:11
project --topLevelPackage com.tue3 --projectName pizza --java 6 --packaging WAR
// Spring Roo 1.2.2.RELEASE [rev 7d75659] log closed at 2012-11-30 20:15:51
// Spring Roo 1.2.2.RELEASE [rev 7d75659] log opened at 2012-11-30 20:16:02
mongo setup --databaseName pizzadb
entity mongo --class ~.domain.Person --testAutomatically
field string --fieldName name --notNull
repository mongo --interface ~.repository.PersonRepository --entity ~.domain.Person
web mvc setup
web mvc scaffold --class ~.domain.PersonController
perform package
perform package
// Spring Roo 1.2.2.RELEASE [rev 7d75659] log closed at 2012-11-30 21:46:42

Iam getting following errors:

     perform package
[INFO] Scanning for projects...
The command 'mvn.bat -DskipTests=true package' did not complete successfully
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building pizza 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ pizza ---
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$2
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$1
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$3
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.Person
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.repository.PersonRepository
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[ERROR] can't determine annotations of missing type javax.persistence.Entity
when weaving type com.tue3.domain.PersonController
when weaving classes 
when weaving 
when batch building BuildConfig[null] #Files=10 AopXmls=#0
 [Xlint:cantFindType]
[WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.520s
[INFO] Finished at: Sat Dec 01 03:26:49 PKT 2012
[INFO] Final Memory: 6M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project pizza: Compiler errors :
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$2
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$1
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean$ApplicationConversionServiceFactoryBean_Roo_ConversionService$3
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\Person.java:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.Person
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\ApplicationConversionServiceFactoryBean.java:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.ApplicationConversionServiceFactoryBean
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\repository\PersonRepository.java:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.repository.PersonRepository
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] error at (no source information available)
[ERROR] D:\springy\roo\pizza\src\main\java\com\tue3\domain\PersonController.java:0::0 can't determine annotations of missing type javax.persistence.Entity
[ERROR] when weaving type com.tue3.domain.PersonController
[ERROR] when weaving classes
[ERROR] when weaving
[ERROR] when batch building BuildConfig[null] #Files=10 AopXmls=#0
[ERROR] [Xlint:cantFindType]
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Can some one guide me, what Iam doing wrong and how it can be rectified.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:04:04+00:00Added an answer on June 15, 2026 at 10:04 am

    https://jira.springsource.org/browse/SPR-6819

    It looks like the pom.xml doesn’t have the dependency for the javax.persistence.Entity package.

    <dependency>
    <groupId>javax.persistence</groupId>
    <artifactId>persistence-api</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
new to Laravel (coming from Java spring), while using Route::get('/', function() { return Hello
I have been using the new feature of Spring 3.1.1 the java based configuration.
I am writing Web app in java using Spring Web MVC framework. Somehow validation
I'm new to Spring MVC framework, having some trouble with basic URL mapping using
I try introduced new method to class in spring framework using AOP proxy. But
I really new in Java....i work some research in java using tool Tapestry framework...
I'm new to spring mvc, roo and hibernate. I'm using Oracle XE 10g database.
I am using Java EE with Spring framework. I have been setting up a
I am developing Web Application in Java using Spring Framework. On one page, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.