[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipselink-users] Error creating Eclipselink sessions
|
I get the following error trying to create a session using:
SessionManager sessionManager = SessionManager.getManager();
Session session = sessionManager.getSession("Dylt_ServerSession");
Exception [EclipseLink-9005] (Eclipse Persistence Services - 1.0 (Build 1.0
- 20080707)): org.eclipse.persistence.exceptions.SessionLoaderException
Exception Description: An exception was thrown while loading the project-xml
file
[D:/workspace_dylt/dylt-main/dylt-data/src/main/resources/META-INF/orm-messages.xml].
Internal Exception: Exception [EclipseLink-25008] (Eclipse Persistence
Services - 1.0 (Build 1.0 - 20080707)):
org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A descriptor with default root element
{http://www.eclipse.org/eclipselink/xsds/persistence/orm}entity-mappings was
not found in the project
My sessions.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<sessions version="1.0.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session xsi:type="server-session">
<name>Dylt_ServerSession</name>
<server-platform xsi:type="jboss-platform"/>
<event-listener-classes/>
<!-- <profiler>toplink</profiler>-->
<logging xsi:type="eclipselink-log"/>
<primary-project
xsi:type="xml">D:/workspace_dylt/dylt-main/dylt-data/src/main/resources/META-INF/orm-messages.xml</primary-project>
<additional-project
xsi:type="xml">D:/workspace_dylt/dylt-main/dylt-data/src/main/resources/META-INF/orm-allcode.xml</additional-project>
<additional-project
xsi:type="xml">D:/workspace_dylt/dylt-main/dylt-data/src/main/resources/META-INF/orm-zip.xml</additional-project>
<login xsi:type="database-login">
<platform-class>org.eclipse.persistence.platform.database.SybasePlatform</platform-class>
<user-name>Gsilverman</user-name>
<password>BB742416276274A46959A54867978929</password>
<external-connection-pooling>true</external-connection-pooling>
<external-transaction-controller>true</external-transaction-controller>
<sequencing>
<default-sequence xsi:type="table-sequence">
<name>Default</name>
</default-sequence>
</sequencing>
<driver-class>com.sybase.jdbc3.jdbc.SybDriver</driver-class>
<connection-url>jdbc:sybase:Tds:athena:6000/dylt2000</connection-url>
<struct-converters/>
</login>
<connection-pools>
<read-connection-pool>
<name>ReadConnectionPool</name>
<exclusive>false</exclusive>
</read-connection-pool>
<write-connection-pool>
<name>default</name>
</write-connection-pool>
</connection-pools>
<connection-policy/>
</session>
</sessions>
The project-xml file, orm-messages.xml" starts with:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings
xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm
xsd/eclipselink_orm_1_0.xsd"
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
Clearly, this does have an "entity-mappings" root element, so what is the
exception complaining about?
--
View this message in context: http://www.nabble.com/Error-creating-Eclipselink-sessions-tp19765410p19765410.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.