KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > oracle > toplink > essentials > exceptions > i18n > EntityManagerSetupExceptionResource


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the "License"). You may not use this file except
5  * in compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * glassfish/bootstrap/legal/CDDLv1.0.txt or
9  * https://glassfish.dev.java.net/public/CDDLv1.0.html.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * HEADER in each file and include the License file at
15  * glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
16  * add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your
18  * own identifying information: Portions Copyright [yyyy]
19  * [name of copyright owner]
20  */

21 // Copyright (c) 1998, 2006, Oracle. All rights reserved.
22
package oracle.toplink.essentials.exceptions.i18n;
23
24 import java.util.ListResourceBundle JavaDoc;
25
26 /**
27  * INTERNAL:
28  * English ResourceBundle for EntityManagerSetupException messages.
29  *
30  * @author: Tom Ware
31  */

32 public class EntityManagerSetupExceptionResource extends ListResourceBundle JavaDoc {
33     static final Object JavaDoc[][] contents = {
34                                            { "28001", "A ValidationException was thrown while trying to create session: [{0}] " + ". The most likely causes of this issue are that your [{1}] file is not available on the classpath " + "or it does not contain a session called: [{0}]." },
35                                            { "28002", "TopLink is attemting to load a ServerSession named [{0}] from [{1}], and not getting a ServerSession." },
36                                            { "28003", "TopLink has loaded Session [{0}] from [{1}] and it either does not have a server platform specified or specifies " + "a server platform that does not use and external transaction controller. Please specify an appropriate server platform if you plan to use JTA." },
37                                            { "28004", "Error in setup of EntityManager factory: JavaSECMPInitializer.initializeFromMain returned false." },
38                                            { "28005", "An Exception was thrown in setup of EntityManager factory." },
39                                            { "28006", "ClassNotFound: [{0}] specified in [{1}] property." },
40                                            { "28007", "Failed to instantiate ServerPlatform of type [{0}] specified in [{1}] property." },
41                                            { "28008", "Class: {0} was not found while processing annotations." },
42                                            { "28009", "Attempted to redeploy a session named {0} without closing it." },
43                                            { "28010", "PersistenceUnitInfo {0} has transactionType JTA, but doesn't have jtaDataSource." },
44                                            { "28011", "The session, [{0}], built for a persistence unit was not available at the time it was deployed. This means that somehow the session was removed from the container in the middle of the deployment process." },
45                                            { "28012", "Value [{0}] is of incorrect type for property [{2}], value type should be [{1}]." },
46                                            { "28013", "Attempted to deploy PersistenceUnit [{0}] for which predeploy method either had not called or had failed" },
47                                            { "28014", "Exception was thrown while processing property [{0}] with value {[1}]." }
48    };
49
50     /**
51       * Return the lookup table.
52       */

53     protected Object JavaDoc[][] getContents() {
54         return contents;
55     }
56 }
57
Popular Tags