Internal Website Search

51-100 of 200 results

PersistenceException UserException: Failed to validate persistence.xml

more Caused by: com.objectdb.o._PersistenceException: Failed to validate xml file C:\!heatboxes-web\build\web\WEB-INF\classes\META-INF\persistence. xml : at com.objectdb.o._PersistenceException.b ... .UserException: Failed to validate xml file C:\!heatboxes-web\build\web\WEB-INF\classes\META-INF\persistence

Compile time enhancement using build.xml of a Netbeans web application

Does anybody have a complete, working example of the adaptations required in the build. xml ... : The (rather overwhelming) nbproject/build-impl. xml of Netbeans, that is included into build. xml , offers a number of empty targets to override in build. xml , such as -post-compile and -post-compile-single. I

Externalising persistence.xml properties in Glassfish?

Hi,   I've run into a little bit of a wall with regards to persistence. xml and externalising ... on JNDI lookups). I am using Glassfish. Basically, what I am trying to get at: E.g. persistence. xml ... the persistance. xml and that way you can externalize the persistance unit name and you can easily

How to change properties in urls2.xml?

see it exists a file name "urls2. xml ". /var/lib/tomcat7/db/myDb.odb;user=admin;password=admin objectdb ... properties. I have no control on the port and password used. :( Does it exist a way to change urls2. xml properties ? Adding ?port=XXXX at the end of the persistence. xml database local url doesn't work

Failed to validate XML

[ObjectDB 2.6.7_05] javax.persistence.PersistenceException Failed to validate xml file /{erased-by-me}/tiro/lib-core/build/resources/test/META-INF/persistence. xml : (error 211) at com.objectdb.jpa ... : com.objectdb.o.UserException: Failed to validate xml file /{erased-by-me}/tiro/lib-core/build

Specify location of persistence.xml

Is it possible to tell objectdb explicitly where the persistence. xml is located? The background ... also a persistence. xml I exceed the number of persistable classes, as I have one subproject for each persistence technology and somhow the jpa persistence. xml is read in also resulting in more than 10

XML and ObjectDB

to persist XML into ObjectDB?  Do you need to generate JAXB JAVA bindings and then persist ... beyonddc Chun Tat David Chu ObjectDB can be used to store any type of data including XML . For example, you can define a generic Element entity and store the XML as a tree of Element nodes

Jboss 6 persistence.xml startup error

out feasibility, but I keep getting stuck on setting up the persistence. xml on JBoss 6 AS. Here is my setup ... -data-source element in the persistence. xml that I managed to find. Also, when setting up a jboss ... . xml file. If the IDE requires specifying SQL driver, etc - specify default settings

Storing XML files in ObjectDB

Hello, Is it possible to store XML files in ObjectDB?   Thanks st.clair.clarke St Clair Clarke ObjectDB can be used to store any type of data including XML . For example, you can define a generic Element entity and store the XML as a tree of Element nodes. Another option is to define an entity

JPA Configuration without persistance.xml

on a persistance. xml file being in a particular place. When using Hibernate, I was able ... Philip Clapham When using ObjectDB the persistence. xml is file optional . Just annotate the classes

Change path for urls2.xml file

I am using ObjectDB embedded and have set my home path in relation to the JAR, but running the program still creates objectdb/urls2. xml in my system user folder. Is there a setting to change ... there any other way how to change location of urls2. xml ? We use user.home for different purposes

persistence.xml classes not respected by ObjectDB

Hi! I have the following persistence. xml . The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each

setting activation code in persistence.xml or env file or system properties

Wondering if it's possible to add the activation code either: - in persistence. xml - or in a .env file - or system properties dmoshal David Moshal These options are not supported. However, you can embed the configuration file with the activation code as a resource, e.g. by replacing the objectdb

Compress ODB file with XML content

is used by field value in entity class  LogVolatileEntityImpl , which contains XML

Dependency from enhanced classes to the objectDB library

of annotations, but you will have to move the META-INF/ orm . xml file to the project that contains the entity ... & orm . xml ) and has a reference to all bundles with entities. Basically this works. But only as long as ... . Can you look at that again? btc_es BTC EmbeddedSystems Try moving the orm . xml file to the bundle

Spring Data JPA - PersistenceException thrown

/ /META-INF/ orm -objectdb. xml : at org.springframework.beans.factory.support ... / /META-INF/ orm -objectdb. xml : at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45 ... : Failed to validate xml file / /META-INF/ orm -objectdb. xml : at com.objectdb.o.MSG.d(MSG.java:75

ObjectDB without javax.persistence

we get a “com.objectdb.o._PersistenceException:” with the message “Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence. xml ”   Caused by: com.objectdb.o._PersistenceException: Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence. xml

Shared (L2) Entity Cache

in the ObjectDB configuration. Per persistence unit in the persistence. xml  file. Per entity

Database Explorer

classes and XML metadata. Setting this field is not mandatory because you can browse and edit ObjectDB

mapping file is not being loaded

;          mil/navy/navo/arf/config/ orm . xml     ... ;          The entities are mapped in the ORM . xml file correctly, as ... .   here is my persistence. xml            

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

. orm .jpa.persistenceunit.SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence ... .objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:32) at org.springframework. orm ... (LocalContainerEntityManagerFactoryBean.java:224) at org.springframework. orm .jpa.AbstractEntityManagerFactoryBean

Mismatch client-server protocol prefix

.springframework. orm .jpa.JpaSystemException: com.objectdb.o.UserException: Mismatch client-server protocol prefix ... . orm .jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517) at org.springframework ... Tomcat. In addition we converted our Spring configuration from xml to configuration classes

Spring Transactions (@Transactional) within ObjectDB

how to FlushModeType.AUTO in ORM . xml we are not doing any annotations over our entity. Thanks in advance ... is one of the entity properties. This was working well with ORM - Hibernate when used with Spring Data / JPA ... persistence. xml in my case and I am not able to find out the exact name in case of ObjectDB IN case

The attribute column name (EXCEPTION) is a reserved SQL-99 keyword.

an orm xml mapping file (not documented on ObjectDB website). support Support ... ; support Support In Hibernate you can set the engine type and escape all columns in the hibernate.cfg. xml ... . xml file, which is not part of JPA. Anyway, you only need that annotation for some exceptional

InternalError on multiple AND and JOIN Query

         o org.springframework:spring- orm :3.0.5.RELEASE   ... .classic.LoggerContext[default] - Could NOT find resource [logback-test. xml ] 09:30:08,687 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback. xml ] at [file:/home/pedwards

Spring LTW Problem

. xml and to my spring configuration. Now Spring oviously tries to weave every class that get's loaded ... .java:153) at org.springframework. orm .jpa.persistenceunit.ClassFileTransformerAdapter.transform ... some class i can restrict it in aop. xml . Maybe it would be a good idea to add something similar

Spatial Support

library may be persisted, if defined as entity classes (e.g. in an orm . xml file) support Support

Issue with compile time enhancement

(Migrator.java:486) ... 6 more com.objectdb.jpa.Provider META-INF/ orm . xml false paceap Joel Goldberger

Global way to set Lazy-loading fetch functionality for all the fields

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level ( ) - Either at JPA global level ( orm . xml ).   For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way

Show Sql/Jpql

/Jpql style not xml . I can only see select statements, but I also want to see insert, update ... (unlike ORM JPA implementation) does not use queries to implement Insert, Update and Delete

Integration

specified at org.springframework. orm .jpa.persistenceunit.SpringPersistenceUnitInfo.addTransformer ... build. i tried a class entry in my persistence. xml but that didnt seem to be working. i tried adding

ObjectDB and Hibernate in one JVM?

than Hibernate, so I want to try the it to deal with my application data, but I still need some ORM ... .persistence . You should specify the requested persistence provider in the persistence. xml file

Feature suggestion: auto-detection of entities via persistence.xml extension

many different modules, and frequently evolving/changing. JPA2 persistence. xml does not ... /html/configuration.html Example extension usage in persistence. xml : Q1: Would it be possible ... , which should work unless exclude-unlisted-classes=true  is specified in the persistence. xml

How to change properties in urls2.xml ?

see it exists a file name "urls2. xml ". /var/lib/tomcat7/db/myDb.odb;user=admin;password=admin objectdb ... properties. I have no control on the port and password used. :( Does it exist a way to change urls2. xml properties ? Adding ?port=XXXX at the end of the persistence. xml database local url doesn't work

Step 5: Add a JSP Page

). The next step (and the last in this tutorial) is setting the  Spring XML configuration .

Step 2: Define a JPA Entity Class

definition in an XML file is missing. This is discussed in the ObjectDB Manual

Spring MVC JPA Tutorial - NetBeans Project

the transaction type from RESOURCE_LOCAL to JTA in the persistence. xml file. If  a browser is not opened - open it at http://localhost:8080/Guestbook/.

Step 7: Run the Spring Web App

the persistence. xml file - instead of RESOURCE_LOCAL you will have to specify JTA . Since we are using ObjectDB

javax.persistence.Converter

except for attributes for which conversion is overridden by means of the Convert annotation (or XML ... such via XML ) will not be converted. Note that if autoApply is true , the Convert annotation may be used ... , only those attributes of the target type for which the Convert annotation (or corresponding XML element

ObjectDB 2.6.0

Added support of JPA 2.1 persistence. xml and orm . xml formats. Added implementation of equals to JPA Metamodel attributes. Fixed ObjectDB OSGi bundle to support enhanced classes. Fixed handling class loader switch (avoiding automatic database close and reopen). Fixed a NullPointerException

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO ... similarly to the XML metadata. Therefore, the name of a sequence that is defined by an annotation

ObjectDB 2.3.3

). Added support of @Column(unique="true") and equivalent ORM XML ( issue #550 ). Fixed @PrePersist

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

written to db-files/greendesk/greendesk.odb (see persistence. xml ), copy of odb output attached. Sorry ... getOwner() { return owner; } (For completeness I've left the old ORM annotations in

ObjectDB 2 JDO Manual

and the definition of the XML file describing those classes that are to be enhanced, that and the use of JDOQL ... that would make it inadequate to do what I want, I just see it as an ORM tool used to awkwardly map

NullpointerException when execute a commit

;     } } orm . xml :   ...              

[ODB1] Chapter 3 - Persistent Classes

has to: be declared in a JDO metadata file in XML format. include a no-arg constructor. implement

javax.jdo.JDOHelper

resource "META-INF/jdoconfig. xml ", using the current thread's context class loader to locate ... configuration file resource "META-INF/jdoconfig. xml ", using the given class loader. Parameters: pmfClassLoader

javax.jdo.spi.JDOImplHelper

instance for use in parsing the resource(s) META-INF/jdoconfig. xml . The default is governed by ... an ErrorHandler instance for use in parsing the resource(s) META-INF/jdoconfig. xml . The default

javax.jdo.annotations.Value

JDO Annotation Value Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the value of a map relation. Corresponds to the xml element "value". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column to store the value in

javax.jdo.annotations.Transactional

JDO Annotation Transactional Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation to indicate that a member (field or property) is transactional but not persistent. This corresponds to xml attribute persistence-modifier="transactional" of "field