Re: [appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread kkus
After I do a clean build (mvn clean install eclipse:eclipse) as you suggested, there is an error as below for my env. Oracle 9i(9.0.2) +XP SP2+JDK 1.5.11, Running org.appfuse.service.UserManagerTest INFO - AbstractSingleSpringContextTests.loadContextLocations(177) | Loading context for locations:

Re: [appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread Matt Raible
You should be able to import the project - these files are in the sun-directories, which is correct. On 6/15/07, Eric Fitzsimmons <[EMAIL PROTECTED]> wrote: build.xml is an ant build file, so maven is your new build tool, but it is much more than that as well. I am unsure why the .project and

Re: [appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread Eric Fitzsimmons
build.xml is an ant build file, so maven is your new build tool, but it is much more than that as well. I am unsure why the .project and .classpath are not showing up. Try running mvn clean install eclipse:eclipse and see if that works. On 6/15/07, kkus <[EMAIL PROTECTED]> wrote: It is workin

Re: [appfuse-user] log4j.xml - ${groupId}

2007-06-15 Thread Matt Raible
You should be able to manually change this. Matt On 6/15/07, ros <[EMAIL PROTECTED]> wrote: Hi! Done upgrade from M4 to M5. after mvn package in target dir, the vaiables in log4j.xml stay unexpanded: but in m4 was com.mygroup.myproject Why this happens? Thanks! ros

Re: [appfuse-user] log4j.xml - ${groupId}

2007-06-15 Thread ros
Problem found. Sorry. ros wrote: > > Hi! > > Done upgrade from M4 to M5. after mvn package in target dir, the vaiables > in log4j.xml stay unexpanded: > > > > > but in m4 was com.mygroup.myproject > > > > > > Why this happens? > > Thanks! > ros > -- View this

[appfuse-user] Hibernate not updating Model class with composite embedded id

2007-06-15 Thread masterg007
Help: I have a model class called DealResource that has a composite id (embeddedId) call dealResourceId which represents the primary key. I am using Hibernate JPA with annotations and I am able to insert records but if I try to update an existing record hibernate tries to insert the record instea

[appfuse-user] log4j.xml - ${groupId}

2007-06-15 Thread ros
Hi! Done upgrade from M4 to M5. after mvn package in target dir, the vaiables in log4j.xml stay unexpanded: but in m4 was com.mygroup.myproject Why this happens? Thanks! ros -- View this message in context: http://www.nabble.com/log4j.xml---%24%7BgroupId%7D-tf393

Re: [appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread kkus
It is working without error. But I can't find expected .project, .classpath and build.xml files. Could you tell me what mvn command does that or I have to configure all libs manually in Eclipse? Thanks! mraible wrote: > > You need to "cd" into your new project before running this command. > >

Re: [appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread Matt Raible
You need to "cd" into your new project before running this command. Matt On 6/15/07, kkus <[EMAIL PROTECTED]> wrote: My env. is JDK 1.5.11 in XP SP2. First I used following command and it was successful, mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-

[appfuse-user] Error in 2 m5 when generating Eclipse project file

2007-06-15 Thread kkus
My env. is JDK 1.5.11 in XP SP2. First I used following command and it was successful, mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=fuel -DartifactId=app

Re: [appfuse-user] Children not getting loaded on Jetty server

2007-06-15 Thread jeremiah.lopez
That brings up a follow up question. Which one am I using? I could say that I am using JPA because I'm using the JPA annotations in my POJOs. But then again, I could say I am using Hibernate because that is my persistence layer. So which one of these filters sounds like it applies to my situat

Re: [appfuse-user] Overriding save() in xxxManagerImpl 2M5

2007-06-15 Thread Arvinder Brar
I am using the new syntax in all my calls. --- cpnguyen <[EMAIL PROTECTED]> wrote: > > From the > http://appfuse.org/display/APF/Release+Notes+2.0+M5 > Release Notes : > > Change in usage of Managers and DAOs > > In versions prior to M5, the EntityManager.merge() > method was being used > inco

Re: [appfuse-user] Appfuse Spring Basoc 2.0-M5 - mvn integration-test does not work

2007-06-15 Thread Developer Abe
I don't want to make any guaranties because I already have a pretty full plate at work but I will take a look into it (appfuse-maven-plugin). Thanks, Abe On 6/15/07, Matt Raible <[EMAIL PROTECTED]> wrote: Are you trying to make full-source work with modular archetypes? If so, you can probabl

Re: [appfuse-user] Setting Entity defaults with @PrePersist

2007-06-15 Thread Franco
Sorry, here it is I am using appfuse 2 with Hibernate implementation. I have a table with this definition CREATE TABLE /*!32312 IF NOT EXISTS*/ `catalog` ( `id` bigint(20) NOT NULL auto_increment, `catalog_name` varchar(100) NOT NULL, `active` varchar(1) NOT NULL,

Re: [appfuse-user] Axis and AppFuse 2

2007-06-15 Thread Matt Raible
No, as far as I know - no one has tried to get Axis to work with AppFuse 2. Matt On 6/15/07, mavenj <[EMAIL PROTECTED]> wrote: Is there an AppFuse 2 version Axis page? If I blindly use the mojo axistools:wsdl2java plugin and generate source code, override the server Impl class and try to do d

Re: [appfuse-user] m5 struts problem with tomcat but not jetty

2007-06-15 Thread Matt Raible
It looks like it's barfing on two things: 1) the 404.jsp and 2) an if statement in the SiteMesh decorator. You might try removing the decorator tags from 404.jsp and see if that helps. Matt On 6/15/07, Travers Snyman <[EMAIL PROTECTED]> wrote: I have followed the person tutorial for struts

Re: [appfuse-user] Closing connections

2007-06-15 Thread Matt Raible
On 6/15/07, Tobias Vogel <[EMAIL PROTECTED]> wrote: 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

[appfuse-user] Axis and AppFuse 2

2007-06-15 Thread mavenj
Is there an AppFuse 2 version Axis page? If I blindly use the mojo axistools:wsdl2java plugin and generate source code, override the server Impl class and try to do dependency injection (by defining my Impl class in applicationContext.xml), the managed beans never get set. I suppose the AxisServ

Re: [appfuse-user] Setting Entity defaults with @PrePersist

2007-06-15 Thread Matt Raible
This message came though all jumbled together. Can you resend it in plain-text? Matt On 6/15/07, Franco <[EMAIL PROTECTED]> wrote: I am using appfuse 2 with Hibernate implementation. I have a table with this definition CREATE TABLE /*!32312 IF NOT EXISTS*/ `catalog` ( `id` bigint(20) NOT NULL

Re: [appfuse-user] Appfuse Spring Basoc 2.0-M5 - mvn integration-test does not work

2007-06-15 Thread Matt Raible
Are you trying to make full-source work with modular archetypes? If so, you can probably re-use some existing logic in the plugin. Rather than pulling down all the pom.xml files and putting the dependencies/properties into one pom.xml, you'll need to put them into 3 pom.xml files. Hope that help

Re: [appfuse-user] Overriding save() in xxxManagerImpl 2M5

2007-06-15 Thread cpnguyen
>From the http://appfuse.org/display/APF/Release+Notes+2.0+M5 Release Notes : Change in usage of Managers and DAOs In versions prior to M5, the EntityManager.merge() method was being used incorrectly. This has been fixed for M5, and the fix requires a slight modification of how Manager and DAO

Re: [appfuse-user] Appfuse Spring Basoc 2.0-M5 - mvn integration-test does not work

2007-06-15 Thread Developer Abe
Hi Matt, I am having the same problem. I started to look into the source code and I was wondering if you could give me a hint of where I need to look and what I need to do to get rid of the missing dependency problems. Regards, Abe On 5/24/07, Matt Raible <[EMAIL PROTECTED]> wrote: The full

Re: [appfuse-user] Not able to run appfuse:full-source

2007-06-15 Thread Developer Abe
Matt, Sorry I didn't get back to you sooner. I was out yesterday. You are the best. That fixed it. Warmest Regards, Abe On 6/13/07, Matt Raible <[EMAIL PROTECTED]> wrote: You might try deleting your local AppFuse plugin (rm -r ~/.m2/repository/org/codehaus/mojo/appfuse-maven-plugin). This

[appfuse-user] Setting Entity defaults with @PrePersist

2007-06-15 Thread Franco
I am using appfuse 2 with Hibernate implementation. I have a table with this definition CREATE TABLE /*!32312 IF NOT EXISTS*/ `catalog` ( `id` bigint(20) NOT NULL auto_increment, `catalog_name` varchar(100) NOT NULL, `active` varchar(1) NOT NULL, `date_created` datetime default NULL, PR

Re: [appfuse-user] Children not getting loaded on Jetty server

2007-06-15 Thread jeremiah.lopez
Ok, so I changed my web.xml to use the OpenEntityManagerInViewFilter and restarted the Jetty server with 'mvn jetty:run-war'. The server appears to start up fine with to exceptions, but when I access 'http://localhost:8080' in my web browser, I get the following exception: org.springframework.be

AW: [appfuse-user] Closing connections

2007-06-15 Thread Tobias Vogel
Actually, the OpenSessionInViewFilter does not change the behaviour. I debugged a little further so far: During normal operation (load, save, remove), the open connections grow till the maximum (3 connections per object and per operation), but the some kind of clean up purges about half of the co

Re: [appfuse-user] Closing connections

2007-06-15 Thread Michael Horwitz
This may also be related to the use of the OpenSessionInView filter. In AppFuse 2.0x this is commented out by default - you may try uncommenting it to see if holding the session open reduces the number of connections. I also assume with ACL that you are using method interceptors on your service me

[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)

[appfuse-user] Overriding save() in xxxManagerImpl 2M5

2007-06-15 Thread arvinder
If I try to override save method of GenericManagerImpl in my xxxManagerImpl I get a Data access failure error about transaction being read only. This error occurs even if I have only one line of code, return super.save(object). But if I create a custom method saveXXX(object) in my xxxManagerImpl

Re: [appfuse-user] mvn -Dmaven.test.skip=true clean package -P jboss

2007-06-15 Thread Michael Horwitz
The easiest way to sort out such a problem is to put an explicit dependency on commons-collections in your pom.xml. That should make sure the correct version makes it into the final build. Mike. On 6/15/07, ros <[EMAIL PROTECTED]> wrote: Hi! When do package with jboss profile (mvn -Dmaven.t

[appfuse-user] RSA Token Authentication and acegic

2007-06-15 Thread reddeagle9
Hi Guys, Has anyone done any work integrating an appufuse project with RSA token. I have just created my agent that access uers names and pin/passcode and can authenticate, but now i have to begin the the task of integrating it with one of my appfuse projects that currently uses dao authenticati

[appfuse-user] mvn -Dmaven.test.skip=true clean package -P jboss

2007-06-15 Thread ros
Hi! When do package with jboss profile (mvn -Dmaven.test.skip=true clean package -P jboss) the result is /target/tickets-1.0-SNAPSHOT/WEB-INF/lib/commons-collections-2.1.jar I expect it to be commons-collections-3.x.jar. And it is if build is done without -P parameter. It looks like this proble

[appfuse-user] m5 struts problem with tomcat but not jetty

2007-06-15 Thread Travers Snyman
I have followed the person tutorial for struts basic type and experienced a problem right at the end. Everything works fine on jetty (mvn jetty:run-war), but with tomcat (mvn cargo:start -Dcargo.wait=true), I get a null pointer exception when trying to access editPerson. The list person is fine. It

Re: [appfuse-user] sitemesh's problem!!

2007-06-15 Thread ChengJiaguo
Michael Horwitz ??: Sitemesh is configured, by default, to filter on the user request (which are mapped by your chosen web framework to /WEB-INF/pages/). So you would need to exclude the corresponding URL(s) in the section of decorators.xml. Mike. On 6/15/07, *ChengJiaguo* <[EMAIL PROTECTED]

Re: [appfuse-user] sitemesh's problem!!

2007-06-15 Thread Michael Horwitz
Sitemesh is configured, by default, to filter on the user request (which are mapped by your chosen web framework to /WEB-INF/pages/). So you would need to exclude the corresponding URL(s) in the section of decorators.xml. Mike. On 6/15/07, ChengJiaguo <[EMAIL PROTECTED]> wrote: i don't like t

[appfuse-user] sitemesh's problem!!

2007-06-15 Thread ChengJiaguo
i don't like the (/WEB-INF/pages/*)'s pages decorated by sitemesh . how to config it!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Children not getting loaded on Jetty server

2007-06-15 Thread Michael Horwitz
I believe if you are using JPA then the class for the filter should be: org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter There should be a comment to that effect in the web.xml file? Mike On 6/15/07, jeremiah.lopez <[EMAIL PROTECTED]> wrote: Matt, Yes, I did try that by un

[appfuse-user] Oracle App server 10.1.3.1

2007-06-15 Thread jgardner16
Hi I am trying to deploy my appfuse 2.0 m4 application to OC4J and I get the following exception Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit ApplicationEntityManager Does anyone have any idea what might be c