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 7812445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:30:28+00:00 2026-06-02T04:30:28+00:00

I have the following Maven project estruture: Example -Persistence -GWTApp The persistence has the

  • 0

I have the following Maven project estruture:

Example
-Persistence
-GWTApp

The persistence has the persistence.xml in src/main/resources/META-INF, and it works fine in unitary tests.

I need to use it in the GWTApp project. So, I add it as depency. like this:

<dependency>
    <groupId>com.example</groupId>
    <artifactId>Persistence</artifactId>
    <version>0.0.1</version>
</dependency>

With this, I can see and use the persistence classes in my webapp, but, when I run the webproject in eclipse, I got this error:

javax.persistence.PersistenceException: No Persistence provider for EntityManager named exemplo

I think that’s because eclipse done this “link” between projects referencing the persistence project in webapp project, instead of using a jar file. Maybe I’m wrong, it’s just a guess.

Someone knew how can I fix this?
Thanks in advance.

EDIT

I do more tests, and now I believe thats problem is something just with GWT dev mode and JPA, or something.
I tried to manually copy persistence.xml to weapp/META-INF and to target/project-webapp-0.0.1-SNAPSHOT/META-INF and the error persist.

Any idea?

  • 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-02T04:30:30+00:00Added an answer on June 2, 2026 at 4:30 am

    Are you launching the app correctly? https://developers.google.com/eclipse/docs/faq#gwt_with_maven

    Particularly, note that you have to “mvn war:exploded” to copy your dependencies target/myapp-0.0.1-SNAPSHOT/WEB-INF/lib

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have the following directory layout in a Maven project: src/ |-- main
I have a maven project with the following packages (for illustration only): Root: src/main/java
In my Maven project, I have the following code in the main method: FileInputStream
I have a single maven project that has multiple main classes. I want to
I have a Maven project that looks like the following: - enterprise-pom - commons
I have integrated in Hudson a maven 3 project calling following sequence: clean tomcat:redeploy
I have following situation: I have a Maven war project in NetBeans 6.7 I
I have a java/maven project that uses tango icons, so I'm using the following
I'm new to Maven. I have a multi-module maven 2 project that has the
I have a maven project with the following POM snippet: <modelVersion>4.0.0</modelVersion> <artifactId>Foo-Deploy</artifactId> <name>Foo-Deploy</name> <packaging>pom</packaging>

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.