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
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
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
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
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
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
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
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
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
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
--
_
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
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
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
Konstantin,
Could this latest problem be related to my Login.hbm.xml file?
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
--
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
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
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
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
18 matches
Mail list logo