Re: [appfuse-user] long lost developer

2007-09-25 Thread Nathan Anderson
Okay looks like @ManyToOne is the way to go for my scenario. I ran "mvn appfuse:gen" after modifying my POJO which seemed to help. Now when I run "mvn jetty:run-war" I don't get the surefire failures any more. But when I try to add one of the objects that contains the other object I just get

Re: [appfuse-user] long lost developer

2007-09-25 Thread Nathan Anderson
Thanks for the info and sorry for the double send of that last message. I wasn't sure which account one I had registered with the mailing list. I found the surefire reports and you are right they are not the easiest to look at, and in this case they are pretty cryptic [just an NPE :/]. I ha

Re: [appfuse-user] long lost developer

2007-09-25 Thread Matt Raible
For an embedded POJO (like Address), you need @Component on the object that embeds it: @Embedded public Address getAddress() { return address; } Then you need @Embeddable on the object that's being embedded: @Embeddable public class Address extends BaseObject implements Seria

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
I'd be happy to. The NonUniqueObjectException problem (which had nothing to do with the "cannot simultaneously fetch multiple bags" problem) was caused by setting an id on a bean that was already saved in the database. The "cannot simultaneously fetch multiple bags" problem, which is more intere

[appfuse-user] long lost developer

2007-09-25 Thread Nathan Anderson
Hey folks, I've been away from AppFuse a while and I'm trying to reacquaint myself but I seem to be hitting some roadblocks. I have created some POJO's for my Struts 2 basic app, but I'm having a problem with running my app now that I have POJO that embeds another POJO. This is similar to Us

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread Matt Raible
Can you please explain the problem and your solution so others can benefit from this thread? Thanks, Matt On 9/25/07, gederer <[EMAIL PROTECTED]> wrote: > > I solved the NonUniqueObjectException problem, and it was, indeed, totally > unrelated. > > Thanks! > > Greg > > > gederer wrote: > > > > L

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
I solved the NonUniqueObjectException problem, and it was, indeed, totally unrelated. Thanks! Greg gederer wrote: > > Looks like this is related to: > > > http://opensource.atlassian.com/projects/hibernate/browse/EJB-217;jsessionid=a1-7b0QD0HedspCMsq > > And: > > > http://www.jroller.c

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
Looks like this is related to: http://opensource.atlassian.com/projects/hibernate/browse/EJB-217;jsessionid=a1-7b0QD0HedspCMsq And: http://www.jroller.com/eyallupu/entry/hibernate_exception_simultaneously_fetch_multiple I added @Fetch(FetchMode.SUBSELECT). This got rid of the HibernateExc

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
I'm still using 2.0-RC1 due to local subversion issues that I haven't resolved yet. I added: to my applicationContext-service.xml. Still getting "org.hibernate.HibernateException: cannot simultaneously fetch multiple bags", though. Greg mraible wrote: > > This appears to be

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread Matt Raible
This appears to be the problem: Invocation of init method failed; nested exception is org.hibernate.HibernateException: cannot simultaneously fetch multiple bags Are you using 2.0 or did you upgrade? If you upgraded, are you using appfuse-service and loading it's applicationContext-service.xml?

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
Yes. I have uncommented both the filter and filter-mapping in web.xml. Also, I've had good luck with OSIV elsewhere. Greg mraible wrote: > > Have you tried uncommenting the OpenSessionInViewFilter in web.xml? > > Matt > > On 9/25/07, gederer <[EMAIL PROTECTED]> wrote: >> >> Hmm. OK. >> >

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread Matt Raible
Have you tried uncommenting the OpenSessionInViewFilter in web.xml? Matt On 9/25/07, gederer <[EMAIL PROTECTED]> wrote: > > Hmm. OK. > > The real cause of my woes is this stacktrace: > > DEBUG [btpool0-1] ToysResoldFormController.onSubmit(115) | entering > 'onSubmit' method... > ERROR [btpool0-1

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
Hmm. OK. The real cause of my woes is this stacktrace: DEBUG [btpool0-1] ToysResoldFormController.onSubmit(115) | entering 'onSubmit' method... ERROR [btpool0-1] LazyInitializationException.(19) | failed to lazily initialize a collection of role: com.firstworldtoys.model.ToyProvider.resellerToy

Re: [appfuse-user] No Transaction manager found

2007-09-25 Thread Matt Raible
This is Jetty warning you that you don't have a JTA Transaction manager registered. You shouldn't need this unless you want to have transactions that span multiple resources. If you need this, you'll need to register one with Jetty (or use an app server that has one out-of-the-box) and then change

[appfuse-user] No Transaction manager found

2007-09-25 Thread gederer
Hi, When I run mvn jetty:run, I get this message in the output: [INFO] Starting jetty 6.1.5 ... 2007-09-25 19:36:29.709::INFO: jetty-6.1.5 2007-09-25 19:36:29.963::INFO: No Transaction manager found - if your webapp requires one, please configure one. Not having a transaction manager se

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-25 Thread Matt Raible
Looking at the user guide (http://tacos.sourceforge.net/userguide/Setup.html), it looks like we might've forgot one essentials step - adding Tacos to tapestry.application: Can you try that and see if it helps? Thanks, Matt On 9/25/07, cpnguyen <[EMAIL PROTECTED]> wrote: > > Also, is there any

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-25 Thread Matt Raible
It's very difficult to read this message - can you please resend it with better formatting to [EMAIL PROTECTED] Maybe you selected the "contains HTML" option on Nabble? I don't believe you need to do this. Matt On 9/25/07, cpnguyen <[EMAIL PROTECTED]> wrote: > Hello all, I am in the process of u

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-25 Thread Matt Raible
AppFuse 2.0 uses MySQL version 5.0.5, which is the most recent on in Maven's repository. http://mvnrepository.com/artifact/mysql/mysql-connector-java Matt On 9/25/07, Richard Paul <[EMAIL PROTECTED]> wrote: > > I believe I am using the JDBC driver provided by appfuse. > I upgraded the MySQL serv

Re: [appfuse-user] Getting JDBC Exception if application not used for more than 8 hours

2007-09-25 Thread Matt Raible
If you're seeing this issue with 2.0 Final, maybe it's caused by the following change? I don't think these changes should affect anything, but you never know. http://tinyurl.com/ysot66 Matt On 9/25/07, sparqle <[EMAIL PROTECTED]> wrote: > > Hello Pete, > > Thank you for the response. I agree wit

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-25 Thread cpnguyen
Also, is there any documentation on how to use Tacos in Appfuse 2.0 (since it is now integrated)? -- View this message in context: http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12891241 Sent from the AppFuse - User mailing list ar

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-25 Thread Richard Paul
I believe I am using the JDBC driver provided by appfuse. I upgraded the MySQL server from 5.0.26 to 5.0.45 and the problem seems to have disappeared. mraible wrote: > > It sounds like you need to add autoReconnect=true to your jdbc.url. I > believe this was added by default to recent versions

[appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-25 Thread cpnguyen
Hello all, I am in the process of upgrading my webapp from Appfuse 2.0 M5 to 2.0 and I have been following the migration guides. Things are starting to return to normal, but I am experiencing an issue with DatePicker that I have no idea how to fix. The issue appears with both FF2 and IE7. With

Re: [appfuse-user] Getting JDBC Exception if application not used for more than 8 hours

2007-09-25 Thread sparqle
Hello Pete, Thank you for the response. I agree with that option 1 below should be avoided - if possible. Regarding, option 2, that is what I have tried already with the autoReconnect=true option in the URL. I am not sure why it is not working. Also, I expected at least dbcp to be able to handle

Re: [appfuse-user] Anonymous access to SVN repository for AppFuse?

2007-09-25 Thread Matt Raible
The username is guest and the password is blank. On 9/25/07, John Kwon <[EMAIL PROTECTED]> wrote: > I tried to use Tortoise SVN to connect to: > > https://appfuse.dev.java.net/svn/appfuse/trunk/ appfuse > > and it wanted a userid and password. Am I doing something wrong? > -- http://raibledes

[appfuse-user] Anonymous access to SVN repository for AppFuse?

2007-09-25 Thread John Kwon
I tried to use Tortoise SVN to connect to: https://appfuse.dev.java.net/svn/appfuse/trunk/ appfuse and it wanted a userid and password. Am I doing something wrong?

Re: [appfuse-user] Integration Test fails due to 'proxy' authentication problem

2007-09-25 Thread Matt Raible
Did you find R_1617 in a public repo or did you have to install it yourself? Can you create an issue in JIRA to upgrade to this release? Thanks, Matt On 9/25/07, tnsilver <[EMAIL PROTECTED]> wrote: > > OK, here is a short solution to a big problem. After days of trying to get my > web tests runn

Re: [appfuse-user] Dwr query

2007-09-25 Thread Matt Raible
Have you tried registering a Hibernate Converter? http://getahead.org/dwr/server/hibernate Matt On 9/25/07, jithesh <[EMAIL PROTECTED]> wrote: > > hi > > i configured the dwr.xml as follows. > > > > > > > converter="bean"> > > and by JSP is > > > > >

Re: [appfuse-user] Swing integration

2007-09-25 Thread Matt Raible
On 9/25/07, Bacchu, Anjan (ETW) <[EMAIL PROTECTED]> wrote: > Hi Matt, > > " If you have any opinions on whether this is a good direction, we'd > love to hear them. With an appfuse-ws, hopefully we can open things up > to new clients like GWT, Flex/OpenLaszlo and Swing." > > Enunciate : That loo

Re: [appfuse-user] appfuse:gen-model + Oracle....Error Hibernate Dialect

2007-09-25 Thread Matt Raible
Are you using AppFuse for your project? There should be a jdbc.properties in your target/test-classes (or target/classes) directory that the plugin reads from. Matt On 9/25/07, hkadejo <[EMAIL PROTECTED]> wrote: > > Im run mvn appfuse:gen-model and I obtain like result : > > [INFO] Scanning for p

Re: [appfuse-user] Is hibernate.reveng.xml ignored by AMP? How to control reverse eng?

2007-09-25 Thread mraible
Did you try customizing hibernate.reveng.xml and ignoring the "All" table? If you search the archives of this mailing list, you should find out how to do this. The following issue may help too: http://issues.appfuse.org/browse/APF-902 Matt hkadejo wrote: > > That solution does not work I have

Re: [appfuse-user] Is hibernate.reveng.xml ignored by AMP? How to control reverse eng?

2007-09-25 Thread hkadejo
That solution does not work I have he himself problem .. 11:13:12,092 WARN org.hibernate.cfg.reveng.JDBCReader - Rev.eng. strategy did n ot report any primary key columns for WM$VERSIONS_IN_LIVE_VIEW 11:13:12,107 WARN org.hibernate.cfg.reveng.JDBCReader - The JDBC driver didn't rep

Re: [appfuse-user] Swing integration

2007-09-25 Thread Marcello Teodori
Hi Matt, this is a great idea, I am currently working on a prototype for a flex application starting from the appfuse-modular-spring archetype. The web services layer is built on Granite Data Services which implements them using the native Flash data serialization for best performance. Hopefully t

[appfuse-user] appfuse:gen-model + Oracle....Error Hibernate Dialect

2007-09-25 Thread hkadejo
Im run mvn appfuse:gen-model and I obtain like result : [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'appfuse'. [INFO] - --- [INFO] Building Unnamed - xzero.com:prueba:war:1.0 [INFO]

[appfuse-user] debugging through Appfuse 1.9.4

2007-09-25 Thread Ding, Qin
Hi, I am using Appfuse 1.9.4, JSF, Eclipse 3.2 and tomcat plugin of sysdeo. I have a difficult time to set it up for debugging even I followed first Matt's instruction on http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseEclipse. I also found a few site giving the instructions but still not wo

Re: [appfuse-user] Integration Test fails due to 'proxy' authentication problem

2007-09-25 Thread tnsilver
OK, here is a short solution to a big problem. After days of trying to get my web tests running I 'accidentally' upgraded my pom to R_1617 (latest snapshot according to canoo webtest on http://webtest.canoo.com/webtest/manual/Downloads.html) and the webtests begun to run. It seems canoo webtests

Re: [appfuse-user] Getting JDBC Exception if application not used for more than 8 hours

2007-09-25 Thread Pete Gould
Hiya, Seems to be a couple of different ways of addressing this problem (none of which I've tried ;p), but maybe this will be of some use to you before someone who knows what they're talking about offers a hand! 1. Increase the *wait_timeout* setting in your mysql.ini or mysql.cnf file.. which se

RE: [appfuse-user] Swing integration

2007-09-25 Thread Bacchu, Anjan (ETW)
Hi Matt, " If you have any opinions on whether this is a good direction, we'd love to hear them. With an appfuse-ws, hopefully we can open things up to new clients like GWT, Flex/OpenLaszlo and Swing." Enunciate : That looks cool. Is this feature going to be available on the ant-version of ap

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-25 Thread syg6
Well I found my problem, more or less. It's obvious if you look at my code. This is what I was doing in showForm(): ... ModelAndView mav = new ModelAndView("findSections", "sections", sections); mav.addObject("streets",referenceData(request)); return mav; ... Nowhere was I actually returning t

[appfuse-user] Getting JDBC Exception if application not used for more than 8 hours

2007-09-25 Thread sparqle
Hello, I am using Appfuse2.0 RC1, and I get the following JDBC exception every morning on my application (if I am the first person to login). I am guessing that this is happening due to a timeout of the MySQL connections. I tried changing the URL of my database to include the "autoReconnect=true

[appfuse-user] Dwr query

2007-09-25 Thread jithesh
hi i configured the dwr.xml as follows. and by JSP is

Re: [appfuse-user] Creating a plugin-based web application

2007-09-25 Thread Michael Horwitz
You may want to take a look at OSGI: http://www.springframework.org/osgi. It is something that is on the AppFuse roadmap (or at least used to be?), but none of us seem to have time to look into it in depth. Mike On 9/25/07, Yopy <[EMAIL PROTECTED]> wrote: > > > To anyone willing to at least point

[appfuse-user] Creating a plugin-based web application

2007-09-25 Thread Yopy
To anyone willing to at least point me in the right direction, I'm currently working on a web application, one which has to be quite flexible and all. One part of it is to present the user with information from a certain source of data. This source can be anything - an XML file, database data, et