Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 808BE903C for ; Thu, 26 Jan 2012 16:19:31 +0000 (UTC) Received: (qmail 88904 invoked by uid 500); 26 Jan 2012 16:19:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 88822 invoked by uid 500); 26 Jan 2012 16:19:30 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 88814 invoked by uid 99); 26 Jan 2012 16:19:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 16:19:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-lpp01m010-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 16:19:24 +0000 Received: by lagu2 with SMTP id u2so541925lag.33 for ; Thu, 26 Jan 2012 08:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=En37/MxXFKIpuf+8hZbWVBFYpWYXk7Xa0eLUEovATBw=; b=fb3vR3DhR6sQBrzO6PBAZpiMlNsZhgeXkwChTsXqt85fdQAJYyhihJRpwZk5ue4JR8 Rzmc2yfmyiC+KPB24o+T5Cni4GlLsoCleNLPJ0PAoYkUEpqoxZWYxk8KalnhXpqYYCsO iofGjPyktIwDP8D0rIKI+j/O40hfFQC3YhRmg= Received: by 10.152.130.5 with SMTP id oa5mr1584042lab.49.1327594742383; Thu, 26 Jan 2012 08:19:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.30.226 with HTTP; Thu, 26 Jan 2012 08:18:42 -0800 (PST) In-Reply-To: <4F217601.1060909@apache.org> References: <4F217601.1060909@apache.org> From: Kevin Sutter Date: Thu, 26 Jan 2012 10:18:42 -0600 Message-ID: Subject: Re: OpenJPA 2.2.0-SNAPSHOT & Glassfish 3.1.1 To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=f46d04339e4206837604b770bdab --f46d04339e4206837604b770bdab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Glassfish ships with EclipseLink (another JPA provider) by default. If you are attempting to use an alternate JPA provider (ie. OpenJPA), then have you properly disabled or overloaded the EclipseLink impl with the OpenJPA impl? Kevin 2012/1/26 Francesco Chicchiricc=F2 > Hi all, > I am trying to deploy my openjpa-based webapp to Glassfish 3.1.1 > > A bare deploy of the same WAR working with Tomcat 7 simply fails. > > What I've done so far: > > 1. added WEB-INF/glassfish-web.xml like as follows: > > > /syncope > > jdbc/syncopeDataSource > jdbc/syncopeDataSource > > > > > The relevant stuff here is the delegating class-loader stuff, needed for > letting Spring do its job. > > 2. added a property in persistence.xml in order to avoid to trigger > EclipseLink's weaver, embedded in Glassfish (I am using build-time > enhancement via openjpa-maven.plugin): > > > > > With the settings above, many things in the application seem to work: > unfortunately, when it comes to merge an entity, the following error is > thrown: > > java.lang.StackOverflowError > at > > org.apache.openjpa.kernel.TransferFieldManager.storeObjectField(TransferF= ieldManager.java:115) > at > > org.apache.openjpa.kernel.StateManagerImpl.providedObjectField(StateManag= erImpl.java:2166) > at > > org.syncope.core.persistence.beans.SchemaMapping.pcProvideField(SchemaMap= ping.java) > at > > org.apache.openjpa.kernel.StateManagerImpl.provideField(StateManagerImpl.= java:3163) > at > > org.apache.openjpa.kernel.StateManagerImpl.fetchObjectField(StateManagerI= mpl.java:2392) > at > > org.apache.openjpa.kernel.StateManagerImpl.fetchField(StateManagerImpl.ja= va:872) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedField(OpenJ= PAPersistenceUtil.java:200) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoaded(OpenJPAPer= sistenceUtil.java:161) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedArray(OpenJ= PAPersistenceUtil.java:265) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedCollection(= OpenJPAPersistenceUtil.java:242) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedField(OpenJ= PAPersistenceUtil.java:212) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoaded(OpenJPAPer= sistenceUtil.java:161) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedArray(OpenJ= PAPersistenceUtil.java:265) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedCollection(= OpenJPAPersistenceUtil.java:242) > at > > org.apache.openjpa.persistence.OpenJPAPersistenceUtil.isLoadedField(OpenJ= PAPersistenceUtil.java:212) > ... > > Any hint? > > TIA. > Regards. > > -- > Francesco Chicchiricc=F2 > > Apache Cocoon Committer and PMC Member > http://people.apache.org/~ilgrosso/ > > --f46d04339e4206837604b770bdab--