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

2007-07-27 Thread Daniel.Rodriguez
Matt & Michael, It seems I finally found a solution Checking again thru the logs I noticed that the exception was raised everytime that my entity hashcode's method was called. So I rechecked the Hibernate folks discussion on Equals and Hashcodes at http://www.hibernate.org/109.html. What I ba

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

2007-07-26 Thread Daniel.Rodriguez
gt; you may be trying to do something out of a transaction - unfortunately the > transaction beastie is needed for reading as well as writing... > > Mike. > > On 7/26/07, Daniel.Rodriguez <[EMAIL PROTECTED]> wrote: >> >> >> >> mraible wrote: >> > &g

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

2007-07-26 Thread Daniel.Rodriguez
mraible wrote: > > Are you trying to do something outside of a transaction? That's the > only thing I can think of that might be causing this problem. > > Matt > > Not that I'm aware of. I'm not trying to save anything to the db. I'm just trying to transverse the object graph. (check m

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

2007-07-26 Thread Daniel.Rodriguez
Matt, Just wanted to double check the following: 1. All my mappings are bidirectional. (i.e.: for every OneToMany there is a ManyToOne) 2. In this particular scenario I'm not using a HQL query, but I'm navigating the object graph returned by GenericDao.get(). I'm assuming that by using Lazy

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

2007-07-26 Thread Daniel.Rodriguez
Matt, I double checked that, and I'm extending BaseDaoTestCase mraible wrote: > > If you're getting this in a DaoTest, then you're probably not > extending BaseDaoTestCase. > > Matt > > On 7/26/07, Daniel.Rodriguez <[EMAIL PROTECTED]> wrot

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

2007-07-26 Thread Daniel.Rodriguez
Hello Appfuzers, I'm having problems with my app. I'm trying to build a light-weight cms (inhouse proyect) and I'm getting a LazyInitializationException in my *DaoTest. I already checked the following: 1. 1. Hashcode/ Equals: Generated using Commonclipse (left out the pk). 2. @OneToMany ma

[appfuse-user] Deploying to a Sharted Hosting (Apache2+Tomcar5.5.20)

2007-07-06 Thread Daniel.Rodriguez
Hello everyone, I have a shared hosting server in Lunarpages, where I have Tomcat 5.5.20 and Apache2 (using jk_mod to connect them) . I want to simplify our WAR deployment process : 1. Create the domain via Plesk. 2. Configure Tomcat for the new domain (add a entry in server.xml): my

[appfuse-user] Obtaining the Database Metadata

2007-07-03 Thread Daniel.Rodriguez
Hello, I'm translating an app from JDBC to Appfuse. My App uses connection.getMetaData(); in order to retrieve a java.sql.DatabaseMetaData object that has the information of the current database. How can I do the equivalent in Hibernate/Spring ? Thanks--. -- View this message in context: h

Re: [appfuse-user] SQL v.s. HQL (plz help)

2007-06-30 Thread Daniel.Rodriguez
Solved it... Had to divide my query in two different queries... Thanks for everything, Dale. Daniel.Rodriguez wrote: > > Dale, > > Forgot to mention that we must support two different versions of MySQL > (3.23 and 5) Our clients are in a shared hosting server and use 3.

Re: [appfuse-user] SQL v.s. HQL (plz help)

2007-06-29 Thread Daniel.Rodriguez
Dale, Forgot to mention that the DBMS is MySQL 3.23 (it is not our db, its a client db) and they won't update it because they have some old software. So no nested queries. Thanks. DNewfield wrote: > > Daniel.Rodriguez wrote: >> I have a Class called Categoria (Category) t

[appfuse-user] SQL v.s. HQL (plz help)

2007-06-29 Thread Daniel.Rodriguez
Hi guys.. Got the following problem: I have a Class called Categoria (Category) that has a List of categories (sub-categories). I'm trying to build a HQL query that can gives me all the Categories that are not a subcategory of another category. In SQL is dead simple : SELECT cat.id FROM

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

2007-06-29 Thread Daniel.Rodriguez
oDBDialect > > (You probably have to modify the settings for your database and maybe add > a password line). > > HTH and kind regards, > Tobias > > -Ursprüngliche Nachricht- > Von: Daniel.Rodriguez [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 27. Juni 2007 0

Re: [appfuse-user] Sitemesh Ugly decorator "flash"

2007-06-29 Thread Daniel.Rodriguez
Dusty, I'm not using any dojo object on my app. dusty wrote: > > Do you have an tag? Are you using some of the > built in dojo objects on this page? I have seen this flash occur with an > iframe using dojo. > > -D > > Daniel.Rodriguez wrote: >> >

Re: [appfuse-user] Sitemesh Ugly decorator "flash"

2007-06-29 Thread Daniel.Rodriguez
r and then your page until you get to a point where the >> flash disappears and then work your way back and narrow down the problem. >> >> Sanjiv >> >> On 6/28/07, *Daniel.Rodriguez* <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >>

Re: [appfuse-user] FCKEditor Integration with AppFuse 2

2007-06-28 Thread Daniel.Rodriguez
Lasantha, Follow Matt's advice. However be extremely carefull with the FCKeditor JSP taglib. It requieres you to create a context named "FCKeditor" in your container and point the JSP tags there. The exact info is in http://wiki.fckeditor.net/Developer's_Guide/Integration/Java here . I had t

[appfuse-user] Sitemesh Ugly decorator "flash"

2007-06-28 Thread Daniel.Rodriguez
Some news : Just got a huuuge project aproved by using Appfuse (and a Appfuse-based Stripes project). Matt & everyone, I can't thank you enough... Now on to the issue at hand : Yesterday I was reviewing a site concept with a client and he noticed that my app (Appfuse 2.0.5 Struts-Basic) has an

[appfuse-user] Using Hibernate Tools w/ appfuse

2007-06-26 Thread Daniel.Rodriguez
I recently changed my Eclipse version to the fantastic EasyEclipse Server Java Edition it comes prepackaged with many plugins, specifically the Hibernate Tools plugins, which I believe that would be ideal (i.e.: Test those HQL for those that still don't speak fluid HQL). I tried to configure

[appfuse-user] Debugging JSP in Eclipse

2007-06-19 Thread Daniel.Rodriguez
Hello everyone, I'm having problems with a JSP I created, and I want to enable JSP debugging using Eclipse (I'm using http://www.easyeclipse.org/site/distributions/server-java.html Easy Eclipse Server Java Distro. ). Does anyone knows how to get the JSP debugger working in Eclipse ? Thanks --

[appfuse-user] Dbunit + Blob issue

2007-06-04 Thread Daniel.Rodriguez
Hi guys, Need help with the following: I declared an Entity that contains a blob, and I need to include the file (a img) inside the dbunit file (the app is an online image handler for a advertisement company, so it is necessary). I alredy checked the dbunit site and they claim that they added s

Re: [appfuse-user] Strange Jetty behaviour, plz help

2007-05-29 Thread Daniel.Rodriguez
Actually no.. They are all mapped to /* (I'm integrating Stripes :) ) The Stripes mapping is *.action. mraible wrote: > > Do you have any filters mapped to *.html? > > On 5/29/07, Daniel.Rodriguez <[EMAIL PROTECTED]> wrote: >> >> Hello everybody! >

[appfuse-user] Strange Jetty behaviour, plz help

2007-05-29 Thread Daniel.Rodriguez
Hello everybody! I'm dev. a webapp using FCKeditor. Whenever I try to open the jsp that have the FCK jsp tags, the browser keeps asking me to download the HTML instead of displaying the page. The weird thing is that in my batch of tests I found that the browser keeps asking me to download any h

[appfuse-user] Generic Entity: Is it possible ?

2007-05-08 Thread Daniel.Rodriguez
Hello everyone, I have an application that groups different objects using a Category entity. Of course, with Java5 Generics it is possible : *** START CODE ** public class Category extends BaseObject { private String categoryName;

[appfuse-user] A question about a modular Application (Appfuse 1.9.X)

2007-03-15 Thread Daniel.Rodriguez
Hello everyone, Here is the deal: We are right now trying to develop a modular webapp. As far as my understanding of servlets goes here is what we thought would work : Uploading a compressed folder with the classes, jsp, images, css, etc-- and then uncompress them inside the existing app. T

Re: [appfuse-user] Webwork's Conversion not working

2006-12-20 Thread Daniel.Rodriguez
Matt , just solved my problem. Basically I had to do some changes around the package-dao task: This is the original version :

Re: [appfuse-user] Webwork's Conversion not working

2006-12-19 Thread Daniel.Rodriguez
Matt, I'm using the 1.9.4 Webwork version ( appfuse-webwork-1.9.4-src.zip). I checked the deployed app in %TOMCAT_DIR%/webapp and the .properties are there. Thanks. -- View this message in context: http://www.nabble.com/Webwork%27s-Conversion-not-working-tf2847151s2369.html#a7953735 Sent fr

[appfuse-user] Webwork's Conversion not working

2006-12-19 Thread Daniel.Rodriguez
Hello everybody, I have the following data structure: Cliente (POJO), Producto (POJO) and Licencia (POJO). Licencia has a composite_id : (FK_CLIENT_ID, FK_PROD_ID). Which I had to implement as suggested in the forums (a separate class called (LicenciaPK): So far, everything works ok, plus t

[appfuse-user] Testing new Filters via AppFuse

2006-12-11 Thread Daniel.Rodriguez
I wrote a new Filter, However I don't have any idea on how to integrate a Junit test with Appfuse. I supose that the test-web target should be used for this. When I try the following command : ant test-web -Dtestcase=VerificarInstalacionFilter I get the following output error (see attached f