| Summary: | Internal Exception: java.lang.ClassNotFoundException: java/lang/String in MetadataHelper | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Christoph Laeubrich <laeubi> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Christoph Laeubrich
It looks like this is happening on an ElementCollection that is a Map. Can you narrow down which one is the problem and provide the mapping information for it? (i.e. annotations, orm.xml, and definition) (In reply to comment #1) > It looks like this is happening on an ElementCollection that is a Map. Can you > narrow down which one is the problem and provide the mapping information for > it? (i.e. annotations, orm.xml, and definition) I have just one file containing Element Collection, the file looks like this: @Table(name = "Literatur") @Entity public class Literatur extends PersitentBase { @ElementCollection(fetch = FetchType.EAGER) @Column(name = "fields") private final Map<String, String> fields = new HashMap<String, String>(); private String name; private String typ; private long bibliothek_id; [... getter and setter ...] } @MappedSuperclass public class PersitentBase { @Version private long version; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; [... getter and setter ...] } persistence.xml: <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="berichtgenerator" transaction-type="RESOURCE_LOCAL"> <class>de.laeubisoft.berichtgenerator.storage.db.dao.Literatur</class> <class>de.laeubisoft.berichtgenerator.storage.db.dao.PersitentBase</class> [... other classes ...] <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <property name="eclipselink.target-database" value="MySQL"/> <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/test" /> <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /> <property name="javax.persistence.jdbc.user" value="root" /> <property name="javax.persistence.jdbc.password" value="" /> <property name="eclipselink.weaving" value="false"/> </properties> </persistence-unit> </persistence> where are you deploying? application server? which one? How is EclipseLink made available? How is your application packaged? (In reply to comment #3) > where are you deploying? application server? which one? How is EclipseLink > made available? How is your application packaged? The application is deployed inside an Equinox OSGi framework using the JPA Service provided with Eclipse Gemini. I'm currently launching the application from within the Eclipse IDE. Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |