Re: [appfuse-user] xdoclet unique-key question

2006-12-08 Thread Rene Lavoie
Btw, ignore the inconsistency in package names. - Original Message - From: "Rene Lavoie" <[EMAIL PROTECTED]> To: Sent: Saturday, December 09, 2006 2:12 AM Subject: Re: [appfuse-user] xdoclet unique-key question ant setup ends with: [schemaexport] (cfg.Configuration

Re: [appfuse-user] xdoclet unique-key question

2006-12-08 Thread Rene Lavoie
ant setup ends with: [schemaexport] (cfg.Configuration 240 ) Reading mappings from file: C:\work\appfuse\build\dao\gen\com\appfuse\model\LiteralText.hbm.xml [schemaexport] (cfg.HbmBinder 309 ) Mapping class: com.appfuse.model.LiteralText -> literal_text

[appfuse-user] Top Projects on java.net - November 2006

2006-12-08 Thread Matt Raible
Thanks to all for making this one of the most active projects on java.net in November! http://community.java.net/projects/top.csp Also, here's some tips from Kathy Sierra on how to continue building a successful user community: http://headrush.typepad.com/creating_passionate_users/2006/12/how_t

Re: [appfuse-user] xdoclet unique-key question

2006-12-08 Thread Matt Raible
Can you post the full error/stacktrace you're seeing? Thanks, Matt On 12/8/06, Rene Lavoie <[EMAIL PROTECTED]> wrote: Hello, I m trying to map a unique constraint with two fields. And the build keeps failing: "Schema text failed" Any idea? Thanks public class LiteralText extends BaseObject

[appfuse-user] xdoclet unique-key question

2006-12-08 Thread Rene Lavoie
Hello, I m trying to map a unique constraint with two fields. And the build keeps failing: "Schema text failed" Any idea? Thanks public class LiteralText extends BaseObject { ... /** * @hibernate.id generator-class="native" type="java.lang.Long" column="id" * @return the id */ public Long

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Sanjiv Jivan
I know that this is approach suggested by some but I really don't like the JNDI configuration piece. I prefer having and maintaining all the settings of my app in just one place. Here's the approach I use : http://jroller.com/page/sjivan?entry=spring_updating_settings_of_a Sanjiv On 12/8/06, Mi

Re: [appfuse-user] log4j all statements logged as debug

2006-12-08 Thread Matt Raible
Have you changed the default log4j.properties at all? You might want to make sure there's not more than one in your classpath. Matt On 12/8/06, mas <[EMAIL PROTECTED]> wrote: All of the statements from my app (test or webapp) are logged with the Logging level debug. However in my app I l

[appfuse-user] log4j all statements logged as debug

2006-12-08 Thread maskkkk
All of the statements from my app (test or webapp) are logged with the Logging level debug. However in my app I log them as info, warn, and debug. Does this have something to do with commons logging? Thank you, Andrew J. Leer -- View this message in context: http://www.nabble.com/log4j-a

Re: [appfuse-user] EL Expressions do not evaluate.

2006-12-08 Thread maskkkk
Okay I just added this > > > *.html > false > > > And changed from a DOCTYPE t

Re: [appfuse-user] EL Expressions do not evaluate.

2006-12-08 Thread maskkkk
I'm using 5.0.28, that should be a 2.4 complient container The funny thing is the tags work fine, but when I try to include a EL expression it doesn't evaluate... Oh and I made an attempt at turning off sitemesh, would that cause any problems? Matt Raible-3 wrote: > > What do your EL expr

Re: [appfuse-user] EL Expressions do not evaluate.

2006-12-08 Thread Matt Raible
What do your EL expressions look like? If you're using ${foo}, you need to have Servlet 2.4 enabled in web.xml rather than Servlet 2.3 (the default). If you're using Servlet 2.3, you need to use . To change to Servlet 2.4, set jsp.2 to "true" in properties.xml. You can also run "ant -f convert

[appfuse-user] EL Expressions do not evaluate.

2006-12-08 Thread maskkkk
I can't seem to get my EL expressions to evaluate...what could cause this? -- View this message in context: http://www.nabble.com/EL-Expressions-do-not-evaluate.-tf2782823s2369.html#a7764367 Sent from the AppFuse - User mailing list archive at Nabble.com. -

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Brett Knights
And you can always add this to your build.xml and then just call ant deploy-live Gilberto C Andrade wrote: I think you don't need all this! Just ask your ISP the hostname and build your war: ant war -Ddatabase.host=localhost:5433 -Dhttp.port=80 -Ddatabase.n

RE: [appfuse-user] CAS

2006-12-08 Thread Samuel Alfonso Velázquez Díaz
The links and steps in: http://www.nabble.com/RE%3A-Single-Sign-On-with-Tomcat-p7721967s2369.html Worked for with cas-server-3.0.5 Cheers, Samuel. -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED] Sent: Jueves, 07 de Diciembre de 2006 03:55 p.m. To: users@appfuse.dev.ja

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Gilberto C Andrade
I think you don't need all this! Just ask your ISP the hostname and build your war: ant war -Ddatabase.host=localhost:5433 -Dhttp.port=80 -Ddatabase.name=bcoproducao Gilberto > Thanks again. I feel kind of stupid. I do use Tomcat and am familiar with > the doc link you sent. I think I should b

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Mark Dopheide
acate, When you do your build for the deployment server, then something like "ant -Ddb.host=dbhostname ..." should work Mark acate wrote: Please re-read my question. The server names will not be the same. Fadi Samara wrote: well it depends where your database is located. It is on the

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread acate
Thanks again. I feel kind of stupid. I do use Tomcat and am familiar with the doc link you sent. I think I should be more specific. I will be developing on my work PC using Tomcat 5.x. I will be deploying to a GoDaddy hosted account, and am not sure what j2ee container they use. So, I am thi

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Michael Horwitz
Not sure which servlet container you use, but as an example take a look at this howto for Tomcat: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html On 12/8/06, acate <[EMAIL PROTECTED]> wrote: Thank you very much for this information!!! Could you recommend some onl

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread acate
Thank you very much for this information!!! Could you recommend some online documentation might show me an example of how to do this? Michael Horwitz wrote: > > The usual approach is to configure resources such as databases as part of > the servlet container, and then reference these via JNDI.

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Michael Horwitz
The usual approach is to configure resources such as databases as part of the servlet container, and then reference these via JNDI. It requires a small change to the applicationContext-resources.xml file to point to the correct JNDI name, and then some servlet container specific configuration to s

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread acate
Please re-read my question. The server names will not be the same. Fadi Samara wrote: > > well it depends where your database is located. It is on the same machine > you are deploying to, you should be fine with *localost* > > On 12/8/06, acate <[EMAIL PROTECTED]> wrote: >> >> >> I am new to

Re: [appfuse-user] AppFuse - Spring Question

2006-12-08 Thread Fadi Samara
well it depends where your database is located. It is on the same machine you are deploying to, you should be fine with *localost* On 12/8/06, acate <[EMAIL PROTECTED]> wrote: I am new to AppFuse and Spring, but need to build an app that has a mysql connection. I can build the app locally an

Re: [appfuse-user] JSTL c tags not working - Appfuse 1.9.4

2006-12-08 Thread maskkkk
Okay I fixed it, There's actually another build file inside of appfuse which needs to be run in order to make the switch between versions (since there is 1.0.6, and 1.1.2 included in Appfuse) Here is what I did: first I ran the following cmd after making sure that no programs were touching

[appfuse-user] AppFuse - Spring Question

2006-12-08 Thread acate
I am new to AppFuse and Spring, but need to build an app that has a mysql connection. I can build the app locally and use "localhost" as part of the mysql connection parameters. However, when I deliver the app to the designated server the host name "localhost" will be different. What is the app

Re: [appfuse-user] Testing transaction isolation?

2006-12-08 Thread GaryW
Thanks for all the responses. I don't have a great deal of time to devote to researching the various options because of a tight schedule. I was hoping that this is a scenario that is commonly encountered and that there would be a ready answer but I guess that's not the case. I will probably end

Re: [appfuse-user] about circular dependency in models

2006-12-08 Thread Dale Newfield
Michael Horwitz wrote: As a rule I would try and avoid circular dependencies wherever possible. I understand the need to avoid *required* (not null) circular dependencies, but I don't understand why it's not reasonable to have emergent ones. For example, in my app, each user can have a user

Re: [appfuse-user] Tapestry 1.9.4 Error creating pojo

2006-12-08 Thread Matt Raible
Are you doing the tutorials, or are you trying to use AppGen to create CRUD on the Person object? If you're using AppGen, you'll have to use "install" or "install-detailed" if you don't want to use the BaseDao and BaseManager (which can CRUD any object). Matt On 12/8/06, J Lawrence <[EMAIL PROT

Re: [appfuse-user] JSTL c tags not working - Appfuse 1.9.4

2006-12-08 Thread Matt Raible
I've never tried to use JSP's XML syntax in any application, so I doubt I'll be much help. One thing you might try is changing your web.xml to use Servlet 2.4 instead of Servlet 2.3. Matt On 12/8/06, mas <[EMAIL PROTECTED]> wrote: I am trying to use jstl core / expression language in my a

Re: [appfuse-user] Problem with Glassfish.

2006-12-08 Thread Matt Raible
My guess is this is caused by GlassFish having its own version of JSF, while AppFuse packages its own version. You might want to search the MyFaces mailing list to see if there's any information on deploying a MyFaces application to GlassFish. Of course, you might try contacting the GlassFish ma

RE: [appfuse-user] Problem with Glassfish.

2006-12-08 Thread YM-ITGS Tony Su 蘇聖貴
Hi, Just follow your advice and yes, there is no commons-el.jar in web-inf/lib and Glassfish/lib directory. And actually I ever found some information taking about missing this .jar file, so I put "commons-el-1.0.jar" in the web-inf/lib, restart server. The original error is disappeared, but

RE: [appfuse-user] Problem with Glassfish.

2006-12-08 Thread YM-ITGS Tony Su 蘇聖貴
Dear Bryan, Just confirmed that there are "myfaces-api-1.1.4.jar" and "myfaces-impl-1.1.4.jar" in my webapp/web-inf/lib directory. For the 2nd point, I checked the glassfish/lib directory, I'm not sure if you mean "jsf-impl.jar" or ? Anyway, thanks for your reply. Tony

[appfuse-user] JSTL c tags not working - Appfuse 1.9.4

2006-12-08 Thread maskkkk
I am trying to use jstl core / expression language in my appfuse app > > xmlns:jsp="http://java.sun.com/JSP/Page"; > version="1.2" > xmlns:tiles="http://struts.apache.org/tags-tiles"; >

Re: [appfuse-user] Problem with Glassfish.

2006-12-08 Thread Michael Horwitz
Hi, It looks as if you are missing the commons-el.jar from the web-inf lib. Could you confirm that it is not there/not in the Glassfish lib directory? Mike On 12/8/06, YM-ITGS Tony Su 蘇聖貴 <[EMAIL PROTECTED]> wrote: Hi all, I have tried to use AppFuse to generate a project with JSF-Spring-H

Re: [appfuse-user] Problem with Glassfish.

2006-12-08 Thread Bryan Noll
That class, StartupServletContextListener , is in this jar: myfaces-impl-1.1.3.jar. Is that thing not getting bundled into the war that you're deploying for some reason? Another possible common culprit is that the server already has that jar (probably an older version of it) in its 'common/lib'

[appfuse-user] Problem with Glassfish.

2006-12-08 Thread YM-ITGS Tony Su 蘇聖貴
Hi all, I have tried to use AppFuse to generate a project with JSF-Spring-Hibernate, and go thru the tutorials, then deploy on the Tomcat 5.5, it works perfectly. Now I try to deploy the same .war file to the Glassfish V1 Milestone 7 - build 48, and I already setup/modified to use the connect

Re: [appfuse-user] Tapestry 1.9.4 Error creating pojo

2006-12-08 Thread J Lawrence
Thanks for your reply. I have done as you suggested and it has created the pojo. Fire up Tomcat and Browser load the page and get the following: "Unable to read OGNL experssion '' of [EMAIL PROTECTED]: org.apache.tapestry.listner.ListnerMapImpl.edit" ExpressionBinding[mainMenu requestCycle.getPa

Re: [appfuse-user] about circular dependency in models

2006-12-08 Thread Michael Horwitz
As a rule I would try and avoid circular dependencies wherever possible. But to answer your question, no, Hibernate will not load in an eternal loop as the objects will all be cached in the session regardless of your settings for lazy loading. Mike. On 12/8/06, Man-Chi Leung <[EMAIL PROTECTED]

Re: [appfuse-user] Testing transaction isolation?

2006-12-08 Thread Michael Horwitz
There are numerous ways of doing this - if you choose to approach this by spawning separate threads for each concurrent access you may want to take a look at the multithread JUnit extensions: http://www.junit.org/news/extension/threaded/index.htm Have not used them myself, but they look like a go

Re: [appfuse-user] acegi, permission, authorization and proxy

2006-12-08 Thread Michael Horwitz
ACEGI already has a request filter built in. If you are using AppFuse 1.9.4, look in the security.xml file for the bean called "filterInvocationInterceptor" where you will find the mapping for the roles to URLs. ACEGI is powerfull and extensible - it should be able to meet most (if not all) your s

Re: [appfuse-user] Problems with HibernateTransactionManager, FlushMode, readOnly when upgrading from Appfuse 1.9.3 to 1.9.4

2006-12-08 Thread mare
Dear majaa majaa, thank you for your reply! Since the AppFuse 1.9.4. is adopting Spring 2.0, I think the code was transformed to the new declarations. The spring reference documentation 2.0, Chapter 9 states: Declarative transaction configuration in versions of Spring 2.0 and above differs c