-->
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: Class-Path in MANIFEST.MF
PostPosted: Thu May 27, 2004 10:19 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 12:45 pm
Posts: 45
Hello,

JBoss' xml compiler can't compile the Hibernate mapping file in jZUDIHibernate.sar because it can't find the respective .class file in jZUDIHibernate.jar. Can anyone tell me the correct format for a classpath within a Manifest.mf file?

Thanks for any ideas!
Itchy


Here is my directory structure:
jZUDI-MiddleTier.ear
+- META-INF/application.xm
+- META-INF/jboss-app.xml
+- jZUDIHibernate.jar (archive)
| +- com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.class
+- jZUDIHibernate.sar (archive)
| +- com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml
| +- META-INF/MANIFEST.MF
| +- META-INF/jboss-service.xml
l


The JZUDIHibernate.sar MANIFEST.MF looks like this:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
Class-Path: jZUDIHibernate.jar


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 10:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Try adding

Class-Path: jZUDIHibernate.jar


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 10:49 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 12:45 pm
Posts: 45
Hi Michael,

Thanks for responding so quickly. Notice, at the bottom of my original post, I included the MANIFEST.MF for jZUDIHibernate.sar. It contains the exact entry that you suggest. However, I still keep getting this error:


Code:
15:44:16,714 ERROR [Configuration] Could not compile the mapping document
net.sf.hibernate.MappingException: persistent class [com.kemaiev.jzudi.hibernate
.CompanyHibernateImpl] not found
        at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)




I wasn't convinced that the Class-Path format is correct. But since you suggest the same format as I have used, then perhaps it is in fact correct. I guess it must be something else. Hmmmm.

I appreciate any help you can offer.

Itchy


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 12:31 pm 
Beginner
Beginner

Joined: Thu Apr 29, 2004 12:45 pm
Posts: 45
It now seems to compile when I put com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml inside a new mapping/ directory.

Here is my new directory structure:
Code:
jZUDI-MiddleTier.ear
+- META-INF/application.xm
+- META-INF/jboss-app.xml
+- jZUDIHibernate.jar (archive)
| +- com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.class
+- jZUDIHibernate.sar (archive)
| +- mapping/com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml
| +- META-INF/MANIFEST.MF
| +- META-INF/jboss-service.xml


By the way, someone from another post--who helped me solve the above problem (thanks!)-- suggested putting all .class files in the .sar when using mBean. Is this necessary?

Itchy


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.