Eclipse does not recognize content of persistence.xml

Im getting the following error in eclipse:

The persistence.xml file does not have recognized content.

My persistence.xml file works great in my application but eclipse keeps giving me this error. I got this after moving the file and updating my project configuration with m2eclipse. I did not change the file itself. Anyone knows how to solve this?

persistence.xml:



    

        org.apache.openjpa.persistence.PersistenceProviderImpl
        package.Users
        
            
            
            
            
            
            
            

        
    

Update

Looks like a bug in m2eclipse in combination with jpa.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=251323

Temporarily solved by setting the option to show it as a warning instead of an error

48
задан Mark Baijens 13 September 2010 в 07:29
поделиться