I have two enetity beans and I sometimes get an error
"IllegalArgumentException : [EMAIL PROTECTED] Entity bean  not found".
Sometimes it works if I do a clean install from the command line.
My persistence.xml file is located in src/main/resource/META-INF , so the
classpath should not be an issue.
I always have problem with the AnswerBean but not the other one.
Does anyone has any idea why ?
Thanks



Here is a copy of my persistence file:


<?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="UserService">
        
<provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
                <class> 
edu.unl.cci.interactiveeducation.server.bean.UserBean</class>

                <exclude-unlisted-classes>false</exclude-unlisted-classes>
                <properties>
                        <property name="toplink.jdbc.url"
                                
value="jdbc:mysql://localhost:3306/InteractiveEducationServer" />
                        <property name="toplink.jdbc.user" value="root" />
                        <property name="toplink.jdbc.driver" 
value="com.mysql.jdbc.Driver" />
                        <property name="toplink.jdbc.password" value="root" />
                        <property name="toplink.ddl-generation" 
value="create-tables" />
                </properties>
        </persistence-unit>
        <persistence-unit name="AnswerService">
        
<provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
                <class> 
edu.unl.cci.interactiveeducation.server.bean.AnswerBean</class>

                <exclude-unlisted-classes>false</exclude-unlisted-classes>
                <properties>
                        <property name="toplink.jdbc.url"
                                
value="jdbc:mysql://localhost:3306/InteractiveEducationServer" />
                        <property name="toplink.jdbc.user" value="root" />
                        <property name="toplink.jdbc.driver" 
value="com.mysql.jdbc.Driver" />
                        <property name="toplink.jdbc.password" value="root" />
                        <property name="toplink.ddl-generation" 
value="create-tables" />
                </properties>
        </persistence-unit>
        
        
</persistence>
-- 
View this message in context: 
http://www.nabble.com/problem-with-entity-bean-tp20016822p20016822.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to