[SLOVED] Problem with Exim 4.80.1+Mysql

Hello!
I have problem, when I build exim 4.80.1 with MYSQL I have error:
make[2]: Entering directory `/var/abs/community/exim/src/exim-4.80.1/build-Linux-x86_64/lookups'
gcc mysql.c
mysql.c:15:49: fatal error: mysql.h: No such file or directory
#include <mysql.h> /* The system header */
^
compilation terminated.
make[2]: *** [mysql.o] Error 1
make[2]: Leaving directory `/var/abs/community/exim/src/exim-4.80.1/build-Linux-x86_64/lookups'
make[1]: *** [buildlookups] Error 2
make[1]: Leaving directory `/var/abs/community/exim/src/exim-4.80.1/build-Linux-x86_64'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I uncommented in exim.makefile: LOOKUP_MYSQL=yes
mariaDB installed.
how to solve the problem?
Thanks.
Last edited by Bueno (2013-08-14 06:42:55)

ok, I created symlinks for this files:
ln -s /usr/include/mysql/mysql.h /usr/include/mysql.h
ln -s /usr/include/mysql/mysql_version.h /usr/include/mysql_version.h
ln -s /usr/include/mysql/mysql_com.h /usr/include/mysql_com.h
ln -s /usr/include/mysql/mysql_time.h /usr/include/mysql_time.h
ln -s /usr/include/mysql/my_list.h /usr/include/my_list.h
ln -s /usr/include/mysql/typelib.h /usr/include/typelib.h
ln -s /usr/include/mysql/my_alloc.h /usr/include/my_alloc.h
But gives second error:
lookups/lookups.a(mysql.o): In function `mysql_version_report':
mysql.c:(.text+0xb): undefined reference to `mysql_get_client_info'
lookups/lookups.a(mysql.o): In function `mysql_tidy':
mysql.c:(.text+0x176): undefined reference to `mysql_close'
lookups/lookups.a(mysql.o): In function `perform_mysql_search':
mysql.c:(.text+0x3cb): undefined reference to `mysql_init'
mysql.c:(.text+0x3f5): undefined reference to `mysql_real_connect'
mysql.c:(.text+0x404): undefined reference to `mysql_error'
mysql.c:(.text+0x491): undefined reference to `mysql_query'
mysql.c:(.text+0x49f): undefined reference to `mysql_error'
mysql.c:(.text+0x4d8): undefined reference to `mysql_use_result'
mysql.c:(.text+0x4f0): undefined reference to `mysql_field_count'
mysql.c:(.text+0x511): undefined reference to `mysql_affected_rows'
mysql.c:(.text+0x540): undefined reference to `mysql_error'
mysql.c:(.text+0x57c): undefined reference to `mysql_num_fields'
mysql.c:(.text+0x58b): undefined reference to `mysql_fetch_fields'
mysql.c:(.text+0x5a2): undefined reference to `mysql_fetch_lengths'
mysql.c:(.text+0x640): undefined reference to `mysql_fetch_row'
mysql.c:(.text+0x674): undefined reference to `mysql_error'
mysql.c:(.text+0x6a2): undefined reference to `mysql_next_result'
mysql.c:(.text+0x72b): undefined reference to `mysql_free_result'
collect2: error: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/var/abs/community/exim/src/exim-4.80.1/build-Linux-x86_64'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Please help ...

Similar Messages

  • Beginner Has Problem With Loading JDBC Driver Using MySQL

    Hi, I am having problem with loading JDBC driver, and need your diagnotic help.
    1. I have installed MySQL (C:\mysql), created a databse (soup), and created a littel table (VIDEOS). I am able to see the table in the console:
    sql> select * from videos
    2. I have downloaded the latest version of Connector/J (mysql-connector-java-3.1.0-alpha.zip), and unzip the zip file into my C:\ directory.
    3. I copied the mysql-connector-java-3.1.0-alpha-bin.jar to the C:\j2sdk1.4.1_02\jre\lib\ext folder and it is in my CLASSPATH
    4. MySQL server is running
    C:\> C:\mysql\bin\mysqld-nt --standalone
    5. open another DOS window and use the database
    mysql>USE SOUP
    6. succesfully compiled a Java program (javac Test.java):
    import java.sql.* ;
    public class Test
    public static void main( String[] args )
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    try
    Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/soup" );
    try
    Statement statement = con.createStatement();
    ResultSet rs = statement.executeQuery("SELECT TITLE FROM VIDEOS");
    while ( rs.next() )
    System.out.println( rs.getString( "TITLE" ) );
    rs.close();
    statement.close();
    catch ( SQLException e )
    System.out.println( "JDBC error: " + e );
    finally
    con.close();
    catch( SQLException e )
    System.out.println( "could not get JDBC connection: " + e );
    catch( Exception e )
    System.out.println( "could not load JDBC driver: " + e );
    7. when I run the Java program (java Test), I got
    the message:
    could not load JDBC driver: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    What am I missing?

    Hi,
    I missed to specify test in my last post.
    Try running your program by explicitly setting the classspath when
    running your program . java -classpath c:\mysql-connector-java-3.1.0-alpha-bin.jar test
    Make sure your jar file contains org.gjt.mm.mysql.Driver class

  • Problems with adding Library for a MySQL JDBC driver

    Good day,
    I am new with the JDeveloper package, so the following could be a user fault.
    I found the following:
    - I downloaded and installed Oracle JDeveloper 10.1.2.1.10 (latest version).
    - I downloaded the latest JDBC drivers for MySQL. ( mysql-connector-java-3.1.10 )
    Now, I did the following steps extracted from the link http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html it should be quite easy to add the JDBC Drivers to the project.
    I did the steps with the following results:
    When I Edit the Project properties, follow Profiles -> Development -> Libraries
    When I do ' New' , fill in at JS2E the value 'MySQL' and fill in the Class Path (in my case 'C:\javaInstalls\mysql-connector-java-3.1.10\mysql-connector-java-3.1.10-bin.jar').
    In that case the [OK] is disabled. I should expect the [OK] button was enabled!
    My question: Is this a bug? When not, what am I doing wrong!
    Regards,
    Mike

    I tried it on an other system and had no problems with adding the libraries. It still is a problem on that particular system using the Dutch version of XP. The problem is that the Ok button stays disabled !
    Could it bw a version problem with Java? How ever no changes are made to the original configuration, so it should pick up as default the java version of JDeveloper self.

  • Problems with UD Connect to a MySQL database

    Hi SAP BI experts,
    I am trying to extract data from a table in a mysql Database to SAP BI 7 using UD Connect. I have followed the instructions at http://www.bi-expertonline.com/downloads/Schroeder0604.doc . However, I get an error as soon as I try to create a UD Connect Data Source to an InfoSource using "Create BW DataSource with UDConnect" from the Extras menu. I can set up the RFC destination as well as the UD connect source. Regarding the UD Connect source object I get an error message "RSSDK|100|Connection could not be established". I already checked if my settings in the connector container service of the Visual Administrator are correct. They are. I have tried to access the data using a simple java programme and it worked fine. My configuration properties are:
    DriverName       com.mysql.jdbc.driver
    Password         xxxxxxxxxx
    URL                 jdbc:mysql://brainsapgw:3306/bi_test
    UserName        sap
    Does anyone have some hints for me what could have gone wrong with it? As far as I can see, the properties should be fine as they work with a normal java programme.
    Thanks in advance
    Martin

    Hi SAP experts,
    it's now working. The problem was that I provided "com.mysql.jdbc.driver" as Driver Name instead of "com.mysql.jdbc.Driver".
    Cheers
    Martin

  • Problem with a j2se program and mysql driver

    Hi,
    We are developing an application which needs accessing to a mysql database. I have packed the application in a .jar. and inside the jar I have created a folder lib. And inside that folder I have put mysql driver.
    As the same way, I have been reading in SDN forum, I have edited manifiest file and I have writen this:
    Manifest-Version: 1.0
    Sealed: true
    Class-Path: lib/mysql-connector-java-5.0.4-bin.jar
    Main-Class: package1.Main
    When I introduce this command java -jar program1.jar, the jvm says this:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    I know when I use java -jar, classpath system variable doesn't mind. But even this variable is set up properly. If you could help me it would be great. I'm getting stuck with this.
    Thanks in advance.

    @CiMaBuE wrote:
    Hi,
    We are developing an application which needs accessing to a mysql database. I have packed the application in a .jar. and inside the jar I have created a folder lib. And inside that folder I have put mysql driver.That's the problem. JARs don't look inside themselves for 3rd party JARs. That /lib directory needs to be relative to the program1.jar that you created.
    I believe modules or OSGi are supposed to address this, but executable JARs do not today.
    %

  • Problem with Blob key legnth in MySQL & JBoss

    Hi,
    I am using MySQL 3.23.55, JBOSS 3.0.6, EJB 2.0, CMP 2.0
    I have configured the database, the tables are created but it stops at one place.In the type mappings-mappings , i have the following in the standardjbosscmp-jdbc.xml
    java-type jdbc-type sql-type
    java.lang.Object Blob LongBlob
    I get the following error while creating one of the fields at the time of deployment.
    org.jboss.deployment.DeploymentException: Error while creating table; - nested throwable: (java.sql.SQLException: General error, message from server: "BLOB column 'start_ip' used in key specification without a key length")
    I have searched on the net and came up with the following,
    it seems that we need to specify the column legnth in the create table statement. I would have to use the following
    CREATE INDEX part_of_name ON customer (name(10))
    if i was directly working on the database @ command line.
    But i am using CMP, so how do i fix this ?
    Any help is appreciated
    Regards
    Meka Toka

    That is what i said in my post
    I have searched on the net and came up with the following,
    it seems that we need to specify the column legnth in the create table statement. I would have to use the following
    CREATE INDEX part_of_name ON customer (name(10))
    if i was directly working on the database @ command line.
    My question now is
    how do i do this in CMP
    Regards
    Meka Toka

  • Problem with storing and retriving a different langauge font in mysql

    hi,
    i have problem with storing and retriving a different character set in
    mysql database ( for example storing kannada font text in database)
    it simply store what ever typed in JTextField in database in the
    formate ??????????? and it showing ???????? .
    please what can i do this problem.
    thanks
    daya

    MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
    1. make sure you know what character set is used for the database table.
    2. make sure you know what character set is used by Java (default to UTF-8 ..
    sort off - there are few character that it cannot save). You can enforce the
    character set being sent to the database by the String's getBytes(String charsetName) method.
    3. make sure the application you use to view the table use the correct character set
    if it use a different character set, then any character that it does not recogized
    will be replaced with a quetion mark '?'....eventhough the data is correct.

  • Problem with BigInteger and MySql

    Hi !!
    I've a problem with BigInteger and MySql.
    I've a BigInteger object (suppose that value is 0.02270412445068359375).
    I must store that value in a database (MySql).
    The value of BigInteger object must be stored in a column of type Decimal.
    Stored value is 0.022704124450683594. Why ??
    My target is to store 0.02270412445068359375
    Can anyone help me?
    Thanks.

    Hi !!
    I've a problem with BigInteger and MySql.
    I've a BigInteger object (suppose that value is
    0.02270412445068359375).
    I must store that value in a database (MySql).
    The value of BigInteger object must be stored in a
    column of type Decimal.if this is the case I fear you are SOL. a decimal is the same size as a double but with a fixed max number of decimal places. if it isn't big enough then you have no real choice other than to VARCHAR it.
    Stored value is 0.022704124450683594. Why ??
    My target is to store 0.02270412445068359375
    Can anyone help me?
    Thanks.

  • MySQL problem with 1and1 hosting

    I have just discovered this group.  I posted a similar post in the Dreamweaver area, but it probably needs to
    be here.
    I was asked to add database functionality to a website hosted by 1and1.  I just started to use DW CS5
    recently and when I tried to connect the MySQL db using Dreamweaver, I got the 404 file not found error
    message.  It has been a while since I have worked with PHP and MySQL, but I have used MySQL many times in the
    past using DW CS4 and using 1and1, so I know that it used to be possible.
    Here is what I have done so far:
    Tried to connect using DS CS5.  Tried to connect using DW CS4.  I contacted 1and1 and they told me that they
    no longer allow MySQL to connect using Dreamweaver.  However, they sell DWCS4 software to be used with their
    higher end hosting packages (which I am using).
    Here are my questions:
    1) Is this a known problem with 1and1?  If so, is the DW that they sell altered to get around this?
    2) Is this how other hosting companies are going, or is this only true of 1and1?

    RobertBoy wrote:
    Tried to connect using DS CS5.  Tried to connect using DW CS4.  I contacted 1and1 and they told me that they
    no longer allow MySQL to connect using Dreamweaver.
    This means that they disabled remote access to their MySQL server for security reasons, meaning that you´ll have to...
    1. set up a local testing server (eg. MAMP, XAMPP) and develop/test your work locally
    2. upload the finalized files to the remote server and run them from there.
    If so, is the DW that they sell altered to get around this?
    Unlikely, because the product EULA declares a "No Modification" restriction.
    Is this how other hosting companies are going, or is this only true of 1and1?
    This is not uncommon with shared hostings in particular, though there may be some which allow remote access. Let´s hope that other forum participants can provide recommendations.

  • Mysql problem with german special characters

    hi,
    I wrote a software and it worked quite good, but after I installed it on a new machine with j2se 1.4 I've problems with the german special characters.
    this code works good on the old machine (jdk 1.3.1) and prints the wanted characters like �,�,�.
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    java.sql.Connection conn;
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx");
    Statement s = conn.createStatement();
    ResultSet r = s.executeQuery("select something from testtb where id='1'");
    r.first();
    System.out.println( r.getString(1) );
    but on the new machine (j2se 1.4) I only receive the character ?.
    I updated my org.gjt.mm.mysql to the current MySQL Connector/J 3.0.9 and added
    conn = DriverManager.getConnection("jdbc:mysql://localhost/testdb?user=testuser&password=xxxx&useUnicode=true&characterEncoding=ISO-8859-1");
    but I've got still the same problem.
    Thanks in advance
    Markus

    with "wanted characters like �,�,�"
    I meant: like &#x00E4;,&#x00FC;,&#x00F6;

  • Problems with MySQL in Slave mode

    Hi erverybody!!!
    I have a problem with my IDM and mysql.
    This is my envioroment:
    I have installed one IDM and has a Database on Mysql. I have a DRP and i have other server of IDM an his database.
    The databases of mysql are replicated and are configurated like "Master-Slave"
    My problem:
    When the production server is down i try to work with the DRP enviorement but the IDM can't access to the database.
    My question
    When the instance is on "slave mode" the IDM can access to the database??
    Thanks 4 your answers

    This happens to be an Oracle forum.
    Oracle is not akin to MySQL in any fashion.
    Please use Google to find a MySQL forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Problems with MySQL in JSC 2

    i have problem with MySQL i have a driver i added it in to servers list and i made tests with data source everythink is ok, i see tables but when i drop a table from data source on table componenet(or other) i have errors nullPointerExpection at: (here is very long list of java classes. when i click "view data" of table in data source everythink works, only in components it doesn't. Can sombody help me please. I hope you understood my problem if not i will try to explain it once again.

    i get his Exception:
    A java.lang.NullPointerException exception has occurred.
    Please report this at http://www.netbeans.org/issues.html,
    including a copy of your messages.log file as an attachment.
    The messages.log file is located in your C:\Documents and Settings\Leszczy&#324;ski\.Creator\2_0\var\log folder.
    here are details:
    java.lang.NullPointerException
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:565)
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:507)
         at com.mysql.jdbc.PreparedStatement.toString(PreparedStatement.java:3290)
         at java.lang.String.valueOf(String.java:2577)
         at java.lang.StringBuffer.append(StringBuffer.java:220)
         at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
         at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
         at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
         at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
         at com.mysql.jdbc.Connection.registerStatement(Connection.java)
         at com.mysql.jdbc.Statement.<init>(Statement.java:190)
         at com.mysql.jdbc.PreparedStatement.<init>(PreparedStatement.java:432)
         at com.mysql.jdbc.ServerPreparedStatement.asSql(ServerPreparedStatement.java:343)
         at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:507)
         at com.mysql.jdbc.ServerPreparedStatement.toString(ServerPreparedStatement.java:2306)
         at java.lang.String.valueOf(String.java:2577)
         at java.lang.StringBuffer.append(StringBuffer.java:220)
         at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
         at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
         at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
         at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
         at com.mysql.jdbc.Connection.registerStatement(Connection.java)
         at com.mysql.jdbc.Statement.<init>(Statement.java:190)
         at com.mysql.jdbc.PreparedStatement.<init>(PreparedStatement.java:414)
         at com.mysql.jdbc.ServerPreparedStatement.<init>(ServerPreparedStatement.java:280)
         at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4288)
         at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4226)
         at com.sun.rave.sql.DesignTimeConnection.prepareStatement(DesignTimeConnection.java:187)
         at com.sun.sql.rowset.CachedRowSetXImpl.getMetaData(CachedRowSetXImpl.java:2334)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1317)
         at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:489)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.resetTableColumns(TableRowGroupDesignState.java:261)
         at com.sun.rave.web.ui.component.table.TableRowGroupDesignState.setDataProviderBean(TableRowGroupDesignState.java:163)
         at com.sun.rave.web.ui.component.table.TableDesignState.setDataProviderBean(TableDesignState.java:250)
         at com.sun.rave.web.ui.component.TableDesignInfo.linkBeans(TableDesignInfo.java:162)
         at com.sun.rave.insync.models.FacesModel.linkBeans(FacesModel.java:1042)
         at com.sun.rave.designer.DndHandler.processLinks(DndHandler.java:2126)
         at com.sun.rave.designer.DndHandler.importBean(DndHandler.java:880)
         at com.sun.rave.designer.DndHandler.importItem(DndHandler.java:702)
         at com.sun.rave.designer.DndHandler.importDataDelayed(DndHandler.java:376)
         at com.sun.rave.designer.DndHandler.access$000(DndHandler.java:114)
    [catch] at com.sun.rave.designer.DndHandler$1.run(DndHandler.java:298)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    yes i use JSC 2
    Is it posible that my MySQL is not working properly??
    Micz.

  • Any problem with a single MySQL database used on more than one site?

    I have a set of multiple sites hosted separately I'm working on. I'd like to set up a PHP/MySQL database on one site, and be able to pull data from it for completely separate sites. Seems like it shouldn't be a problem. Are there any problems with doing this I need to be aware of?

    I've set up databases on three different hosts, and in all cases I could access the databases from outside the domain of the site itslef.  GoDaddy is one of them, they used to restrict it, but now they give you the option when setting up a new database on your account.

  • Problem with MySQL (SOLVED)

    Hello everybody. I have a problem with my MySQL server. Just installed it, ant when i try to start it:
    [root@localhost html]# /etc/rc.d/mysqld start
    :: Adding mysql group [DONE]
    :: Adding mysql user [DONE]
    Installing MySQL system tables...
    ERROR: 1062 Duplicate entry 'localhost-' for key 1
    071223 22:35:05 [ERROR] Aborting
    071223 22:35:05 [Note] /usr/sbin/mysqld: Shutdown complete
    Installation of system tables failed!
    I tryed to search some info in google, havent found anything.
    Does anybody has some ideas?
    Last edited by neXTPeer (2007-12-23 08:38:09)

    I have a huge problem, it seems I can't login to my own mysql server
    mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    The first time I started mysqld I got the same error as above. The script that should create an account stopped. Because of this I didn't set a root password. I think I never set a root password, but somehow mysqld expects one.
    Could someone help?
    btw: my host in rc.conf is not localhost and it's corresponding with the hostname in /etc/hosts
    -edit--
    I just tried these steps: http://dev.mysql.com/doc/refman/5.0/en/ … sions-unix
    But this also didn't work
    --edit2--
    Seems that there isn't a root account at all!
    Last edited by Vrieskist (2008-02-07 02:21:24)

  • Netbeans + MySQL + Tomcat (problem with: not a known entity type)

    I try to create WebApplication with Stripes in netbeans, but I have problem with connect to DB.
    I have this code:
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpaPU");
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    Person p = new Person();
    p.setFirstName("name1");
    p.setLastName("name2");
    try
    em.persist(p);
    } catch(Exception e)
    System.out.println(e.toString());
    em.getTransaction().commit();
    em.close();
    emf.close();But in try{..} is em.persist(p); ant it prints into console this error: "java.lang.IllegalArgumentException: Object: db_entity.Person@13c7c35 is not a known entity type."
    I do not know where is problem. Could you help me, please?
    This 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="jpaPU" transaction-type="RESOURCE_LOCAL">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <properties>
          <property name="toplink.jdbc.user" value="root"/>
          <property name="toplink.jdbc.password" value="adminadmin"/>
          <property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/test"/>
          <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
          <property name="toplink.ddl-generation" value="create-tables"/>
        </properties>
      </persistence-unit>
    </persistence>When I run my application I can see in console:
    [TopLink Info]: 2008.11.15 09:01:13.265--ServerSession(4794542)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    [TopLink Info]: 2008.11.15 09:01:13.578--ServerSession(4794542)--file:/D:/Workspace/NetBeansProjects/jpa/build/web/WEB-INF/classes/-jpaPU login successful..so, I hope persistence.xml is good
    This is my class Person.java:
    @Entity
    public class Person implements Serializable {
        @Id
        @GeneratedValue
        private Long id;
        private String firstName;
        private String lastName;
        public void setId(Long id) { this.id = id; }
        public Long getId() { return id; }
        public String getFirstName() {  return firstName; }
        public void setFirstName(String firstName) { this.firstName = firstName;  }
        public String getLastName() { return lastName; }
        public void setLastName(String lastName) { this.lastName = lastName;  }Please, help me.

    I had the same "is not a known entity type" error when running under a development environment Eclipse/Tomcat using Toplink. But the almost same code and configuration worked when running under Eclipse as a stand-alone Java app.
    Eventually I figured out (actually trial and error), that I had checked the toplink-essentials.jar libraries to be exported under: Eclipse Project/Java Build Path/Order and Export. I was messing around with libraries. Unchecking the export option there fixed the problem.
    While its unlikely that this could have been your exact problem, I would check the library order and export configurations. Looking at other message boards about this problem, many seemed to have been caused or fixed by playing with their libraries.

Maybe you are looking for