Tapestry should be quite verbose about hibernate if tapestry is configured to
run in debug mode:

http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html

add:

 //This is the time in seconds that Tapestry waits before checking if a file
is modified
        //Use a big number in production to imporve perfomance.
        configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s"); //
600 to production!

        // The factory default is true but during the early stages of an
application
        // overriding to false is a good idea. In addition, this is often
overridden
        // on the command line as -Dtapestry.production-mode=false
        configuration.add(SymbolConstants.PRODUCTION_MODE, "false");

to your AppModule.java's public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration) { method.

Also see that your entities are in correct place (same root package as pages
and components, in entities package.)

Also perhaps use org.hibernate.dialect.MySQLInnoDBDialect to support foreign
keys? (Change to hibernate config.)

You should be able to see that Hibernate starts in the logs and maps User
etc. classes.

Remember to configure your Log4J or what ever logging u use to debug.

 - 99


photos-4 wrote:
> 
> 
> I'm using Eclipse. The XML config appears in target/classes and  
> appears to be in the classpath.
> 
> I'm afraid I'm rather new to Tap 5 and also to Hibernate. I'm just  
> following what is in the Tutorial. Unfortunately the session is still  
> coming out as null.
> 
> Is there anywhere I can see that Tapestry is actually using Hibernate  
> as a service?  I get the following in the console when I start my  
> application:
> 
> ...
>              HibernateEntityPackageManager: DEFINED
>                    HibernateSessionManager: DEFINED
>                     HibernateSessionSource: DEFINED
>              HibernateTransactionDecorator: DEFINED
> ...
> 
> 
> 
> Quoting Andreas Andreou <[EMAIL PROTECTED]>:
> 
>> Perhaps hibernate.cfg.xml isn't in your runtime classpath?
>> Are you sure your IDE includes it to the output?
>>
>> On Thu, Jul 24, 2008 at 6:09 PM,  <[EMAIL PROTECTED]> wrote:
>>> I am following the tutorial at
>>>
>>> http://tapestry.apache.org/tapestry5/tutorial1/forms2.html
>>>
>>> but I find that the session (supposedly injected) is null. I'm not sure
>>> how
>>> to proceed.
>>>
>>> Could someone point me to documents/better tutorials on how to use
>>> Tapestry
>>> with Hibernate?
>>>
>>> Thanks,
>>> p.
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>> Tapestry / Tacos developer
>> Open Source / JEE Consulting
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5-%3A-Hibernate-question-tp18634071p18651481.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to