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

  • SEARCH
  • Home
  • 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 4117208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:48:21+00:00 2026-05-20T22:48:21+00:00

While i does manage to connect to my database through the Services netbeans tab,

  • 0

While i does manage to connect to my database through the “Services” netbeans tab, my application persistent unit seems to not be working… It just seems to go in an endless “Wait some more, maybe we’ll connect you later…” cycle.

Question 1: Why isn’t it working?

Question 2 (if no reasons for 1): How can i produce a small work-around?


Here is my persistent unit statement:

entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(resourceMap.getString("entityManager.persistenceUnit")).createEntityManager();

The resourceMap.getString("entityManager.persistenceUnit")just allow me to access the property field which define my persistence unit.

Here is my persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="analyses_2PU" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <class>analysesmanager.Produits</class>
    <class>analysesmanager.Lots</class>
    <class>analysesmanager.SpecProduits</class>
    <class>analysesmanager.Parametres</class>
    <class>analysesmanager.Clients</class>
    <class>analysesmanager.Resultats</class>
    <class>analysesmanager.Analyses</class>
    <properties>
      <property name="toplink.jdbc.user" value="XXXXX"/>
      <property name="toplink.jdbc.password" value="XXX"/>
      <property name="toplink.jdbc.url" value="jdbc:mysql://172.17.22.15:3306/soliance_analyses"/>
      <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
    </properties>
  </persistence-unit>
</persistence>

While this doesn’t work with my distant mysql server, it works on my local server using a local copy of the database…

The only difference is between those 2 lines…

<property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/soliance_analyses"/>

<property name="toplink.jdbc.url" value="jdbc:mysql://172.17.22.15:3306/soliance_analyses"/>

By the way, running my local version, directly on the remote server does work… It seems to be an issue with either the network (which would not be solvable), either the persistence.xml used for remote connection.

  • 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-05-20T22:48:22+00:00Added an answer on May 20, 2026 at 10:48 pm

    Small work-around:

    I have put my project local version on the remote server, and i now run it locally on the remote server, through a .bat .

    Here is the ROFLMAO_it_works.bat

    net use X: \\remote_server_ip\project_jar_path
    X:
    java -jar X:\project.jar
    

    It works. Not the way i wanted at the very beginning, but it works.

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

Sidebar

Related Questions

Keeping the GUI responsive while the application does some CPU-heavy processing is one of
While working on a vb.net application, in which exceptions were handled poorly. It was
I know I must be missing something, but in a while statement how does
While the C# spec does include a pre-processor and basic directives (#define, #if, etc),
How does PHP handle client connection while doing sleeps? Or put another way ...
What does Java do with long variables while performing addition? Wrong version 1: Vector
Does anyone knows how to detect printable characters in java? After a while (
How does one go about converting an image to black and white in PHP?
How do I suspend a whole process (like the Process Explorer does when I
Does anyone have experience with LLVM , llvm-gcc , or Clang ? The whole

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.