Re: Get Aries snapshot and maven dependency problem.

2010-12-03 Thread Valentin Mahrwald
I think there is the group id for the proxy api is wrong in some places. That has just bitten me as well. I will get that fixed. On 3 Dec 2010, at 09:31, LongkerDandy wrote: > Hi > > I have a problem trying to get Aries latest snapshot bundle from maven. > I used to build Aries my self and cop

Re: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

2010-11-19 Thread Valentin Mahrwald
occurs or not. > > On 16/11/10 13:44, Charles Moulliard wrote: >> You are right. I made a mistake in my code to simulate an error + rollback >> >> On 16/11/10 12:21, Valentin Mahrwald wrote: >>> I am a bit confused by the scenario. If I understand this correctly the

Re: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

2010-11-16 Thread Valentin Mahrwald
ack in your code ? > > On 16/11/10 14:49, Valentin Mahrwald wrote: >> Agreed :) >> >> The third trace essentially says your transaction is starting. But there is >> no matching trace to say it commited :( >> In error cases though you will get another tr

Re: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

2010-11-16 Thread Valentin Mahrwald
throw new Exception(">> Generate Error to simulate RollBack"); >} catch (RuntimeException e) { >e.printStackTrace(); >} catch (Exception ex) { >ex.printStackTrace(); >} > >} > > Is there a

Re: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

2010-11-16 Thread Valentin Mahrwald
On 16 Nov 2010, at 09:42, Charles Moulliard wrote: > There was a conflict with another ServiceMix bundle providing too jndi > context. I have remove it and restart my project. Everything works fine. > > This is easier to configure compare to Spring + Hibernate stuffs on OSGI. I > will produce

Re: Looking up a Blueprint service via JNDI / InitialContext

2010-10-01 Thread Valentin Mahrwald
Hi Alex, what you do all sounds entirely reasonable. The one thing I wonder is from where your lookup originates. For the osgi:service to work, I believe the caller has to be a bundle in the same OSGi framework as the service. If you are doing the lookup out of say a JEE application it is not g

Re: BluePrint JPA JTA xmlns problem

2010-09-25 Thread Valentin Mahrwald
XX >36|Active |1|slf4j-api (1.6.1) > 37|Resolved |1|slf4j-simple (1.6.1) > > I may try the blog build later on. > > Regards > LongkerDandy > > On Sat, Sep 25, 2010 at 9:57 PM, Valentin Mahrwald > wrote: > Hi LongerDandy,

Re: BluePrint JPA JTA xmlns problem

2010-09-25 Thread Valentin Mahrwald
Hi LongerDandy, that sounds like you don't have the bundles that supply the namespaces (or they are not active for whatever reason). The namespaces are included in org.apache.aries.jpa.blueprint and org.apache.aries.transaction.blueprint, which you will need in addition to core blueprint if you

Re: Aries JPA, OpenJPA and MySQL

2010-09-18 Thread Valentin Mahrwald
Hi Bengt, the error you see in my experience is almost always due to the jta-data-source not being found, OpenJPA then goes on to try creating a data source from the properties (in the persistence.xml not the ones in blueprint) where you have nothing specified. In your persistence xml I think

Re: Does Aries Blueprint require cglib or asm?

2010-09-14 Thread Valentin Mahrwald
Hi Bengt, Blueprint does not require asm or cglib for standard functionality. But some of the extra stuff in particular interceptors need the ability to proxy classes rather than interfaces. In such a case either asm or cglib is required. Also, I believe if you want to export classes rather tha

Re: Generation of config.ini

2010-08-09 Thread Valentin Mahrwald
Hi Alexandros, there does not seem to be too much magic, the config.ini file is checked in the src/main/filtered-resources/configuration/config.ini and by the looks of it is simply copied into the output directory. Thanks for reporting this! I have checked in the change under ARIES-377. Regard

Re: Aries-blueprint not injecting properties with overloaded setter methods(?)

2010-07-19 Thread Valentin Mahrwald
with a single > argument for a specific property. If overloaded properties are > encountered, the chosen set method is unspecified." > > So I guess we might need to update the Blueprint code. > > Jarek > > On Mon, Jul 19, 2010 at 1:45 PM, Valentin Mahrwald > w

Re: Aries-blueprint not injecting properties with overloaded setter methods(?)

2010-07-19 Thread Valentin Mahrwald
Hi Tomasz, I had a look through the spec and it is unfortunately quite explicit in ruling out your scenario :( From the spec (121.5.7): name – The name of the bean property. This name refers to the set method on the constructed object as specified in the design pattern for beans getters and se

Re: using the blog sample

2010-07-04 Thread Valentin Mahrwald
Very nice! I followed it all the way through and except for a small race condition between the blog datasource service registration and the jpa extender creating the EntityManager everything worked like a charm. I am not quite sure what the right fix for the race condition is, I am not sure twe

Re: using the blog sample

2010-06-24 Thread Valentin Mahrwald
Hi Jamie, comments below. On 24 Jun 2010, at 23:12, jamie campbell wrote: > Hello, > > I'm trying to get the blog sample (specifically with jpa persistence) working > within felix/karaf 1.6.0 .. if docs on how to do this already exist, then I'd > love a link to them. > > Otherwise.. here's

Re: Add custom lifecycle management

2010-06-18 Thread Valentin Mahrwald
Hi Norman, that sounds like quite a tall order :) Especially, ordering configuration and JSR250 (or blueprint) lifecycle callbacks sounds like something blueprint is unlikely to support out of the box. By the sounds of it for the level of control you want, you might want to use the org.apache.

Re: questions to Overview.ppt

2010-05-17 Thread Valentin Mahrwald
Hi Lukasz, comments below :) Valentin On 17 May 2010, at 13:36, Lichota, Lukasz wrote: > I have a few questions to this presentation: > https://svn.apache.org/repos/asf/incubator/aries/slides/Apache%20Aries%20-%20Overview.ppt > > 1. Slide #6 - Simplifies unit test outside either Java EE or

Re: AriesBundleTrackerCustomizer.java in aries util in empty

2010-05-14 Thread Valentin Mahrwald
Hi Ivanhoe, I fixed the problem that Zoe and I could see on her system, which is an incomplete JNDI bundle. So there should be hope again of getting the blog sample running from a fresh checkout ;) Regards, Valentin On 14 May 2010, at 16:45, zoe slattery wrote: > Hi Ivanhoe - I just cleared