-->
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.  [ 2 posts ] 
Author Message
 Post subject: can anyone post example of using a .har from a .war in .ear
PostPosted: Mon Jan 24, 2005 7:59 pm 
Newbie

Joined: Mon Jan 24, 2005 7:54 pm
Posts: 1
I'm having serious issues. And rather than post my huge files and such here, I'm asking for someone to post a file and deployment layout that WORKS.

Basically, I'm using jboss 4.0.1 and the hibernate that comes with it.

I want to deploy the hibernate stuff as a .har, and my web app as a .war, and package them both inside a .ear for deployment.

No matter what I do, I get No persister for: com.digitalsanctuary.mms.data.Customer, or class not found, or other errors.

I haven't found anything online that shows me how to do what I want.

If anyone can post an example of exactly what should be where in the .ear, what the various MANIFEST.MFs, application.xml, jboss-app.xml, etc... should have in them, that would be wonderful! Or even just post a ear that works, I'll poke through it on my own.

If i SHOULDN'T be trying to package things the way I am trying to, please let me know how I should be doing it.

I"ve tried a lot of things, and nothing is working for me.

Thanks!

Devon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 1:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Basically, the hibernate classes and mapping files should go inside the har; the classes need to maintain package-structure within the har; it does not matter too much where the mappings files go within the har, although convention puts them into the meta-inf directory. You then need a hibernate-service.xml file inside the har files meta-inf directory which configures the MBean service (check the JBoss wiki if you need examples of this). That's it for the har.

I'll stop here because my guess is that you have something not correctly setup at this point. Essentially the "No persister" error means that the SessionFactory never parsed a mapping file related to the com.digitalsanctuary.mms.data.Customer class.


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