Re: [appfuse-user] Data Access Failure using select box

2009-09-12 Thread paulie
Hello, I wanted to see if someone would please respond to my problem below. I need to make a decision on the approach to take so I can move forward with development. Thanks paulie wrote: > > Hello, > > I am getting a data access failure on my Struts project when I when >

[appfuse-user] Data Access Failure using select box

2009-09-10 Thread paulie
Hello, I am getting a data access failure on my Struts project when I when attempting to save a change to a select box. I have another select box working based off a different action and set this one up identically (or so it appears). Data Access Failure identifier of an instance of com.pola.

Re: [appfuse-user] manyToOne need assistance in changing the reference type in database (2)

2009-09-01 Thread paulie
You can give the attribute any name that you like. I have been including the base object name on mine so once I start working on the action class and have multiple ids represented, I can follow the same naming convention that was established in the model. shendel_18 wrote: > > Hello im using

Re: [appfuse-user] manyToOne need assistance in changing the reference type in database (2)

2009-08-31 Thread paulie
You need to define which field in Person will be the foreign key: @ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE} ) @JoinColumn(name="PersonId") shendel_18 wrote: > > Hello im using appfuse 2, i need help on how to change the value type in > database. > > Example. > > M

Re: [appfuse-user] ActionTest - Not executing sql queries on Action.class

2009-05-27 Thread paulie
I think that there is still a problem with my action test cases. With isRollback() set to false, I can see the update and delete queries executing and their updates on the database. I can also see a foreign key exception that I have been trying to recreate with an action test case. When I lea

Re: [appfuse-user] ActionTest - Not executing sql queries on Action.class

2009-05-27 Thread paulie
You're correct. I turned off the rollback and was able to see the additional queries. Thanks. -- View this message in context: http://www.nabble.com/ActionTest---Not-executing-sql-queries-on-Action.class-tp23680254s2369p23753384.html Sent from the AppFuse - User mailing list archive at Nabble

Re: [appfuse-user] ActionTest - Not executing sql queries on Action.class

2009-05-26 Thread paulie
Can someone tell me if you see the update and delete sql on the console during the execution of SomeActionTest.java methods testSave() and testRemove()? Thanks. -- View this message in context: http://www.nabble.com/ActionTest---Not-executing-sql-queries-on-Action.class-tp23680254s2369p23735755

Re: [appfuse-user] ActionTest - Not executing sql queries on Action.class

2009-05-26 Thread paulie
paulie wrote: > > Having problems getting testSave() and testRemove() methods to work > properly from my CropActionTest class. > > For testSave(), I can see the select statement where the Crop object is > getting loaded. When I modify the crop name on the object and at

[appfuse-user] ActionTest - Not executing sql queries on Action.class

2009-05-22 Thread paulie
Having problems getting testSave() and testRemove() methods to work properly from my CropActionTest class. For testSave(), I can see the select statement where the Crop object is getting loaded. When I modify the crop name on the object and attempt to save, I don't see a subsequent update stat

Re: [appfuse-user] Conversion to 2.0.2 - Updating Local Repository

2008-08-21 Thread paulie
s via a Maven command. I also wanted to find out about getting rid of the old, unused jar files. Thanks again. mraible wrote: > > vi pom.xml > find and replace ;-) > > On Thu, Aug 21, 2008 at 10:09 AM, paulie <[EMAIL PROTECTED]> wrote: >> >> I have followed th

[appfuse-user] Conversion to 2.0.2 - Updating Local Repository

2008-08-21 Thread paulie
I have followed the upgrade guide and made the necessary changes to convert to AppFuse 2.0.2 from 2.0.1. I am not sure how to get my referenced libraries to the newer versions defined in the pom.xml. Can someone please provide me the Maven command to make this happen. Thanks. -- View this mess

[appfuse-user] Java 5 Enums Tutorial Question

2008-03-26 Thread paulie
This seems to be the enumeration solution that I have been looking for and have set up my enum to follow this model. I am new to the enum concept and have a couple of questions that the tutorial didn't discuss. First, where do I put the property tag reference for the enumClassName parameter? I

Re: [appfuse-user] Circular placeholder reference 'jdbc.driverClassName'

2008-02-21 Thread paulie
r IDE to exclude this file from being copies w/o filtering. I > believe some folks have blogged about this in the last couple months. > > Matt > > On 2/21/08, paulie <[EMAIL PROTECTED]> wrote: >> >> I am having the same issue having deployed my 2.0.1 app from

Re: [appfuse-user] Circular placeholder reference 'jdbc.driverClassName'

2008-02-21 Thread paulie
I am having the same issue having deployed my 2.0.1 app from MyEclipse to Tomcat 5.5. I updated the applicationContext-resources.xml with values from the pom.xml file. Old: New:

[appfuse-user] Problem deleting child in 1..M relationship

2008-01-08 Thread paulie
Hello, I am using Struts 2 basic archtype version 2.0.1. I have been unsuccessful in using DAO for deleting a child in a simple parent/child relationship. Here are the steps that I took. 1. Create Master POJO: @Entity public class Parent extends

[appfuse-user] Basic One-To-Many

2007-05-16 Thread paulie
I have been looking through the forum and user guides trying to piece together the code for putting together a one-to-many relationship. In my code, a Person can have many Addresses. The error I am getting is MappingException: Could not determine type for: java.util.List, for columns: [org.hiber

Re: [appfuse-user] BaseDaoTestCase substitution

2007-04-20 Thread paulie
ses. If enough folks think this is a better approach, we can try > to make it happen after 2.0. > > Matt > > On 4/19/07, paulie <[EMAIL PROTECTED]> wrote: >> >> It just felt weird having something refered to as 'TestCase' promoted to >> product

Re: [appfuse-user] BaseDaoTestCase substitution

2007-04-19 Thread paulie
It just felt weird having something refered to as 'TestCase' promoted to production. I wanted to make sure that this was the right approach. mraible wrote: > > On 4/18/07, paulie <[EMAIL PROTECTED]> wrote: >> >> I have gone through the Hibernate tu

[appfuse-user] BaseDaoTestCase substitution

2007-04-18 Thread paulie
I have gone through the Hibernate tutorials and built an app extending BaseDaoTestCase. Everything is working great. I wanted to see if I should deploy my code extending BaseDaoTestCase, build my own DAO base class, or extend another DAO base class. Let me know if there is somewhere I can find

Re: [appfuse-user] PersonDaoTest not saving to Person table

2007-03-17 Thread paulie
I > believe you can use setComplete() in your test method if you want to > change that behavior. See Spring's Javadocs for more information. > > Matt > > On 3/16/07, paulie <[EMAIL PROTECTED]> wrote: >> >> I am using AppFuse 2.0 and have set up the H

[appfuse-user] PersonDaoTest not saving to Person table

2007-03-16 Thread paulie
I am using AppFuse 2.0 and have set up the Hibernate tutorial. Having problems saving the Person to the database. I have commented out the code to remove the person (it was failing here anyways) and I would expect that I would be able to see the saved Person on the table after executing PersonDa

[appfuse-user] Build.xml source - Newbie Question

2007-03-10 Thread paulie
I have searched the code and the forum but haven't figured out where build.xml (as well as database.properties, properties.xml, and jdbc.properties) are supposed to be derived from or where they belong in the project structure. I am going through the CreateDAO tutorial and am using AppFuse basic-

Re: [appfuse-user] SMTP Authentication with Struts 2 App

2007-02-10 Thread paulie
paulie wrote: > > I tried a few attempts with the same result. Here is the summary: > > Modified src\main\respirces\mail.properties: > > [EMAIL PROTECTED] > mail.debug=false > mail.transport.protocol=smtp > mail.host=smtp.sbcglobal.yahoo.com > [EMAIL PROTECT

Re: [appfuse-user] SMTP Authentication with Struts 2 App

2007-02-10 Thread paulie
is likely that applicationContext-resources.xml is the >first Spring context file loaded, so applicationContext-service.xml >(from the JAR) is overwriting your class. Try adding your bean> >definition to a src/main/webapp/WEB-INF/applicationContext.xml file. > >Matt On 2/8/07, paulie

Re: [appfuse-user] SMTP Authentication with Struts 2 App

2007-02-08 Thread paulie
> > > If you comment out the bottom part in your local bean definition, it > should work. > > Matt > > > > On 2/7/07, paulie <[EMAIL PROTECTED]> wrote: >> >> I have been able to send an email with a simple Java app using javax.mail &g

[appfuse-user] SMTP Authentication with Struts 2 App

2007-02-07 Thread paulie
I have been able to send an email with a simple Java app using javax.mail by setting SMTP authentication: Properties props = System.getProperties(); props.put("mail.smtp.auth", "true"); I have been trying to do the same thing through mail.properties: mail.smtp.auth=true or mail.auth = true I k