Bonjour,

J'ai un comportement bizarre qui se produit quand je lance ma servlet sur mon serveur glassfish( j'utilise JPA). Je démarre éclipse, je start mon serveur et je lance ma servlet j'ai une erreur 404. Ensuite je fais une modification dans mon fichier persistence.xml ( peu importe la modification que je fais), puis je relance ma servlet et la tout se passe bien. j'ai testé plusieurs fois, j'ai le même comportement, quelqu'un sait pourquoi un tel comportement?

fichier persistance.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.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_2_0.xsd">
 
 <persistence-unit name="ma_bdd_PU" transaction-type="JTA">
    <jta-data-source>jdbc/bonecp_resource</jta-data-source>
    <class>product.entities.Utilisateur</class>	
    	<properties>
            <property name="eclipselink.logging.level.sql" value="FINE"/>
            <property name="eclipselink.logging.parameters" value="true"/>
        </properties>		
</persistence-unit>
 
</persistence>