-->
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: Possible to deploy HAR without class files?
PostPosted: Fri Aug 13, 2004 5:52 pm 
Newbie

Joined: Thu Aug 12, 2004 4:09 pm
Posts: 5
Location: San Francisco, CA
Hey all,
Due to my preference to package my model classes with other code, I was wondering if it's possible to 'tell' the archive it's dependent on another jar that contains the persistent classes?

I've tried just removing them from the har and placing them in another jar that's in the deploy directory, but no luck there, just gives errors stating it can't find the classes the mapping documents refer to.

Anyone have any suggesstions?

Alex


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 14, 2004 12:43 am 
Newbie

Joined: Tue Nov 11, 2003 5:25 pm
Posts: 17
Location: Milwaukee, Wi
Is it possible to deploy the .har within your .ear? If that's the case, you can put your common jar file at the enterprise application level.


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

Joined: Sat Aug 14, 2004 6:44 am
Posts: 17
Location: Auckland, NZ
It is the same for referencing a library from a har as it is a sar or ejb jar. Stick it all in your ear...

EAR Layout
Code:
   me.ear
     +- META-INF
     |   +- application.xml
     |   +- jboss-app.xml
     +-lib
     |   +- hbm-data.jar
     +-me.har
         +- META-INF
            +- MANIFEST.MF
            +- hibernate-service.xml
            +- left.hbm.xml
            +- right.hbm.xml

jboss-app.xml
Code:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-app
    PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd">

<jboss-app>

  <module>
    <har>me.har</har>
  </module>
   
</jboss-app>

HAR manifest
Code:
Manifest-Version: 1.0
Created-By: Buddha
Class-Path: lib/hbm-data.jar


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

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The important thing to note is that the classes must somehow be on the classpath when jboss deploys your har. This is handled automatically if the classes are part of the har (which is the suggested approach).

David's approach of adding a manifest classpath entry will also work.


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.