RE: [appfuse-user] Hibernate Interceptor

2008-02-21 Thread Tobias Vogel
p://tinyurl.com/35b53w > > Matt > > On Feb 14, 2008, at 8:17 AM, Tobias Vogel wrote: > > > Hello list, > > > > I've got a short question regarding Interceptors for Hibernate in > > AppFuse-2.0 > > > > Normally, I'd just add the interce

[appfuse-user] Hibernate Interceptor

2008-02-14 Thread Tobias Vogel
Hello list, I've got a short question regarding Interceptors for Hibernate in AppFuse-2.0 Normally, I'd just add the interceptor to the sessionFactory bean-definition using the property "entityInterceptor". But in AppFuse-2.0 the definition of the sessionFactory is bundled in the appfuse jars.

RE: [appfuse-user] OpenSessionInViewFilter and Hibernate cascades

2008-02-12 Thread Tobias Vogel
k. If it doesn't, adding @Transactional sounds like an easy > workaround. > > Matt > > On 2/12/08, Tobias Vogel <[EMAIL PROTECTED]> wrote: > > Hi list, > > > > I'm fiddling around with the lazyLoadingFilter > (OpenSessionInViewFilter) > >

[appfuse-user] OpenSessionInViewFilter and Hibernate cascades

2008-02-12 Thread Tobias Vogel
Hi list, I'm fiddling around with the lazyLoadingFilter (OpenSessionInViewFilter) in AppFuse 2.x a little. The base AppFuse files already contain the right aop-config, to mark any manager as transactional, so basically no problem. If I enable the lazyLoadingFilter for my webapp and call the save

AW: [appfuse-user] LazyInitializationException: illegal access to loading collection....

2007-07-30 Thread Tobias Vogel
I had my problems too, especially finding a "business key" for every entity, as the hibernate team proposes. Finally, I picked up the idea of implementing equals and hashcode using the obect's id, and a random identifier on newly created objects. For this purpose I have a base class for all object

AW: [appfuse-user] Adding extra jar

2007-07-20 Thread Tobias Vogel
Hi, what always works for me is the following: - mvn eclipse:clean eclipse:eclipse - Mark the root dir of the project and press F5 to refresh After that, all depencencies are correct for Eclipse. If not, I always made a mistake in the maven pom. HTH, Tobias -Ursprüngliche Nachricht- V

AW: [appfuse-user] Set up local mirror of AppFuse 2 (http://www.appfuse.org/)

2007-07-11 Thread Tobias Vogel
I should add, the path behind "-P" has to be a absolute path, to get this to work. Kind regards, Tobias -Ursprüngliche Nachricht- Von: Tobias Vogel [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Juli 2007 14:06 An: users@appfuse.dev.java.net Betreff: AW: [appfuse-user] Se

AW: [appfuse-user] Set up local mirror of AppFuse 2 (http://www.appfuse.org/)

2007-07-11 Thread Tobias Vogel
Hi, you can do it with wget (on Linux or use cygwin), example: $ mkdir appfuse_site $ cd appfuse_site $ wget --mirror -w 2 -p --html-extension --convert-links -P appfuse.org-2007-07-11 http://www.appfuse.org/ See http://www.jim.roberts.net/articles/wget.html for a detailed explanation Kind reg

AW: [appfuse-user] Error while running test [mvn test -Dtest=PersonListTest]

2007-07-05 Thread Tobias Vogel
You don't have a personDao configured in your applicationContext.xml. You either have to define one, or construct it on the fly: See http://appfuse.org/display/APF/Services for reference. Kind regards,

AW: [appfuse-user] Database updates

2007-07-04 Thread Tobias Vogel
I'd recommend to import the production data into a test system using a binary dump (much faster than xml-export/import using dbunit), and trying the update on this one. After that (if everything went well) you can create a new binary dump of the test database and reimport it into production. This w

AW: [appfuse-user] Hibernate Relationships tutorial for Appfuse 2?

2007-07-04 Thread Tobias Vogel
For me, the annotations seem to be easier and much more readable than Xdoclet tags. I started with the hibernate reference (it has an extra chapter for Hibernate-specific annotations), and got productive within 1 or 2 days: http://www.hibernate.org/hib_docs/annotations/reference/en/html/ HTH an

AW: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread Tobias Vogel
You have to call Hibernate.initialize() on all collections, that are lazy loaded, e.g.: Hibernate.initialize(person.getAddresses()); Hibernate.initialize(person.getPhoneNumbers()); ... Did you try that? In my application, my "getAll()" method only returns lazy initialized objects. I then over

AW: [appfuse-user] Add ManyToOne relationship between user and a new pojo

2007-06-28 Thread Tobias Vogel
There's a possibility betweem modifying nothing and pulling in the full sources. You can also just modify the core classes (only the domain objects). See: http://appfuse.org/display/APF/AppFuse+Core+Classes Kind regards, Tobias -Ursprüngliche Nachricht- Von: Fan [mailto:[EMAIL PROTECTED

AW: [appfuse-user] AW: missing required library

2007-06-27 Thread Tobias Vogel
e" do ?? If I want to trace the procedure of this command, where & how could I start with ? Tobias Vogel wrote: > > Are the error messages from eclipse? > Then run: > mvn eclipse:clean eclipse:eclipse > > -Ursprüngliche Nachricht- > Von: Fan [mailto:[EMAIL

AW: [appfuse-user] Using Hibernate Tools w/ appfuse

2007-06-27 Thread Tobias Vogel
Hi Daniel, You have to add the following entries to the classpath of the configuration: $M2_REPO/mysql/mysql-connector-java/5.0.5/mysql-connector-java-5.0.5.jar $M2_REPO/org/acegisecurity/acegi-security/1.0.3/acegi-security-1.0.3.jar $M2_REPO/org/apache/commons/commons-lang/2.3/commons-lang-2.3.ja

AW: [appfuse-user] missing required library

2007-06-26 Thread Tobias Vogel
Are the error messages from eclipse? Then run: mvn eclipse:clean eclipse:eclipse -Ursprüngliche Nachricht- Von: Fan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 26. Juni 2007 17:55 An: users@appfuse.dev.java.net Betreff: Re: [appfuse-user] missing required library Yup, I did, I even re

AW: [appfuse-user] AppfuseAcegi.rar

2007-06-21 Thread Tobias Vogel
The rar is not corrupted, at least I can open it. Anyway, the version in it will not work with the current library versions and some minor modifications are nedded to get it working. Are you using Appfuse-1.9.x or AppFuse-2? I implemented ACLs on AppFuse-2 starting from this tutorial, but with

AW: [appfuse-user] Closing connections

2007-06-19 Thread Tobias Vogel
> On 6/15/07, Matt Raible wrote: > > On 6/15/07, Tobias Vogel <[EMAIL PROTECTED]> wrote: > > > > [problems with open connections] > > > > You might try using getSessionFactory().getCurrentSession() > instead of getSession(). Thanks a lot, th

AW: [appfuse-user] Closing connections

2007-06-15 Thread Tobias Vogel
L that you are using method interceptors on your service methods? You may want to check that your interceptors are being applied after the transaction interceptor to make sure they all execute within the same transaction. Mike. On 6/15/07, Tobias Vogel <[EMAIL PROTECTED]> wrote:

[appfuse-user] Closing connections

2007-06-15 Thread Tobias Vogel
Hi all, I ported the ACL example from AppFuse-1.9.x to AppFuse-2. I now started a test case with about 1 secured objects and then called the PersonManager's getPerson()-method. After a short time this results in a SQLException stating "Too many connections". With the command line tool (mysql)

AW: [appfuse-user] domain object security using ACLs

2007-06-14 Thread Tobias Vogel
Hi Jason, over the last days I tried to implement ACLs with the new Acegi ACL package in my project. Due to lack of documentation I gave up after two days. One additional issue to the CGLIB Proxies is the fact, that the new Acegi ACL package contains hardcoded SQL for ACL management, which only

AW: [appfuse-user] mvn site:site fails in Appfuse 2.0-M5

2007-06-13 Thread Tobias Vogel
I had a similiar issue when i added the AppFuse core classes. If you did the same, the following issue will give you advice how to work around it: http://issues.appfuse.org/browse/APF-783 Tobias -Ursprüngliche Nachricht- Von: sarat.pediredla [mailto:[EMAIL PROTECTED] Gesendet: Diensta

[appfuse-user] Overriding User-Manager

2007-06-06 Thread Tobias Vogel
Hi all, I am currently using a AppFuse 2.0-M5 archetype (Spring-MVC modular) for building a backend for a Spring-RCP app. I ran into some synchronization issues, which I mostly solved - but one. For this purpose I'll need to override the save-Method of the UserManager for debugging (the UserManag

AW: [appfuse-user] Exclusion of appfuse-data-common in M5

2007-05-29 Thread Tobias Vogel
ible Gesendet: Donnerstag, 24. Mai 2007 19:27 An: users@appfuse.dev.java.net Betreff: Re: [appfuse-user] Exclusion of appfuse-data-common in M5 Can you try creating new project instead of using your upgraded one? If you create a new one, can you run "mvn install site" from the top level

AW: [appfuse-user] Exclusion of appfuse-data-common in M5

2007-05-24 Thread Tobias Vogel
te3 plugin when you're running mvn:site. It may be fixed in a SNAPSHOT release. In the meantime, if you run "mvn site -Dmaven.test.skip=true", does that work? Matt On 5/24/07, Tobias Vogel <[EMAIL PROTECTED]> wrote: > Hi Matt, > > thanks for your reply. Yes

AW: [appfuse-user] Exclusion of appfuse-data-common in M5

2007-05-24 Thread Tobias Vogel
roblem? Maybe we just need to update our instructions. Also, if you're using Hibernate, you don't need to exclude/include appfuse-${dao.framework} in your pom.xml - it's only needed if you want to switch to JPA or iBATIS. Matt On 5/24/07, Tobias Vogel <[EMAIL PROTECTED]> wrote: >

[appfuse-user] Exclusion of appfuse-data-common in M5

2007-05-24 Thread Tobias Vogel
Hello, I just tried to migrate from M4 to M5, and had some problems with modified core classes. In M4 you had to add an exclusion of "appfuse-data-common" to the dependency "appfuse-service". In my M5 archetype i did the same, but even after a full rebuild, the appfuse-data-common package still ge

[appfuse-user] Possible bug in UniversalManager?

2007-05-23 Thread Tobias Vogel
Hello, I just integrated a short testcase with appfuse 2.0-M4 (modular) and integrating it into a Spring-RCP project as backend. I just encountered strange behaviour when using UniversalManager, it returns more objects than there are actually in the database: Example: System.out.println("SIZE: