You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Grzegorz Sikora <sz...@op.pl> on 2005/03/15 00:43:14 UTC

trouble with Hibernate 2.1 under Cocoon 2.17

Hello ,

I succesfuly used Hibernate 2.1.8 under Cocoon 2.16 followed by Wiki
tutorial[1] sugestions.

When I've switched to 2.17dev (current Head rev) I've got strange error when
HibernateFactory is initialising (...and it causes failing Cocoon to load :)

root cause

java.lang.NoClassDefFoundError
        net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)

805: return new SessionFactoryImpl(this, settings);

(this class is in hibernate2.jar so why no def found ?)

No idea whats happening 'cause I'm using the same code and config like
in 2.16. I've copied the same required libs to Cocoon lib dir (
h2.jar,  dom4j-1.4.jar, cglib-full-2.0.2.jar, jta.jar)

 Anyone used Hibernate 2.1 under Cocoon 2.17 ?


[1] http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial

-- 
Best regards,
 Grzegorz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Leszek Gawron <lg...@apache.org>.
Leszek Gawron wrote:
> Grzegorz Sikora wrote:
> 
>> Hello Leszek,
>>
>> Tuesday, March 15, 2005, 9:38:53 AM, you wrote:
>>
>>
>>>> Anyone used Hibernate 2.1 under Cocoon 2.17 ?
>>
>>
>> LG> I am using cocoon under 2.1.x branch and trunk - no problem at all.
>>
>> Are you sure ? Which HB version ?
>>
>> I've downloaded RELEASE_2_1_6 and followed the same steps as in 2.1.x
>> trunk (libs etc.) and ... HB 2.1 works ! there must be some conflict
>> with librares shiped with 2.1x trunk and used by HB.
> 
> I'll have a second look at that.
I have just checked with latest cocoon 2.1 from svn and hibernate 2.1.8 
- works like a charm.

-- 
Leszek Gawron                                                 MobileBox
lgawron@apache.org                              http://www.mobilebox.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Grzegorz Sikora wrote:
> Hello Leszek,
> 
> Tuesday, March 15, 2005, 9:38:53 AM, you wrote:
> 
> 
>>> Anyone used Hibernate 2.1 under Cocoon 2.17 ?
> 
> LG> I am using cocoon under 2.1.x branch and trunk - no problem at all.
> 
> Are you sure ? Which HB version ?
> 
> I've downloaded RELEASE_2_1_6 and followed the same steps as in 2.1.x
> trunk (libs etc.) and ... HB 2.1 works ! there must be some conflict
> with librares shiped with 2.1x trunk and used by HB.
I'll have a second look at that.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re[2]: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Grzegorz Sikora <sz...@op.pl>.
Hello Leszek,

Tuesday, March 15, 2005, 9:38:53 AM, you wrote:

>>  Anyone used Hibernate 2.1 under Cocoon 2.17 ?
LG> I am using cocoon under 2.1.x branch and trunk - no problem at all.

Are you sure ? Which HB version ?

I've downloaded RELEASE_2_1_6 and followed the same steps as in 2.1.x
trunk (libs etc.) and ... HB 2.1 works ! there must be some conflict
with librares shiped with 2.1x trunk and used by HB.

-- 
Best regards,
 Grzegorz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re[2]: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Grzegorz Sikora <sz...@op.pl>.
Hello Leszek,

Tuesday, March 15, 2005, 3:17:16 PM, you wrote:


LG> from hibernate/lib/README.txt:

LG> odmg.jar (3.0)
LG> - ODMG API 3.0
LG> - runtime, required

Well, thanks for info. This lib is required for sure but there's no need
to copy it into Cocoon's lib dir 'cause db-obj-1.0.x.jar has
already ODMG classes included.

But to make sure I've copied odmg.jar (and all other libs from HB src
release as I said in previous message) into lib dir and still
experiencing the same error while HB init - 'instantiating and configuring
caches'  ...


-- 
Best regards,
 Grzegorz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Grzegorz Sikora wrote:
> Hello Leszek,
> 
> Tuesday, March 15, 2005, 9:38:53 AM, you wrote:
> 
> 4j-1.4.jar, cglib-full-2.0.2.jar, jta.jar)
> 
>>> Anyone used Hibernate 2.1 under Cocoon 2.17 ?
> 
> LG> I am using cocoon under 2.1.x branch and trunk - no problem at all.
> 
> LG> by the way: don't you need the odmg jar also ?
> 
> I dunno. I don't see this lib in previous working configuration ( Cocoon 2.16
> and Tomcat 4.1) so it's maybe not required. Too make sure I've copied
> all jars from hibernate/lib directory that don't duplicate with ones
> found in cocoon/lib.
> Now I run Cocoon under Tomcat 5.0.28.
> 
> Last position in logs are:
> - cache provider: net.sf.hibernate.cache.EhCacheProvider
> - instanting and configuring caches
> 
> ..and at this moment Cocoon initialization stops. Hibernate is
> compiled with Ehcache 0.9. Runs fine with 1.0, but C2.17 has Ehcache
> 1.1. Maybe this is the problem ?
> 
> 
from hibernate/lib/README.txt:

odmg.jar (3.0)
- ODMG API 3.0
- runtime, required

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re[2]: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Grzegorz Sikora <sz...@op.pl>.
Hello Leszek,

Tuesday, March 15, 2005, 9:38:53 AM, you wrote:

4j-1.4.jar, cglib-full-2.0.2.jar, jta.jar)
>> 
>>  Anyone used Hibernate 2.1 under Cocoon 2.17 ?
LG> I am using cocoon under 2.1.x branch and trunk - no problem at all.

LG> by the way: don't you need the odmg jar also ?

I dunno. I don't see this lib in previous working configuration ( Cocoon 2.16
and Tomcat 4.1) so it's maybe not required. Too make sure I've copied
all jars from hibernate/lib directory that don't duplicate with ones
found in cocoon/lib.
Now I run Cocoon under Tomcat 5.0.28.

Last position in logs are:
- cache provider: net.sf.hibernate.cache.EhCacheProvider
- instanting and configuring caches

..and at this moment Cocoon initialization stops. Hibernate is
compiled with Ehcache 0.9. Runs fine with 1.0, but C2.17 has Ehcache
1.1. Maybe this is the problem ?


-- 
Best regards,
 Grzegorz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: trouble with Hibernate 2.1 under Cocoon 2.17

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Grzegorz Sikora wrote:
> Hello ,
> 
> I succesfuly used Hibernate 2.1.8 under Cocoon 2.16 followed by Wiki
> tutorial[1] sugestions.
> 
> When I've switched to 2.17dev (current Head rev) I've got strange error when
> HibernateFactory is initialising (...and it causes failing Cocoon to load :)
> 
> root cause
> 
> java.lang.NoClassDefFoundError
>         net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
> 
> 805: return new SessionFactoryImpl(this, settings);
> 
> (this class is in hibernate2.jar so why no def found ?)
> 
> No idea whats happening 'cause I'm using the same code and config like
> in 2.16. I've copied the same required libs to Cocoon lib dir (
> h2.jar,  dom4j-1.4.jar, cglib-full-2.0.2.jar, jta.jar)
> 
>  Anyone used Hibernate 2.1 under Cocoon 2.17 ?
I am using cocoon under 2.1.x branch and trunk - no problem at all.

by the way: don't you need the odmg jar also ?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org