multiple usage of @Embedded in one entity

2008-10-30 Thread Mark Struberg
Hi! I have a JPA2.0 question. I did find some discussion (better: complaints) about embedding members of the same class multiple times, but could not find the information about how this will be solved in the JSR-317 draft. So maybe anyone can point me to some information about this. I've used

Re: Updating the JPA spec jar for JPA 2.0

2008-11-11 Thread Mark Struberg
ROTECTED] > Datum: Dienstag, 11. November 2008, 19:50 > On Tue, Nov 11, 2008 at 12:07 PM, Craig L Russell > <[EMAIL PROTECTED]>wrote: > > > > > On Nov 11, 2008, at 2:28 AM, Mark Struberg wrote: > > > > --- David Jencks <[EMAIL PROTECTED]> > s

Re: Updating the JPA spec jar for JPA 2.0

2008-11-11 Thread Mark Struberg
--- David Jencks <[EMAIL PROTECTED]> schrieb am Di, 11.11.2008: > This points out the possible problem that the jpa 1.0 spec > appeared to be part of the ejb 3.0 spec so I gave it a spec > version number of 3.0. Any suggestions about what to do > about this would be appreciated. Do we really nee

AW: [OT] git and Apache's svn?

2008-12-09 Thread Mark Struberg
Hi Patrick! In which way do you like to access the apache svn? Did you already work with git? Do you only like to manage local branches with git (git on top of a svn checkout)? Do you like to use the git-svn bridge for doing all the local management with git? The way I use git for Apache p

Re: [OT] git and Apache's svn?

2008-12-09 Thread Mark Struberg
boxes. Or, am I > reading more into > this? > > Kevin > > On Tue, Dec 9, 2008 at 5:08 AM, Mark Struberg > <[EMAIL PROTECTED]> wrote: > > > Hi Patrick! > > > > In which way do you like to access the apache svn? > > > > Did you already work

Re: [OT] git and Apache's svn?

2008-12-09 Thread Mark Struberg
we could > provide for multiple > >> "build levels" and only promote changes > when they are really ready. All of > >> this without requiring the use of sandboxes. Or, > am I reading more into > >> this? > >> > >> Kevin > >> >

Re: AW: [OT] git and Apache's svn?

2008-12-09 Thread Mark Struberg
t night, and got this after about 45 mins: > > > RA layer request failed: REPORT request failed on > '/repos/asf/!svn/vcc/default': REPORT of > '/repos/asf/!svn/vcc/default': 403 Forbidden > (https://svn.apache.org) at > /usr/local/git/libexec/git-core/git-svn

using the tmpClassLoader

2009-04-02 Thread Mark Struberg
Hi! I'm currently extending the openjpa-maven-plugin to be useful for openjpa-1.2.1 So while updating I had a problem with one of my projects which uses the following structure: --+- pom.xml |-api/pom.xml | \- public interface MyEntityInterface { | public static enum MessageC

AW: using the tmpClassLoader

2009-04-02 Thread Mark Struberg
If you like to try it out you can download it from my git repo $> git clone http://ns1.backwork.net/git/openjpa-maven-plugin.git If there are no objections, then I'll commit the changes to the apache repo tomorrow. LieGrue, strub --- Mark Struberg schrieb am Do, 2.4.2009: >

Re: using the tmpClassLoader

2009-04-03 Thread Mark Struberg
I'm not sure which change in 1.2.1 would have affected the > PCEnhancer in > this way. I've seen similar problems with the > tmpClassLoader specifically > with the IBM JRE.  Setting tmpClassloader = false > didn't cause any problems > for me. > > -mike >

funny openjpa.Id property message

2009-12-17 Thread Mark Struberg
Got the following problem reported in OpenJPA-2.0.0-M3 openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id". LieGrue, strub

Re: funny openjpa.Id property message

2009-12-17 Thread Mark Struberg
cement processing?  If you don't explicitly > enhance your entity > > classes, then you are falling back to the subclassing > support which should > > not be used for production... > > > > I may be all wet with my memory and this may be due to > something else,

license plugin errors

2010-01-04 Thread Mark Struberg
Hi! I'm getting the following error while compiling from source since a few days: [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: /home/msx/develop/java/apache/openjpa/trunk/openjpa-lib/target/openjpa-lib-2.0.0-SNAPSHOT.jar [INFO] [ianal:verify-legal-files {execution: default}] [I

Re: license plugin errors

2010-01-05 Thread Mark Struberg
of the project. > > Craig > > On Jan 4, 2010, at 2:10 PM, Mark Struberg wrote: > > > Hi! > > > > I'm getting the following error while compiling from > source since a few days: > > > > [INFO] [jar:jar {execution: default-jar}] > >

reincarnation of OPENJPA-256?

2010-01-05 Thread Mark Struberg
Hi! I fear I got hit by OPENJPA-256 [1]. I'm still not sure why, but in ObjectValue#newInstance for clsName=org.apache.openjpa.util.CacheMap and type=interface java.util.Map the SystemClassLoader is being used and I get a java.lang.reflect.InvocationTargetException so the workaround mentioned

Re: reincarnation of OPENJPA-256?

2010-01-05 Thread Mark Struberg
ystem classloader is returned as null cl = AccessController.doPrivileged( J2DoPrivHelper.getSystemClassLoaderAction()); --- On Tue, 1/5/10, Mark Struberg wrote: > From: Mark Struberg > Subject: reincarnation of OPENJPA-256? > To: dev@openjpa.apache

shading the pain away - creating a shaded agent jar?

2010-01-07 Thread Mark Struberg
Hi! I had a classical shower idea this morning ;) If we'd know which parts of OpenJPA we really need for the instrumentation agent, then we could use the maven-shade-plugin [1] to dynamically 'relocate' those packages to e.g. 'org.openjpa-agent...'. This way, we would not inject webapp classes

providing integration tests for known bugs?

2010-05-03 Thread Mark Struberg
Hi! It seems that I suffer from the same problems which got reported in OPENJPA-525 [1] while trying to write null value to a not null field. It seems that OpenJPA magically converts it to an empty string, thus I get NO Exception in MySQL and I DO get an exception in Oracle (because Oracle treat

AW: providing integration tests for known bugs?

2010-05-04 Thread Mark Struberg
it test for OPENJPA-525 should validate that it's working. > Could you try running TestSerializedLobs.java and see if it fails for > you? FWIW the tests are running with MySQL 5.1.12 in the 2.0.x branch and > the test passed.. Regards, -mike On Mon, May 3, 2010 at 7:13 >

AW: providing integration tests for known bugs?

2010-05-05 Thread Mark Struberg
b [1] https://issues.apache.org/jira/browse/OPENJPA-1387 [2] https://issues.apache.org/jira/browse/OPENJPA-525 --- Mark Struberg schrieb am Di, 4.5.2010: > Von: Mark Struberg > Betreff: AW: providing integration tests for known bugs? > An: dev@openjpa.apache.org > Datum: Dienstag, 4

QueryCacheImpl question

2010-10-19 Thread Mark Struberg
Hi! I have a problem with upgrading from OpenJPA-2.0.0 to 2.0.1. One of my services executes the following query (this is the 'id' I get in PreparedQueryCacheImpl#get(String id) ): SELECT distinct e FROM Employment em, Person e WHERE em.employeeId = e.employeeId and em.orgUnitCode = :orgUnitCo

Re: QueryCacheImpl question

2010-10-19 Thread Mark Struberg
#x27;ve hit is in the query SQL cache.  Try > disabling the query SQL > cache via: > > value="false"/> > > hth, > -Jeremy > > On Tue, Oct 19, 2010 at 11:35 AM, Mark Struberg > wrote: > > > Hi! > > > > I have a problem with up

Re: QueryCacheImpl question

2010-10-20 Thread Mark Struberg
file a JIRA, and if you can, attach a > simple testcase. > That'll help speed up resolution. > > Thanks, > -Jeremy > > [1] > http://openjpa.apache.org/builds/2.0.0-M3/apache-openjpa-2.0.0-M3/docs/manual/ref_guide_conf_jdbc.html#openjpa.jdbc.QuerySQLCache > > On

test errors

2010-10-20 Thread Mark Struberg
Hi! While compiling the latest 2.0.x branch, I got the following test errors on openjpa-xmlstore: Tests in error: testQuery(org.apache.openjpa.xmlstore.simple.TestPersistence) testNewDeleteNew(org.apache.openjpa.xmlstore.simple.TestPersistence)

Re: test errors

2010-10-21 Thread Mark Struberg
o > wipe the /target > directory? > > > -Donald > > > On 10/20/10 4:19 PM, Mark Struberg wrote: > > Hi! > > > > While compiling the latest 2.0.x branch, I got the > following test errors on openjpa-xmlstore: > > > > T

Re: test errors

2010-10-21 Thread Mark Struberg
n't work just > because I refreshed at > > the "wrong time".  Sorry, no other ideas at this > time. > > > > Kevin > > > > > > On Thu, Oct 21, 2010 at 3:11 AM, Mark Struberg > wrote: > > > > > mvn clean install is n

problems building OpenJPA-2.0.2-SNAPSHOT

2010-11-02 Thread Mark Struberg
Hi! After todays update (last was somewhen last week) the branches/2.0.x doesn't work anymore: [INFO] Building jar: /home/msx/develop/java/apache/openjpa/branches/2.0.x/openjpa-persistence/target/openjpa-persistence-2.0.2-SNAPSHOT.ja ... [INFO] [compiler:testCompile {execution: default-testCom

Re: problems building OpenJPA-2.0.2-SNAPSHOT

2010-11-02 Thread Mark Struberg
many open files) which just means my ulimit is too low again ... LieGrue, strub --- On Tue, 11/2/10, Mark Struberg wrote: > From: Mark Struberg > Subject: problems building OpenJPA-2.0.2-SNAPSHOT > To: dev@openjpa.apache.org > Date: Tuesday, November 2, 2010, 11:07 AM > H

Re: [jira] Updated: (OPENJPA-1873) EntityManager#merge sometimes passes wrong entity values to @PostLoad EntityListeners

2010-11-09 Thread Mark Struberg
, strub --- On Tue, 11/9/10, Mark Struberg (JIRA) wrote: > From: Mark Struberg (JIRA) > Subject: [jira] Updated: (OPENJPA-1873) EntityManager#merge sometimes passes > wrong entity values to @PostLoad EntityListeners > To: dev@openjpa.apache.org > Date: Tuesday, November 9

[FYI] new openjpa-maven-plugin-1.2-SNAPSHOT deployed

2010-11-11 Thread Mark Struberg
Hi! I've fixed a few errors [1] in the openjpa-maven-plugin [2] I'm also seriously considering moving it over here from codehaus so we can maintain it more easily. I'd help out with the maintenance of course. LieGrue, strub [1] http://jira.codehaus.org/browse/MOPENJPA [2] http://mojo.codehau

Re: [FYI] new openjpa-maven-plugin-1.2-SNAPSHOT deployed

2010-11-12 Thread Mark Struberg
; To: dev@openjpa.apache.org > Date: Friday, November 12, 2010, 2:39 AM > Cool!  Would make a great > addition to the Tools subproject. > > You have my +1. > > -Donald > > > On 11/11/10 6:12 AM, Mark Struberg wrote: > > Hi! > > > > I've fixed a few

AttachStrategy Question

2010-11-26 Thread Mark Struberg
Hi folks! I have a question regarding OpenJPA-2.0.1 AttachStrategy DETACH_LOADED. I have an entity with a Date field. This field gets filled with the current date and stored to the database. Afterwards it gets loaded from the database and detached. In the next request the date will be reset to

Re: AttachStrategy Question

2010-11-26 Thread Mark Struberg
JIRA? LieGrue, strub --- On Fri, 11/26/10, Mark Struberg wrote: > From: Mark Struberg > Subject: AttachStrategy Question > To: dev@openjpa.apache.org > Date: Friday, November 26, 2010, 4:54 PM > Hi folks! > > I have a question regarding OpenJPA-2.0.1 AttachStrategy >

DetachedStageManager misere

2010-11-29 Thread Mark Struberg
Hi folks! I just get grey hairs with the DetachedStateManager my situation: .) with default detach strategy -> error in @PostLoad see OPENJPA-1873 -> error in storing Null Values at em.merge() .) with detach strategy fetch-groups -> ElementCollections don't get stored .) with fgs(Detache

Re: OpenJPA 2.1 timeline

2010-11-29 Thread Mark Struberg
Hi Kevin! Since OpenJPA already derives the settings from apache-parent-7 it should not be a big problem to do the actual maven release tasks. If you need some help, I can volunteer on this one. Of course, I have no idea what else needs to be done in OpenJPA on the orga side (but I guess it w

[FYI] Fw: [mojo-dev] [VOTE] release openjpa-maven-plugin 1.2

2010-11-29 Thread Mark Struberg
Mark Struberg wrote: > From: Mark Struberg > Subject: [mojo-dev] [VOTE] release openjpa-maven-plugin 1.2 > To: d...@mojo.codehaus.org > Date: Monday, November 29, 2010, 5:36 PM > Hi! > > I'd like to release the > > openjpa-maven-plugin-1.2 > > The follo

Re: AttachStrategy Question

2010-11-29 Thread Mark Struberg
will be > > present when an entity is detached. Using a different > DetachState value may > > result in different results depending on your > fetch-group and usage pattern. > > In either case I don't think a field would be reset to > null at detach time > > tho

[FYI] Fw: [mojo-dev] [ANN] OpenJPA Maven Plugin 1.2 Released

2010-12-03 Thread Mark Struberg
Mark Struberg wrote: > From: Mark Struberg > Subject: [mojo-dev] [ANN] OpenJPA Maven Plugin 1.2 Released > To: d...@mojo.codehaus.org, u...@mojo.codehaus.org > Date: Friday, December 3, 2010, 7:38 PM > The Apache Maven team is pleased to > announce the release of the > > open

entity list gets blown away on detach

2010-12-30 Thread Mark Struberg
Hi! The following happens when I switch to DetachState fetch-groups! I have a Person with 1:n Address, mapped via @OneToMany(mappedBy = "persId", cascade = {CascadeType.ALL}) I add 2 Adresses to my Person and persist is. They get correctly stored in the database. my person contains 2 entries i

test warning: The persistence unit "test" was found multiple times

2010-12-31 Thread Mark Struberg
Hi! I always get the following warning when running our build: 0 test WARN [main] openjpa.Runtime - The persistence unit "test" was found multiple times in the following resources "[file:/home/msx/develop/java/apache/openjpa/trunk/openjpa-persistence-locking/target/test-classes/META-INF/per

[VOTE] move openjpa-maven-plugin from codehaus to the OpenJPA project

2010-12-31 Thread Mark Struberg
Hi folks! As discussed before doing the last release, I'd like to move the openjpa-maven-plugin from Codehaus over to the tools section of the OpenJPA main project. The reason for this is that we just cannot support a few use cases and features which got added in newer OpenJPA tools versions w

[VOTE] [RESULT] move openjpa-maven-plugin from codehaus to the OpenJPA project

2011-01-06 Thread Mark Struberg
Hi folks! The VOTE has passed with the following 7 +1: Stephen Connolly, Robert Scholte, Olivier Lamy, Hervé BOUTEMY, Dan Tran, Dennis Lundberg, Mark Struberg No 0 or -1. Thanks for all who voted, reported bugs and especially the ones who helped with the maintenance. Especially a big thanks

Tests take forever

2011-01-06 Thread Mark Struberg
Hi! Anyone has an idea why some of our tests take almost forever when they run inside the build, but are very cheap if run standalone? My build currently takes ~ 1h 15minutes on a 4x3GHz and also not much longer on my notebook. This indicates that there is something 'foul' with them. Either th

Re: Tests take forever

2011-01-06 Thread Mark Struberg
all the expensive test into an own 'integration-test' profile? Otherwise developers will just take the shortcut and don't run the whole build prior to a checkin because it takes so long ;) LieGrue, strub --- On Thu, 1/6/11, Mark Struberg wrote: > From: Mark Struberg >

Re: Build Errors

2011-01-08 Thread Mark Struberg
Hi! The problem is that our build opens lots of files: > (Too many open files) Usually your ulimits for open files are set to 1024 if you are on *nix Try opening /etc/security/limits.conf and add the following 2 lines: * hardnofile 4096 * softnofile

org.apache.openjpa.persistence.query needs cleanup

2011-01-10 Thread Mark Struberg
Hi! Either I'm just blind or the entities in org.apache.openjpa.persistence.query are all unused. There is not even a mapping in persistence.xml for them... Do I miss something? I need to write a unit test with a @OneToMany. Can I use Customer + Account for it? LieGrue, strub

Re: change schema based on environment

2011-01-10 Thread Mark Struberg
Hi! My colleague introduced a ConfigurableDataSource for exactly this reason. It switches all the database configuration based on server and JSF ProjectStage settings based on CDI producers. LieGrue, strub --- On Mon, 1/10/11, Michael Dick wrote: > From: Michael Dick > Subject: Re: change s

Re: [DISCUSS] JIRA Technical Lead

2011-01-17 Thread Mark Struberg
another +1 for Mike. Though the Jira lead only being a representative function nowadays ;) LieGrue, strub --- On Mon, 1/17/11, Kevin Sutter wrote: > From: Kevin Sutter > Subject: [DISCUSS] JIRA Technical Lead > To: dev@openjpa.apache.org > Date: Monday, January 17, 2011, 2:37 PM > On a separ

way to restore the DetachedStateManager on deserialisation?

2011-01-18 Thread Mark Struberg
Hi! Currently detached entities behave completely different if they are 'just' detached or if they got serialised/deserialised. This is almost solely due to _pcStateManager == null after the serialisation. After serialisation we basically miss _dirty and _loaded information in our entities, wh

Re: way to restore the DetachedStateManager on deserialisation?

2011-01-18 Thread Mark Struberg
r serialized at all? > > -mike > > On Tue, Jan 18, 2011 at 4:33 AM, Mark Struberg > wrote: > > > Hi! > > > > Currently detached entities behave completely > different if they are 'just' > > detached or if they got serialised/deserialised.

Re: way to restore the DetachedStateManager on deserialisation?

2011-01-24 Thread Mark Struberg
ce it doesn't work for private fields... I will file a jiraffe. LieGrue, strub --- On Tue, 1/18/11, Mark Struberg wrote: > From: Mark Struberg > Subject: Re: way to restore the DetachedStateManager on deserialisation? > To: dev@openjpa.apache.org > Date: Tuesday, January 1

Re: way to restore the DetachedStateManager on deserialisation?

2011-01-24 Thread Mark Struberg
tachedStateManager on deserialisation? > To: "dev@openjpa.apache.org" > Date: Monday, January 24, 2011, 1:15 PM > What happens if you change your > private fields to protected? > > Thanks, > Rick > > On Jan 24, 2011, at 5:51 AM, Mark Struberg > wrote: >

Re: way to restore the DetachedStateManager on deserialisation?

2011-01-24 Thread Mark Struberg
t isn't > how we work > today. > > On Mon, Jan 24, 2011 at 7:38 AM, Mark Struberg > wrote: > > > Yes, this is a workaround I figured already. > > > > But the downside is that we need to tweak a lot of > classes and it is really > > a bug imo. &

Re: [VOTE] [RESULT] move openjpa-maven-plugin from codehaus to the OpenJPA project

2011-01-25 Thread Mark Struberg
eGrue, strub --- On Thu, 1/6/11, Mark Struberg wrote: > From: Mark Struberg > Subject: [VOTE] [RESULT] move openjpa-maven-plugin from codehaus to the > OpenJPA project > To: d...@mojo.codehaus.org, us...@mojo.codehaus.org > Cc: dev@openjpa.apache.org > Date: Thursday, Januar

Externalizable creation in the PCEnhancer

2011-01-25 Thread Mark Struberg
Hi folks! I'm a bit confused by the logic in the PCEnhancer and I'm not sure if this is a bug or not. In PCEnhancer#addReadExternal line 4043 (hell, who created such fat file :) Class sup = _meta.getDescribedType().getSuperclass(); if (!parentDetachable && Externalizable.class.isAssigna

Re: Is there a desire to address OPENJPA-1376 (allocationSize incorrect implementation)?

2011-01-26 Thread Mark Struberg
Humm, It _should_ work like the following. The sequencer has a few reserved ids. E.g. lastId = 312 reservedUntilId=349 while (lastId == reservedUntilId) goToDataBaseAndReserveTheNextBlock(); return ++lastId; And you are saying it goes to the database also if there is still a block of fre

@PreUpdate EntityListener gets called too often?

2011-01-26 Thread Mark Struberg
Hi! The spec says (3.5.2): "The PreUpdate and PostUpdate callbacks occur before and after the database update operations to entity data respectively." Does that mean that @PreUpdate should get called only before any real SQL update to the database?, or always if the entity got made dirty (but

openjpa-maven-plugin IP clearance

2011-01-27 Thread Mark Struberg
rafale rafale Raphael Pieroni rahul/Rahul rinku Rahul Thakur strubergstrubergMark Struberg The following are only minor changes or got completely reverted in the meantime: id: rafale rafale 2007-03-26T22:04:14.309648Z Updated pom parent versions to 14

Re: Ideas for Google Summer of Code 2011

2011-01-30 Thread Mark Struberg
First of things to read is the JPA2 spec which is available in JSR-317 [1] :) LieGrue, strub [1] http://jcp.org/en/jsr/detail?id=317 --- On Sun, 1/30/11, Umashanthi Pavalanathan wrote: > From: Umashanthi Pavalanathan > Subject: Ideas for Google Summer of Code 2011 > To: dev@openjpa.apache.or

Re: Ideas for Google Summer of Code 2011

2011-01-30 Thread Mark Struberg
pache.org > Date: Sunday, January 30, 2011, 9:58 AM > On Sun, Jan 30, 2011 at 3:06 PM, Mark > Struberg > wrote: > > > First of things to read is the JPA2 spec which is > available in JSR-317 [1] > > :) > > > > Thanks for the link Mark. I will start reading

Re: openjpa-maven-plugin IP clearance

2011-01-31 Thread Mark Struberg
source tree, how to build it, and what to call it? > > Craig > > On Jan 27, 2011, at 3:22 AM, Mark Struberg wrote: > > > Hi folks! > > > > For getting started, I did follow the rules for IP > clearance as established in the ASF incubator [1]. Craig or >

sonar instance for OpenJPA

2011-02-07 Thread Mark Struberg
Hi folks! I've asked Olivier to setup a sonar task for OpenJPA which is now available: http://sonar.apache.org/components/index/30740 Have fun :) LieGrue, strub

shouldn't writeExternal & Co be 'synchronized'?

2011-02-20 Thread Mark Struberg
Hi folks! Just recognized that all our generated (via PCEnhancer) serialisation/externalisation methods are _not_ synchronized. But usually they should be, isn't? LieGrue, strub

Re: Welcome Mark Struberg as a new committer

2011-04-20 Thread Mark Struberg
Hi folks! Thanks for the invitation, it's a great honour and pleasure! I'm looking forward to contribute even more to OpenJPA in the next months! LieGrue, strub --- On Tue, 4/19/11, Michael Dick wrote: > From: Michael Dick > Subject: Welcome Mark Struberg as a new com

Re: Welcome Mark Struberg as a new committer

2011-04-23 Thread Mark Struberg
Thanks Pinaki! My schedule is currently a bit tight (2 conference talks at JAX in 2 weeks), but I'll get back working on my Jira issues in May. LieGrue, strub --- On Sat, 4/23/11, Pinaki Poddar wrote: > From: Pinaki Poddar > Subject: Re: Welcome Mark Struberg as a new committe

back from JAX and stuff

2011-05-13 Thread Mark Struberg
hi folks! Finally I have a _little_ bit time again to work on openjpa :) I'll start with the easy ones: cleaning up ignore rules in SVN and add all Idea artifacts to the ignore lists ;) I'm available in IRC #openjpa and will go through my issues and check what is left. txs and LieGrue, strub

Re: [VOTE] Pinaki Poddar for OpenJPA Project Chair

2011-06-09 Thread Mark Struberg
+1 LieGrue, strub --- On Thu, 6/9/11, Jeremy Bauer wrote: > From: Jeremy Bauer > Subject: Re: [VOTE] Pinaki Poddar for OpenJPA Project Chair > To: dev@openjpa.apache.org > Date: Thursday, June 9, 2011, 7:04 PM > +1 > > -Jeremy > > On Thu, Jun 9, 2011 at 1:19 PM, Craig L Russell > > wrote: >

Re: openJPA dependcies with latest openJPA-2.1.x and javax.persistance.PersistanceProvider / javaee-apo

2011-08-19 Thread Mark Struberg
regarding tomcat: vi conf/catalina.properties add the following line shared.loader=${catalina.base}/webapps/lib/*.jar then put all your shared classes into webapps/lib. This is kind of an EAR scenario without EJBs ;) The SharedClassLoader will become the parent of all WebappClassLoaders. LieGru

Re: Classloading needs to be refurbished?

2011-10-04 Thread Mark Struberg
Yes, imo we need to support such use cases. Take as an example geronimo where OpenJPA is pretty much at the very bottom of the ClassLoader hierarchy and shared by multiple EARs and WARs. Then think about some multi-tenant setup where different WARs (1 per tenant) use the same core-backend.jar (

Re: [DISCUSS] JDO usage end-of-life?

2011-10-11 Thread Mark Struberg
There is a JDO-3.0 spec out there since almost a year now. I'm not sure if we can/like to catch up. Isn't there a pure JDO impl at db.apache.org which is up2date anyway? LieGrue, strub - Original Message - > From: Michael Dick > To: us...@openjpa.apache.org; dev@openjpa.apache.org

Re: [jira] [Commented] (OPENJPA-2088) openjpa-maven-plugin IT tests try to resolve unbuilt repository

2011-12-07 Thread Mark Struberg
--- >> >>                 Key: OPENJPA-2088 >>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2088 >>             Project: OpenJPA >>           Issue Type: Bug >>           Components: build / i

Re: Moving commit messages

2011-12-22 Thread Mark Struberg
Hi Kevin! Please see the subversion docs on howto do this: http://subversion.apache.org/faq.html#change-log-msg Guess a few folks on #asfinfra know how to do this properly. LieGrue, strub - Original Message - > From: Kevin Sutter > To: dev@openjpa.apache.org > Cc: > Sent: Thursda

Re: [jira] [Resolved] (OPENJPA-2087) Remove or limit the use of the ConcreteClassGenerator

2012-01-03 Thread Mark Struberg
We really need to take care that we don't pickup some java6 only stuff like String.isEmpty() in our code. Sadly this doesn't get detected when compiling with target=1.5 :( Thus we need run the TCK with java5 runtime to verify that all things work. LieGrue, strub - Original Message -

Re: [jira] [Resolved] (OPENJPA-2087) Remove or limit the use of the ConcreteClassGenerator

2012-01-04 Thread Mark Struberg
t; Craig > > On Jan 3, 2012, at 1:28 PM, Mark Struberg wrote: > >> We really need to take care that we don't pickup some java6 only stuff > like String.isEmpty() in our code. Sadly this doesn't get detected when > compiling with target=1.5 :( >> >&

Re: [jira] [Resolved] (OPENJPA-2087) Remove or limit the use of the ConcreteClassGenerator

2012-01-04 Thread Mark Struberg
t; > On Tue, Jan 3, 2012 at 3:51 PM, Craig L Russell > wrote: > >> Just a thought: does this get caught when compiling with source=1.5? >> >> Craig >> >> >> On Jan 3, 2012, at 1:28 PM, Mark Struberg wrote: >> >>   We really need

[DISCUSS] release openjpa-2.2.0?

2012-01-04 Thread Mark Struberg
Hi folks! I've now used openjpa-2.2.0 excessively and it looks very good to me. What do you think about going forward and shipping a 2.2.0? Or at least a RC1... OpenEJB and Geronimo are waiting for an openjpa-2.2.x release as well ;) LieGrue, strub

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-04 Thread Mark Struberg
Albert Lee >To: dev@openjpa.apache.org; Mark Struberg >Sent: Wednesday, January 4, 2012 6:34 PM >Subject: Re: [DISCUSS] release openjpa-2.2.0? > > >Mark, > >I agree. Trunk has matured and stabilized since 2.1.x. It would be good to >take a branch and make trunk ready for the next

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-04 Thread Mark Struberg
creating the 2.2.0 release and 2.2.x service stream and then > put back into trunk?  Other ideas? > > Kevin > > >> >> -Donald >> >> >> >> >>   From: Mark Struberg >> To: openjpa-dev >> Cc: D

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-06 Thread Mark Struberg
something we should review/fix before we branch. feel free to add missing tasks. LieGrue, strub ----- Original Message - > From: Mark Struberg > To: "dev@openjpa.apache.org" > Cc: > Sent: Wednesday, January 4, 2012 8:11 PM > Subject: Re: [DISCUSS] release op

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-06 Thread Mark Struberg
at we have > created a >> 2.1.1 release based off the 2.1.x service branch. >> >> Make sense?  This is the approach we have used for several releases and >> it's been working for the OpenJPA development team. >> >> Here are a few links that help describe our process:

blog post on JPA enhancement

2012-01-07 Thread Mark Struberg
Hi! I finally took the time to write up what I personally have learned about different ways to treat enhancement. http://struberg.wordpress.com/2012/01/08/jpa-enhancement-done-right/ Would be happy about feedback and corrections. txs and LieGrue, strub

Re: blog post on JPA enhancement

2012-01-08 Thread Mark Struberg
currently a serious problem. LieGrue, strub - Original Message - > From: Mark Struberg > To: openjpa-dev > Cc: > Sent: Sunday, January 8, 2012 3:21 AM > Subject: blog post on JPA enhancement > > Hi! > > I finally took the time to write up what I personall

Re: blog post on JPA enhancement

2012-01-08 Thread Mark Struberg
Another idea I had now is to create an own temporary ClassLoader and do all the bytecode engineering there. Anyone interrested to help with this? LieGrue, strub - Original Message - > From: Mark Struberg > To: "dev@openjpa.apache.org" > Cc: > Sent: Sunday,

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-09 Thread Mark Struberg
that's perfectly fine. Thus I will start creating the branch in +4h if no one objects? What should the branch name be? "2.2.x" is d'accord with your naming conventions? txs and LieGrue, strub - Original Message - > From: Albert Lee > To: dev@openjpa

Re: [jira] [Commented] (OPENJPA-2057) Rethinking ClassLoading architecture

2012-01-09 Thread Mark Struberg
completely agree. You might have seen my other post. The most pressing consequence of the Classloader stuff is that runtime enhancement is basically broken atm. At least if you have an EE or Servlet container. Maybe we can work around this by wrapping the Instrumentation somehow and do all the P

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-11 Thread Mark Struberg
Hi Pinaki! I already created the 2.2.x branch a day before you sent this message, but will delete it again if you think it' worth the troubles. The other option is to just cherry-pick your changes and apply them to 2.2.x as well. I'm also currently investigating an error I have locally with M

Re: [DISCUSS] release openjpa-2.2.0?

2012-01-11 Thread Mark Struberg
to make sure we are in good standing. > >If you don't mind, it would be good to revert the release branched, give dev >folks time to fix any outstanding issues and make sure trunk is stabilized >before cutting the new 2.2.x branch. > >Thanks, >Albert Lee. > > >On

ManagedCache cache issues?

2012-01-11 Thread Mark Struberg
hi! I'm debugging through a weird bug I have here locally. While doing that I figured that the the cache could suffer from clashes ManagedCache.java StateManagerImpl orig = _main.put(sm.getObjectId(), sm); the problem is that the same instance of the ManagedCache is being used for differen

Re: ManagedCache cache issues?

2012-01-11 Thread Mark Struberg
rub > > From: Rick Curtis >To: dev@openjpa.apache.org; Mark Struberg >Sent: Thursday, January 12, 2012 1:04 AM >Subject: Re: ManagedCache cache issues? > >Sorry, I haven't looked at your JIRA yet... but in your example, wouldn't >Address and Customer have a diff

apache parent pom 10

2012-01-13 Thread Mark Struberg
Hi! I saw that we use a pretty old apache parent-7. We should upgrade to version 10 which improves support for maven-3 and other goodies. Of course this needs some testing and a comparison of dependency and plugin versions we get due to this. Btw, I'll be on vacation from tomorrow on till nex

Re: apache parent pom 10

2012-01-13 Thread Mark Struberg
ncies. LieGrue, strub - Original Message - > From: Kevin Sutter > To: dev@openjpa.apache.org; Mark Struberg > Cc: > Sent: Friday, January 13, 2012 7:52 PM > Subject: Re: apache parent pom 10 > > Hi Mark, > Enjoy your vacation! > > I think you'll fi

Re: JPA 2.1?

2012-01-23 Thread Mark Struberg
Hi! I would need to read the proposed JPA-2.1 wording in detail, but as far as I've understood it (we moved this from the CDI-EG over to the JPA-EG), JPA still maintains the entity listeners, but will resolve any injection points after creating the bean. The difference is subtle but very import

Re: [VOTE] Apache OpenJPA 2.2.0 Release Candidate 1

2012-02-17 Thread Mark Struberg
will give it a close test run with our fat real world app over the weekend. LieGrue, strub - Original Message - > From: Rick Curtis > To: dev@openjpa.apache.org > Cc: > Sent: Friday, February 17, 2012 2:03 PM > Subject: Re: [VOTE] Apache OpenJPA 2.2.0 Release Candidate 1 > > +1 > >

Some thoughts about Serializable EntityManagers

2012-04-25 Thread Mark Struberg
Hi folks! As some of you know I'm working on quite a few big projects where I use JPA for persistence. But whenever I talk at some conferences I get asked why I recommend to NOT put the EntityManager in a Conversation or similar construct. It always takes me quite some time to explain to peopl

Re: [jira] [Commented] (OPENJPA-2139) OpenJPA fails to recover from a broken database on startup

2012-04-26 Thread Mark Struberg
Key: OPENJPA-2139 >>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2139 >>             Project: OpenJPA >>           Issue Type: Bug >>     Affects Versions: 2.2.0 >>             Reporter: Mark Struberg >>             Assignee: Mark Struberg

tabs vs spaces?

2012-04-26 Thread Mark Struberg
I know it's not good to remove all the tabs from our sources now, but there are tons of tabs checked in in our sources. The best way to avoid this is by enabling the viewing of whitespace characters in eclipse or idea. I know that this takes a bit to get used to, but it's really worth it. txs

compile error on jdk7/linux or stochastic error?

2012-04-27 Thread Mark Struberg
Hi! Not yet sure if this is a random build error or a problem under jdk7. But openjpa-persistence-jdbc (clean from trunk) blew up with the following test error: Tests in error:   testDirtyRefreshWithoutDataCacheAlwaysHitsDatabase(org.apache.openjpa.persistence.datacache.TestDataCacheBehavesI

Re: compile error on jdk7/linux or stochastic error?

2012-04-27 Thread Mark Struberg
well, it reproducibly crashes... Will now switch back to jdk 1.6 and try to compile again. LieGrue, strub - Original Message - > From: Mark Struberg > To: openjpa-dev > Cc: > Sent: Friday, April 27, 2012 11:25 AM > Subject: compile error on jdk7/linux or stochastic

Re: compile error on jdk7/linux or stochastic error?

2012-04-27 Thread Mark Struberg
ok, the build succeeded after switching back to jdk1.6 again. I'll create a Jira Issue and do some digging later today. LieGrue, strub - Original Message - > From: Mark Struberg > To: "dev@openjpa.apache.org" > Cc: > Sent: Friday, April 27, 2012 12:0

Re: compile error on jdk7/linux or stochastic error?

2012-04-27 Thread Mark Struberg
I've now created https://issues.apache.org/jira/browse/OPENJPA-2180 LieGrue, strub - Original Message - > From: Mark Struberg > To: "dev@openjpa.apache.org" > Cc: > Sent: Friday, April 27, 2012 1:19 PM > Subject: Re: compile error on jdk7/linux or

  1   2   3   4   5   6   7   8   9   10   >