users@glassfish.java.net

Createing Converter

From: <glassfish_at_javadesktop.org>
Date: Mon, 06 Aug 2007 17:23:16 PDT

I always get the following error:
Attempted to deploy PersistenceUnit [spielplatz] for which predeploy method either had not called or had failed
the verifyer says:
Test Name : tests.web.PUMatchingEMandEMFRefTest
         Test Assertion : For every entity manager referenced in the application, there must be a matching persistence unit defined using MET
A-INF/persistence.xml file. Please refer to EJB 3.0 Persistence API Specification section #6.2 for further information.
         Test Description : For [ spielplatzinfo#at.freelenzer.spielplatzinfo.web.war ]
There is no unique persistence unit found by name [ spielplatz ] in the scope of this component.
Persistence units that are visible to this component are [ ].


public class SpielplatzArtConverter implements Converter {
        public final static String CONVERTER_ID = "SpielplatzArt";
        @PersistenceUnit(unitName="spielplatz")
        EntityManagerFactory emf;

<?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="spielplatz"
        transaction-type="JTA">
        <jta-data-source>jdbc/SpielplatzinfoDS</jta-data-source>
        <class>at.freelenzer.spielplatzinfo.ejb.entity.Spielplatz</class>
        <properties>
                <!-- <property name="toplink.logging.level" value="FINEST"/> -->
                <property name="toplink.ddl-generation" value="create-tables"/>
        </properties>
        </persistence-unit>
</persistence>

I cant see my error, can please someone help me?

Chris
[Message sent by forum member 'chris_lenz' (chris_lenz)]

http://forums.java.net/jive/thread.jspa?messageID=229758