cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@citycita.net>
Subject Re: cocoon session + hibernate session collision
Date Mon, 13 Jun 2005 10:43:05 GMT
Thanks a lot Geert ,
I never experienced this before.
As you said i imported org.hibernate.* and declared  
org.hibernate.Session hs = ....

Phil

Geert Josten wrote:

> Hi,
>
> Is it a warning or an error?
>
> Class name collision can occur relatively easy when importing lot's of 
> packages. What about using full package names and perhaps *not* 
> including the org.hibernate.Session (and only reference it using the 
> full package name?)
>
> HTH,
> Geert
>
> Philippe Guillard wrote:
>
>> Hi all,
>>
>> I use Hibernate in cocoon configured as in CocoonAndHibernateTutorial.
>> In XSP i discoverd i can't use Session Logicsheet + 
>> org.hibernate.Session, cause class names collision!.
>>
>> Doing :
>> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" 
>> xmlns:xsp-session="http://apache.org/xsp/session/2.0">
>>  <xsp:structure>
>>   <xsp:include>org.hibernate.Session</xsp:include>
>>  </xsp:structure>
>> <page>
>> Will give me "The import org.hibernate.Session collides with another 
>> imported type"
>>
>> Ok i could use session transformer later in the pipeline but this is 
>> embarassing me, cause i use this a lot already.
>> Is there a way in XSP to avoid 2 types not to collide?
>>
>> Regards,
>>
>> Phil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>


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


Mime
View raw message