Re: hibernate with tapestry

2006-02-27 Thread Konstantin Ignatyev
Sure, and ask there about Hibernate. Ron Piterman <[EMAIL PROTECTED]> wrote: damn, and I thought this is a tapestry mailing list... but I guess I must look for tapestry help at cayene mailing list... *g* Ron Konstantin Ignatyev PS: If this is a typical day on planet earth, humans wi

Re: hibernate with tapestry

2006-02-26 Thread Raul Raja Martinez
Hi David, It looks like there is a problem with the property userName, first make sure you are following the javabean conventions to define your properties in your model class. Can you post your persistent class here? Also I think for your purpose it would be easier to just do a query by exa

RE: hibernate with tapestry

2006-02-26 Thread James Carman
e.org Subject: Re: hibernate with tapestry damn, and I thought this is a tapestry mailing list... but I guess I must look for tapestry help at cayene mailing list... *g* Ron david b wrote: > Hello, > > I starting to make a simple application using Tapestry 3.1 I have tomcat 5.5.7 using JDK

Re: hibernate with tapestry

2006-02-26 Thread Ron Piterman
damn, and I thought this is a tapestry mailing list... but I guess I must look for tapestry help at cayene mailing list... *g* Ron david b wrote: Hello, I starting to make a simple application using Tapestry 3.1 I have tomcat 5.5.7 using JDK 1.5. My next step was to integrate a call to hiber

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Raul Raja Martinez, That worked... Thanks. The Hibernate SQL I wrote did not. I modified it some but that is not going so well. Unable to resolve expression 'userName' for [EMAIL PROTECTED] binding:ExpressionBinding[Login userName] location: context:/Login.html, line 18 ognl.O

Re: hibernate with tapestry

2006-02-25 Thread Raul Raja Martinez
Is the fisrt time that I see the connection.url as : //localhost:3306/budget I've always seen it as: jdbc:mysql://localhost:3306/budget Raul. Also in some cases you sould use 127.0.0.1 instead of localhost. david b wrote: Konstantin, That is good advice... and it has got me past that issue

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Konstantin, That is good advice... and it has got me past that issue. Only one left I think is that I did something wrong with my connections attributes. org.hibernate.exception.GenericJDBCException: Cannot open connection com.entercite.finance.persistence.exception.DataAccessLayerException

Re: Re: hibernate with tapestry

2006-02-25 Thread Konstantin Ignatyev
For non standard data types please consult: http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-types-custom david b <[EMAIL PROTECTED]> wrote: Lutz, Made some more modifications: Changed Login: package com.entercite.finance.model; import java.util.*; import com.enterc

Re: Re: hibernate with tapestry

2006-02-25 Thread Konstantin Ignatyev
Just do not use type attribute at all, Hibernate is smart enough to infer necessary types from classes and use appropriate DB types. Provided that actual class uses java.lang.Integer and java.util.Date as property types

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Konstantin Can I replace within the Login.hbm.xml integer instead of in? What about my special date class? Can these have DateIII instead of date? That is a class I made and put into my commons package. David -- _

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Lutz, Made some more modifications: Changed Login: package com.entercite.finance.model; import java.util.*; import com.entercite.common.util.DateIII; /** * */ public class Login { private Integer id = new Integer(0); private Integer userId = new Integer(0); private String userN

Re: Re: hibernate with tapestry

2006-02-25 Thread Konstantin Ignatyev
Your class should have getId/setId methods and I recommend using object type like java.lang.Long or Integer because simple type like int cannot be null and therefore Hiberante's saveOrUpdate 'magic' will not work . david b <[EMAIL PROTECTED]> wrote: Konstantin, Could this latest problem be re

Re: Re: hibernate with tapestry

2006-02-25 Thread Lutz Hühnken
Could it be that maybe in your Hibernate mapping, you defined a mapping for the attribute "id", but in your ..model.Login class, there is no getId() Method? I believe the Hibernate error messages are not as misleading as you seem to think. On 2/25/06, david b <[EMAIL PROTECTED]> wrote: > Konstan

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Konstantin, Could this latest problem be related to my Login.hbm.xml file? http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";> --

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
Konstantin, I added: jta.jar plus, cglib-2.1.3.jar, asm.jar, asm-attrs.jar Now its throwing a new error: Unable to invoke method doLogin on [EMAIL PROTECTED]: Could not find a getter for id in class com.entercite.finance.model.Login org.hibernate.PropertyNotFoundException Could not find a get

Re: Re: hibernate with tapestry

2006-02-25 Thread Konstantin Ignatyev
You need jta-api jar file, for example jta-api-1.0.1B.jar from ibiblio david b <[EMAIL PROTECTED]> wrote: David, I added a couple more jar's: dom4j-1.6.jar and ehcache-1.1.jar. Then I get this error: java.lang.NoClassDefFoundError javax/transaction/SystemException Stack Trace: * org

Re: Re: hibernate with tapestry

2006-02-25 Thread david b
David, I added a couple more jar's: dom4j-1.6.jar and ehcache-1.1.jar. Then I get this error: java.lang.NoClassDefFoundError javax/transaction/SystemException Stack Trace: * org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) * com.entercite.finance.persi

Re: hibernate with tapestry

2006-02-25 Thread David Benoff
david b mail.com> writes: > java.lang.NoClassDefFoundError > org/dom4j/io/SAXReader This is a Hibernate issue. You are missing Dom4j in your web-inf/lib folder. Put the jar in there (I have dom4j-1.6.jar) and you won't get this. You are probably also missing other jars as well. Read the stack