-->
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.  [ 6 posts ] 
Author Message
 Post subject: JBoss3.2.6RC1-Hibernate2 problem
PostPosted: Fri Aug 06, 2004 5:17 am 
Newbie

Joined: Fri Aug 06, 2004 4:59 am
Posts: 1
Hi!

I followed the instruction on the site: http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate and tried to use 3.2.6RC1, and got this exception:
java.lang.IllegalArgumentException: Unknown session scope for jndi name [java:/hibernate/HibernateFactory]
at org.jboss.hibernate.session.SessionContext.getSessions(SessionContext.java:182)
at org.jboss.hibernate.session.SessionContext.getSession(SessionContext.java:88)

Thanks for solutions of problem!

Bye

Ziga


Top
 Profile  
 
 Post subject: JBoss3.2.6RC1-Hibernate2 problem
PostPosted: Sun Aug 08, 2004 2:20 pm 
Newbie

Joined: Sun Aug 08, 2004 2:05 pm
Posts: 1
Watcha,

We're also having the same problem. Have followed the examples as close as possible and am pretty sure everything is working as it should be. Har is deploying ok and I can see the JNDI bind for the HibernateFactory. The Stateless Session Bean interceptor is working, as I can also see it in the stack trace when it complains about the session scope.

Assistance on this would be most appreciated.

Cheers
RV


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 08, 2004 6:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Apparently, 3.2.6RC1 was cut prior to the Hibernate integration being completed. The jboss-hibernate.jar file that comes in the 3.2.6RC1 download is not correct.

I have updated the jboss wiki page to document this and attached the correct jar version. The wiki also contains instructions on the two steps needed to correct the issue. Essentially, download the hibernate-deployer-service.xml and jboss-hibernate.jar files attached to that wiki page and place them in their appropriate directories.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 14, 2004 7:06 am 
Newbie

Joined: Sat Aug 14, 2004 6:44 am
Posts: 17
Location: Auckland, NZ
You must reference the new container configuration from your ejb.

Code:
<jboss>

   <enterprise-beans>

      <session>
         <ejb-name>MyFacadeManager</ejb-name>
         <local-jndi-name>MyFacadeManagerLocal</local-jndi-name>
         <configuration-name>Hibernate Stateless SessionBean</configuration-name>

        <method-attributes />
      </session>

     ....


Incidently, I added the extra container configuration to standardjboss.xml.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 8:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Quote:
You must reference the new container configuration from your ejb.


Not completely true. You can also simply add this to the default ejb container configuration in standardjboss.xml, as you later mention.


Top
 Profile  
 
 Post subject: Which CVS tag was this jar built from
PostPosted: Mon Feb 28, 2005 9:09 am 
Hi!
I downloaded that jar file You mention, from the wiki page. I am stuck with that version a bit longer, even though I know that there are some bugs there, that have been fixed in later revisions.

I would like to do some remote debugging of the JBoss/Hibernate code, using Eclipse, and in order to do that, I need to get the source code for it.

The problem is that there is no CVS tag or revision mentioned in the manifest file of the jar I took from the wiki page.

Can You please tell med which tag was used when building the jar You mention in this thread?

Thank You very much!

Fredrik Israelsson


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.