-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: hibernate EntityManager malfunction in Oracle 10 G (OC4J)
PostPosted: Thu Jul 07, 2005 5:16 am 
Newbie

Joined: Fri Apr 08, 2005 7:15 am
Posts: 10
When the
Code:
HibernatePersistence.createEntityManagerFactory(String emName, Map map)
is invoked to retrieve an EntityManagerFactory instance, the Hibernate configuration is loaded from a persistence.xml document using the following snippet:
Code:
Enumeration<URL> xmls = Thread.currentThread().getContextClassLoader().getResources("META-INF/persistence.xml");

Is it possible, this doesn't work within an Oracle OC4J container? (When I just use
Code:
URL xmls = Thread.currentThread().getContextClassLoader().getResource("META-INF/persistence.xml");
, the persistence.xml URL is returned (but this can't be used when there are different JARs). The ClassLoader.getResources() just returns an empty enum.
I know this isn't really your problem, but I'm just mentioning it, because this would mean that your EntityManager implementation isn't really usefull on an Oracle App Serv.

Greetz,
Stijn


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 10, 2005 12:30 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
They probably have a broken classloader impelmentation. It'd be cool if you can push the bug to oracle. This is a very basic feature, not esp. related to EntityManager

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Bug fixed
PostPosted: Tue Jul 12, 2005 2:35 am 
Newbie

Joined: Fri Apr 08, 2005 7:15 am
Posts: 10
Apparently, this bug was already filed by the JSF friends.
Fixed in release: 9.0.4.1 Bug ID: 3334337 Description: Method ContextClassLoader.getResources() returns incorrect results.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 12, 2005 12:43 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Cool

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.