roller-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Johnson <dave.john...@rollerweblogger.org>
Subject Re: notes from upgrade installation test of 1.3 to 2.0
Date Sun, 13 Nov 2005 14:06:32 GMT
Done. I removed the argument from both the production and test versions  
of hibernate.cfg.xml. - Dave


On Nov 12, 2005, at 10:22 PM, Allen Gilliland wrote:

> +1 from me as well.
>
> i've known about this for quite a while, but since it doesn't harm  
> anything i didn't say anything.
>
> -- Allen
>
>
> Matt Raible wrote:
>
>> On 11/12/05, Anil Gangolli <anil@busybuddha.org> wrote:
>>
>>> Yes, most certainly.  The only mystery was why I got the warning  
>>> with my
>>> upgrade installation of the distribution, but not when running my own
>>> build installed "from scratch".
>>>
>>> And I just solved the mystery.  It's due to a subtle difference in  
>>> the
>>> log4j.properties that I had neglected.  We turn off the Hibernate
>>> warnings by default.  The package name and hence logger/category name
>>> changed and I had missed this fact when merging in my local
>>> log4j.properties.
>>>
>>> So in fact we always do generate that warning on Tomcat.
>>>
>>> We don't seem ever to look up the SessionFactory by JNDI so I suggest
>>> that we do remove the name argument to omit the binding step.
>>>
>>
>> +1.  I've seen a fair amount of discussions on this and the consensus
>> seems to be that you'd like never publish the SessionFactory to JNDI
>> b/c it's more likely that it will be specific to your application,
>> rather than several applications.
>>
>> Matt
>>
>>
>>> --a.
>>>
>>>
>>>
>>> Miguel A Paraz wrote:
>>>
>>>
>>>> On 11/13/05, Anil Gangolli <anil@busybuddha.org> wrote:
>>>>
>>>>
>>>>
>>>>> WARN  2005-11-12 10:01:44,264 |  
>>>>> SessionFactoryObjectFactory:addInstance
>>>>> | Could not bind factory to JNDI javax.naming.NamingException:  
>>>>> Context is read only
>>>>>
>>>>>
>>>>>
>>>> Hi,
>>>> I believe this is due to:
>>>> http://www.hibernate.org/hib_docs/v3/reference/en/html/session- 
>>>> configuration.html#configuration-optional-jndi
>>>>
>>>> In hibernate.cfg.xml:
>>>> <!--
>>>>   <session-factory name="java:comp/env/hibernate/SessionFactory">
>>>> -->
>>>>   <session-factory>
>>>>
>>>>
>>>> I got this when trying to run Roller on Geronimo (still work in  
>>>> progress)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>


Mime
View raw message