i think my problem fits right into this topic.
is was migrating my webapplication from jboss 4.0.1 to 4.0.2 and from hibernate 
2.x to 3.0.3 when i came up with a strange problem. during the deployment of a 
hibernate archive i got those logmessages:


  | 15:43:19,286 DEBUG [SessionFactoryObjectFactory] registered: 
0f4de0b003eab2a80103eae4e5f60003 (unnamed)
  | 15:43:19,286 INFO  [SessionFactoryObjectFactory] Not binding factory to 
JNDI, no JNDI name configured
  | 15:43:19,286 DEBUG [SessionFactoryImpl] instantiated session factory
  | 15:43:19,286 DEBUG [SessionFactoryImpl] obtaining JTA TransactionManager
  | 15:43:19,287 INFO  [NamingHelper] JNDI InitialContext properties:{}
  | 15:43:19,287 INFO  [SessionFactoryImpl] Checking 0 named queries
  | 15:43:19,301 DEBUG [SessionFactoryImpl] Returning a Reference to the 
SessionFactory
  | 

interesting was the first line ending with (unnamed) instead of the JNDI 
bindname configured in the hibernate-service.xml


  | <server>
  |     <mbean code="org.jboss.hibernate.jmx.Hibernate"
  |            name="jboss.har:service=Hibernate">
  |         <attribute name="DatasourceName">java:/lvonline</attribute>
  |         <attribute 
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  |         <attribute 
name="Dialect">org.hibernate.dialect.OracleDialect</attribute>
  |         <attribute 
name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
  |     </mbean>
  | </server>
  | 

exactly the same har had worked fine with jboss 4.0.1

as a consecutive fault i get null if i perfom a lookup for the SessionFactory


  | InitialContext ctx = new InitialContext();
  | SessionFactory sf = 
((SessionFactory)ctx.lookup("java:/hibernate/SessionFactory"));
  | 

perhaps somebody can help me out here
best regards
gerd oberlechner

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878024#3878024

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878024


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to