Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread John Kwon
I've always thought of hashCode and equals (even back in the smalltalk days) as being keys in the relational sense. If I have an object that's mapping to a table, whatever is being identified as a key using annotations are the only attributes I use in hashCode and equals. I don't include any non-

Re: [appfuse-user] Error while deploying an AppFuse Struts 2 application on Resin 3.1

2008-07-09 Thread George Wei
The problem is solved by adding hibernate-entitymanager.jar into webapps/openstore/WEB-INF/lib folder, but it's still a mystery why Resin needs it but Tomcat does not? George -- View this message in context: http://www.nabble.com/Error-while-deploying-an-AppFuse-Struts-2-application-on-Resin-3.

[appfuse-user] Error while deploying an AppFuse Struts 2 application on Resin 3.1

2008-07-09 Thread George Wei
Dear all, I've created an AppFuse Struts 2 application (Using AppFuse 2.1) and deployed it on Tomcat 6.0.x, it works ok. Then I tried to deploy the same war file on resin, I got the following error messages: 2008-7-10 10:41:57 com.caucho.boot.WatchdogProcess run Info: WatchdogProcess[Watchdog[],

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 12:19 PM, syg6 wrote: Hmmm ... Shouldn't you also stick 'MyObject1' and 'MyObject2' in the hashCode() and toString() methods, just to be safe (ie. make it easier for Hibernate to uniquely identify the object by giving it more fields as criteria)? Yes, but - what are

Re: [appfuse-user] problem while porting from struts 2.0.11 to struts 2.1.2

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 11:34 PM, nani2ratna wrote: Hi, I am new to Appfuse. I am trying to port from struts 2.0.11 to struts 2.1.2. I did all the steps that explained by http://www.nabble.com/-appfuse-user--porting-to-Struts-2.1.2-diff-file-...-td18043037s2369.html#a18043037 Giovanni Please kindly

[appfuse-user] Strange JS error when selecting an item on the List page

2008-07-09 Thread Cens
I am using Appfuse 2.0.1 with JSF archetype. On one machine that uses IE 6.0.3790 I get the following Javascript error when clicking on an item in the list page: call.indexOf("return ") Property or method unsupported by the object in the following function: function highlightTableRows(tableId)

[appfuse-user] problem while porting from struts 2.0.11 to struts 2.1.2

2008-07-09 Thread nani2ratna
Hi, I am new to Appfuse. I am trying to port from struts 2.0.11 to struts 2.1.2. I did all the steps that explained by http://www.nabble.com/-appfuse-user--porting-to-Struts-2.1.2-diff-file-...-td18043037s2369.html#a18043037 Giovanni Please kindly guide me. Results : Tests in error: test

Re: [appfuse-user] JCaptcha appfuse 2.0.2 - JSF

2008-07-09 Thread Matt Raible
Make sure you don't have an old version of Spring in your classpath. Run "mvn package" and look in target/packagename/WEB-INF/lib to see if you have conflicting versions. You can also run "mvn dependency:tree" to see where the older version might be coming from. Matt On Wed, Jul 9, 2008 at 12:23

[appfuse-user] JCaptcha appfuse 2.0.2 - JSF

2008-07-09 Thread ycharron
Hi, I'm trying to integrate JCaptcha in the signupForm base on the following JSF/JCaptcha tutorial. http://www.emforge.org/wiki/ImplementingCaptchaWithJSF. When I compile the project it now gives me the following error : [ERROR] BUILD ERROR [INFO]

Re: [appfuse-user] View session expired/logged out - but "server session" keeps on running ???

2008-07-09 Thread patz
I think the session time is not the problem. We set it to 60 minutes. If the 60 minutes are expired or the user logs out the view session will be closed as intended. The problem is that the data import started by the user session (reading hundreds of files and storing them to the database) is sti

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
Hmmm ... Alexander Coles wrote: > > > I only include boxed primitive (String) properties + @Embedded > properties when I write my hashCode() and equals(). > Of course, if you have a property that you know should be unique - a > natural key - in addition to your surrogate key, you can just

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread Alexander Coles
On Jul 9, 2008, at 11:53 AM, syg6 wrote: Sure enough it was a hashCode issue. In the stack trace I had the following line: com.myco.myapp.model.Request.hashCode(Request.java:418) When I went to my hashCode method it looked pretty normal: return new HashCodeBuilder().append(code).append(typ

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
Sure enough it was a hashCode issue. In the stack trace I had the following line: com.myco.myapp.model.Request.hashCode(Request.java:418) When I went to my hashCode method it looked pretty normal: return new HashCodeBuilder().append(code).append(type) ... The offending line was: append(inspe

[appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
I posted a similar message a while back. I only got one response. I thought I had fixed my problem by eagerly loading my Object's Collections when needed. But no, it's broke again. In summary, I am getting the famous 'could not initialize proxy - no Session' error when trying to display a list of

[appfuse-user] struts2 jscalendar can't get date

2008-07-09 Thread brantman
Hi, My project is built based on AppFuse2-struts2 and I use jscalendar according to APF-268 description, it can show the calendar correctly, but after I select a date, it can't be shown in the textfield, and I get the following error from firefox's error console. error:Ö^' HTMLDivElement.parentN

[appfuse-user] Interdependent selectOneMenu's

2008-07-09 Thread KrisD
Hi all, I have a problem using interdependent dropdownlists in AppFuse. Here's the situation: I installed a modular JSF and Hibernate based AppFuse. In this AppFuse instance i added the code from following blog: http://balusc.blogspot.com/2007/10/populate-child-menus.html In order to make this c

[appfuse-user] Creating a project based on an existing project (based on Appfuse)

2008-07-09 Thread oscar perez
Hi there, I was wondering if could be possible to reuse the pattern used for appfuse. We have created a project based on Appfuse multimodular and now we want it to be our starting point for future applications. So the war and jar would need to be dependencies for the new project (core and web) and