I managed to track down the problem by looking
in the $TOMCAT/logs directory - in the stdout.log
file... this shows the process being followed when 
a Hibernate transaction is initiated.

In this case the problem was that the User.hbm.xml
file was referring to a
<!DOCTYPE hibernate-mapping PUBLIC ...
and my development machine was not on the network.

To solve this, I had to:
* locate a copy of the Hibernate .dtd file in
the $HIBERNATE/build directory, 
* copy the dtd file into the c:\windows\system32 
directory, 
* alter the DTD reference to be:
<!DOCTYPE hibernate-mapping PUBLIC "filename.dtd">

I am sure there must be a "cleaner" way to handle
DOCTYPES - if I copy over the *.hbm.xml files to the
production server, I will either have to change all the
references back to PUBLIC or find out where to house
the DTD on each different system...  any ideas?

Thanks
Derek

PS The good news, of course, is that plugging in 
Hibernate is very straightforward... and it seems 
to be a logical extension of the flow-cforms-beans
approach shown in an increasing number of samples 
- perhaps the developers could even consider integrating
 the key .jar files into future versions of Cocoon (in line 
with the modular, plug-in approach)...?!


>>> [EMAIL PROTECTED] 06/09/04 6:39 PM >>>
I have tried to integrate Hibernate with Cocoon,
using the instructions [very clear, thanks!] given
on the wiki site:
http://wiki.cocoondev.org/Wiki.jsp?page=UsingHibernateToMakeYourJavaBeansPersistent

I am working with the following combinations of the
various packages:
Cocoon 2.1.5
Tomcat 4.1.29
Hibernate 2.1.4

The only differences I could see when following the
steps was that the following files:
j2ee.jar
commons-beanutils.jar
were not in the hibernate/lib directory - and I was
not sure where else to find them or, if indeed, they
were required any more.  A few of the other .jar
files were already in Cocoon and so I did not overwrite
them.

Apart from this, I followed the instructions as supplied.

However, when I run the "test", there is no error
(on screen or in the Cocoon logs) but also no entry
in the mySQL database...  where and how do I go about
trying to resolve the cause of the problem?

Thanks!
Derek


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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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

Reply via email to